23076 lines
740 KiB
Go
23076 lines
740 KiB
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package schema
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
"errors"
|
|
"fmt"
|
|
"strconv"
|
|
"sync/atomic"
|
|
"time"
|
|
|
|
"github.com/99designs/gqlgen/graphql"
|
|
"github.com/99designs/gqlgen/graphql/introspection"
|
|
gqlparser "github.com/vektah/gqlparser/v2"
|
|
"github.com/vektah/gqlparser/v2/ast"
|
|
"go.probo.inc/probo/pkg/coredata"
|
|
"go.probo.inc/probo/pkg/gid"
|
|
"go.probo.inc/probo/pkg/mail"
|
|
"go.probo.inc/probo/pkg/page"
|
|
"go.probo.inc/probo/pkg/server/api/connect/v1/types"
|
|
"go.probo.inc/probo/pkg/server/gqlutils/directives/session"
|
|
"go.probo.inc/probo/pkg/server/gqlutils/types/cursor"
|
|
gid1 "go.probo.inc/probo/pkg/server/gqlutils/types/gid"
|
|
mail1 "go.probo.inc/probo/pkg/server/gqlutils/types/mail"
|
|
)
|
|
|
|
// region ************************** generated!.gotpl **************************
|
|
|
|
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
|
|
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
|
|
return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity}
|
|
}
|
|
|
|
type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
|
|
type ResolverRoot interface {
|
|
Connector() ConnectorResolver
|
|
Identity() IdentityResolver
|
|
Invitation() InvitationResolver
|
|
Membership() MembershipResolver
|
|
Mutation() MutationResolver
|
|
Organization() OrganizationResolver
|
|
PersonalAPIKey() PersonalAPIKeyResolver
|
|
PersonalAPIKeyConnection() PersonalAPIKeyConnectionResolver
|
|
Profile() ProfileResolver
|
|
ProfileConnection() ProfileConnectionResolver
|
|
Query() QueryResolver
|
|
SAMLConfiguration() SAMLConfigurationResolver
|
|
SAMLConfigurationConnection() SAMLConfigurationConnectionResolver
|
|
SCIMBridge() SCIMBridgeResolver
|
|
SCIMConfiguration() SCIMConfigurationResolver
|
|
SCIMEvent() SCIMEventResolver
|
|
SCIMEventConnection() SCIMEventConnectionResolver
|
|
Session() SessionResolver
|
|
SessionConnection() SessionConnectionResolver
|
|
}
|
|
|
|
type DirectiveRoot struct {
|
|
Session func(ctx context.Context, obj any, next graphql.Resolver, required session.SessionRequirement) (res any, err error)
|
|
}
|
|
|
|
type ComplexityRoot struct {
|
|
ActivateAccountPayload struct {
|
|
CreatePasswordToken func(childComplexity int) int
|
|
Profile func(childComplexity int) int
|
|
SsoLoginURL func(childComplexity int) int
|
|
}
|
|
|
|
AssumeOrganizationSessionPayload struct {
|
|
Result func(childComplexity int) int
|
|
}
|
|
|
|
ChangeEmailPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
ChangePasswordPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
Connector struct {
|
|
CreatedAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
Provider func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
CreateOrganizationPayload struct {
|
|
Organization func(childComplexity int) int
|
|
Profile func(childComplexity int) int
|
|
}
|
|
|
|
CreatePersonalAPIKeyPayload struct {
|
|
PersonalAPIKeyEdge func(childComplexity int) int
|
|
Token func(childComplexity int) int
|
|
}
|
|
|
|
CreateSAMLConfigurationPayload struct {
|
|
SamlConfigurationEdge func(childComplexity int) int
|
|
}
|
|
|
|
CreateSCIMConfigurationPayload struct {
|
|
ScimBridge func(childComplexity int) int
|
|
ScimConfiguration func(childComplexity int) int
|
|
Token func(childComplexity int) int
|
|
}
|
|
|
|
CreateUserPayload struct {
|
|
ProfileEdge func(childComplexity int) int
|
|
}
|
|
|
|
DeactivateUserPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
DeleteOrganizationHorizontalLogoPayload struct {
|
|
Organization func(childComplexity int) int
|
|
}
|
|
|
|
DeleteOrganizationPayload struct {
|
|
DeletedOrganizationID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteSAMLConfigurationPayload struct {
|
|
DeletedSamlConfigurationID func(childComplexity int) int
|
|
}
|
|
|
|
DeleteSCIMConfigurationPayload struct {
|
|
DeletedScimConfigurationID func(childComplexity int) int
|
|
}
|
|
|
|
ForgotPasswordPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
Identity struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Email func(childComplexity int) int
|
|
EmailVerified func(childComplexity int) int
|
|
FullName func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
PersonalAPIKeys func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int
|
|
Profiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy, filter *types.ProfileFilter) int
|
|
Sessions func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SessionOrder) int
|
|
SsoLoginURL func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
Invitation struct {
|
|
AcceptedAt func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
ExpiresAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
Status func(childComplexity int) int
|
|
}
|
|
|
|
InvitationConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
}
|
|
|
|
InvitationEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
InviteUserPayload struct {
|
|
InvitationEdge func(childComplexity int) int
|
|
}
|
|
|
|
Membership struct {
|
|
CreatedAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
LastSession func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
Role func(childComplexity int) int
|
|
}
|
|
|
|
Mutation struct {
|
|
ActivateAccount func(childComplexity int, input types.ActivateAccountInput) int
|
|
AssumeOrganizationSession func(childComplexity int, input types.AssumeOrganizationSessionInput) int
|
|
ChangeEmail func(childComplexity int, input types.ChangeEmailInput) int
|
|
ChangePassword func(childComplexity int, input types.ChangePasswordInput) int
|
|
CreateOrganization func(childComplexity int, input types.CreateOrganizationInput) int
|
|
CreatePersonalAPIKey func(childComplexity int, input types.CreatePersonalAPIKeyInput) int
|
|
CreateSAMLConfiguration func(childComplexity int, input types.CreateSAMLConfigurationInput) int
|
|
CreateSCIMConfiguration func(childComplexity int, input types.CreateSCIMConfigurationInput) int
|
|
CreateUser func(childComplexity int, input types.CreateUserInput) int
|
|
DeactivateUser func(childComplexity int, input types.DeactivateUserInput) int
|
|
DeleteOrganization func(childComplexity int, input types.DeleteOrganizationInput) int
|
|
DeleteOrganizationHorizontalLogo func(childComplexity int, input types.DeleteOrganizationHorizontalLogoInput) int
|
|
DeleteSAMLConfiguration func(childComplexity int, input types.DeleteSAMLConfigurationInput) int
|
|
DeleteSCIMConfiguration func(childComplexity int, input types.DeleteSCIMConfigurationInput) int
|
|
ForgotPassword func(childComplexity int, input types.ForgotPasswordInput) int
|
|
InviteUser func(childComplexity int, input types.InviteUserInput) int
|
|
RegenerateSCIMToken func(childComplexity int, input types.RegenerateSCIMTokenInput) int
|
|
RemoveUser func(childComplexity int, input types.RemoveUserInput) int
|
|
ResetPassword func(childComplexity int, input types.ResetPasswordInput) int
|
|
RevokeAllSessions func(childComplexity int) int
|
|
RevokePersonalAPIKey func(childComplexity int, input types.RevokePersonalAPIKeyInput) int
|
|
RevokeSession func(childComplexity int, input types.RevokeSessionInput) int
|
|
SignIn func(childComplexity int, input types.SignInInput) int
|
|
SignOut func(childComplexity int) int
|
|
SignUp func(childComplexity int, input types.SignUpInput) int
|
|
UpdateMembership func(childComplexity int, input types.UpdateMembershipInput) int
|
|
UpdateOrganization func(childComplexity int, input types.UpdateOrganizationInput) int
|
|
UpdateSAMLConfiguration func(childComplexity int, input types.UpdateSAMLConfigurationInput) int
|
|
UpdateSCIMBridge func(childComplexity int, input types.UpdateSCIMBridgeInput) int
|
|
UpdateUser func(childComplexity int, input types.UpdateUserInput) int
|
|
VerifyEmail func(childComplexity int, input types.VerifyEmailInput) int
|
|
}
|
|
|
|
Organization struct {
|
|
CreatedAt func(childComplexity int) int
|
|
Description func(childComplexity int) int
|
|
Email func(childComplexity int) int
|
|
HeadquarterAddress func(childComplexity int) int
|
|
HorizontalLogoURL func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
LogoURL func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
Profiles func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) int
|
|
SamlConfigurations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey) int
|
|
ScimConfiguration func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
Viewer func(childComplexity int) int
|
|
WebsiteURL func(childComplexity int) int
|
|
}
|
|
|
|
OrganizationSessionCreated struct {
|
|
Membership func(childComplexity int) int
|
|
Session func(childComplexity int) int
|
|
}
|
|
|
|
PageInfo struct {
|
|
EndCursor func(childComplexity int) int
|
|
HasNextPage func(childComplexity int) int
|
|
HasPreviousPage func(childComplexity int) int
|
|
StartCursor func(childComplexity int) int
|
|
}
|
|
|
|
PasswordRequired struct {
|
|
Reason func(childComplexity int) int
|
|
}
|
|
|
|
PersonalAPIKey struct {
|
|
CreatedAt func(childComplexity int) int
|
|
ExpiresAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
LastUsedAt func(childComplexity int) int
|
|
Name func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
Token func(childComplexity int) int
|
|
}
|
|
|
|
PersonalAPIKeyConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
PersonalAPIKeyEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Profile struct {
|
|
AdditionalEmailAddresses func(childComplexity int) int
|
|
ContractEndDate func(childComplexity int) int
|
|
ContractStartDate func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
EmailAddress func(childComplexity int) int
|
|
FullName func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Identity func(childComplexity int) int
|
|
Kind func(childComplexity int) int
|
|
Membership func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
PendingInvitations func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.InvitationOrderBy) int
|
|
Permission func(childComplexity int, action string) int
|
|
Position func(childComplexity int) int
|
|
Source func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
ProfileConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
ProfileEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Query struct {
|
|
Node func(childComplexity int, id gid.GID) int
|
|
SsoLoginURL func(childComplexity int, email mail.Addr) int
|
|
Viewer func(childComplexity int) int
|
|
}
|
|
|
|
RegenerateSCIMTokenPayload struct {
|
|
ScimConfiguration func(childComplexity int) int
|
|
Token func(childComplexity int) int
|
|
}
|
|
|
|
RemoveUserPayload struct {
|
|
DeletedProfileID func(childComplexity int) int
|
|
}
|
|
|
|
ResetPasswordPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
RevokeAllSessionsPayload struct {
|
|
RevokedCount func(childComplexity int) int
|
|
}
|
|
|
|
RevokePersonalAPIKeyPayload struct {
|
|
PersonalAPIKeyID func(childComplexity int) int
|
|
}
|
|
|
|
RevokeSessionPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
SAMLAttributeMappings struct {
|
|
Email func(childComplexity int) int
|
|
FirstName func(childComplexity int) int
|
|
LastName func(childComplexity int) int
|
|
Role func(childComplexity int) int
|
|
}
|
|
|
|
SAMLAuthenticationRequired struct {
|
|
Reason func(childComplexity int) int
|
|
}
|
|
|
|
SAMLConfiguration struct {
|
|
AttributeMappings func(childComplexity int) int
|
|
AutoSignupEnabled func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
DomainVerificationToken func(childComplexity int) int
|
|
DomainVerifiedAt func(childComplexity int) int
|
|
EmailDomain func(childComplexity int) int
|
|
EnforcementPolicy func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
IdpCertificate func(childComplexity int) int
|
|
IdpEntityID func(childComplexity int) int
|
|
IdpSsoURL func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
TestLoginURL func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
SAMLConfigurationConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
SAMLConfigurationEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
SCIMBridge struct {
|
|
Connector func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
ExcludedUserNames func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
ScimConfiguration func(childComplexity int) int
|
|
State func(childComplexity int) int
|
|
Type func(childComplexity int) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
SCIMConfiguration struct {
|
|
Bridge func(childComplexity int) int
|
|
CreatedAt func(childComplexity int) int
|
|
EndpointURL func(childComplexity int) int
|
|
Events func(childComplexity int, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SCIMEventOrderBy) int
|
|
ID func(childComplexity int) int
|
|
Organization func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
UpdatedAt func(childComplexity int) int
|
|
}
|
|
|
|
SCIMEvent struct {
|
|
CreatedAt func(childComplexity int) int
|
|
ErrorMessage func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
IPAddress func(childComplexity int) int
|
|
Method func(childComplexity int) int
|
|
Path func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
RequestBody func(childComplexity int) int
|
|
ResponseBody func(childComplexity int) int
|
|
StatusCode func(childComplexity int) int
|
|
UserName func(childComplexity int) int
|
|
}
|
|
|
|
SCIMEventConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
SCIMEventEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
Session struct {
|
|
CreatedAt func(childComplexity int) int
|
|
ExpiresAt func(childComplexity int) int
|
|
ID func(childComplexity int) int
|
|
IPAddress func(childComplexity int) int
|
|
Identity func(childComplexity int) int
|
|
Permission func(childComplexity int, action string) int
|
|
UpdatedAt func(childComplexity int) int
|
|
UserAgent func(childComplexity int) int
|
|
}
|
|
|
|
SessionConnection struct {
|
|
Edges func(childComplexity int) int
|
|
PageInfo func(childComplexity int) int
|
|
TotalCount func(childComplexity int) int
|
|
}
|
|
|
|
SessionEdge struct {
|
|
Cursor func(childComplexity int) int
|
|
Node func(childComplexity int) int
|
|
}
|
|
|
|
SignInPayload struct {
|
|
Identity func(childComplexity int) int
|
|
Session func(childComplexity int) int
|
|
}
|
|
|
|
SignOutPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
|
|
SignUpPayload struct {
|
|
Identity func(childComplexity int) int
|
|
}
|
|
|
|
UpdateMembershipPayload struct {
|
|
Membership func(childComplexity int) int
|
|
}
|
|
|
|
UpdateOrganizationPayload struct {
|
|
Organization func(childComplexity int) int
|
|
}
|
|
|
|
UpdateSAMLConfigurationPayload struct {
|
|
SamlConfiguration func(childComplexity int) int
|
|
}
|
|
|
|
UpdateSCIMBridgePayload struct {
|
|
ScimBridge func(childComplexity int) int
|
|
}
|
|
|
|
UpdateUserPayload struct {
|
|
Profile func(childComplexity int) int
|
|
}
|
|
|
|
VerifyEmailPayload struct {
|
|
Success func(childComplexity int) int
|
|
}
|
|
}
|
|
|
|
type ConnectorResolver interface {
|
|
Permission(ctx context.Context, obj *types.Connector, action string) (bool, error)
|
|
}
|
|
type IdentityResolver interface {
|
|
Profiles(ctx context.Context, obj *types.Identity, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy, filter *types.ProfileFilter) (*types.ProfileConnection, error)
|
|
Sessions(ctx context.Context, obj *types.Identity, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SessionOrder) (*types.SessionConnection, error)
|
|
PersonalAPIKeys(ctx context.Context, obj *types.Identity, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.PersonalAPIKeyConnection, error)
|
|
SsoLoginURL(ctx context.Context, obj *types.Identity) (*string, error)
|
|
Permission(ctx context.Context, obj *types.Identity, action string) (bool, error)
|
|
}
|
|
type InvitationResolver interface {
|
|
Permission(ctx context.Context, obj *types.Invitation, action string) (bool, error)
|
|
}
|
|
type MembershipResolver interface {
|
|
LastSession(ctx context.Context, obj *types.Membership) (*types.Session, error)
|
|
Permission(ctx context.Context, obj *types.Membership, action string) (bool, error)
|
|
}
|
|
type MutationResolver interface {
|
|
SignIn(ctx context.Context, input types.SignInInput) (*types.SignInPayload, error)
|
|
SignUp(ctx context.Context, input types.SignUpInput) (*types.SignUpPayload, error)
|
|
SignOut(ctx context.Context) (*types.SignOutPayload, error)
|
|
ActivateAccount(ctx context.Context, input types.ActivateAccountInput) (*types.ActivateAccountPayload, error)
|
|
ForgotPassword(ctx context.Context, input types.ForgotPasswordInput) (*types.ForgotPasswordPayload, error)
|
|
ResetPassword(ctx context.Context, input types.ResetPasswordInput) (*types.ResetPasswordPayload, error)
|
|
VerifyEmail(ctx context.Context, input types.VerifyEmailInput) (*types.VerifyEmailPayload, error)
|
|
ChangePassword(ctx context.Context, input types.ChangePasswordInput) (*types.ChangePasswordPayload, error)
|
|
ChangeEmail(ctx context.Context, input types.ChangeEmailInput) (*types.ChangeEmailPayload, error)
|
|
AssumeOrganizationSession(ctx context.Context, input types.AssumeOrganizationSessionInput) (*types.AssumeOrganizationSessionPayload, error)
|
|
RevokeSession(ctx context.Context, input types.RevokeSessionInput) (*types.RevokeSessionPayload, error)
|
|
RevokeAllSessions(ctx context.Context) (*types.RevokeAllSessionsPayload, error)
|
|
CreatePersonalAPIKey(ctx context.Context, input types.CreatePersonalAPIKeyInput) (*types.CreatePersonalAPIKeyPayload, error)
|
|
RevokePersonalAPIKey(ctx context.Context, input types.RevokePersonalAPIKeyInput) (*types.RevokePersonalAPIKeyPayload, error)
|
|
CreateOrganization(ctx context.Context, input types.CreateOrganizationInput) (*types.CreateOrganizationPayload, error)
|
|
UpdateOrganization(ctx context.Context, input types.UpdateOrganizationInput) (*types.UpdateOrganizationPayload, error)
|
|
DeleteOrganization(ctx context.Context, input types.DeleteOrganizationInput) (*types.DeleteOrganizationPayload, error)
|
|
DeleteOrganizationHorizontalLogo(ctx context.Context, input types.DeleteOrganizationHorizontalLogoInput) (*types.DeleteOrganizationHorizontalLogoPayload, error)
|
|
CreateUser(ctx context.Context, input types.CreateUserInput) (*types.CreateUserPayload, error)
|
|
InviteUser(ctx context.Context, input types.InviteUserInput) (*types.InviteUserPayload, error)
|
|
DeactivateUser(ctx context.Context, input types.DeactivateUserInput) (*types.DeactivateUserPayload, error)
|
|
UpdateUser(ctx context.Context, input types.UpdateUserInput) (*types.UpdateUserPayload, error)
|
|
UpdateMembership(ctx context.Context, input types.UpdateMembershipInput) (*types.UpdateMembershipPayload, error)
|
|
RemoveUser(ctx context.Context, input types.RemoveUserInput) (*types.RemoveUserPayload, error)
|
|
CreateSAMLConfiguration(ctx context.Context, input types.CreateSAMLConfigurationInput) (*types.CreateSAMLConfigurationPayload, error)
|
|
UpdateSAMLConfiguration(ctx context.Context, input types.UpdateSAMLConfigurationInput) (*types.UpdateSAMLConfigurationPayload, error)
|
|
DeleteSAMLConfiguration(ctx context.Context, input types.DeleteSAMLConfigurationInput) (*types.DeleteSAMLConfigurationPayload, error)
|
|
CreateSCIMConfiguration(ctx context.Context, input types.CreateSCIMConfigurationInput) (*types.CreateSCIMConfigurationPayload, error)
|
|
DeleteSCIMConfiguration(ctx context.Context, input types.DeleteSCIMConfigurationInput) (*types.DeleteSCIMConfigurationPayload, error)
|
|
RegenerateSCIMToken(ctx context.Context, input types.RegenerateSCIMTokenInput) (*types.RegenerateSCIMTokenPayload, error)
|
|
UpdateSCIMBridge(ctx context.Context, input types.UpdateSCIMBridgeInput) (*types.UpdateSCIMBridgePayload, error)
|
|
}
|
|
type OrganizationResolver interface {
|
|
LogoURL(ctx context.Context, obj *types.Organization) (*string, error)
|
|
HorizontalLogoURL(ctx context.Context, obj *types.Organization) (*string, error)
|
|
|
|
Profiles(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.ProfileOrderBy) (*types.ProfileConnection, error)
|
|
SamlConfigurations(ctx context.Context, obj *types.Organization, first *int, after *page.CursorKey, last *int, before *page.CursorKey) (*types.SAMLConfigurationConnection, error)
|
|
ScimConfiguration(ctx context.Context, obj *types.Organization) (*types.SCIMConfiguration, error)
|
|
Viewer(ctx context.Context, obj *types.Organization) (*types.Profile, error)
|
|
Permission(ctx context.Context, obj *types.Organization, action string) (bool, error)
|
|
}
|
|
type PersonalAPIKeyResolver interface {
|
|
Token(ctx context.Context, obj *types.PersonalAPIKey) (*string, error)
|
|
Permission(ctx context.Context, obj *types.PersonalAPIKey, action string) (bool, error)
|
|
}
|
|
type PersonalAPIKeyConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.PersonalAPIKeyConnection) (*int, error)
|
|
}
|
|
type ProfileResolver interface {
|
|
Identity(ctx context.Context, obj *types.Profile) (*types.Identity, error)
|
|
Organization(ctx context.Context, obj *types.Profile) (*types.Organization, error)
|
|
Membership(ctx context.Context, obj *types.Profile) (*types.Membership, error)
|
|
PendingInvitations(ctx context.Context, obj *types.Profile, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.InvitationOrderBy) (*types.InvitationConnection, error)
|
|
Permission(ctx context.Context, obj *types.Profile, action string) (bool, error)
|
|
}
|
|
type ProfileConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.ProfileConnection) (*int, error)
|
|
}
|
|
type QueryResolver interface {
|
|
Node(ctx context.Context, id gid.GID) (types.Node, error)
|
|
Viewer(ctx context.Context) (*types.Identity, error)
|
|
SsoLoginURL(ctx context.Context, email mail.Addr) (*string, error)
|
|
}
|
|
type SAMLConfigurationResolver interface {
|
|
TestLoginURL(ctx context.Context, obj *types.SAMLConfiguration) (string, error)
|
|
|
|
Permission(ctx context.Context, obj *types.SAMLConfiguration, action string) (bool, error)
|
|
}
|
|
type SAMLConfigurationConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.SAMLConfigurationConnection) (*int, error)
|
|
}
|
|
type SCIMBridgeResolver interface {
|
|
ScimConfiguration(ctx context.Context, obj *types.SCIMBridge) (*types.SCIMConfiguration, error)
|
|
Connector(ctx context.Context, obj *types.SCIMBridge) (*types.Connector, error)
|
|
|
|
Permission(ctx context.Context, obj *types.SCIMBridge, action string) (bool, error)
|
|
}
|
|
type SCIMConfigurationResolver interface {
|
|
EndpointURL(ctx context.Context, obj *types.SCIMConfiguration) (string, error)
|
|
|
|
Organization(ctx context.Context, obj *types.SCIMConfiguration) (*types.Organization, error)
|
|
Bridge(ctx context.Context, obj *types.SCIMConfiguration) (*types.SCIMBridge, error)
|
|
Events(ctx context.Context, obj *types.SCIMConfiguration, first *int, after *page.CursorKey, last *int, before *page.CursorKey, orderBy *types.SCIMEventOrderBy) (*types.SCIMEventConnection, error)
|
|
Permission(ctx context.Context, obj *types.SCIMConfiguration, action string) (bool, error)
|
|
}
|
|
type SCIMEventResolver interface {
|
|
Permission(ctx context.Context, obj *types.SCIMEvent, action string) (bool, error)
|
|
}
|
|
type SCIMEventConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.SCIMEventConnection) (*int, error)
|
|
}
|
|
type SessionResolver interface {
|
|
Identity(ctx context.Context, obj *types.Session) (*types.Identity, error)
|
|
|
|
Permission(ctx context.Context, obj *types.Session, action string) (bool, error)
|
|
}
|
|
type SessionConnectionResolver interface {
|
|
TotalCount(ctx context.Context, obj *types.SessionConnection) (*int, error)
|
|
}
|
|
|
|
type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
|
|
func (e *executableSchema) Schema() *ast.Schema {
|
|
if e.SchemaData != nil {
|
|
return e.SchemaData
|
|
}
|
|
return parsedSchema
|
|
}
|
|
|
|
func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
|
|
ec := newExecutionContext(nil, e, nil)
|
|
_ = ec
|
|
switch typeName + "." + field {
|
|
|
|
case "ActivateAccountPayload.createPasswordToken":
|
|
if e.ComplexityRoot.ActivateAccountPayload.CreatePasswordToken == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ActivateAccountPayload.CreatePasswordToken(childComplexity), true
|
|
case "ActivateAccountPayload.profile":
|
|
if e.ComplexityRoot.ActivateAccountPayload.Profile == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ActivateAccountPayload.Profile(childComplexity), true
|
|
case "ActivateAccountPayload.ssoLoginUrl":
|
|
if e.ComplexityRoot.ActivateAccountPayload.SsoLoginURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ActivateAccountPayload.SsoLoginURL(childComplexity), true
|
|
|
|
case "AssumeOrganizationSessionPayload.result":
|
|
if e.ComplexityRoot.AssumeOrganizationSessionPayload.Result == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.AssumeOrganizationSessionPayload.Result(childComplexity), true
|
|
|
|
case "ChangeEmailPayload.success":
|
|
if e.ComplexityRoot.ChangeEmailPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ChangeEmailPayload.Success(childComplexity), true
|
|
|
|
case "ChangePasswordPayload.success":
|
|
if e.ComplexityRoot.ChangePasswordPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ChangePasswordPayload.Success(childComplexity), true
|
|
|
|
case "Connector.createdAt":
|
|
if e.ComplexityRoot.Connector.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Connector.CreatedAt(childComplexity), true
|
|
case "Connector.id":
|
|
if e.ComplexityRoot.Connector.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Connector.ID(childComplexity), true
|
|
case "Connector.permission":
|
|
if e.ComplexityRoot.Connector.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Connector_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Connector.Permission(childComplexity, args["action"].(string)), true
|
|
case "Connector.provider":
|
|
if e.ComplexityRoot.Connector.Provider == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Connector.Provider(childComplexity), true
|
|
case "Connector.updatedAt":
|
|
if e.ComplexityRoot.Connector.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Connector.UpdatedAt(childComplexity), true
|
|
|
|
case "CreateOrganizationPayload.organization":
|
|
if e.ComplexityRoot.CreateOrganizationPayload.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateOrganizationPayload.Organization(childComplexity), true
|
|
case "CreateOrganizationPayload.profile":
|
|
if e.ComplexityRoot.CreateOrganizationPayload.Profile == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateOrganizationPayload.Profile(childComplexity), true
|
|
|
|
case "CreatePersonalAPIKeyPayload.personalAPIKeyEdge":
|
|
if e.ComplexityRoot.CreatePersonalAPIKeyPayload.PersonalAPIKeyEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreatePersonalAPIKeyPayload.PersonalAPIKeyEdge(childComplexity), true
|
|
case "CreatePersonalAPIKeyPayload.token":
|
|
if e.ComplexityRoot.CreatePersonalAPIKeyPayload.Token == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreatePersonalAPIKeyPayload.Token(childComplexity), true
|
|
|
|
case "CreateSAMLConfigurationPayload.samlConfigurationEdge":
|
|
if e.ComplexityRoot.CreateSAMLConfigurationPayload.SamlConfigurationEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateSAMLConfigurationPayload.SamlConfigurationEdge(childComplexity), true
|
|
|
|
case "CreateSCIMConfigurationPayload.scimBridge":
|
|
if e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimBridge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimBridge(childComplexity), true
|
|
case "CreateSCIMConfigurationPayload.scimConfiguration":
|
|
if e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateSCIMConfigurationPayload.ScimConfiguration(childComplexity), true
|
|
case "CreateSCIMConfigurationPayload.token":
|
|
if e.ComplexityRoot.CreateSCIMConfigurationPayload.Token == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateSCIMConfigurationPayload.Token(childComplexity), true
|
|
|
|
case "CreateUserPayload.profileEdge":
|
|
if e.ComplexityRoot.CreateUserPayload.ProfileEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.CreateUserPayload.ProfileEdge(childComplexity), true
|
|
|
|
case "DeactivateUserPayload.success":
|
|
if e.ComplexityRoot.DeactivateUserPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.DeactivateUserPayload.Success(childComplexity), true
|
|
|
|
case "DeleteOrganizationHorizontalLogoPayload.organization":
|
|
if e.ComplexityRoot.DeleteOrganizationHorizontalLogoPayload.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.DeleteOrganizationHorizontalLogoPayload.Organization(childComplexity), true
|
|
|
|
case "DeleteOrganizationPayload.deletedOrganizationId":
|
|
if e.ComplexityRoot.DeleteOrganizationPayload.DeletedOrganizationID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.DeleteOrganizationPayload.DeletedOrganizationID(childComplexity), true
|
|
|
|
case "DeleteSAMLConfigurationPayload.deletedSamlConfigurationId":
|
|
if e.ComplexityRoot.DeleteSAMLConfigurationPayload.DeletedSamlConfigurationID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.DeleteSAMLConfigurationPayload.DeletedSamlConfigurationID(childComplexity), true
|
|
|
|
case "DeleteSCIMConfigurationPayload.deletedScimConfigurationId":
|
|
if e.ComplexityRoot.DeleteSCIMConfigurationPayload.DeletedScimConfigurationID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.DeleteSCIMConfigurationPayload.DeletedScimConfigurationID(childComplexity), true
|
|
|
|
case "ForgotPasswordPayload.success":
|
|
if e.ComplexityRoot.ForgotPasswordPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ForgotPasswordPayload.Success(childComplexity), true
|
|
|
|
case "Identity.createdAt":
|
|
if e.ComplexityRoot.Identity.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.CreatedAt(childComplexity), true
|
|
case "Identity.email":
|
|
if e.ComplexityRoot.Identity.Email == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.Email(childComplexity), true
|
|
case "Identity.emailVerified":
|
|
if e.ComplexityRoot.Identity.EmailVerified == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.EmailVerified(childComplexity), true
|
|
case "Identity.fullName":
|
|
if e.ComplexityRoot.Identity.FullName == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.FullName(childComplexity), true
|
|
case "Identity.id":
|
|
if e.ComplexityRoot.Identity.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.ID(childComplexity), true
|
|
case "Identity.permission":
|
|
if e.ComplexityRoot.Identity.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Identity_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.Permission(childComplexity, args["action"].(string)), true
|
|
case "Identity.personalAPIKeys":
|
|
if e.ComplexityRoot.Identity.PersonalAPIKeys == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Identity_personalAPIKeys_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.PersonalAPIKeys(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true
|
|
case "Identity.profiles":
|
|
if e.ComplexityRoot.Identity.Profiles == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Identity_profiles_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.Profiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy), args["filter"].(*types.ProfileFilter)), true
|
|
case "Identity.sessions":
|
|
if e.ComplexityRoot.Identity.Sessions == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Identity_sessions_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.Sessions(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SessionOrder)), true
|
|
case "Identity.ssoLoginURL":
|
|
if e.ComplexityRoot.Identity.SsoLoginURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.SsoLoginURL(childComplexity), true
|
|
case "Identity.updatedAt":
|
|
if e.ComplexityRoot.Identity.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Identity.UpdatedAt(childComplexity), true
|
|
|
|
case "Invitation.acceptedAt":
|
|
if e.ComplexityRoot.Invitation.AcceptedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Invitation.AcceptedAt(childComplexity), true
|
|
case "Invitation.createdAt":
|
|
if e.ComplexityRoot.Invitation.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Invitation.CreatedAt(childComplexity), true
|
|
case "Invitation.expiresAt":
|
|
if e.ComplexityRoot.Invitation.ExpiresAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Invitation.ExpiresAt(childComplexity), true
|
|
case "Invitation.id":
|
|
if e.ComplexityRoot.Invitation.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Invitation.ID(childComplexity), true
|
|
case "Invitation.permission":
|
|
if e.ComplexityRoot.Invitation.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Invitation_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Invitation.Permission(childComplexity, args["action"].(string)), true
|
|
case "Invitation.status":
|
|
if e.ComplexityRoot.Invitation.Status == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Invitation.Status(childComplexity), true
|
|
|
|
case "InvitationConnection.edges":
|
|
if e.ComplexityRoot.InvitationConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.InvitationConnection.Edges(childComplexity), true
|
|
case "InvitationConnection.pageInfo":
|
|
if e.ComplexityRoot.InvitationConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.InvitationConnection.PageInfo(childComplexity), true
|
|
|
|
case "InvitationEdge.cursor":
|
|
if e.ComplexityRoot.InvitationEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.InvitationEdge.Cursor(childComplexity), true
|
|
case "InvitationEdge.node":
|
|
if e.ComplexityRoot.InvitationEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.InvitationEdge.Node(childComplexity), true
|
|
|
|
case "InviteUserPayload.invitationEdge":
|
|
if e.ComplexityRoot.InviteUserPayload.InvitationEdge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.InviteUserPayload.InvitationEdge(childComplexity), true
|
|
|
|
case "Membership.createdAt":
|
|
if e.ComplexityRoot.Membership.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Membership.CreatedAt(childComplexity), true
|
|
case "Membership.id":
|
|
if e.ComplexityRoot.Membership.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Membership.ID(childComplexity), true
|
|
case "Membership.lastSession":
|
|
if e.ComplexityRoot.Membership.LastSession == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Membership.LastSession(childComplexity), true
|
|
case "Membership.permission":
|
|
if e.ComplexityRoot.Membership.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Membership_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Membership.Permission(childComplexity, args["action"].(string)), true
|
|
case "Membership.role":
|
|
if e.ComplexityRoot.Membership.Role == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Membership.Role(childComplexity), true
|
|
|
|
case "Mutation.activateAccount":
|
|
if e.ComplexityRoot.Mutation.ActivateAccount == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_activateAccount_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.ActivateAccount(childComplexity, args["input"].(types.ActivateAccountInput)), true
|
|
case "Mutation.assumeOrganizationSession":
|
|
if e.ComplexityRoot.Mutation.AssumeOrganizationSession == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_assumeOrganizationSession_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.AssumeOrganizationSession(childComplexity, args["input"].(types.AssumeOrganizationSessionInput)), true
|
|
case "Mutation.changeEmail":
|
|
if e.ComplexityRoot.Mutation.ChangeEmail == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_changeEmail_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.ChangeEmail(childComplexity, args["input"].(types.ChangeEmailInput)), true
|
|
case "Mutation.changePassword":
|
|
if e.ComplexityRoot.Mutation.ChangePassword == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_changePassword_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.ChangePassword(childComplexity, args["input"].(types.ChangePasswordInput)), true
|
|
case "Mutation.createOrganization":
|
|
if e.ComplexityRoot.Mutation.CreateOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createOrganization_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.CreateOrganization(childComplexity, args["input"].(types.CreateOrganizationInput)), true
|
|
case "Mutation.createPersonalAPIKey":
|
|
if e.ComplexityRoot.Mutation.CreatePersonalAPIKey == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createPersonalAPIKey_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.CreatePersonalAPIKey(childComplexity, args["input"].(types.CreatePersonalAPIKeyInput)), true
|
|
case "Mutation.createSAMLConfiguration":
|
|
if e.ComplexityRoot.Mutation.CreateSAMLConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createSAMLConfiguration_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.CreateSAMLConfiguration(childComplexity, args["input"].(types.CreateSAMLConfigurationInput)), true
|
|
case "Mutation.createSCIMConfiguration":
|
|
if e.ComplexityRoot.Mutation.CreateSCIMConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createSCIMConfiguration_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.CreateSCIMConfiguration(childComplexity, args["input"].(types.CreateSCIMConfigurationInput)), true
|
|
case "Mutation.createUser":
|
|
if e.ComplexityRoot.Mutation.CreateUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_createUser_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.CreateUser(childComplexity, args["input"].(types.CreateUserInput)), true
|
|
case "Mutation.deactivateUser":
|
|
if e.ComplexityRoot.Mutation.DeactivateUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deactivateUser_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.DeactivateUser(childComplexity, args["input"].(types.DeactivateUserInput)), true
|
|
case "Mutation.deleteOrganization":
|
|
if e.ComplexityRoot.Mutation.DeleteOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteOrganization_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.DeleteOrganization(childComplexity, args["input"].(types.DeleteOrganizationInput)), true
|
|
case "Mutation.deleteOrganizationHorizontalLogo":
|
|
if e.ComplexityRoot.Mutation.DeleteOrganizationHorizontalLogo == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteOrganizationHorizontalLogo_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.DeleteOrganizationHorizontalLogo(childComplexity, args["input"].(types.DeleteOrganizationHorizontalLogoInput)), true
|
|
case "Mutation.deleteSAMLConfiguration":
|
|
if e.ComplexityRoot.Mutation.DeleteSAMLConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteSAMLConfiguration_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.DeleteSAMLConfiguration(childComplexity, args["input"].(types.DeleteSAMLConfigurationInput)), true
|
|
case "Mutation.deleteSCIMConfiguration":
|
|
if e.ComplexityRoot.Mutation.DeleteSCIMConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_deleteSCIMConfiguration_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.DeleteSCIMConfiguration(childComplexity, args["input"].(types.DeleteSCIMConfigurationInput)), true
|
|
case "Mutation.forgotPassword":
|
|
if e.ComplexityRoot.Mutation.ForgotPassword == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_forgotPassword_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.ForgotPassword(childComplexity, args["input"].(types.ForgotPasswordInput)), true
|
|
case "Mutation.inviteUser":
|
|
if e.ComplexityRoot.Mutation.InviteUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_inviteUser_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.InviteUser(childComplexity, args["input"].(types.InviteUserInput)), true
|
|
case "Mutation.regenerateSCIMToken":
|
|
if e.ComplexityRoot.Mutation.RegenerateSCIMToken == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_regenerateSCIMToken_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.RegenerateSCIMToken(childComplexity, args["input"].(types.RegenerateSCIMTokenInput)), true
|
|
case "Mutation.removeUser":
|
|
if e.ComplexityRoot.Mutation.RemoveUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_removeUser_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.RemoveUser(childComplexity, args["input"].(types.RemoveUserInput)), true
|
|
case "Mutation.resetPassword":
|
|
if e.ComplexityRoot.Mutation.ResetPassword == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_resetPassword_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.ResetPassword(childComplexity, args["input"].(types.ResetPasswordInput)), true
|
|
case "Mutation.revokeAllSessions":
|
|
if e.ComplexityRoot.Mutation.RevokeAllSessions == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.RevokeAllSessions(childComplexity), true
|
|
case "Mutation.revokePersonalAPIKey":
|
|
if e.ComplexityRoot.Mutation.RevokePersonalAPIKey == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_revokePersonalAPIKey_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.RevokePersonalAPIKey(childComplexity, args["input"].(types.RevokePersonalAPIKeyInput)), true
|
|
case "Mutation.revokeSession":
|
|
if e.ComplexityRoot.Mutation.RevokeSession == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_revokeSession_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.RevokeSession(childComplexity, args["input"].(types.RevokeSessionInput)), true
|
|
case "Mutation.signIn":
|
|
if e.ComplexityRoot.Mutation.SignIn == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_signIn_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.SignIn(childComplexity, args["input"].(types.SignInInput)), true
|
|
case "Mutation.signOut":
|
|
if e.ComplexityRoot.Mutation.SignOut == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.SignOut(childComplexity), true
|
|
case "Mutation.signUp":
|
|
if e.ComplexityRoot.Mutation.SignUp == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_signUp_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.SignUp(childComplexity, args["input"].(types.SignUpInput)), true
|
|
case "Mutation.updateMembership":
|
|
if e.ComplexityRoot.Mutation.UpdateMembership == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateMembership_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.UpdateMembership(childComplexity, args["input"].(types.UpdateMembershipInput)), true
|
|
case "Mutation.updateOrganization":
|
|
if e.ComplexityRoot.Mutation.UpdateOrganization == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateOrganization_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.UpdateOrganization(childComplexity, args["input"].(types.UpdateOrganizationInput)), true
|
|
case "Mutation.updateSAMLConfiguration":
|
|
if e.ComplexityRoot.Mutation.UpdateSAMLConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateSAMLConfiguration_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.UpdateSAMLConfiguration(childComplexity, args["input"].(types.UpdateSAMLConfigurationInput)), true
|
|
case "Mutation.updateSCIMBridge":
|
|
if e.ComplexityRoot.Mutation.UpdateSCIMBridge == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateSCIMBridge_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.UpdateSCIMBridge(childComplexity, args["input"].(types.UpdateSCIMBridgeInput)), true
|
|
case "Mutation.updateUser":
|
|
if e.ComplexityRoot.Mutation.UpdateUser == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_updateUser_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.UpdateUser(childComplexity, args["input"].(types.UpdateUserInput)), true
|
|
case "Mutation.verifyEmail":
|
|
if e.ComplexityRoot.Mutation.VerifyEmail == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Mutation_verifyEmail_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Mutation.VerifyEmail(childComplexity, args["input"].(types.VerifyEmailInput)), true
|
|
|
|
case "Organization.createdAt":
|
|
if e.ComplexityRoot.Organization.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.CreatedAt(childComplexity), true
|
|
case "Organization.description":
|
|
if e.ComplexityRoot.Organization.Description == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.Description(childComplexity), true
|
|
case "Organization.email":
|
|
if e.ComplexityRoot.Organization.Email == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.Email(childComplexity), true
|
|
case "Organization.headquarterAddress":
|
|
if e.ComplexityRoot.Organization.HeadquarterAddress == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.HeadquarterAddress(childComplexity), true
|
|
case "Organization.horizontalLogoUrl":
|
|
if e.ComplexityRoot.Organization.HorizontalLogoURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.HorizontalLogoURL(childComplexity), true
|
|
case "Organization.id":
|
|
if e.ComplexityRoot.Organization.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.ID(childComplexity), true
|
|
case "Organization.logoUrl":
|
|
if e.ComplexityRoot.Organization.LogoURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.LogoURL(childComplexity), true
|
|
case "Organization.name":
|
|
if e.ComplexityRoot.Organization.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.Name(childComplexity), true
|
|
case "Organization.permission":
|
|
if e.ComplexityRoot.Organization.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.Permission(childComplexity, args["action"].(string)), true
|
|
case "Organization.profiles":
|
|
if e.ComplexityRoot.Organization.Profiles == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_profiles_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.Profiles(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.ProfileOrderBy)), true
|
|
case "Organization.samlConfigurations":
|
|
if e.ComplexityRoot.Organization.SamlConfigurations == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Organization_samlConfigurations_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.SamlConfigurations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey)), true
|
|
case "Organization.scimConfiguration":
|
|
if e.ComplexityRoot.Organization.ScimConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.ScimConfiguration(childComplexity), true
|
|
case "Organization.updatedAt":
|
|
if e.ComplexityRoot.Organization.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.UpdatedAt(childComplexity), true
|
|
case "Organization.viewer":
|
|
if e.ComplexityRoot.Organization.Viewer == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.Viewer(childComplexity), true
|
|
case "Organization.websiteUrl":
|
|
if e.ComplexityRoot.Organization.WebsiteURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Organization.WebsiteURL(childComplexity), true
|
|
|
|
case "OrganizationSessionCreated.membership":
|
|
if e.ComplexityRoot.OrganizationSessionCreated.Membership == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.OrganizationSessionCreated.Membership(childComplexity), true
|
|
case "OrganizationSessionCreated.session":
|
|
if e.ComplexityRoot.OrganizationSessionCreated.Session == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.OrganizationSessionCreated.Session(childComplexity), true
|
|
|
|
case "PageInfo.endCursor":
|
|
if e.ComplexityRoot.PageInfo.EndCursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PageInfo.EndCursor(childComplexity), true
|
|
case "PageInfo.hasNextPage":
|
|
if e.ComplexityRoot.PageInfo.HasNextPage == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PageInfo.HasNextPage(childComplexity), true
|
|
case "PageInfo.hasPreviousPage":
|
|
if e.ComplexityRoot.PageInfo.HasPreviousPage == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PageInfo.HasPreviousPage(childComplexity), true
|
|
case "PageInfo.startCursor":
|
|
if e.ComplexityRoot.PageInfo.StartCursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PageInfo.StartCursor(childComplexity), true
|
|
|
|
case "PasswordRequired.reason":
|
|
if e.ComplexityRoot.PasswordRequired.Reason == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PasswordRequired.Reason(childComplexity), true
|
|
|
|
case "PersonalAPIKey.createdAt":
|
|
if e.ComplexityRoot.PersonalAPIKey.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.CreatedAt(childComplexity), true
|
|
case "PersonalAPIKey.expiresAt":
|
|
if e.ComplexityRoot.PersonalAPIKey.ExpiresAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.ExpiresAt(childComplexity), true
|
|
case "PersonalAPIKey.id":
|
|
if e.ComplexityRoot.PersonalAPIKey.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.ID(childComplexity), true
|
|
case "PersonalAPIKey.lastUsedAt":
|
|
if e.ComplexityRoot.PersonalAPIKey.LastUsedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.LastUsedAt(childComplexity), true
|
|
case "PersonalAPIKey.name":
|
|
if e.ComplexityRoot.PersonalAPIKey.Name == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.Name(childComplexity), true
|
|
case "PersonalAPIKey.permission":
|
|
if e.ComplexityRoot.PersonalAPIKey.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_PersonalAPIKey_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.Permission(childComplexity, args["action"].(string)), true
|
|
case "PersonalAPIKey.token":
|
|
if e.ComplexityRoot.PersonalAPIKey.Token == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKey.Token(childComplexity), true
|
|
|
|
case "PersonalAPIKeyConnection.edges":
|
|
if e.ComplexityRoot.PersonalAPIKeyConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKeyConnection.Edges(childComplexity), true
|
|
case "PersonalAPIKeyConnection.pageInfo":
|
|
if e.ComplexityRoot.PersonalAPIKeyConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKeyConnection.PageInfo(childComplexity), true
|
|
case "PersonalAPIKeyConnection.totalCount":
|
|
if e.ComplexityRoot.PersonalAPIKeyConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKeyConnection.TotalCount(childComplexity), true
|
|
|
|
case "PersonalAPIKeyEdge.cursor":
|
|
if e.ComplexityRoot.PersonalAPIKeyEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKeyEdge.Cursor(childComplexity), true
|
|
case "PersonalAPIKeyEdge.node":
|
|
if e.ComplexityRoot.PersonalAPIKeyEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.PersonalAPIKeyEdge.Node(childComplexity), true
|
|
|
|
case "Profile.additionalEmailAddresses":
|
|
if e.ComplexityRoot.Profile.AdditionalEmailAddresses == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.AdditionalEmailAddresses(childComplexity), true
|
|
case "Profile.contractEndDate":
|
|
if e.ComplexityRoot.Profile.ContractEndDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.ContractEndDate(childComplexity), true
|
|
case "Profile.contractStartDate":
|
|
if e.ComplexityRoot.Profile.ContractStartDate == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.ContractStartDate(childComplexity), true
|
|
case "Profile.createdAt":
|
|
if e.ComplexityRoot.Profile.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.CreatedAt(childComplexity), true
|
|
case "Profile.emailAddress":
|
|
if e.ComplexityRoot.Profile.EmailAddress == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.EmailAddress(childComplexity), true
|
|
case "Profile.fullName":
|
|
if e.ComplexityRoot.Profile.FullName == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.FullName(childComplexity), true
|
|
case "Profile.id":
|
|
if e.ComplexityRoot.Profile.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.ID(childComplexity), true
|
|
case "Profile.identity":
|
|
if e.ComplexityRoot.Profile.Identity == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Identity(childComplexity), true
|
|
case "Profile.kind":
|
|
if e.ComplexityRoot.Profile.Kind == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Kind(childComplexity), true
|
|
case "Profile.membership":
|
|
if e.ComplexityRoot.Profile.Membership == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Membership(childComplexity), true
|
|
case "Profile.organization":
|
|
if e.ComplexityRoot.Profile.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Organization(childComplexity), true
|
|
case "Profile.pendingInvitations":
|
|
if e.ComplexityRoot.Profile.PendingInvitations == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Profile_pendingInvitations_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.PendingInvitations(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.InvitationOrderBy)), true
|
|
case "Profile.permission":
|
|
if e.ComplexityRoot.Profile.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Profile_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Permission(childComplexity, args["action"].(string)), true
|
|
case "Profile.position":
|
|
if e.ComplexityRoot.Profile.Position == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Position(childComplexity), true
|
|
case "Profile.source":
|
|
if e.ComplexityRoot.Profile.Source == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.Source(childComplexity), true
|
|
case "Profile.state":
|
|
if e.ComplexityRoot.Profile.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.State(childComplexity), true
|
|
case "Profile.updatedAt":
|
|
if e.ComplexityRoot.Profile.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Profile.UpdatedAt(childComplexity), true
|
|
|
|
case "ProfileConnection.edges":
|
|
if e.ComplexityRoot.ProfileConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ProfileConnection.Edges(childComplexity), true
|
|
case "ProfileConnection.pageInfo":
|
|
if e.ComplexityRoot.ProfileConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ProfileConnection.PageInfo(childComplexity), true
|
|
case "ProfileConnection.totalCount":
|
|
if e.ComplexityRoot.ProfileConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ProfileConnection.TotalCount(childComplexity), true
|
|
|
|
case "ProfileEdge.cursor":
|
|
if e.ComplexityRoot.ProfileEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ProfileEdge.Cursor(childComplexity), true
|
|
case "ProfileEdge.node":
|
|
if e.ComplexityRoot.ProfileEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ProfileEdge.Node(childComplexity), true
|
|
|
|
case "Query.node":
|
|
if e.ComplexityRoot.Query.Node == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Query_node_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Query.Node(childComplexity, args["id"].(gid.GID)), true
|
|
case "Query.ssoLoginURL":
|
|
if e.ComplexityRoot.Query.SsoLoginURL == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Query_ssoLoginURL_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Query.SsoLoginURL(childComplexity, args["email"].(mail.Addr)), true
|
|
case "Query.viewer":
|
|
if e.ComplexityRoot.Query.Viewer == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Query.Viewer(childComplexity), true
|
|
|
|
case "RegenerateSCIMTokenPayload.scimConfiguration":
|
|
if e.ComplexityRoot.RegenerateSCIMTokenPayload.ScimConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.RegenerateSCIMTokenPayload.ScimConfiguration(childComplexity), true
|
|
case "RegenerateSCIMTokenPayload.token":
|
|
if e.ComplexityRoot.RegenerateSCIMTokenPayload.Token == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.RegenerateSCIMTokenPayload.Token(childComplexity), true
|
|
|
|
case "RemoveUserPayload.deletedProfileId":
|
|
if e.ComplexityRoot.RemoveUserPayload.DeletedProfileID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.RemoveUserPayload.DeletedProfileID(childComplexity), true
|
|
|
|
case "ResetPasswordPayload.success":
|
|
if e.ComplexityRoot.ResetPasswordPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.ResetPasswordPayload.Success(childComplexity), true
|
|
|
|
case "RevokeAllSessionsPayload.revokedCount":
|
|
if e.ComplexityRoot.RevokeAllSessionsPayload.RevokedCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.RevokeAllSessionsPayload.RevokedCount(childComplexity), true
|
|
|
|
case "RevokePersonalAPIKeyPayload.personalAPIKeyId":
|
|
if e.ComplexityRoot.RevokePersonalAPIKeyPayload.PersonalAPIKeyID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.RevokePersonalAPIKeyPayload.PersonalAPIKeyID(childComplexity), true
|
|
|
|
case "RevokeSessionPayload.success":
|
|
if e.ComplexityRoot.RevokeSessionPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.RevokeSessionPayload.Success(childComplexity), true
|
|
|
|
case "SAMLAttributeMappings.email":
|
|
if e.ComplexityRoot.SAMLAttributeMappings.Email == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLAttributeMappings.Email(childComplexity), true
|
|
case "SAMLAttributeMappings.firstName":
|
|
if e.ComplexityRoot.SAMLAttributeMappings.FirstName == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLAttributeMappings.FirstName(childComplexity), true
|
|
case "SAMLAttributeMappings.lastName":
|
|
if e.ComplexityRoot.SAMLAttributeMappings.LastName == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLAttributeMappings.LastName(childComplexity), true
|
|
case "SAMLAttributeMappings.role":
|
|
if e.ComplexityRoot.SAMLAttributeMappings.Role == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLAttributeMappings.Role(childComplexity), true
|
|
|
|
case "SAMLAuthenticationRequired.reason":
|
|
if e.ComplexityRoot.SAMLAuthenticationRequired.Reason == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLAuthenticationRequired.Reason(childComplexity), true
|
|
|
|
case "SAMLConfiguration.attributeMappings":
|
|
if e.ComplexityRoot.SAMLConfiguration.AttributeMappings == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.AttributeMappings(childComplexity), true
|
|
case "SAMLConfiguration.autoSignupEnabled":
|
|
if e.ComplexityRoot.SAMLConfiguration.AutoSignupEnabled == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.AutoSignupEnabled(childComplexity), true
|
|
case "SAMLConfiguration.createdAt":
|
|
if e.ComplexityRoot.SAMLConfiguration.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.CreatedAt(childComplexity), true
|
|
case "SAMLConfiguration.domainVerificationToken":
|
|
if e.ComplexityRoot.SAMLConfiguration.DomainVerificationToken == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.DomainVerificationToken(childComplexity), true
|
|
case "SAMLConfiguration.domainVerifiedAt":
|
|
if e.ComplexityRoot.SAMLConfiguration.DomainVerifiedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.DomainVerifiedAt(childComplexity), true
|
|
case "SAMLConfiguration.emailDomain":
|
|
if e.ComplexityRoot.SAMLConfiguration.EmailDomain == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.EmailDomain(childComplexity), true
|
|
case "SAMLConfiguration.enforcementPolicy":
|
|
if e.ComplexityRoot.SAMLConfiguration.EnforcementPolicy == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.EnforcementPolicy(childComplexity), true
|
|
case "SAMLConfiguration.id":
|
|
if e.ComplexityRoot.SAMLConfiguration.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.ID(childComplexity), true
|
|
case "SAMLConfiguration.idpCertificate":
|
|
if e.ComplexityRoot.SAMLConfiguration.IdpCertificate == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.IdpCertificate(childComplexity), true
|
|
case "SAMLConfiguration.idpEntityId":
|
|
if e.ComplexityRoot.SAMLConfiguration.IdpEntityID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.IdpEntityID(childComplexity), true
|
|
case "SAMLConfiguration.idpSsoUrl":
|
|
if e.ComplexityRoot.SAMLConfiguration.IdpSsoURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.IdpSsoURL(childComplexity), true
|
|
case "SAMLConfiguration.permission":
|
|
if e.ComplexityRoot.SAMLConfiguration.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_SAMLConfiguration_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.Permission(childComplexity, args["action"].(string)), true
|
|
case "SAMLConfiguration.testLoginUrl":
|
|
if e.ComplexityRoot.SAMLConfiguration.TestLoginURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.TestLoginURL(childComplexity), true
|
|
case "SAMLConfiguration.updatedAt":
|
|
if e.ComplexityRoot.SAMLConfiguration.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfiguration.UpdatedAt(childComplexity), true
|
|
|
|
case "SAMLConfigurationConnection.edges":
|
|
if e.ComplexityRoot.SAMLConfigurationConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfigurationConnection.Edges(childComplexity), true
|
|
case "SAMLConfigurationConnection.pageInfo":
|
|
if e.ComplexityRoot.SAMLConfigurationConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfigurationConnection.PageInfo(childComplexity), true
|
|
case "SAMLConfigurationConnection.totalCount":
|
|
if e.ComplexityRoot.SAMLConfigurationConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfigurationConnection.TotalCount(childComplexity), true
|
|
|
|
case "SAMLConfigurationEdge.cursor":
|
|
if e.ComplexityRoot.SAMLConfigurationEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfigurationEdge.Cursor(childComplexity), true
|
|
case "SAMLConfigurationEdge.node":
|
|
if e.ComplexityRoot.SAMLConfigurationEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SAMLConfigurationEdge.Node(childComplexity), true
|
|
|
|
case "SCIMBridge.connector":
|
|
if e.ComplexityRoot.SCIMBridge.Connector == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.Connector(childComplexity), true
|
|
case "SCIMBridge.createdAt":
|
|
if e.ComplexityRoot.SCIMBridge.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.CreatedAt(childComplexity), true
|
|
case "SCIMBridge.excludedUserNames":
|
|
if e.ComplexityRoot.SCIMBridge.ExcludedUserNames == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.ExcludedUserNames(childComplexity), true
|
|
case "SCIMBridge.id":
|
|
if e.ComplexityRoot.SCIMBridge.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.ID(childComplexity), true
|
|
case "SCIMBridge.permission":
|
|
if e.ComplexityRoot.SCIMBridge.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_SCIMBridge_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.Permission(childComplexity, args["action"].(string)), true
|
|
case "SCIMBridge.scimConfiguration":
|
|
if e.ComplexityRoot.SCIMBridge.ScimConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.ScimConfiguration(childComplexity), true
|
|
case "SCIMBridge.state":
|
|
if e.ComplexityRoot.SCIMBridge.State == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.State(childComplexity), true
|
|
case "SCIMBridge.type":
|
|
if e.ComplexityRoot.SCIMBridge.Type == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.Type(childComplexity), true
|
|
case "SCIMBridge.updatedAt":
|
|
if e.ComplexityRoot.SCIMBridge.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMBridge.UpdatedAt(childComplexity), true
|
|
|
|
case "SCIMConfiguration.bridge":
|
|
if e.ComplexityRoot.SCIMConfiguration.Bridge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.Bridge(childComplexity), true
|
|
case "SCIMConfiguration.createdAt":
|
|
if e.ComplexityRoot.SCIMConfiguration.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.CreatedAt(childComplexity), true
|
|
case "SCIMConfiguration.endpointUrl":
|
|
if e.ComplexityRoot.SCIMConfiguration.EndpointURL == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.EndpointURL(childComplexity), true
|
|
case "SCIMConfiguration.events":
|
|
if e.ComplexityRoot.SCIMConfiguration.Events == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_SCIMConfiguration_events_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.Events(childComplexity, args["first"].(*int), args["after"].(*page.CursorKey), args["last"].(*int), args["before"].(*page.CursorKey), args["orderBy"].(*types.SCIMEventOrderBy)), true
|
|
case "SCIMConfiguration.id":
|
|
if e.ComplexityRoot.SCIMConfiguration.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.ID(childComplexity), true
|
|
case "SCIMConfiguration.organization":
|
|
if e.ComplexityRoot.SCIMConfiguration.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.Organization(childComplexity), true
|
|
case "SCIMConfiguration.permission":
|
|
if e.ComplexityRoot.SCIMConfiguration.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_SCIMConfiguration_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.Permission(childComplexity, args["action"].(string)), true
|
|
case "SCIMConfiguration.updatedAt":
|
|
if e.ComplexityRoot.SCIMConfiguration.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMConfiguration.UpdatedAt(childComplexity), true
|
|
|
|
case "SCIMEvent.createdAt":
|
|
if e.ComplexityRoot.SCIMEvent.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.CreatedAt(childComplexity), true
|
|
case "SCIMEvent.errorMessage":
|
|
if e.ComplexityRoot.SCIMEvent.ErrorMessage == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.ErrorMessage(childComplexity), true
|
|
case "SCIMEvent.id":
|
|
if e.ComplexityRoot.SCIMEvent.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.ID(childComplexity), true
|
|
case "SCIMEvent.ipAddress":
|
|
if e.ComplexityRoot.SCIMEvent.IPAddress == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.IPAddress(childComplexity), true
|
|
case "SCIMEvent.method":
|
|
if e.ComplexityRoot.SCIMEvent.Method == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.Method(childComplexity), true
|
|
case "SCIMEvent.path":
|
|
if e.ComplexityRoot.SCIMEvent.Path == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.Path(childComplexity), true
|
|
case "SCIMEvent.permission":
|
|
if e.ComplexityRoot.SCIMEvent.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_SCIMEvent_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.Permission(childComplexity, args["action"].(string)), true
|
|
case "SCIMEvent.requestBody":
|
|
if e.ComplexityRoot.SCIMEvent.RequestBody == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.RequestBody(childComplexity), true
|
|
case "SCIMEvent.responseBody":
|
|
if e.ComplexityRoot.SCIMEvent.ResponseBody == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.ResponseBody(childComplexity), true
|
|
case "SCIMEvent.statusCode":
|
|
if e.ComplexityRoot.SCIMEvent.StatusCode == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.StatusCode(childComplexity), true
|
|
case "SCIMEvent.userName":
|
|
if e.ComplexityRoot.SCIMEvent.UserName == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEvent.UserName(childComplexity), true
|
|
|
|
case "SCIMEventConnection.edges":
|
|
if e.ComplexityRoot.SCIMEventConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEventConnection.Edges(childComplexity), true
|
|
case "SCIMEventConnection.pageInfo":
|
|
if e.ComplexityRoot.SCIMEventConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEventConnection.PageInfo(childComplexity), true
|
|
case "SCIMEventConnection.totalCount":
|
|
if e.ComplexityRoot.SCIMEventConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEventConnection.TotalCount(childComplexity), true
|
|
|
|
case "SCIMEventEdge.cursor":
|
|
if e.ComplexityRoot.SCIMEventEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEventEdge.Cursor(childComplexity), true
|
|
case "SCIMEventEdge.node":
|
|
if e.ComplexityRoot.SCIMEventEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SCIMEventEdge.Node(childComplexity), true
|
|
|
|
case "Session.createdAt":
|
|
if e.ComplexityRoot.Session.CreatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.CreatedAt(childComplexity), true
|
|
case "Session.expiresAt":
|
|
if e.ComplexityRoot.Session.ExpiresAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.ExpiresAt(childComplexity), true
|
|
case "Session.id":
|
|
if e.ComplexityRoot.Session.ID == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.ID(childComplexity), true
|
|
case "Session.ipAddress":
|
|
if e.ComplexityRoot.Session.IPAddress == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.IPAddress(childComplexity), true
|
|
case "Session.identity":
|
|
if e.ComplexityRoot.Session.Identity == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.Identity(childComplexity), true
|
|
case "Session.permission":
|
|
if e.ComplexityRoot.Session.Permission == nil {
|
|
break
|
|
}
|
|
|
|
args, err := ec.field_Session_permission_args(ctx, rawArgs)
|
|
if err != nil {
|
|
return 0, false
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.Permission(childComplexity, args["action"].(string)), true
|
|
case "Session.updatedAt":
|
|
if e.ComplexityRoot.Session.UpdatedAt == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.UpdatedAt(childComplexity), true
|
|
case "Session.userAgent":
|
|
if e.ComplexityRoot.Session.UserAgent == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.Session.UserAgent(childComplexity), true
|
|
|
|
case "SessionConnection.edges":
|
|
if e.ComplexityRoot.SessionConnection.Edges == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SessionConnection.Edges(childComplexity), true
|
|
case "SessionConnection.pageInfo":
|
|
if e.ComplexityRoot.SessionConnection.PageInfo == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SessionConnection.PageInfo(childComplexity), true
|
|
case "SessionConnection.totalCount":
|
|
if e.ComplexityRoot.SessionConnection.TotalCount == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SessionConnection.TotalCount(childComplexity), true
|
|
|
|
case "SessionEdge.cursor":
|
|
if e.ComplexityRoot.SessionEdge.Cursor == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SessionEdge.Cursor(childComplexity), true
|
|
case "SessionEdge.node":
|
|
if e.ComplexityRoot.SessionEdge.Node == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SessionEdge.Node(childComplexity), true
|
|
|
|
case "SignInPayload.identity":
|
|
if e.ComplexityRoot.SignInPayload.Identity == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SignInPayload.Identity(childComplexity), true
|
|
case "SignInPayload.session":
|
|
if e.ComplexityRoot.SignInPayload.Session == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SignInPayload.Session(childComplexity), true
|
|
|
|
case "SignOutPayload.success":
|
|
if e.ComplexityRoot.SignOutPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SignOutPayload.Success(childComplexity), true
|
|
|
|
case "SignUpPayload.identity":
|
|
if e.ComplexityRoot.SignUpPayload.Identity == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.SignUpPayload.Identity(childComplexity), true
|
|
|
|
case "UpdateMembershipPayload.membership":
|
|
if e.ComplexityRoot.UpdateMembershipPayload.Membership == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.UpdateMembershipPayload.Membership(childComplexity), true
|
|
|
|
case "UpdateOrganizationPayload.organization":
|
|
if e.ComplexityRoot.UpdateOrganizationPayload.Organization == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.UpdateOrganizationPayload.Organization(childComplexity), true
|
|
|
|
case "UpdateSAMLConfigurationPayload.samlConfiguration":
|
|
if e.ComplexityRoot.UpdateSAMLConfigurationPayload.SamlConfiguration == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.UpdateSAMLConfigurationPayload.SamlConfiguration(childComplexity), true
|
|
|
|
case "UpdateSCIMBridgePayload.scimBridge":
|
|
if e.ComplexityRoot.UpdateSCIMBridgePayload.ScimBridge == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.UpdateSCIMBridgePayload.ScimBridge(childComplexity), true
|
|
|
|
case "UpdateUserPayload.profile":
|
|
if e.ComplexityRoot.UpdateUserPayload.Profile == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.UpdateUserPayload.Profile(childComplexity), true
|
|
|
|
case "VerifyEmailPayload.success":
|
|
if e.ComplexityRoot.VerifyEmailPayload.Success == nil {
|
|
break
|
|
}
|
|
|
|
return e.ComplexityRoot.VerifyEmailPayload.Success(childComplexity), true
|
|
|
|
}
|
|
return 0, false
|
|
}
|
|
|
|
func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
|
|
opCtx := graphql.GetOperationContext(ctx)
|
|
ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult))
|
|
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
|
|
ec.unmarshalInputActivateAccountInput,
|
|
ec.unmarshalInputActivateUserInput,
|
|
ec.unmarshalInputAssumeOrganizationSessionInput,
|
|
ec.unmarshalInputChangeEmailInput,
|
|
ec.unmarshalInputChangePasswordInput,
|
|
ec.unmarshalInputCreateOrganizationInput,
|
|
ec.unmarshalInputCreatePersonalAPIKeyInput,
|
|
ec.unmarshalInputCreateSAMLConfigurationInput,
|
|
ec.unmarshalInputCreateSCIMConfigurationInput,
|
|
ec.unmarshalInputCreateUserInput,
|
|
ec.unmarshalInputDeactivateUserInput,
|
|
ec.unmarshalInputDeleteOrganizationHorizontalLogoInput,
|
|
ec.unmarshalInputDeleteOrganizationInput,
|
|
ec.unmarshalInputDeleteSAMLConfigurationInput,
|
|
ec.unmarshalInputDeleteSCIMConfigurationInput,
|
|
ec.unmarshalInputForgotPasswordInput,
|
|
ec.unmarshalInputInvitationOrder,
|
|
ec.unmarshalInputInviteUserInput,
|
|
ec.unmarshalInputProfileFilter,
|
|
ec.unmarshalInputProfileOrder,
|
|
ec.unmarshalInputRegenerateSCIMTokenInput,
|
|
ec.unmarshalInputRemoveUserInput,
|
|
ec.unmarshalInputResetPasswordInput,
|
|
ec.unmarshalInputRevokePersonalAPIKeyInput,
|
|
ec.unmarshalInputRevokeSessionInput,
|
|
ec.unmarshalInputSAMLAttributeMappingsInput,
|
|
ec.unmarshalInputSCIMEventOrder,
|
|
ec.unmarshalInputSessionOrder,
|
|
ec.unmarshalInputSignInInput,
|
|
ec.unmarshalInputSignUpInput,
|
|
ec.unmarshalInputUpdateMembershipInput,
|
|
ec.unmarshalInputUpdateOrganizationInput,
|
|
ec.unmarshalInputUpdateSAMLConfigurationInput,
|
|
ec.unmarshalInputUpdateSCIMBridgeInput,
|
|
ec.unmarshalInputUpdateUserInput,
|
|
ec.unmarshalInputVerifyEmailInput,
|
|
)
|
|
first := true
|
|
|
|
switch opCtx.Operation.Operation {
|
|
case ast.Query:
|
|
return func(ctx context.Context) *graphql.Response {
|
|
var response graphql.Response
|
|
var data graphql.Marshaler
|
|
if first {
|
|
first = false
|
|
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
|
|
data = ec._Query(ctx, opCtx.Operation.SelectionSet)
|
|
} else {
|
|
if atomic.LoadInt32(&ec.PendingDeferred) > 0 {
|
|
result := <-ec.DeferredResults
|
|
atomic.AddInt32(&ec.PendingDeferred, -1)
|
|
data = result.Result
|
|
response.Path = result.Path
|
|
response.Label = result.Label
|
|
response.Errors = result.Errors
|
|
} else {
|
|
return nil
|
|
}
|
|
}
|
|
var buf bytes.Buffer
|
|
data.MarshalGQL(&buf)
|
|
response.Data = buf.Bytes()
|
|
if atomic.LoadInt32(&ec.Deferred) > 0 {
|
|
hasNext := atomic.LoadInt32(&ec.PendingDeferred) > 0
|
|
response.HasNext = &hasNext
|
|
}
|
|
|
|
return &response
|
|
}
|
|
case ast.Mutation:
|
|
return func(ctx context.Context) *graphql.Response {
|
|
if !first {
|
|
return nil
|
|
}
|
|
first = false
|
|
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
|
|
data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
|
|
var buf bytes.Buffer
|
|
data.MarshalGQL(&buf)
|
|
|
|
return &graphql.Response{
|
|
Data: buf.Bytes(),
|
|
}
|
|
}
|
|
|
|
default:
|
|
return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
|
|
}
|
|
}
|
|
|
|
type executionContext struct {
|
|
*graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]
|
|
}
|
|
|
|
func newExecutionContext(
|
|
opCtx *graphql.OperationContext,
|
|
execSchema *executableSchema,
|
|
deferredResults chan graphql.DeferredResult,
|
|
) executionContext {
|
|
return executionContext{
|
|
ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot](
|
|
opCtx,
|
|
(*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema),
|
|
parsedSchema,
|
|
deferredResults,
|
|
),
|
|
}
|
|
}
|
|
|
|
var sources = []*ast.Source{
|
|
{Name: "../schema.graphql", Input: `directive @goField(
|
|
forceResolver: Boolean
|
|
name: String
|
|
omittable: Boolean
|
|
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
|
|
|
|
directive @goModel(
|
|
model: String
|
|
models: [String!]
|
|
) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
|
|
|
|
directive @goEnum(value: String) on ENUM_VALUE
|
|
|
|
scalar CursorKey
|
|
scalar Datetime
|
|
scalar Upload
|
|
scalar EmailAddr
|
|
|
|
enum OrderDirection
|
|
@goModel(model: "go.probo.inc/probo/pkg/page.OrderDirection") {
|
|
ASC @goEnum(value: "go.probo.inc/probo/pkg/page.OrderDirectionAsc")
|
|
DESC @goEnum(value: "go.probo.inc/probo/pkg/page.OrderDirectionDesc")
|
|
}
|
|
|
|
enum SessionOrderField
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.SessionOrderField") {
|
|
CREATED_AT
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.SessionOrderFieldCreatedAt")
|
|
EXPIRED_AT
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.SessionOrderFieldExpiredAt")
|
|
UPDATED_AT
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.SessionOrderFieldUpdatedAt")
|
|
}
|
|
|
|
input SessionOrder {
|
|
direction: OrderDirection!
|
|
field: SessionOrderField!
|
|
}
|
|
|
|
interface Node {
|
|
id: ID!
|
|
}
|
|
|
|
type Query {
|
|
node(id: ID!): Node @session(required: PRESENT)
|
|
viewer: Identity @session(required: PRESENT)
|
|
ssoLoginURL(email: EmailAddr!): String
|
|
@goField(forceResolver: true)
|
|
@session(required: OPTIONAL)
|
|
}
|
|
|
|
type Mutation {
|
|
signIn(input: SignInInput!): SignInPayload @session(required: OPTIONAL)
|
|
signUp(input: SignUpInput!): SignUpPayload @session(required: NONE)
|
|
signOut: SignOutPayload @session(required: PRESENT)
|
|
activateAccount(
|
|
input: ActivateAccountInput!
|
|
): ActivateAccountPayload @session(required: OPTIONAL)
|
|
forgotPassword(input: ForgotPasswordInput!): ForgotPasswordPayload
|
|
@session(required: NONE)
|
|
resetPassword(input: ResetPasswordInput!): ResetPasswordPayload
|
|
@session(required: NONE)
|
|
verifyEmail(input: VerifyEmailInput!): VerifyEmailPayload
|
|
@session(required: OPTIONAL)
|
|
changePassword(input: ChangePasswordInput!): ChangePasswordPayload
|
|
@session(required: PRESENT)
|
|
changeEmail(input: ChangeEmailInput!): ChangeEmailPayload
|
|
@session(required: PRESENT)
|
|
assumeOrganizationSession(
|
|
input: AssumeOrganizationSessionInput!
|
|
): AssumeOrganizationSessionPayload @session(required: PRESENT)
|
|
|
|
revokeSession(input: RevokeSessionInput!): RevokeSessionPayload!
|
|
@session(required: PRESENT)
|
|
revokeAllSessions: RevokeAllSessionsPayload @session(required: PRESENT)
|
|
|
|
createPersonalAPIKey(
|
|
input: CreatePersonalAPIKeyInput!
|
|
): CreatePersonalAPIKeyPayload @session(required: PRESENT)
|
|
revokePersonalAPIKey(
|
|
input: RevokePersonalAPIKeyInput!
|
|
): RevokePersonalAPIKeyPayload @session(required: PRESENT)
|
|
|
|
createOrganization(
|
|
input: CreateOrganizationInput!
|
|
): CreateOrganizationPayload @session(required: PRESENT)
|
|
updateOrganization(
|
|
input: UpdateOrganizationInput!
|
|
): UpdateOrganizationPayload @session(required: PRESENT)
|
|
deleteOrganization(
|
|
input: DeleteOrganizationInput!
|
|
): DeleteOrganizationPayload @session(required: PRESENT)
|
|
deleteOrganizationHorizontalLogo(
|
|
input: DeleteOrganizationHorizontalLogoInput!
|
|
): DeleteOrganizationHorizontalLogoPayload @session(required: PRESENT)
|
|
|
|
createUser(input: CreateUserInput!): CreateUserPayload
|
|
@session(required: PRESENT)
|
|
inviteUser(input: InviteUserInput!): InviteUserPayload
|
|
@session(required: PRESENT)
|
|
deactivateUser(input: DeactivateUserInput!): DeactivateUserPayload
|
|
updateUser(input: UpdateUserInput!): UpdateUserPayload!
|
|
updateMembership(input: UpdateMembershipInput!): UpdateMembershipPayload!
|
|
removeUser(input: RemoveUserInput!): RemoveUserPayload
|
|
@session(required: PRESENT)
|
|
|
|
createSAMLConfiguration(
|
|
input: CreateSAMLConfigurationInput!
|
|
): CreateSAMLConfigurationPayload @session(required: PRESENT)
|
|
updateSAMLConfiguration(
|
|
input: UpdateSAMLConfigurationInput!
|
|
): UpdateSAMLConfigurationPayload @session(required: PRESENT)
|
|
deleteSAMLConfiguration(
|
|
input: DeleteSAMLConfigurationInput!
|
|
): DeleteSAMLConfigurationPayload @session(required: PRESENT)
|
|
|
|
createSCIMConfiguration(
|
|
input: CreateSCIMConfigurationInput!
|
|
): CreateSCIMConfigurationPayload @session(required: PRESENT)
|
|
deleteSCIMConfiguration(
|
|
input: DeleteSCIMConfigurationInput!
|
|
): DeleteSCIMConfigurationPayload @session(required: PRESENT)
|
|
regenerateSCIMToken(
|
|
input: RegenerateSCIMTokenInput!
|
|
): RegenerateSCIMTokenPayload @session(required: PRESENT)
|
|
updateSCIMBridge(
|
|
input: UpdateSCIMBridgeInput!
|
|
): UpdateSCIMBridgePayload @session(required: PRESENT)
|
|
}
|
|
|
|
type Identity implements Node {
|
|
id: ID!
|
|
email: EmailAddr!
|
|
fullName: String!
|
|
emailVerified: Boolean!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
|
|
profiles(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ProfileOrder
|
|
filter: ProfileFilter
|
|
): ProfileConnection @goField(forceResolver: true)
|
|
|
|
sessions(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: SessionOrder
|
|
): SessionConnection @goField(forceResolver: true)
|
|
|
|
personalAPIKeys(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
): PersonalAPIKeyConnection @goField(forceResolver: true)
|
|
|
|
ssoLoginURL: String
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type Profile implements Node {
|
|
id: ID!
|
|
fullName: String!
|
|
emailAddress: EmailAddr!
|
|
source: String!
|
|
state: ProfileState!
|
|
additionalEmailAddresses: [EmailAddr!]!
|
|
kind: String
|
|
position: String
|
|
contractStartDate: Datetime
|
|
contractEndDate: Datetime
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
|
|
identity: Identity @goField(forceResolver: true)
|
|
organization: Organization @goField(forceResolver: true)
|
|
membership: Membership @goField(forceResolver: true)
|
|
pendingInvitations(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: InvitationOrder
|
|
): InvitationConnection @goField(forceResolver: true)
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
enum ProfileState
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.ProfileState") {
|
|
ACTIVE @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileStateActive")
|
|
INACTIVE
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileStateInactive")
|
|
}
|
|
|
|
enum ProfileSource
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.ProfileSource") {
|
|
MANUAL
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileSourceManual")
|
|
SAML @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileSourceSAML")
|
|
SCIM @goEnum(value: "go.probo.inc/probo/pkg/coredata.ProfileSourceSCIM")
|
|
}
|
|
|
|
type Organization implements Node {
|
|
id: ID!
|
|
name: String!
|
|
logoUrl: String @goField(forceResolver: true)
|
|
horizontalLogoUrl: String @goField(forceResolver: true)
|
|
email: String
|
|
description: String
|
|
websiteUrl: String
|
|
headquarterAddress: String
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
|
|
profiles(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: ProfileOrder
|
|
): ProfileConnection @goField(forceResolver: true)
|
|
|
|
samlConfigurations(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
): SAMLConfigurationConnection @goField(forceResolver: true)
|
|
|
|
scimConfiguration: SCIMConfiguration @goField(forceResolver: true)
|
|
|
|
viewer: Profile @goField(forceResolver: true)
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
enum MembershipRole
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.MembershipRole") {
|
|
OWNER @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleOwner")
|
|
ADMIN @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleAdmin")
|
|
EMPLOYEE
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleEmployee")
|
|
VIEWER @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleViewer")
|
|
AUDITOR
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipRoleAuditor")
|
|
}
|
|
|
|
type Membership implements Node {
|
|
id: ID!
|
|
createdAt: Datetime!
|
|
role: MembershipRole!
|
|
|
|
lastSession: Session @goField(forceResolver: true)
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type Invitation implements Node {
|
|
id: ID!
|
|
expiresAt: Datetime!
|
|
acceptedAt: Datetime
|
|
createdAt: Datetime!
|
|
status: InvitationStatus!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type Session implements Node {
|
|
id: ID!
|
|
identity: Identity @goField(forceResolver: true)
|
|
ipAddress: String!
|
|
userAgent: String!
|
|
updatedAt: Datetime!
|
|
createdAt: Datetime!
|
|
expiresAt: Datetime!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type PersonalAPIKey implements Node {
|
|
id: ID!
|
|
name: String!
|
|
expiresAt: Datetime!
|
|
lastUsedAt: Datetime
|
|
createdAt: Datetime!
|
|
|
|
token: String @goField(forceResolver: true)
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type SAMLConfiguration implements Node {
|
|
id: ID!
|
|
emailDomain: String!
|
|
enforcementPolicy: SAMLEnforcementPolicy!
|
|
domainVerifiedAt: Datetime
|
|
domainVerificationToken: String
|
|
idpEntityId: String!
|
|
idpSsoUrl: String!
|
|
idpCertificate: String!
|
|
autoSignupEnabled: Boolean!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
testLoginUrl: String! @goField(forceResolver: true)
|
|
attributeMappings: SAMLAttributeMappings!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type SAMLAttributeMappings {
|
|
email: String!
|
|
firstName: String!
|
|
lastName: String!
|
|
role: String!
|
|
}
|
|
|
|
type SCIMConfiguration implements Node {
|
|
id: ID!
|
|
endpointUrl: String! @goField(forceResolver: true)
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
organization: Organization @goField(forceResolver: true)
|
|
|
|
bridge: SCIMBridge @goField(forceResolver: true)
|
|
|
|
events(
|
|
first: Int
|
|
after: CursorKey
|
|
last: Int
|
|
before: CursorKey
|
|
orderBy: SCIMEventOrder
|
|
): SCIMEventConnection @goField(forceResolver: true)
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type SCIMBridge implements Node {
|
|
id: ID!
|
|
state: SCIMBridgeState!
|
|
scimConfiguration: SCIMConfiguration @goField(forceResolver: true)
|
|
connector: Connector @goField(forceResolver: true)
|
|
type: SCIMBridgeType!
|
|
excludedUserNames: [String!]!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
type Connector implements Node {
|
|
id: ID!
|
|
provider: ConnectorProvider!
|
|
createdAt: Datetime!
|
|
updatedAt: Datetime!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
enum ConnectorProvider
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.ConnectorProvider") {
|
|
SLACK @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderSlack")
|
|
GOOGLE_WORKSPACE
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderGoogleWorkspace")
|
|
}
|
|
|
|
enum SCIMBridgeType
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.SCIMBridgeType") {
|
|
GOOGLE_WORKSPACE @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeTypeGoogleWorkspace")
|
|
}
|
|
|
|
enum SCIMBridgeState
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.SCIMBridgeState") {
|
|
PENDING @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeStatePending")
|
|
ACTIVE @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeStateActive")
|
|
FAILED @goEnum(value: "go.probo.inc/probo/pkg/coredata.SCIMBridgeStateFailed")
|
|
}
|
|
|
|
type SCIMEvent implements Node {
|
|
id: ID!
|
|
method: String!
|
|
path: String!
|
|
statusCode: Int!
|
|
requestBody: String
|
|
responseBody: String
|
|
errorMessage: String
|
|
userName: String!
|
|
ipAddress: String!
|
|
createdAt: Datetime!
|
|
|
|
permission(action: String!): Boolean!
|
|
@goField(forceResolver: true)
|
|
@session(required: PRESENT)
|
|
}
|
|
|
|
enum InvitationStatus
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.InvitationStatus") {
|
|
PENDING
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.InvitationStatusPending")
|
|
ACCEPTED
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.InvitationStatusAccepted")
|
|
EXPIRED
|
|
@goEnum(value: "go.probo.inc/probo/pkg/coredata.InvitationStatusExpired")
|
|
}
|
|
|
|
enum SAMLEnforcementPolicy
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicy") {
|
|
OFF @goEnum(value: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicyOff")
|
|
OPTIONAL
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicyOptional"
|
|
)
|
|
REQUIRED
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.SAMLEnforcementPolicyRequired"
|
|
)
|
|
}
|
|
|
|
enum ReauthenticationReason {
|
|
SESSION_EXPIRED
|
|
SENSITIVE_ACTION
|
|
POLICY_REQUIREMENT
|
|
}
|
|
|
|
enum InvitationOrderField
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.InvitationOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.InvitationOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
input InvitationOrder
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.InvitationOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: InvitationOrderField!
|
|
}
|
|
|
|
type InvitationConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.InvitationConnection"
|
|
) {
|
|
edges: [InvitationEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type InvitationEdge {
|
|
node: Invitation!
|
|
cursor: CursorKey!
|
|
}
|
|
|
|
enum ProfileOrderField
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderField") {
|
|
FULL_NAME
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldFullName"
|
|
)
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldCreatedAt"
|
|
)
|
|
KIND @goEnum(value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldKind")
|
|
ORGANIZATION_NAME
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldOrganizationName"
|
|
)
|
|
STATE
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.MembershipProfileOrderFieldState"
|
|
)
|
|
}
|
|
|
|
input ProfileFilter {
|
|
excludeContractEnded: Boolean
|
|
state: ProfileState
|
|
}
|
|
|
|
input ProfileOrder
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.ProfileOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: ProfileOrderField!
|
|
}
|
|
|
|
type ProfileConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.ProfileConnection"
|
|
) {
|
|
totalCount: Int @goField(forceResolver: true)
|
|
edges: [ProfileEdge!]!
|
|
pageInfo: PageInfo!
|
|
}
|
|
|
|
type ProfileEdge {
|
|
cursor: CursorKey!
|
|
node: Profile!
|
|
}
|
|
|
|
type SessionConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SessionConnection"
|
|
) {
|
|
edges: [SessionEdge!]!
|
|
pageInfo: PageInfo!
|
|
totalCount: Int @goField(forceResolver: true)
|
|
}
|
|
|
|
type SessionEdge {
|
|
node: Session!
|
|
cursor: CursorKey!
|
|
}
|
|
|
|
type PersonalAPIKeyConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.PersonalAPIKeyConnection"
|
|
) {
|
|
edges: [PersonalAPIKeyEdge!]!
|
|
pageInfo: PageInfo!
|
|
totalCount: Int @goField(forceResolver: true)
|
|
}
|
|
|
|
type PersonalAPIKeyEdge {
|
|
node: PersonalAPIKey!
|
|
cursor: CursorKey!
|
|
}
|
|
|
|
type SAMLConfigurationConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SAMLConfigurationConnection"
|
|
) {
|
|
edges: [SAMLConfigurationEdge!]!
|
|
pageInfo: PageInfo!
|
|
totalCount: Int @goField(forceResolver: true)
|
|
}
|
|
|
|
type SAMLConfigurationEdge {
|
|
node: SAMLConfiguration!
|
|
cursor: CursorKey!
|
|
}
|
|
|
|
enum SCIMEventOrderField
|
|
@goModel(model: "go.probo.inc/probo/pkg/coredata.SCIMEventOrderField") {
|
|
CREATED_AT
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/coredata.SCIMEventOrderFieldCreatedAt"
|
|
)
|
|
}
|
|
|
|
input SCIMEventOrder
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SCIMEventOrderBy"
|
|
) {
|
|
direction: OrderDirection!
|
|
field: SCIMEventOrderField!
|
|
}
|
|
|
|
type SCIMEventConnection
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/api/connect/v1/types.SCIMEventConnection"
|
|
) {
|
|
edges: [SCIMEventEdge!]!
|
|
pageInfo: PageInfo!
|
|
totalCount: Int @goField(forceResolver: true)
|
|
}
|
|
|
|
type SCIMEventEdge {
|
|
node: SCIMEvent!
|
|
cursor: CursorKey!
|
|
}
|
|
|
|
type PageInfo {
|
|
hasNextPage: Boolean!
|
|
hasPreviousPage: Boolean!
|
|
startCursor: CursorKey
|
|
endCursor: CursorKey
|
|
}
|
|
|
|
input SignInInput {
|
|
# When assuming an org with a password auth method
|
|
organizationId: ID
|
|
email: EmailAddr!
|
|
password: String!
|
|
}
|
|
|
|
input SignUpInput {
|
|
email: EmailAddr!
|
|
password: String!
|
|
fullName: String!
|
|
}
|
|
|
|
input ActivateAccountInput {
|
|
token: String!
|
|
}
|
|
|
|
input ForgotPasswordInput {
|
|
email: EmailAddr!
|
|
}
|
|
|
|
input ResetPasswordInput {
|
|
token: String!
|
|
password: String!
|
|
}
|
|
|
|
input VerifyEmailInput {
|
|
token: String!
|
|
}
|
|
|
|
input ChangePasswordInput {
|
|
currentPassword: String!
|
|
newPassword: String!
|
|
}
|
|
|
|
input ChangeEmailInput {
|
|
newEmail: EmailAddr!
|
|
password: String!
|
|
}
|
|
|
|
input AssumeOrganizationSessionInput {
|
|
organizationId: ID!
|
|
continue: String!
|
|
}
|
|
|
|
input RevokeSessionInput {
|
|
sessionId: ID!
|
|
}
|
|
|
|
input CreatePersonalAPIKeyInput {
|
|
name: String!
|
|
expiresAt: Datetime!
|
|
}
|
|
|
|
input RevokePersonalAPIKeyInput {
|
|
personalAPIKeyId: ID!
|
|
}
|
|
|
|
input CreateOrganizationInput {
|
|
name: String!
|
|
logoFile: Upload
|
|
horizontalLogoFile: Upload
|
|
}
|
|
|
|
input UpdateOrganizationInput {
|
|
organizationId: ID!
|
|
name: String
|
|
logoFile: Upload
|
|
horizontalLogoFile: Upload
|
|
description: String @goField(omittable: true)
|
|
websiteUrl: String @goField(omittable: true)
|
|
email: String @goField(omittable: true)
|
|
headquarterAddress: String @goField(omittable: true)
|
|
}
|
|
|
|
input DeleteOrganizationInput {
|
|
organizationId: ID!
|
|
}
|
|
|
|
input DeleteOrganizationHorizontalLogoInput {
|
|
organizationId: ID!
|
|
}
|
|
|
|
input CreateUserInput {
|
|
organizationId: ID!
|
|
fullName: String!
|
|
emailAddress: EmailAddr!
|
|
role: MembershipRole!
|
|
additionalEmailAddresses: [EmailAddr!]
|
|
kind: String
|
|
position: String
|
|
contractStartDate: Datetime @goField(omittable: true)
|
|
contractEndDate: Datetime @goField(omittable: true)
|
|
}
|
|
|
|
input InviteUserInput {
|
|
organizationId: ID!
|
|
profileId: ID!
|
|
}
|
|
|
|
input ActivateUserInput {
|
|
organizationId: ID!
|
|
profileId: ID!
|
|
}
|
|
|
|
input DeactivateUserInput {
|
|
organizationId: ID!
|
|
profileId: ID!
|
|
}
|
|
|
|
input UpdateUserInput {
|
|
id: ID!
|
|
fullName: String!
|
|
additionalEmailAddresses: [EmailAddr!]
|
|
kind: String
|
|
position: String
|
|
contractStartDate: Datetime @goField(omittable: true)
|
|
contractEndDate: Datetime @goField(omittable: true)
|
|
}
|
|
|
|
input UpdateMembershipInput {
|
|
organizationId: ID!
|
|
membershipId: ID!
|
|
role: MembershipRole!
|
|
}
|
|
|
|
input RemoveUserInput {
|
|
organizationId: ID!
|
|
profileId: ID!
|
|
}
|
|
|
|
input CreateSAMLConfigurationInput {
|
|
organizationId: ID!
|
|
emailDomain: String!
|
|
idpEntityId: String!
|
|
idpSsoUrl: String!
|
|
idpCertificate: String!
|
|
autoSignupEnabled: Boolean!
|
|
attributeMappings: SAMLAttributeMappingsInput
|
|
}
|
|
|
|
input SAMLAttributeMappingsInput {
|
|
email: String
|
|
firstName: String
|
|
lastName: String
|
|
role: String
|
|
}
|
|
|
|
input UpdateSAMLConfigurationInput {
|
|
organizationId: ID!
|
|
samlConfigurationId: ID!
|
|
idpEntityId: String
|
|
idpSsoUrl: String
|
|
idpCertificate: String
|
|
autoSignupEnabled: Boolean
|
|
enforcementPolicy: SAMLEnforcementPolicy!
|
|
attributeMappings: SAMLAttributeMappingsInput
|
|
}
|
|
|
|
input DeleteSAMLConfigurationInput {
|
|
organizationId: ID!
|
|
samlConfigurationId: ID!
|
|
}
|
|
|
|
type SignInPayload {
|
|
identity: Identity
|
|
session: Session
|
|
}
|
|
|
|
type SignUpPayload {
|
|
identity: Identity
|
|
}
|
|
|
|
type SignOutPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type ActivateAccountPayload {
|
|
createPasswordToken: String
|
|
ssoLoginUrl: String
|
|
profile: Profile
|
|
}
|
|
|
|
type ForgotPasswordPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type ResetPasswordPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type VerifyEmailPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type ChangePasswordPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type ChangeEmailPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
union AssumeOrganizationSessionResult =
|
|
| OrganizationSessionCreated
|
|
| PasswordRequired
|
|
| SAMLAuthenticationRequired
|
|
|
|
type OrganizationSessionCreated {
|
|
session: Session!
|
|
membership: Membership!
|
|
}
|
|
|
|
type PasswordRequired {
|
|
reason: ReauthenticationReason!
|
|
}
|
|
|
|
type SAMLAuthenticationRequired {
|
|
reason: ReauthenticationReason!
|
|
}
|
|
|
|
type AssumeOrganizationSessionPayload {
|
|
result: AssumeOrganizationSessionResult!
|
|
}
|
|
|
|
type RevokeSessionPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type RevokeAllSessionsPayload {
|
|
revokedCount: Int!
|
|
}
|
|
|
|
type CreatePersonalAPIKeyPayload {
|
|
personalAPIKeyEdge: PersonalAPIKeyEdge!
|
|
token: String!
|
|
}
|
|
|
|
type RevokePersonalAPIKeyPayload {
|
|
personalAPIKeyId: ID!
|
|
}
|
|
|
|
type CreateOrganizationPayload {
|
|
organization: Organization
|
|
profile: Profile!
|
|
}
|
|
|
|
type UpdateOrganizationPayload {
|
|
organization: Organization
|
|
}
|
|
|
|
type DeleteOrganizationPayload {
|
|
deletedOrganizationId: ID!
|
|
}
|
|
|
|
type DeleteOrganizationHorizontalLogoPayload {
|
|
organization: Organization!
|
|
}
|
|
|
|
type CreateUserPayload {
|
|
profileEdge: ProfileEdge!
|
|
}
|
|
|
|
type InviteUserPayload {
|
|
invitationEdge: InvitationEdge!
|
|
}
|
|
|
|
type DeactivateUserPayload {
|
|
success: Boolean!
|
|
}
|
|
|
|
type UpdateUserPayload {
|
|
profile: Profile!
|
|
}
|
|
|
|
type UpdateMembershipPayload {
|
|
membership: Membership!
|
|
}
|
|
|
|
type RemoveUserPayload {
|
|
deletedProfileId: ID!
|
|
}
|
|
|
|
type CreateSAMLConfigurationPayload {
|
|
samlConfigurationEdge: SAMLConfigurationEdge!
|
|
}
|
|
|
|
type UpdateSAMLConfigurationPayload {
|
|
samlConfiguration: SAMLConfiguration
|
|
}
|
|
|
|
type DeleteSAMLConfigurationPayload {
|
|
deletedSamlConfigurationId: ID!
|
|
}
|
|
|
|
input CreateSCIMConfigurationInput {
|
|
organizationId: ID!
|
|
connectorId: ID
|
|
}
|
|
|
|
input DeleteSCIMConfigurationInput {
|
|
organizationId: ID!
|
|
scimConfigurationId: ID!
|
|
}
|
|
|
|
input RegenerateSCIMTokenInput {
|
|
organizationId: ID!
|
|
scimConfigurationId: ID!
|
|
}
|
|
|
|
input UpdateSCIMBridgeInput {
|
|
organizationId: ID!
|
|
scimBridgeId: ID!
|
|
excludedUserNames: [String!]!
|
|
}
|
|
|
|
type CreateSCIMConfigurationPayload {
|
|
scimConfiguration: SCIMConfiguration!
|
|
scimBridge: SCIMBridge
|
|
token: String!
|
|
}
|
|
|
|
type DeleteSCIMConfigurationPayload {
|
|
deletedScimConfigurationId: ID!
|
|
}
|
|
|
|
type RegenerateSCIMTokenPayload {
|
|
scimConfiguration: SCIMConfiguration!
|
|
token: String!
|
|
}
|
|
|
|
type UpdateSCIMBridgePayload {
|
|
scimBridge: SCIMBridge!
|
|
}
|
|
`, BuiltIn: false},
|
|
{Name: "../../../../gqlutils/directives/session/schema.graphql", Input: `# Session directive for GraphQL APIs
|
|
# Include this schema in your gqlgen configuration to enable session-based access control.
|
|
#
|
|
# Usage in your schema.graphql:
|
|
# type Query {
|
|
# viewer: User @session(required: PRESENT)
|
|
# publicData: Data @session(required: OPTIONAL)
|
|
# signup(input: SignUpInput!): SignUpPayload @session(required: NONE)
|
|
# }
|
|
|
|
directive @session(required: SessionRequirement!) on FIELD_DEFINITION
|
|
|
|
enum SessionRequirement
|
|
@goModel(
|
|
model: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirement"
|
|
) {
|
|
"""
|
|
Requires an authenticated session or API key.
|
|
"""
|
|
PRESENT
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementPresent"
|
|
)
|
|
"""
|
|
Forbids authenticated access (e.g., for login/signup endpoints).
|
|
"""
|
|
NONE
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementNone"
|
|
)
|
|
"""
|
|
Allows both authenticated and unauthenticated access.
|
|
"""
|
|
OPTIONAL
|
|
@goEnum(
|
|
value: "go.probo.inc/probo/pkg/server/gqlutils/directives/session.SessionRequirementOptional"
|
|
)
|
|
}
|
|
`, BuiltIn: false},
|
|
}
|
|
var parsedSchema = gqlparser.MustLoadSchema(sources...)
|
|
|
|
// endregion ************************** generated!.gotpl **************************
|
|
|
|
// region ***************************** args.gotpl *****************************
|
|
|
|
func (ec *executionContext) dir_session_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "required", ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["required"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Connector_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Identity_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Identity_personalAPIKeys_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Identity_profiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileOrderBy)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
arg5, err := graphql.ProcessArgField(ctx, rawArgs, "filter", ec.unmarshalOProfileFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileFilter)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["filter"] = arg5
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Identity_sessions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSessionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionOrder)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Invitation_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Membership_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_activateAccount_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNActivateAccountInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_assumeOrganizationSession_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNAssumeOrganizationSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_changeEmail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNChangeEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_changePassword_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNChangePasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createPersonalAPIKey_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreatePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createSAMLConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createSCIMConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNCreateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deactivateUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeactivateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteOrganizationHorizontalLogo_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteOrganizationHorizontalLogoInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteSAMLConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_deleteSCIMConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNDeleteSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_forgotPassword_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNForgotPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_inviteUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNInviteUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_regenerateSCIMToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRegenerateSCIMTokenInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_removeUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRemoveUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_resetPassword_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNResetPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_revokePersonalAPIKey_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRevokePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_revokeSession_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNRevokeSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_signIn_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSignInInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_signUp_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNSignUpInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateMembership_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateMembershipInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateSAMLConfiguration_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateSCIMBridge_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateSCIMBridgeInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgeInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNUpdateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Mutation_verifyEmail_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input", ec.unmarshalNVerifyEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailInput)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["input"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_profiles_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileOrderBy)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Organization_samlConfigurations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_PersonalAPIKey_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Profile_pendingInvitations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOInvitationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationOrderBy)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Profile_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["name"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id", ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["id"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Query_ssoLoginURL_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "email", ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["email"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_SAMLConfiguration_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_SCIMBridge_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_SCIMConfiguration_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "first", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["first"] = arg0
|
|
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "after", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["after"] = arg1
|
|
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "last", ec.unmarshalOInt2ᚖint)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["last"] = arg2
|
|
arg3, err := graphql.ProcessArgField(ctx, rawArgs, "before", ec.unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["before"] = arg3
|
|
arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", ec.unmarshalOSCIMEventOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventOrderBy)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["orderBy"] = arg4
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_SCIMConfiguration_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_SCIMEvent_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field_Session_permission_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "action", ec.unmarshalNString2string)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["action"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2ᚖbool)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
|
|
var err error
|
|
args := map[string]any{}
|
|
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated", ec.unmarshalOBoolean2bool)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args["includeDeprecated"] = arg0
|
|
return args, nil
|
|
}
|
|
|
|
// endregion ***************************** args.gotpl *****************************
|
|
|
|
// region ************************** directives.gotpl **************************
|
|
|
|
// endregion ************************** directives.gotpl **************************
|
|
|
|
// region **************************** field.gotpl *****************************
|
|
|
|
func (ec *executionContext) _ActivateAccountPayload_createPasswordToken(ctx context.Context, field graphql.CollectedField, obj *types.ActivateAccountPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ActivateAccountPayload_createPasswordToken,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatePasswordToken, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ActivateAccountPayload_createPasswordToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ActivateAccountPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ActivateAccountPayload_ssoLoginUrl(ctx context.Context, field graphql.CollectedField, obj *types.ActivateAccountPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ActivateAccountPayload_ssoLoginUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.SsoLoginURL, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ActivateAccountPayload_ssoLoginUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ActivateAccountPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ActivateAccountPayload_profile(ctx context.Context, field graphql.CollectedField, obj *types.ActivateAccountPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ActivateAccountPayload_profile,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Profile, nil
|
|
},
|
|
nil,
|
|
ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ActivateAccountPayload_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ActivateAccountPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Profile_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Profile_fullName(ctx, field)
|
|
case "emailAddress":
|
|
return ec.fieldContext_Profile_emailAddress(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_Profile_source(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Profile_state(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_Profile_kind(ctx, field)
|
|
case "position":
|
|
return ec.fieldContext_Profile_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_Profile_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_Profile_contractEndDate(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Profile_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Profile_updatedAt(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Profile_identity(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Profile_organization(ctx, field)
|
|
case "membership":
|
|
return ec.fieldContext_Profile_membership(ctx, field)
|
|
case "pendingInvitations":
|
|
return ec.fieldContext_Profile_pendingInvitations(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Profile_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _AssumeOrganizationSessionPayload_result(ctx context.Context, field graphql.CollectedField, obj *types.AssumeOrganizationSessionPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_AssumeOrganizationSessionPayload_result,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Result, nil
|
|
},
|
|
nil,
|
|
ec.marshalNAssumeOrganizationSessionResult2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionResult,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_AssumeOrganizationSessionPayload_result(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "AssumeOrganizationSessionPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type AssumeOrganizationSessionResult does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ChangeEmailPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ChangeEmailPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ChangeEmailPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ChangeEmailPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ChangeEmailPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ChangePasswordPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ChangePasswordPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ChangePasswordPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ChangePasswordPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ChangePasswordPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_id(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Connector_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_provider(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Connector_provider,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Provider, nil
|
|
},
|
|
nil,
|
|
ec.marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ConnectorProvider does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Connector_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Connector_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Connector_permission(ctx context.Context, field graphql.CollectedField, obj *types.Connector) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Connector_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Connector().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Connector_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Connector",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Connector_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateOrganizationPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.CreateOrganizationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateOrganizationPayload_organization,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Organization, nil
|
|
},
|
|
nil,
|
|
ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateOrganizationPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "horizontalLogoUrl":
|
|
return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Organization_email(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Organization_description(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Organization_websiteUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Organization_headquarterAddress(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Organization_profiles(ctx, field)
|
|
case "samlConfigurations":
|
|
return ec.fieldContext_Organization_samlConfigurations(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_Organization_scimConfiguration(ctx, field)
|
|
case "viewer":
|
|
return ec.fieldContext_Organization_viewer(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Organization_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateOrganizationPayload_profile(ctx context.Context, field graphql.CollectedField, obj *types.CreateOrganizationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateOrganizationPayload_profile,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Profile, nil
|
|
},
|
|
nil,
|
|
ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateOrganizationPayload_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Profile_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Profile_fullName(ctx, field)
|
|
case "emailAddress":
|
|
return ec.fieldContext_Profile_emailAddress(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_Profile_source(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Profile_state(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_Profile_kind(ctx, field)
|
|
case "position":
|
|
return ec.fieldContext_Profile_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_Profile_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_Profile_contractEndDate(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Profile_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Profile_updatedAt(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Profile_identity(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Profile_organization(ctx, field)
|
|
case "membership":
|
|
return ec.fieldContext_Profile_membership(ctx, field)
|
|
case "pendingInvitations":
|
|
return ec.fieldContext_Profile_pendingInvitations(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Profile_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreatePersonalAPIKeyPayload_personalAPIKeyEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreatePersonalAPIKeyPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreatePersonalAPIKeyPayload_personalAPIKeyEdge,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PersonalAPIKeyEdge, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPersonalAPIKeyEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdge,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreatePersonalAPIKeyPayload_personalAPIKeyEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreatePersonalAPIKeyPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_PersonalAPIKeyEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_PersonalAPIKeyEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKeyEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreatePersonalAPIKeyPayload_token(ctx context.Context, field graphql.CollectedField, obj *types.CreatePersonalAPIKeyPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreatePersonalAPIKeyPayload_token,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Token, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreatePersonalAPIKeyPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreatePersonalAPIKeyPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateSAMLConfigurationPayload_samlConfigurationEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateSAMLConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateSAMLConfigurationPayload_samlConfigurationEdge,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.SamlConfigurationEdge, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSAMLConfigurationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdge,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateSAMLConfigurationPayload_samlConfigurationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateSAMLConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_SAMLConfigurationEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_SAMLConfigurationEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SAMLConfigurationEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateSCIMConfigurationPayload_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.CreateSCIMConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateSCIMConfigurationPayload_scimConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ScimConfiguration, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateSCIMConfigurationPayload_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateSCIMConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMConfiguration_id(ctx, field)
|
|
case "endpointUrl":
|
|
return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_SCIMConfiguration_organization(ctx, field)
|
|
case "bridge":
|
|
return ec.fieldContext_SCIMConfiguration_bridge(ctx, field)
|
|
case "events":
|
|
return ec.fieldContext_SCIMConfiguration_events(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMConfiguration_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateSCIMConfigurationPayload_scimBridge(ctx context.Context, field graphql.CollectedField, obj *types.CreateSCIMConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateSCIMConfigurationPayload_scimBridge,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ScimBridge, nil
|
|
},
|
|
nil,
|
|
ec.marshalOSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateSCIMConfigurationPayload_scimBridge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateSCIMConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMBridge_id(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_SCIMBridge_state(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_SCIMBridge_scimConfiguration(ctx, field)
|
|
case "connector":
|
|
return ec.fieldContext_SCIMBridge_connector(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext_SCIMBridge_type(ctx, field)
|
|
case "excludedUserNames":
|
|
return ec.fieldContext_SCIMBridge_excludedUserNames(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMBridge_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMBridge_updatedAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMBridge_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMBridge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateSCIMConfigurationPayload_token(ctx context.Context, field graphql.CollectedField, obj *types.CreateSCIMConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateSCIMConfigurationPayload_token,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Token, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateSCIMConfigurationPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateSCIMConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _CreateUserPayload_profileEdge(ctx context.Context, field graphql.CollectedField, obj *types.CreateUserPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_CreateUserPayload_profileEdge,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ProfileEdge, nil
|
|
},
|
|
nil,
|
|
ec.marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdge,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_CreateUserPayload_profileEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "CreateUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_ProfileEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ProfileEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProfileEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeactivateUserPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.DeactivateUserPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_DeactivateUserPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeactivateUserPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeactivateUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteOrganizationHorizontalLogoPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.DeleteOrganizationHorizontalLogoPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_DeleteOrganizationHorizontalLogoPayload_organization,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Organization, nil
|
|
},
|
|
nil,
|
|
ec.marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteOrganizationHorizontalLogoPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteOrganizationHorizontalLogoPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "horizontalLogoUrl":
|
|
return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Organization_email(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Organization_description(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Organization_websiteUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Organization_headquarterAddress(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Organization_profiles(ctx, field)
|
|
case "samlConfigurations":
|
|
return ec.fieldContext_Organization_samlConfigurations(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_Organization_scimConfiguration(ctx, field)
|
|
case "viewer":
|
|
return ec.fieldContext_Organization_viewer(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Organization_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteOrganizationPayload_deletedOrganizationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteOrganizationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_DeleteOrganizationPayload_deletedOrganizationId,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeletedOrganizationID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteOrganizationPayload_deletedOrganizationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteSAMLConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_DeleteSAMLConfigurationPayload_deletedSamlConfigurationId,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeletedSamlConfigurationID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteSAMLConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _DeleteSCIMConfigurationPayload_deletedScimConfigurationId(ctx context.Context, field graphql.CollectedField, obj *types.DeleteSCIMConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_DeleteSCIMConfigurationPayload_deletedScimConfigurationId,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeletedScimConfigurationID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_DeleteSCIMConfigurationPayload_deletedScimConfigurationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "DeleteSCIMConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ForgotPasswordPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ForgotPasswordPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ForgotPasswordPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ForgotPasswordPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ForgotPasswordPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_id(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_email(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_email,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Email, nil
|
|
},
|
|
nil,
|
|
ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type EmailAddr does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_fullName(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_fullName,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.FullName, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_emailVerified(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_emailVerified,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.EmailVerified, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_emailVerified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_profiles(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_profiles,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Identity().Profiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy), fc.Args["filter"].(*types.ProfileFilter))
|
|
},
|
|
nil,
|
|
ec.marshalOProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_profiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_ProfileConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_ProfileConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ProfileConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Identity_profiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_sessions(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_sessions,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Identity().Sessions(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SessionOrder))
|
|
},
|
|
nil,
|
|
ec.marshalOSessionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_sessions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_SessionConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_SessionConnection_pageInfo(ctx, field)
|
|
case "totalCount":
|
|
return ec.fieldContext_SessionConnection_totalCount(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SessionConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Identity_sessions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_personalAPIKeys(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_personalAPIKeys,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Identity().PersonalAPIKeys(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey))
|
|
},
|
|
nil,
|
|
ec.marshalOPersonalAPIKeyConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_personalAPIKeys(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_PersonalAPIKeyConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_PersonalAPIKeyConnection_pageInfo(ctx, field)
|
|
case "totalCount":
|
|
return ec.fieldContext_PersonalAPIKeyConnection_totalCount(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKeyConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Identity_personalAPIKeys_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_ssoLoginURL(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_ssoLoginURL,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Identity().SsoLoginURL(ctx, obj)
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *string
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *string
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_ssoLoginURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Identity_permission(ctx context.Context, field graphql.CollectedField, obj *types.Identity) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Identity_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Identity().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Identity_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Identity",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Identity_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Invitation_id(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Invitation_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Invitation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Invitation",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Invitation_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Invitation_expiresAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ExpiresAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Invitation_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Invitation",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Invitation_acceptedAt(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Invitation_acceptedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.AcceptedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalODatetime2ᚖtimeᚐTime,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Invitation_acceptedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Invitation",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Invitation_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Invitation_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Invitation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Invitation",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Invitation_status(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Invitation_status,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Status, nil
|
|
},
|
|
nil,
|
|
ec.marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Invitation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Invitation",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type InvitationStatus does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Invitation_permission(ctx context.Context, field graphql.CollectedField, obj *types.Invitation) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Invitation_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Invitation().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Invitation_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Invitation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Invitation_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _InvitationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.InvitationConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_InvitationConnection_edges,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Edges, nil
|
|
},
|
|
nil,
|
|
ec.marshalNInvitationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdgeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_InvitationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "InvitationConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_InvitationEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_InvitationEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type InvitationEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _InvitationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.InvitationConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_InvitationConnection_pageInfo,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PageInfo, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_InvitationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "InvitationConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _InvitationEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.InvitationEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_InvitationEdge_node,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Node, nil
|
|
},
|
|
nil,
|
|
ec.marshalNInvitation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitation,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_InvitationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "InvitationEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Invitation_id(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_Invitation_expiresAt(ctx, field)
|
|
case "acceptedAt":
|
|
return ec.fieldContext_Invitation_acceptedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Invitation_createdAt(ctx, field)
|
|
case "status":
|
|
return ec.fieldContext_Invitation_status(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Invitation_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Invitation", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _InvitationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.InvitationEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_InvitationEdge_cursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Cursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_InvitationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "InvitationEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _InviteUserPayload_invitationEdge(ctx context.Context, field graphql.CollectedField, obj *types.InviteUserPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_InviteUserPayload_invitationEdge,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.InvitationEdge, nil
|
|
},
|
|
nil,
|
|
ec.marshalNInvitationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdge,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_InviteUserPayload_invitationEdge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "InviteUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_InvitationEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_InvitationEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type InvitationEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Membership_id(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Membership_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Membership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Membership",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Membership_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Membership_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Membership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Membership",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Membership_role(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Membership_role,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Role, nil
|
|
},
|
|
nil,
|
|
ec.marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Membership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Membership",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type MembershipRole does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Membership_lastSession(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Membership_lastSession,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Membership().LastSession(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Membership_lastSession(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Membership",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Session_id(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Session_identity(ctx, field)
|
|
case "ipAddress":
|
|
return ec.fieldContext_Session_ipAddress(ctx, field)
|
|
case "userAgent":
|
|
return ec.fieldContext_Session_userAgent(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Session_updatedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Session_createdAt(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_Session_expiresAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Session_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Session", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Membership_permission(ctx context.Context, field graphql.CollectedField, obj *types.Membership) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Membership_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Membership().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Membership_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Membership",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Membership_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_signIn(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_signIn,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().SignIn(ctx, fc.Args["input"].(types.SignInInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL")
|
|
if err != nil {
|
|
var zeroVal *types.SignInPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.SignInPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOSignInPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_signIn(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "identity":
|
|
return ec.fieldContext_SignInPayload_identity(ctx, field)
|
|
case "session":
|
|
return ec.fieldContext_SignInPayload_session(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SignInPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_signIn_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_signUp(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_signUp,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().SignUp(ctx, fc.Args["input"].(types.SignUpInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "NONE")
|
|
if err != nil {
|
|
var zeroVal *types.SignUpPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.SignUpPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOSignUpPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_signUp(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "identity":
|
|
return ec.fieldContext_SignUpPayload_identity(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SignUpPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_signUp_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_signOut(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_signOut,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Mutation().SignOut(ctx)
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.SignOutPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.SignOutPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOSignOutPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignOutPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_signOut(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_SignOutPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SignOutPayload", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_activateAccount(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_activateAccount,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().ActivateAccount(ctx, fc.Args["input"].(types.ActivateAccountInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL")
|
|
if err != nil {
|
|
var zeroVal *types.ActivateAccountPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.ActivateAccountPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOActivateAccountPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_activateAccount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "createPasswordToken":
|
|
return ec.fieldContext_ActivateAccountPayload_createPasswordToken(ctx, field)
|
|
case "ssoLoginUrl":
|
|
return ec.fieldContext_ActivateAccountPayload_ssoLoginUrl(ctx, field)
|
|
case "profile":
|
|
return ec.fieldContext_ActivateAccountPayload_profile(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ActivateAccountPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_activateAccount_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_forgotPassword(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_forgotPassword,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().ForgotPassword(ctx, fc.Args["input"].(types.ForgotPasswordInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "NONE")
|
|
if err != nil {
|
|
var zeroVal *types.ForgotPasswordPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.ForgotPasswordPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOForgotPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_forgotPassword(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_ForgotPasswordPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ForgotPasswordPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_forgotPassword_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_resetPassword(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_resetPassword,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().ResetPassword(ctx, fc.Args["input"].(types.ResetPasswordInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "NONE")
|
|
if err != nil {
|
|
var zeroVal *types.ResetPasswordPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.ResetPasswordPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOResetPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_resetPassword(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_ResetPasswordPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ResetPasswordPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_resetPassword_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_verifyEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_verifyEmail,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().VerifyEmail(ctx, fc.Args["input"].(types.VerifyEmailInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL")
|
|
if err != nil {
|
|
var zeroVal *types.VerifyEmailPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.VerifyEmailPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOVerifyEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_verifyEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_VerifyEmailPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type VerifyEmailPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_verifyEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_changePassword(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_changePassword,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().ChangePassword(ctx, fc.Args["input"].(types.ChangePasswordInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.ChangePasswordPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.ChangePasswordPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOChangePasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_changePassword(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_ChangePasswordPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ChangePasswordPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_changePassword_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_changeEmail(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_changeEmail,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().ChangeEmail(ctx, fc.Args["input"].(types.ChangeEmailInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.ChangeEmailPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.ChangeEmailPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOChangeEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_changeEmail(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_ChangeEmailPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ChangeEmailPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_changeEmail_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_assumeOrganizationSession(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_assumeOrganizationSession,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().AssumeOrganizationSession(ctx, fc.Args["input"].(types.AssumeOrganizationSessionInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.AssumeOrganizationSessionPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.AssumeOrganizationSessionPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOAssumeOrganizationSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_assumeOrganizationSession(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "result":
|
|
return ec.fieldContext_AssumeOrganizationSessionPayload_result(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type AssumeOrganizationSessionPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_assumeOrganizationSession_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_revokeSession(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_revokeSession,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().RevokeSession(ctx, fc.Args["input"].(types.RevokeSessionInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.RevokeSessionPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.RevokeSessionPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNRevokeSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionPayload,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_revokeSession(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_RevokeSessionPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RevokeSessionPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_revokeSession_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_revokeAllSessions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_revokeAllSessions,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Mutation().RevokeAllSessions(ctx)
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.RevokeAllSessionsPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.RevokeAllSessionsPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalORevokeAllSessionsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeAllSessionsPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_revokeAllSessions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "revokedCount":
|
|
return ec.fieldContext_RevokeAllSessionsPayload_revokedCount(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RevokeAllSessionsPayload", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createPersonalAPIKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_createPersonalAPIKey,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().CreatePersonalAPIKey(ctx, fc.Args["input"].(types.CreatePersonalAPIKeyInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.CreatePersonalAPIKeyPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.CreatePersonalAPIKeyPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOCreatePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createPersonalAPIKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "personalAPIKeyEdge":
|
|
return ec.fieldContext_CreatePersonalAPIKeyPayload_personalAPIKeyEdge(ctx, field)
|
|
case "token":
|
|
return ec.fieldContext_CreatePersonalAPIKeyPayload_token(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreatePersonalAPIKeyPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_createPersonalAPIKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_revokePersonalAPIKey(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_revokePersonalAPIKey,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().RevokePersonalAPIKey(ctx, fc.Args["input"].(types.RevokePersonalAPIKeyInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.RevokePersonalAPIKeyPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.RevokePersonalAPIKeyPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalORevokePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_revokePersonalAPIKey(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "personalAPIKeyId":
|
|
return ec.fieldContext_RevokePersonalAPIKeyPayload_personalAPIKeyId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RevokePersonalAPIKeyPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_revokePersonalAPIKey_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_createOrganization,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().CreateOrganization(ctx, fc.Args["input"].(types.CreateOrganizationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.CreateOrganizationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.CreateOrganizationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOCreateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "organization":
|
|
return ec.fieldContext_CreateOrganizationPayload_organization(ctx, field)
|
|
case "profile":
|
|
return ec.fieldContext_CreateOrganizationPayload_profile(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateOrganizationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_createOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_updateOrganization,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().UpdateOrganization(ctx, fc.Args["input"].(types.UpdateOrganizationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.UpdateOrganizationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.UpdateOrganizationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOUpdateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "organization":
|
|
return ec.fieldContext_UpdateOrganizationPayload_organization(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateOrganizationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_updateOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_deleteOrganization,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().DeleteOrganization(ctx, fc.Args["input"].(types.DeleteOrganizationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.DeleteOrganizationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.DeleteOrganizationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalODeleteOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "deletedOrganizationId":
|
|
return ec.fieldContext_DeleteOrganizationPayload_deletedOrganizationId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteOrganizationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_deleteOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteOrganizationHorizontalLogo(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_deleteOrganizationHorizontalLogo,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().DeleteOrganizationHorizontalLogo(ctx, fc.Args["input"].(types.DeleteOrganizationHorizontalLogoInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.DeleteOrganizationHorizontalLogoPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.DeleteOrganizationHorizontalLogoPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalODeleteOrganizationHorizontalLogoPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteOrganizationHorizontalLogo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "organization":
|
|
return ec.fieldContext_DeleteOrganizationHorizontalLogoPayload_organization(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteOrganizationHorizontalLogoPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_deleteOrganizationHorizontalLogo_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_createUser,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().CreateUser(ctx, fc.Args["input"].(types.CreateUserInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.CreateUserPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.CreateUserPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOCreateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "profileEdge":
|
|
return ec.fieldContext_CreateUserPayload_profileEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateUserPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_inviteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_inviteUser,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().InviteUser(ctx, fc.Args["input"].(types.InviteUserInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.InviteUserPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.InviteUserPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOInviteUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_inviteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "invitationEdge":
|
|
return ec.fieldContext_InviteUserPayload_invitationEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type InviteUserPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_inviteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deactivateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_deactivateUser,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().DeactivateUser(ctx, fc.Args["input"].(types.DeactivateUserInput))
|
|
},
|
|
nil,
|
|
ec.marshalODeactivateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deactivateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "success":
|
|
return ec.fieldContext_DeactivateUserPayload_success(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeactivateUserPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_deactivateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_updateUser,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().UpdateUser(ctx, fc.Args["input"].(types.UpdateUserInput))
|
|
},
|
|
nil,
|
|
ec.marshalNUpdateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserPayload,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "profile":
|
|
return ec.fieldContext_UpdateUserPayload_profile(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateUserPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_updateMembership,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().UpdateMembership(ctx, fc.Args["input"].(types.UpdateMembershipInput))
|
|
},
|
|
nil,
|
|
ec.marshalNUpdateMembershipPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipPayload,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "membership":
|
|
return ec.fieldContext_UpdateMembershipPayload_membership(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateMembershipPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_updateMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_removeUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_removeUser,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().RemoveUser(ctx, fc.Args["input"].(types.RemoveUserInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.RemoveUserPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.RemoveUserPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalORemoveUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_removeUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "deletedProfileId":
|
|
return ec.fieldContext_RemoveUserPayload_deletedProfileId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RemoveUserPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_removeUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_createSAMLConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().CreateSAMLConfiguration(ctx, fc.Args["input"].(types.CreateSAMLConfigurationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.CreateSAMLConfigurationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.CreateSAMLConfigurationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOCreateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "samlConfigurationEdge":
|
|
return ec.fieldContext_CreateSAMLConfigurationPayload_samlConfigurationEdge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateSAMLConfigurationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_createSAMLConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_updateSAMLConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().UpdateSAMLConfiguration(ctx, fc.Args["input"].(types.UpdateSAMLConfigurationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.UpdateSAMLConfigurationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.UpdateSAMLConfigurationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOUpdateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "samlConfiguration":
|
|
return ec.fieldContext_UpdateSAMLConfigurationPayload_samlConfiguration(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateSAMLConfigurationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_updateSAMLConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_deleteSAMLConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().DeleteSAMLConfiguration(ctx, fc.Args["input"].(types.DeleteSAMLConfigurationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.DeleteSAMLConfigurationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.DeleteSAMLConfigurationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalODeleteSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteSAMLConfiguration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "deletedSamlConfigurationId":
|
|
return ec.fieldContext_DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteSAMLConfigurationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_deleteSAMLConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_createSCIMConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_createSCIMConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().CreateSCIMConfiguration(ctx, fc.Args["input"].(types.CreateSCIMConfigurationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.CreateSCIMConfigurationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.CreateSCIMConfigurationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOCreateSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_createSCIMConfiguration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_CreateSCIMConfigurationPayload_scimConfiguration(ctx, field)
|
|
case "scimBridge":
|
|
return ec.fieldContext_CreateSCIMConfigurationPayload_scimBridge(ctx, field)
|
|
case "token":
|
|
return ec.fieldContext_CreateSCIMConfigurationPayload_token(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type CreateSCIMConfigurationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_createSCIMConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_deleteSCIMConfiguration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_deleteSCIMConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().DeleteSCIMConfiguration(ctx, fc.Args["input"].(types.DeleteSCIMConfigurationInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.DeleteSCIMConfigurationPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.DeleteSCIMConfigurationPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalODeleteSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_deleteSCIMConfiguration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "deletedScimConfigurationId":
|
|
return ec.fieldContext_DeleteSCIMConfigurationPayload_deletedScimConfigurationId(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type DeleteSCIMConfigurationPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_deleteSCIMConfiguration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_regenerateSCIMToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_regenerateSCIMToken,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().RegenerateSCIMToken(ctx, fc.Args["input"].(types.RegenerateSCIMTokenInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.RegenerateSCIMTokenPayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.RegenerateSCIMTokenPayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalORegenerateSCIMTokenPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenPayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_regenerateSCIMToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_RegenerateSCIMTokenPayload_scimConfiguration(ctx, field)
|
|
case "token":
|
|
return ec.fieldContext_RegenerateSCIMTokenPayload_token(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type RegenerateSCIMTokenPayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_regenerateSCIMToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Mutation_updateSCIMBridge(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Mutation_updateSCIMBridge,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Mutation().UpdateSCIMBridge(ctx, fc.Args["input"].(types.UpdateSCIMBridgeInput))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.UpdateSCIMBridgePayload
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.UpdateSCIMBridgePayload
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOUpdateSCIMBridgePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgePayload,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Mutation_updateSCIMBridge(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "scimBridge":
|
|
return ec.fieldContext_UpdateSCIMBridgePayload_scimBridge(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type UpdateSCIMBridgePayload", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Mutation_updateSCIMBridge_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_logoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_logoUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Organization().LogoURL(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_logoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_horizontalLogoUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_horizontalLogoUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Organization().HorizontalLogoURL(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_horizontalLogoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_email(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_email,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Email, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_websiteUrl(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_websiteUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.WebsiteURL, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_websiteUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_headquarterAddress(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_headquarterAddress,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.HeadquarterAddress, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_headquarterAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_profiles(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_profiles,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Organization().Profiles(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.ProfileOrderBy))
|
|
},
|
|
nil,
|
|
ec.marshalOProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_profiles(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "totalCount":
|
|
return ec.fieldContext_ProfileConnection_totalCount(ctx, field)
|
|
case "edges":
|
|
return ec.fieldContext_ProfileConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_ProfileConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProfileConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Organization_profiles_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_samlConfigurations(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_samlConfigurations,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Organization().SamlConfigurations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey))
|
|
},
|
|
nil,
|
|
ec.marshalOSAMLConfigurationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_samlConfigurations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_SAMLConfigurationConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_SAMLConfigurationConnection_pageInfo(ctx, field)
|
|
case "totalCount":
|
|
return ec.fieldContext_SAMLConfigurationConnection_totalCount(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SAMLConfigurationConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Organization_samlConfigurations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_scimConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Organization().ScimConfiguration(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMConfiguration_id(ctx, field)
|
|
case "endpointUrl":
|
|
return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_SCIMConfiguration_organization(ctx, field)
|
|
case "bridge":
|
|
return ec.fieldContext_SCIMConfiguration_bridge(ctx, field)
|
|
case "events":
|
|
return ec.fieldContext_SCIMConfiguration_events(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMConfiguration_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_viewer(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_viewer,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Organization().Viewer(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_viewer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Profile_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Profile_fullName(ctx, field)
|
|
case "emailAddress":
|
|
return ec.fieldContext_Profile_emailAddress(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_Profile_source(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Profile_state(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_Profile_kind(ctx, field)
|
|
case "position":
|
|
return ec.fieldContext_Profile_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_Profile_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_Profile_contractEndDate(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Profile_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Profile_updatedAt(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Profile_identity(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Profile_organization(ctx, field)
|
|
case "membership":
|
|
return ec.fieldContext_Profile_membership(ctx, field)
|
|
case "pendingInvitations":
|
|
return ec.fieldContext_Profile_pendingInvitations(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Profile_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Organization_permission(ctx context.Context, field graphql.CollectedField, obj *types.Organization) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Organization_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Organization().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Organization_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Organization",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Organization_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _OrganizationSessionCreated_session(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationSessionCreated) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_OrganizationSessionCreated_session,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Session, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_OrganizationSessionCreated_session(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "OrganizationSessionCreated",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Session_id(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Session_identity(ctx, field)
|
|
case "ipAddress":
|
|
return ec.fieldContext_Session_ipAddress(ctx, field)
|
|
case "userAgent":
|
|
return ec.fieldContext_Session_userAgent(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Session_updatedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Session_createdAt(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_Session_expiresAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Session_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Session", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _OrganizationSessionCreated_membership(ctx context.Context, field graphql.CollectedField, obj *types.OrganizationSessionCreated) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_OrganizationSessionCreated_membership,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Membership, nil
|
|
},
|
|
nil,
|
|
ec.marshalNMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_OrganizationSessionCreated_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "OrganizationSessionCreated",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Membership_id(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Membership_createdAt(ctx, field)
|
|
case "role":
|
|
return ec.fieldContext_Membership_role(ctx, field)
|
|
case "lastSession":
|
|
return ec.fieldContext_Membership_lastSession(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Membership_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Membership", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PageInfo_hasNextPage,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.HasNextPage, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PageInfo_hasPreviousPage,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.HasPreviousPage, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PageInfo_startCursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.StartCursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *types.PageInfo) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PageInfo_endCursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.EndCursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PageInfo",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PasswordRequired_reason(ctx context.Context, field graphql.CollectedField, obj *types.PasswordRequired) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PasswordRequired_reason,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Reason, nil
|
|
},
|
|
nil,
|
|
ec.marshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PasswordRequired_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PasswordRequired",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ReauthenticationReason does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_id(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_name(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_expiresAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ExpiresAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_lastUsedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.LastUsedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalODatetime2ᚖtimeᚐTime,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_token(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_token,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.PersonalAPIKey().Token(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey_permission(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKey) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKey_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.PersonalAPIKey().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKey_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKey",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_PersonalAPIKey_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKeyConnection_edges,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Edges, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPersonalAPIKeyEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdgeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKeyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKeyConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_PersonalAPIKeyEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_PersonalAPIKeyEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKeyEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKeyConnection_pageInfo,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PageInfo, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKeyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKeyConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKeyConnection_totalCount,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.PersonalAPIKeyConnection().TotalCount(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOInt2ᚖint,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKeyConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKeyConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKeyEdge_node,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Node, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPersonalAPIKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKeyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKeyEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_PersonalAPIKey_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_PersonalAPIKey_name(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_PersonalAPIKey_expiresAt(ctx, field)
|
|
case "lastUsedAt":
|
|
return ec.fieldContext_PersonalAPIKey_lastUsedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_PersonalAPIKey_createdAt(ctx, field)
|
|
case "token":
|
|
return ec.fieldContext_PersonalAPIKey_token(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_PersonalAPIKey_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PersonalAPIKey", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.PersonalAPIKeyEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_PersonalAPIKeyEdge_cursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Cursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_PersonalAPIKeyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "PersonalAPIKeyEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_id(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_fullName(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_fullName,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.FullName, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_emailAddress(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_emailAddress,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.EmailAddress, nil
|
|
},
|
|
nil,
|
|
ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_emailAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type EmailAddr does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_source(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_source,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Source, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_state(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_state,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.State, nil
|
|
},
|
|
nil,
|
|
ec.marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ProfileState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_additionalEmailAddresses(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_additionalEmailAddresses,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.AdditionalEmailAddresses, nil
|
|
},
|
|
nil,
|
|
ec.marshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_additionalEmailAddresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type EmailAddr does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_kind(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_kind,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Kind, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_position(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_position,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Position, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_position(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_contractStartDate(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_contractStartDate,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ContractStartDate, nil
|
|
},
|
|
nil,
|
|
ec.marshalODatetime2ᚖtimeᚐTime,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_contractStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_contractEndDate(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_contractEndDate,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ContractEndDate, nil
|
|
},
|
|
nil,
|
|
ec.marshalODatetime2ᚖtimeᚐTime,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_contractEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_identity(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_identity,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Profile().Identity(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Identity_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Identity_email(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Identity_fullName(ctx, field)
|
|
case "emailVerified":
|
|
return ec.fieldContext_Identity_emailVerified(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Identity_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Identity_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Identity_profiles(ctx, field)
|
|
case "sessions":
|
|
return ec.fieldContext_Identity_sessions(ctx, field)
|
|
case "personalAPIKeys":
|
|
return ec.fieldContext_Identity_personalAPIKeys(ctx, field)
|
|
case "ssoLoginURL":
|
|
return ec.fieldContext_Identity_ssoLoginURL(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Identity_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_organization(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_organization,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Profile().Organization(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "horizontalLogoUrl":
|
|
return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Organization_email(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Organization_description(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Organization_websiteUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Organization_headquarterAddress(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Organization_profiles(ctx, field)
|
|
case "samlConfigurations":
|
|
return ec.fieldContext_Organization_samlConfigurations(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_Organization_scimConfiguration(ctx, field)
|
|
case "viewer":
|
|
return ec.fieldContext_Organization_viewer(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Organization_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_membership(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_membership,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Profile().Membership(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Membership_id(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Membership_createdAt(ctx, field)
|
|
case "role":
|
|
return ec.fieldContext_Membership_role(ctx, field)
|
|
case "lastSession":
|
|
return ec.fieldContext_Membership_lastSession(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Membership_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Membership", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_pendingInvitations(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_pendingInvitations,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Profile().PendingInvitations(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.InvitationOrderBy))
|
|
},
|
|
nil,
|
|
ec.marshalOInvitationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_pendingInvitations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_InvitationConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_InvitationConnection_pageInfo(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type InvitationConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Profile_pendingInvitations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Profile_permission(ctx context.Context, field graphql.CollectedField, obj *types.Profile) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Profile_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Profile().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Profile_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Profile",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Profile_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProfileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ProfileConnection_totalCount,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.ProfileConnection().TotalCount(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOInt2ᚖint,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProfileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProfileConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProfileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ProfileConnection_edges,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Edges, nil
|
|
},
|
|
nil,
|
|
ec.marshalNProfileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdgeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProfileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProfileConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "cursor":
|
|
return ec.fieldContext_ProfileEdge_cursor(ctx, field)
|
|
case "node":
|
|
return ec.fieldContext_ProfileEdge_node(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type ProfileEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProfileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.ProfileConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ProfileConnection_pageInfo,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PageInfo, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProfileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProfileConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProfileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.ProfileEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ProfileEdge_cursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Cursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProfileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProfileEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ProfileEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.ProfileEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ProfileEdge_node,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Node, nil
|
|
},
|
|
nil,
|
|
ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ProfileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ProfileEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Profile_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Profile_fullName(ctx, field)
|
|
case "emailAddress":
|
|
return ec.fieldContext_Profile_emailAddress(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_Profile_source(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Profile_state(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_Profile_kind(ctx, field)
|
|
case "position":
|
|
return ec.fieldContext_Profile_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_Profile_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_Profile_contractEndDate(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Profile_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Profile_updatedAt(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Profile_identity(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Profile_organization(ctx, field)
|
|
case "membership":
|
|
return ec.fieldContext_Profile_membership(ctx, field)
|
|
case "pendingInvitations":
|
|
return ec.fieldContext_Profile_pendingInvitations(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Profile_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Query_node,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(gid.GID))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal types.Node
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal types.Node
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalONode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐNode,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Query",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Query_viewer,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Query().Viewer(ctx)
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal *types.Identity
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *types.Identity
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query_viewer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Query",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Identity_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Identity_email(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Identity_fullName(ctx, field)
|
|
case "emailVerified":
|
|
return ec.fieldContext_Identity_emailVerified(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Identity_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Identity_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Identity_profiles(ctx, field)
|
|
case "sessions":
|
|
return ec.fieldContext_Identity_sessions(ctx, field)
|
|
case "personalAPIKeys":
|
|
return ec.fieldContext_Identity_personalAPIKeys(ctx, field)
|
|
case "ssoLoginURL":
|
|
return ec.fieldContext_Identity_ssoLoginURL(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Identity_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query_ssoLoginURL(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Query_ssoLoginURL,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Query().SsoLoginURL(ctx, fc.Args["email"].(mail.Addr))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "OPTIONAL")
|
|
if err != nil {
|
|
var zeroVal *string
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal *string
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, nil, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query_ssoLoginURL(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Query",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Query_ssoLoginURL_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Query___type,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.IntrospectType(fc.Args["name"].(string))
|
|
},
|
|
nil,
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Query",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Query___schema,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.IntrospectSchema()
|
|
},
|
|
nil,
|
|
ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Query",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "description":
|
|
return ec.fieldContext___Schema_description(ctx, field)
|
|
case "types":
|
|
return ec.fieldContext___Schema_types(ctx, field)
|
|
case "queryType":
|
|
return ec.fieldContext___Schema_queryType(ctx, field)
|
|
case "mutationType":
|
|
return ec.fieldContext___Schema_mutationType(ctx, field)
|
|
case "subscriptionType":
|
|
return ec.fieldContext___Schema_subscriptionType(ctx, field)
|
|
case "directives":
|
|
return ec.fieldContext___Schema_directives(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RegenerateSCIMTokenPayload_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.RegenerateSCIMTokenPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_RegenerateSCIMTokenPayload_scimConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ScimConfiguration, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RegenerateSCIMTokenPayload_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RegenerateSCIMTokenPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMConfiguration_id(ctx, field)
|
|
case "endpointUrl":
|
|
return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_SCIMConfiguration_organization(ctx, field)
|
|
case "bridge":
|
|
return ec.fieldContext_SCIMConfiguration_bridge(ctx, field)
|
|
case "events":
|
|
return ec.fieldContext_SCIMConfiguration_events(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMConfiguration_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RegenerateSCIMTokenPayload_token(ctx context.Context, field graphql.CollectedField, obj *types.RegenerateSCIMTokenPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_RegenerateSCIMTokenPayload_token,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Token, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RegenerateSCIMTokenPayload_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RegenerateSCIMTokenPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RemoveUserPayload_deletedProfileId(ctx context.Context, field graphql.CollectedField, obj *types.RemoveUserPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_RemoveUserPayload_deletedProfileId,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeletedProfileID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RemoveUserPayload_deletedProfileId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RemoveUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _ResetPasswordPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.ResetPasswordPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_ResetPasswordPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_ResetPasswordPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "ResetPasswordPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RevokeAllSessionsPayload_revokedCount(ctx context.Context, field graphql.CollectedField, obj *types.RevokeAllSessionsPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_RevokeAllSessionsPayload_revokedCount,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.RevokedCount, nil
|
|
},
|
|
nil,
|
|
ec.marshalNInt2int,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RevokeAllSessionsPayload_revokedCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RevokeAllSessionsPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RevokePersonalAPIKeyPayload_personalAPIKeyId(ctx context.Context, field graphql.CollectedField, obj *types.RevokePersonalAPIKeyPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_RevokePersonalAPIKeyPayload_personalAPIKeyId,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PersonalAPIKeyID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RevokePersonalAPIKeyPayload_personalAPIKeyId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RevokePersonalAPIKeyPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _RevokeSessionPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.RevokeSessionPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_RevokeSessionPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_RevokeSessionPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "RevokeSessionPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLAttributeMappings_email(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLAttributeMappings_email,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Email, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLAttributeMappings_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLAttributeMappings",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLAttributeMappings_firstName(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLAttributeMappings_firstName,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.FirstName, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLAttributeMappings_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLAttributeMappings",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLAttributeMappings_lastName(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLAttributeMappings_lastName,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.LastName, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLAttributeMappings_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLAttributeMappings",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLAttributeMappings_role(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAttributeMappings) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLAttributeMappings_role,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Role, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLAttributeMappings_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLAttributeMappings",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLAuthenticationRequired_reason(ctx context.Context, field graphql.CollectedField, obj *types.SAMLAuthenticationRequired) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLAuthenticationRequired_reason,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Reason, nil
|
|
},
|
|
nil,
|
|
ec.marshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLAuthenticationRequired_reason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLAuthenticationRequired",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ReauthenticationReason does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_id(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_emailDomain(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_emailDomain,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.EmailDomain, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_emailDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_enforcementPolicy(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_enforcementPolicy,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.EnforcementPolicy, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_enforcementPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type SAMLEnforcementPolicy does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_domainVerifiedAt(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_domainVerifiedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DomainVerifiedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalODatetime2ᚖtimeᚐTime,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_domainVerifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_domainVerificationToken(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_domainVerificationToken,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DomainVerificationToken, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_domainVerificationToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_idpEntityId(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_idpEntityId,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IdpEntityID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_idpEntityId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_idpSsoUrl(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_idpSsoUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IdpSsoURL, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_idpSsoUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_idpCertificate(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_idpCertificate,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IdpCertificate, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_idpCertificate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_autoSignupEnabled(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_autoSignupEnabled,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.AutoSignupEnabled, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_autoSignupEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_testLoginUrl(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_testLoginUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SAMLConfiguration().TestLoginURL(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_testLoginUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_attributeMappings(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_attributeMappings,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.AttributeMappings, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSAMLAttributeMappings2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappings,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_attributeMappings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "email":
|
|
return ec.fieldContext_SAMLAttributeMappings_email(ctx, field)
|
|
case "firstName":
|
|
return ec.fieldContext_SAMLAttributeMappings_firstName(ctx, field)
|
|
case "lastName":
|
|
return ec.fieldContext_SAMLAttributeMappings_lastName(ctx, field)
|
|
case "role":
|
|
return ec.fieldContext_SAMLAttributeMappings_role(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SAMLAttributeMappings", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration_permission(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfiguration_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.SAMLConfiguration().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfiguration_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_SAMLConfiguration_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfigurationConnection_edges,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Edges, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSAMLConfigurationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdgeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfigurationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfigurationConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_SAMLConfigurationEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_SAMLConfigurationEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SAMLConfigurationEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfigurationConnection_pageInfo,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PageInfo, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfigurationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfigurationConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfigurationConnection_totalCount,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SAMLConfigurationConnection().TotalCount(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOInt2ᚖint,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfigurationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfigurationConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfigurationEdge_node,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Node, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfigurationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfigurationEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SAMLConfiguration_id(ctx, field)
|
|
case "emailDomain":
|
|
return ec.fieldContext_SAMLConfiguration_emailDomain(ctx, field)
|
|
case "enforcementPolicy":
|
|
return ec.fieldContext_SAMLConfiguration_enforcementPolicy(ctx, field)
|
|
case "domainVerifiedAt":
|
|
return ec.fieldContext_SAMLConfiguration_domainVerifiedAt(ctx, field)
|
|
case "domainVerificationToken":
|
|
return ec.fieldContext_SAMLConfiguration_domainVerificationToken(ctx, field)
|
|
case "idpEntityId":
|
|
return ec.fieldContext_SAMLConfiguration_idpEntityId(ctx, field)
|
|
case "idpSsoUrl":
|
|
return ec.fieldContext_SAMLConfiguration_idpSsoUrl(ctx, field)
|
|
case "idpCertificate":
|
|
return ec.fieldContext_SAMLConfiguration_idpCertificate(ctx, field)
|
|
case "autoSignupEnabled":
|
|
return ec.fieldContext_SAMLConfiguration_autoSignupEnabled(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SAMLConfiguration_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SAMLConfiguration_updatedAt(ctx, field)
|
|
case "testLoginUrl":
|
|
return ec.fieldContext_SAMLConfiguration_testLoginUrl(ctx, field)
|
|
case "attributeMappings":
|
|
return ec.fieldContext_SAMLConfiguration_attributeMappings(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SAMLConfiguration_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SAMLConfiguration", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SAMLConfigurationEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SAMLConfigurationEdge_cursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Cursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SAMLConfigurationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SAMLConfigurationEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_id(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_state(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_state,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.State, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type SCIMBridgeState does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_scimConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_scimConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SCIMBridge().ScimConfiguration(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_scimConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMConfiguration_id(ctx, field)
|
|
case "endpointUrl":
|
|
return ec.fieldContext_SCIMConfiguration_endpointUrl(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMConfiguration_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMConfiguration_updatedAt(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_SCIMConfiguration_organization(ctx, field)
|
|
case "bridge":
|
|
return ec.fieldContext_SCIMConfiguration_bridge(ctx, field)
|
|
case "events":
|
|
return ec.fieldContext_SCIMConfiguration_events(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMConfiguration_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMConfiguration", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_connector(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_connector,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SCIMBridge().Connector(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOConnector2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐConnector,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_connector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Connector_id(ctx, field)
|
|
case "provider":
|
|
return ec.fieldContext_Connector_provider(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Connector_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Connector_updatedAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Connector_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Connector", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_type(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_type,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Type, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type SCIMBridgeType does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_excludedUserNames(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_excludedUserNames,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ExcludedUserNames, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2ᚕstringᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_excludedUserNames(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMBridge_permission(ctx context.Context, field graphql.CollectedField, obj *types.SCIMBridge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMBridge_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.SCIMBridge().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMBridge_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMBridge",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_SCIMBridge_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_id(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_endpointUrl(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_endpointUrl,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SCIMConfiguration().EndpointURL(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_endpointUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_organization(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_organization,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SCIMConfiguration().Organization(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "horizontalLogoUrl":
|
|
return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Organization_email(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Organization_description(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Organization_websiteUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Organization_headquarterAddress(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Organization_profiles(ctx, field)
|
|
case "samlConfigurations":
|
|
return ec.fieldContext_Organization_samlConfigurations(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_Organization_scimConfiguration(ctx, field)
|
|
case "viewer":
|
|
return ec.fieldContext_Organization_viewer(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Organization_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_bridge(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_bridge,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SCIMConfiguration().Bridge(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_bridge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMBridge_id(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_SCIMBridge_state(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_SCIMBridge_scimConfiguration(ctx, field)
|
|
case "connector":
|
|
return ec.fieldContext_SCIMBridge_connector(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext_SCIMBridge_type(ctx, field)
|
|
case "excludedUserNames":
|
|
return ec.fieldContext_SCIMBridge_excludedUserNames(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMBridge_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMBridge_updatedAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMBridge_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMBridge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_events(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_events,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.SCIMConfiguration().Events(ctx, obj, fc.Args["first"].(*int), fc.Args["after"].(*page.CursorKey), fc.Args["last"].(*int), fc.Args["before"].(*page.CursorKey), fc.Args["orderBy"].(*types.SCIMEventOrderBy))
|
|
},
|
|
nil,
|
|
ec.marshalOSCIMEventConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventConnection,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "edges":
|
|
return ec.fieldContext_SCIMEventConnection_edges(ctx, field)
|
|
case "pageInfo":
|
|
return ec.fieldContext_SCIMEventConnection_pageInfo(ctx, field)
|
|
case "totalCount":
|
|
return ec.fieldContext_SCIMEventConnection_totalCount(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMEventConnection", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_SCIMConfiguration_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration_permission(ctx context.Context, field graphql.CollectedField, obj *types.SCIMConfiguration) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMConfiguration_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.SCIMConfiguration().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMConfiguration_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMConfiguration",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_SCIMConfiguration_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_id(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_method(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_method,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Method, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_path(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_path,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Path, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_statusCode(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_statusCode,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.StatusCode, nil
|
|
},
|
|
nil,
|
|
ec.marshalNInt2int,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_statusCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_requestBody(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_requestBody,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.RequestBody, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_requestBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_responseBody(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_responseBody,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ResponseBody, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_responseBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_errorMessage(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_errorMessage,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ErrorMessage, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_errorMessage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_userName(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_userName,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UserName, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_userName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_ipAddress(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_ipAddress,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IPAddress, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_ipAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEvent_permission(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEvent) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEvent_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.SCIMEvent().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEvent_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEvent",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_SCIMEvent_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEventConnection_edges,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Edges, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMEventEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdgeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEventConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_SCIMEventEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_SCIMEventEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMEventEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEventConnection_pageInfo,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PageInfo, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEventConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEventConnection_totalCount,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SCIMEventConnection().TotalCount(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOInt2ᚖint,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEventConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEventEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEventEdge_node,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Node, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEvent,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEventEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMEvent_id(ctx, field)
|
|
case "method":
|
|
return ec.fieldContext_SCIMEvent_method(ctx, field)
|
|
case "path":
|
|
return ec.fieldContext_SCIMEvent_path(ctx, field)
|
|
case "statusCode":
|
|
return ec.fieldContext_SCIMEvent_statusCode(ctx, field)
|
|
case "requestBody":
|
|
return ec.fieldContext_SCIMEvent_requestBody(ctx, field)
|
|
case "responseBody":
|
|
return ec.fieldContext_SCIMEvent_responseBody(ctx, field)
|
|
case "errorMessage":
|
|
return ec.fieldContext_SCIMEvent_errorMessage(ctx, field)
|
|
case "userName":
|
|
return ec.fieldContext_SCIMEvent_userName(ctx, field)
|
|
case "ipAddress":
|
|
return ec.fieldContext_SCIMEvent_ipAddress(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMEvent_createdAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMEvent_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMEvent", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SCIMEventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SCIMEventEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SCIMEventEdge_cursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Cursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SCIMEventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SCIMEventEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_id(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_id,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ID, nil
|
|
},
|
|
nil,
|
|
ec.marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type ID does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_identity(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_identity,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.Session().Identity(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Identity_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Identity_email(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Identity_fullName(ctx, field)
|
|
case "emailVerified":
|
|
return ec.fieldContext_Identity_emailVerified(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Identity_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Identity_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Identity_profiles(ctx, field)
|
|
case "sessions":
|
|
return ec.fieldContext_Identity_sessions(ctx, field)
|
|
case "personalAPIKeys":
|
|
return ec.fieldContext_Identity_personalAPIKeys(ctx, field)
|
|
case "ssoLoginURL":
|
|
return ec.fieldContext_Identity_ssoLoginURL(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Identity_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_ipAddress(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_ipAddress,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IPAddress, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_ipAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_userAgent(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_userAgent,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UserAgent, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_userAgent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_updatedAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_updatedAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.UpdatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_createdAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_createdAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.CreatedAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_expiresAt(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_expiresAt,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ExpiresAt, nil
|
|
},
|
|
nil,
|
|
ec.marshalNDatetime2timeᚐTime,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Datetime does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _Session_permission(ctx context.Context, field graphql.CollectedField, obj *types.Session) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_Session_permission,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return ec.Resolvers.Session().Permission(ctx, obj, fc.Args["action"].(string))
|
|
},
|
|
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
|
|
directive0 := next
|
|
|
|
directive1 := func(ctx context.Context) (any, error) {
|
|
required, err := ec.unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx, "PRESENT")
|
|
if err != nil {
|
|
var zeroVal bool
|
|
return zeroVal, err
|
|
}
|
|
if ec.Directives.Session == nil {
|
|
var zeroVal bool
|
|
return zeroVal, errors.New("directive session is not implemented")
|
|
}
|
|
return ec.Directives.Session(ctx, obj, directive0, required)
|
|
}
|
|
|
|
next = directive1
|
|
return next
|
|
},
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_Session_permission(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "Session",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field_Session_permission_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SessionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *types.SessionConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SessionConnection_edges,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Edges, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSessionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdgeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SessionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SessionConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "node":
|
|
return ec.fieldContext_SessionEdge_node(ctx, field)
|
|
case "cursor":
|
|
return ec.fieldContext_SessionEdge_cursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SessionEdge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SessionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *types.SessionConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SessionConnection_pageInfo,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PageInfo, nil
|
|
},
|
|
nil,
|
|
ec.marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SessionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SessionConnection",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "hasNextPage":
|
|
return ec.fieldContext_PageInfo_hasNextPage(ctx, field)
|
|
case "hasPreviousPage":
|
|
return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field)
|
|
case "startCursor":
|
|
return ec.fieldContext_PageInfo_startCursor(ctx, field)
|
|
case "endCursor":
|
|
return ec.fieldContext_PageInfo_endCursor(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SessionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *types.SessionConnection) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SessionConnection_totalCount,
|
|
func(ctx context.Context) (any, error) {
|
|
return ec.Resolvers.SessionConnection().TotalCount(ctx, obj)
|
|
},
|
|
nil,
|
|
ec.marshalOInt2ᚖint,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SessionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SessionConnection",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: true,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Int does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SessionEdge_node(ctx context.Context, field graphql.CollectedField, obj *types.SessionEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SessionEdge_node,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Node, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SessionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SessionEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Session_id(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Session_identity(ctx, field)
|
|
case "ipAddress":
|
|
return ec.fieldContext_Session_ipAddress(ctx, field)
|
|
case "userAgent":
|
|
return ec.fieldContext_Session_userAgent(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Session_updatedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Session_createdAt(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_Session_expiresAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Session_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Session", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SessionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *types.SessionEdge) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SessionEdge_cursor,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Cursor, nil
|
|
},
|
|
nil,
|
|
ec.marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SessionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SessionEdge",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type CursorKey does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SignInPayload_identity(ctx context.Context, field graphql.CollectedField, obj *types.SignInPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SignInPayload_identity,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Identity, nil
|
|
},
|
|
nil,
|
|
ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SignInPayload_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SignInPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Identity_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Identity_email(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Identity_fullName(ctx, field)
|
|
case "emailVerified":
|
|
return ec.fieldContext_Identity_emailVerified(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Identity_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Identity_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Identity_profiles(ctx, field)
|
|
case "sessions":
|
|
return ec.fieldContext_Identity_sessions(ctx, field)
|
|
case "personalAPIKeys":
|
|
return ec.fieldContext_Identity_personalAPIKeys(ctx, field)
|
|
case "ssoLoginURL":
|
|
return ec.fieldContext_Identity_ssoLoginURL(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Identity_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SignInPayload_session(ctx context.Context, field graphql.CollectedField, obj *types.SignInPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SignInPayload_session,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Session, nil
|
|
},
|
|
nil,
|
|
ec.marshalOSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SignInPayload_session(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SignInPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Session_id(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Session_identity(ctx, field)
|
|
case "ipAddress":
|
|
return ec.fieldContext_Session_ipAddress(ctx, field)
|
|
case "userAgent":
|
|
return ec.fieldContext_Session_userAgent(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Session_updatedAt(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Session_createdAt(ctx, field)
|
|
case "expiresAt":
|
|
return ec.fieldContext_Session_expiresAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Session_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Session", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SignOutPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.SignOutPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SignOutPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SignOutPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SignOutPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _SignUpPayload_identity(ctx context.Context, field graphql.CollectedField, obj *types.SignUpPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_SignUpPayload_identity,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Identity, nil
|
|
},
|
|
nil,
|
|
ec.marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_SignUpPayload_identity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "SignUpPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Identity_id(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Identity_email(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Identity_fullName(ctx, field)
|
|
case "emailVerified":
|
|
return ec.fieldContext_Identity_emailVerified(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Identity_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Identity_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Identity_profiles(ctx, field)
|
|
case "sessions":
|
|
return ec.fieldContext_Identity_sessions(ctx, field)
|
|
case "personalAPIKeys":
|
|
return ec.fieldContext_Identity_personalAPIKeys(ctx, field)
|
|
case "ssoLoginURL":
|
|
return ec.fieldContext_Identity_ssoLoginURL(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Identity_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Identity", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateMembershipPayload_membership(ctx context.Context, field graphql.CollectedField, obj *types.UpdateMembershipPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_UpdateMembershipPayload_membership,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Membership, nil
|
|
},
|
|
nil,
|
|
ec.marshalNMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateMembershipPayload_membership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateMembershipPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Membership_id(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Membership_createdAt(ctx, field)
|
|
case "role":
|
|
return ec.fieldContext_Membership_role(ctx, field)
|
|
case "lastSession":
|
|
return ec.fieldContext_Membership_lastSession(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Membership_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Membership", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateOrganizationPayload_organization(ctx context.Context, field graphql.CollectedField, obj *types.UpdateOrganizationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_UpdateOrganizationPayload_organization,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Organization, nil
|
|
},
|
|
nil,
|
|
ec.marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateOrganizationPayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateOrganizationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Organization_id(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext_Organization_name(ctx, field)
|
|
case "logoUrl":
|
|
return ec.fieldContext_Organization_logoUrl(ctx, field)
|
|
case "horizontalLogoUrl":
|
|
return ec.fieldContext_Organization_horizontalLogoUrl(ctx, field)
|
|
case "email":
|
|
return ec.fieldContext_Organization_email(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext_Organization_description(ctx, field)
|
|
case "websiteUrl":
|
|
return ec.fieldContext_Organization_websiteUrl(ctx, field)
|
|
case "headquarterAddress":
|
|
return ec.fieldContext_Organization_headquarterAddress(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Organization_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Organization_updatedAt(ctx, field)
|
|
case "profiles":
|
|
return ec.fieldContext_Organization_profiles(ctx, field)
|
|
case "samlConfigurations":
|
|
return ec.fieldContext_Organization_samlConfigurations(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_Organization_scimConfiguration(ctx, field)
|
|
case "viewer":
|
|
return ec.fieldContext_Organization_viewer(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Organization_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateSAMLConfigurationPayload_samlConfiguration(ctx context.Context, field graphql.CollectedField, obj *types.UpdateSAMLConfigurationPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_UpdateSAMLConfigurationPayload_samlConfiguration,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.SamlConfiguration, nil
|
|
},
|
|
nil,
|
|
ec.marshalOSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateSAMLConfigurationPayload_samlConfiguration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateSAMLConfigurationPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SAMLConfiguration_id(ctx, field)
|
|
case "emailDomain":
|
|
return ec.fieldContext_SAMLConfiguration_emailDomain(ctx, field)
|
|
case "enforcementPolicy":
|
|
return ec.fieldContext_SAMLConfiguration_enforcementPolicy(ctx, field)
|
|
case "domainVerifiedAt":
|
|
return ec.fieldContext_SAMLConfiguration_domainVerifiedAt(ctx, field)
|
|
case "domainVerificationToken":
|
|
return ec.fieldContext_SAMLConfiguration_domainVerificationToken(ctx, field)
|
|
case "idpEntityId":
|
|
return ec.fieldContext_SAMLConfiguration_idpEntityId(ctx, field)
|
|
case "idpSsoUrl":
|
|
return ec.fieldContext_SAMLConfiguration_idpSsoUrl(ctx, field)
|
|
case "idpCertificate":
|
|
return ec.fieldContext_SAMLConfiguration_idpCertificate(ctx, field)
|
|
case "autoSignupEnabled":
|
|
return ec.fieldContext_SAMLConfiguration_autoSignupEnabled(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SAMLConfiguration_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SAMLConfiguration_updatedAt(ctx, field)
|
|
case "testLoginUrl":
|
|
return ec.fieldContext_SAMLConfiguration_testLoginUrl(ctx, field)
|
|
case "attributeMappings":
|
|
return ec.fieldContext_SAMLConfiguration_attributeMappings(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SAMLConfiguration_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SAMLConfiguration", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateSCIMBridgePayload_scimBridge(ctx context.Context, field graphql.CollectedField, obj *types.UpdateSCIMBridgePayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_UpdateSCIMBridgePayload_scimBridge,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.ScimBridge, nil
|
|
},
|
|
nil,
|
|
ec.marshalNSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateSCIMBridgePayload_scimBridge(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateSCIMBridgePayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_SCIMBridge_id(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_SCIMBridge_state(ctx, field)
|
|
case "scimConfiguration":
|
|
return ec.fieldContext_SCIMBridge_scimConfiguration(ctx, field)
|
|
case "connector":
|
|
return ec.fieldContext_SCIMBridge_connector(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext_SCIMBridge_type(ctx, field)
|
|
case "excludedUserNames":
|
|
return ec.fieldContext_SCIMBridge_excludedUserNames(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_SCIMBridge_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_SCIMBridge_updatedAt(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_SCIMBridge_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type SCIMBridge", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _UpdateUserPayload_profile(ctx context.Context, field graphql.CollectedField, obj *types.UpdateUserPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_UpdateUserPayload_profile,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Profile, nil
|
|
},
|
|
nil,
|
|
ec.marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_UpdateUserPayload_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "UpdateUserPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "id":
|
|
return ec.fieldContext_Profile_id(ctx, field)
|
|
case "fullName":
|
|
return ec.fieldContext_Profile_fullName(ctx, field)
|
|
case "emailAddress":
|
|
return ec.fieldContext_Profile_emailAddress(ctx, field)
|
|
case "source":
|
|
return ec.fieldContext_Profile_source(ctx, field)
|
|
case "state":
|
|
return ec.fieldContext_Profile_state(ctx, field)
|
|
case "additionalEmailAddresses":
|
|
return ec.fieldContext_Profile_additionalEmailAddresses(ctx, field)
|
|
case "kind":
|
|
return ec.fieldContext_Profile_kind(ctx, field)
|
|
case "position":
|
|
return ec.fieldContext_Profile_position(ctx, field)
|
|
case "contractStartDate":
|
|
return ec.fieldContext_Profile_contractStartDate(ctx, field)
|
|
case "contractEndDate":
|
|
return ec.fieldContext_Profile_contractEndDate(ctx, field)
|
|
case "createdAt":
|
|
return ec.fieldContext_Profile_createdAt(ctx, field)
|
|
case "updatedAt":
|
|
return ec.fieldContext_Profile_updatedAt(ctx, field)
|
|
case "identity":
|
|
return ec.fieldContext_Profile_identity(ctx, field)
|
|
case "organization":
|
|
return ec.fieldContext_Profile_organization(ctx, field)
|
|
case "membership":
|
|
return ec.fieldContext_Profile_membership(ctx, field)
|
|
case "pendingInvitations":
|
|
return ec.fieldContext_Profile_pendingInvitations(ctx, field)
|
|
case "permission":
|
|
return ec.fieldContext_Profile_permission(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type Profile", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) _VerifyEmailPayload_success(ctx context.Context, field graphql.CollectedField, obj *types.VerifyEmailPayload) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext_VerifyEmailPayload_success,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Success, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext_VerifyEmailPayload_success(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "VerifyEmailPayload",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Directive_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Directive",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Directive_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Directive",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Directive_isRepeatable,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IsRepeatable, nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Directive",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Directive_locations,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Locations, nil
|
|
},
|
|
nil,
|
|
ec.marshalN__DirectiveLocation2ᚕstringᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Directive",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type __DirectiveLocation does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Directive_args,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Args, nil
|
|
},
|
|
nil,
|
|
ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Directive",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "name":
|
|
return ec.fieldContext___InputValue_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___InputValue_description(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext___InputValue_type(ctx, field)
|
|
case "defaultValue":
|
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
case "isDeprecated":
|
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
case "deprecationReason":
|
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___EnumValue_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___EnumValue_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___EnumValue_isDeprecated,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IsDeprecated(), nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___EnumValue_deprecationReason,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeprecationReason(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__EnumValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Field_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Field_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Field_args,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Args, nil
|
|
},
|
|
nil,
|
|
ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "name":
|
|
return ec.fieldContext___InputValue_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___InputValue_description(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext___InputValue_type(ctx, field)
|
|
case "defaultValue":
|
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
case "isDeprecated":
|
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
case "deprecationReason":
|
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Field_type,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Type, nil
|
|
},
|
|
nil,
|
|
ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Field_isDeprecated,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IsDeprecated(), nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Field_deprecationReason,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeprecationReason(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Field",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___InputValue_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name, nil
|
|
},
|
|
nil,
|
|
ec.marshalNString2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___InputValue_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___InputValue_type,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Type, nil
|
|
},
|
|
nil,
|
|
ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___InputValue_defaultValue,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DefaultValue, nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: false,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___InputValue_isDeprecated,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IsDeprecated(), nil
|
|
},
|
|
nil,
|
|
ec.marshalNBoolean2bool,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___InputValue_deprecationReason,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.DeprecationReason(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__InputValue",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Schema_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Schema",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Schema_types,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Types(), nil
|
|
},
|
|
nil,
|
|
ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Schema",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Schema_queryType,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.QueryType(), nil
|
|
},
|
|
nil,
|
|
ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Schema",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Schema_mutationType,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.MutationType(), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Schema",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Schema_subscriptionType,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.SubscriptionType(), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Schema",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Schema_directives,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Directives(), nil
|
|
},
|
|
nil,
|
|
ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Schema",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "name":
|
|
return ec.fieldContext___Directive_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Directive_description(ctx, field)
|
|
case "isRepeatable":
|
|
return ec.fieldContext___Directive_isRepeatable(ctx, field)
|
|
case "locations":
|
|
return ec.fieldContext___Directive_locations(ctx, field)
|
|
case "args":
|
|
return ec.fieldContext___Directive_args(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_kind,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Kind(), nil
|
|
},
|
|
nil,
|
|
ec.marshalN__TypeKind2string,
|
|
true,
|
|
true,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type __TypeKind does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_name,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Name(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_description,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Description(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_specifiedByURL,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.SpecifiedByURL(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOString2ᚖstring,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type String does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_fields,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "name":
|
|
return ec.fieldContext___Field_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Field_description(ctx, field)
|
|
case "args":
|
|
return ec.fieldContext___Field_args(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext___Field_type(ctx, field)
|
|
case "isDeprecated":
|
|
return ec.fieldContext___Field_isDeprecated(ctx, field)
|
|
case "deprecationReason":
|
|
return ec.fieldContext___Field_deprecationReason(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_interfaces,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.Interfaces(), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_possibleTypes,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.PossibleTypes(), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_enumValues,
|
|
func(ctx context.Context) (any, error) {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "name":
|
|
return ec.fieldContext___EnumValue_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___EnumValue_description(ctx, field)
|
|
case "isDeprecated":
|
|
return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
|
|
case "deprecationReason":
|
|
return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
|
|
},
|
|
}
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
err = ec.Recover(ctx, r)
|
|
ec.Error(ctx, err)
|
|
}
|
|
}()
|
|
ctx = graphql.WithFieldContext(ctx, fc)
|
|
if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
|
|
ec.Error(ctx, err)
|
|
return fc, err
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_inputFields,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.InputFields(), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "name":
|
|
return ec.fieldContext___InputValue_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___InputValue_description(ctx, field)
|
|
case "type":
|
|
return ec.fieldContext___InputValue_type(ctx, field)
|
|
case "defaultValue":
|
|
return ec.fieldContext___InputValue_defaultValue(ctx, field)
|
|
case "isDeprecated":
|
|
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
|
|
case "deprecationReason":
|
|
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_ofType,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.OfType(), nil
|
|
},
|
|
nil,
|
|
ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
switch field.Name {
|
|
case "kind":
|
|
return ec.fieldContext___Type_kind(ctx, field)
|
|
case "name":
|
|
return ec.fieldContext___Type_name(ctx, field)
|
|
case "description":
|
|
return ec.fieldContext___Type_description(ctx, field)
|
|
case "specifiedByURL":
|
|
return ec.fieldContext___Type_specifiedByURL(ctx, field)
|
|
case "fields":
|
|
return ec.fieldContext___Type_fields(ctx, field)
|
|
case "interfaces":
|
|
return ec.fieldContext___Type_interfaces(ctx, field)
|
|
case "possibleTypes":
|
|
return ec.fieldContext___Type_possibleTypes(ctx, field)
|
|
case "enumValues":
|
|
return ec.fieldContext___Type_enumValues(ctx, field)
|
|
case "inputFields":
|
|
return ec.fieldContext___Type_inputFields(ctx, field)
|
|
case "ofType":
|
|
return ec.fieldContext___Type_ofType(ctx, field)
|
|
case "isOneOf":
|
|
return ec.fieldContext___Type_isOneOf(ctx, field)
|
|
}
|
|
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
|
|
return graphql.ResolveField(
|
|
ctx,
|
|
ec.OperationContext,
|
|
field,
|
|
ec.fieldContext___Type_isOneOf,
|
|
func(ctx context.Context) (any, error) {
|
|
return obj.IsOneOf(), nil
|
|
},
|
|
nil,
|
|
ec.marshalOBoolean2bool,
|
|
true,
|
|
false,
|
|
)
|
|
}
|
|
|
|
func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
|
|
fc = &graphql.FieldContext{
|
|
Object: "__Type",
|
|
Field: field,
|
|
IsMethod: true,
|
|
IsResolver: false,
|
|
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
|
|
return nil, errors.New("field of type Boolean does not have child fields")
|
|
},
|
|
}
|
|
return fc, nil
|
|
}
|
|
|
|
// endregion **************************** field.gotpl *****************************
|
|
|
|
// region **************************** input.gotpl *****************************
|
|
|
|
func (ec *executionContext) unmarshalInputActivateAccountInput(ctx context.Context, obj any) (types.ActivateAccountInput, error) {
|
|
var it types.ActivateAccountInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"token"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "token":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Token = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputActivateUserInput(ctx context.Context, obj any) (types.ActivateUserInput, error) {
|
|
var it types.ActivateUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "profileId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "profileId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ProfileID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputAssumeOrganizationSessionInput(ctx context.Context, obj any) (types.AssumeOrganizationSessionInput, error) {
|
|
var it types.AssumeOrganizationSessionInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "continue"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "continue":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("continue"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Continue = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputChangeEmailInput(ctx context.Context, obj any) (types.ChangeEmailInput, error) {
|
|
var it types.ChangeEmailInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"newEmail", "password"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "newEmail":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newEmail"))
|
|
data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.NewEmail = data
|
|
case "password":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Password = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputChangePasswordInput(ctx context.Context, obj any) (types.ChangePasswordInput, error) {
|
|
var it types.ChangePasswordInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"currentPassword", "newPassword"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "currentPassword":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("currentPassword"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.CurrentPassword = data
|
|
case "newPassword":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("newPassword"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.NewPassword = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Context, obj any) (types.CreateOrganizationInput, error) {
|
|
var it types.CreateOrganizationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"name", "logoFile", "horizontalLogoFile"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "logoFile":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LogoFile = data
|
|
case "horizontalLogoFile":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("horizontalLogoFile"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.HorizontalLogoFile = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreatePersonalAPIKeyInput(ctx context.Context, obj any) (types.CreatePersonalAPIKeyInput, error) {
|
|
var it types.CreatePersonalAPIKeyInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"name", "expiresAt"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "expiresAt":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt"))
|
|
data, err := ec.unmarshalNDatetime2timeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExpiresAt = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateSAMLConfigurationInput(ctx context.Context, obj any) (types.CreateSAMLConfigurationInput, error) {
|
|
var it types.CreateSAMLConfigurationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "emailDomain", "idpEntityId", "idpSsoUrl", "idpCertificate", "autoSignupEnabled", "attributeMappings"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "emailDomain":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailDomain"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EmailDomain = data
|
|
case "idpEntityId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpEntityId"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.IdpEntityID = data
|
|
case "idpSsoUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpSsoUrl"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.IdpSsoURL = data
|
|
case "idpCertificate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpCertificate"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.IdpCertificate = data
|
|
case "autoSignupEnabled":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoSignupEnabled"))
|
|
data, err := ec.unmarshalNBoolean2bool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AutoSignupEnabled = data
|
|
case "attributeMappings":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attributeMappings"))
|
|
data, err := ec.unmarshalOSAMLAttributeMappingsInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappingsInput(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AttributeMappings = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateSCIMConfigurationInput(ctx context.Context, obj any) (types.CreateSCIMConfigurationInput, error) {
|
|
var it types.CreateSCIMConfigurationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "connectorId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "connectorId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorId"))
|
|
data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ConnectorID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj any) (types.CreateUserInput, error) {
|
|
var it types.CreateUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "fullName", "emailAddress", "role", "additionalEmailAddresses", "kind", "position", "contractStartDate", "contractEndDate"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "fullName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FullName = data
|
|
case "emailAddress":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailAddress"))
|
|
data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EmailAddress = data
|
|
case "role":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role"))
|
|
data, err := ec.unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Role = data
|
|
case "additionalEmailAddresses":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalEmailAddresses"))
|
|
data, err := ec.unmarshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AdditionalEmailAddresses = data
|
|
case "kind":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Kind = data
|
|
case "position":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("position"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Position = data
|
|
case "contractStartDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractStartDate = graphql.OmittableOf(data)
|
|
case "contractEndDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractEndDate = graphql.OmittableOf(data)
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeactivateUserInput(ctx context.Context, obj any) (types.DeactivateUserInput, error) {
|
|
var it types.DeactivateUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "profileId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "profileId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ProfileID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteOrganizationHorizontalLogoInput(ctx context.Context, obj any) (types.DeleteOrganizationHorizontalLogoInput, error) {
|
|
var it types.DeleteOrganizationHorizontalLogoInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteOrganizationInput(ctx context.Context, obj any) (types.DeleteOrganizationInput, error) {
|
|
var it types.DeleteOrganizationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteSAMLConfigurationInput(ctx context.Context, obj any) (types.DeleteSAMLConfigurationInput, error) {
|
|
var it types.DeleteSAMLConfigurationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "samlConfigurationId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "samlConfigurationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("samlConfigurationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SamlConfigurationID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputDeleteSCIMConfigurationInput(ctx context.Context, obj any) (types.DeleteSCIMConfigurationInput, error) {
|
|
var it types.DeleteSCIMConfigurationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "scimConfigurationId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "scimConfigurationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scimConfigurationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ScimConfigurationID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputForgotPasswordInput(ctx context.Context, obj any) (types.ForgotPasswordInput, error) {
|
|
var it types.ForgotPasswordInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"email"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputInvitationOrder(ctx context.Context, obj any) (types.InvitationOrderBy, error) {
|
|
var it types.InvitationOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputInviteUserInput(ctx context.Context, obj any) (types.InviteUserInput, error) {
|
|
var it types.InviteUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "profileId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "profileId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ProfileID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputProfileFilter(ctx context.Context, obj any) (types.ProfileFilter, error) {
|
|
var it types.ProfileFilter
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"excludeContractEnded", "state"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "excludeContractEnded":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludeContractEnded"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExcludeContractEnded = data
|
|
case "state":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("state"))
|
|
data, err := ec.unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.State = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputProfileOrder(ctx context.Context, obj any) (types.ProfileOrderBy, error) {
|
|
var it types.ProfileOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRegenerateSCIMTokenInput(ctx context.Context, obj any) (types.RegenerateSCIMTokenInput, error) {
|
|
var it types.RegenerateSCIMTokenInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "scimConfigurationId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "scimConfigurationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scimConfigurationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ScimConfigurationID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRemoveUserInput(ctx context.Context, obj any) (types.RemoveUserInput, error) {
|
|
var it types.RemoveUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "profileId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "profileId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profileId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ProfileID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputResetPasswordInput(ctx context.Context, obj any) (types.ResetPasswordInput, error) {
|
|
var it types.ResetPasswordInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"token", "password"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "token":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Token = data
|
|
case "password":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Password = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRevokePersonalAPIKeyInput(ctx context.Context, obj any) (types.RevokePersonalAPIKeyInput, error) {
|
|
var it types.RevokePersonalAPIKeyInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"personalAPIKeyId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "personalAPIKeyId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAPIKeyId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.PersonalAPIKeyID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputRevokeSessionInput(ctx context.Context, obj any) (types.RevokeSessionInput, error) {
|
|
var it types.RevokeSessionInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"sessionId"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "sessionId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sessionId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SessionID = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputSAMLAttributeMappingsInput(ctx context.Context, obj any) (types.SAMLAttributeMappingsInput, error) {
|
|
var it types.SAMLAttributeMappingsInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"email", "firstName", "lastName", "role"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
case "firstName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FirstName = data
|
|
case "lastName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LastName = data
|
|
case "role":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Role = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputSCIMEventOrder(ctx context.Context, obj any) (types.SCIMEventOrderBy, error) {
|
|
var it types.SCIMEventOrderBy
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputSessionOrder(ctx context.Context, obj any) (types.SessionOrder, error) {
|
|
var it types.SessionOrder
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"direction", "field"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "direction":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("direction"))
|
|
data, err := ec.unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Direction = data
|
|
case "field":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field"))
|
|
data, err := ec.unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Field = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputSignInInput(ctx context.Context, obj any) (types.SignInInput, error) {
|
|
var it types.SignInInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "email", "password"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
case "password":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Password = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputSignUpInput(ctx context.Context, obj any) (types.SignUpInput, error) {
|
|
var it types.SignUpInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"email", "password", "fullName"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = data
|
|
case "password":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Password = data
|
|
case "fullName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FullName = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateMembershipInput(ctx context.Context, obj any) (types.UpdateMembershipInput, error) {
|
|
var it types.UpdateMembershipInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "membershipId", "role"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "membershipId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("membershipId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.MembershipID = data
|
|
case "role":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role"))
|
|
data, err := ec.unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Role = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Context, obj any) (types.UpdateOrganizationInput, error) {
|
|
var it types.UpdateOrganizationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "name", "logoFile", "horizontalLogoFile", "description", "websiteUrl", "email", "headquarterAddress"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "name":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Name = data
|
|
case "logoFile":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoFile"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.LogoFile = data
|
|
case "horizontalLogoFile":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("horizontalLogoFile"))
|
|
data, err := ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.HorizontalLogoFile = data
|
|
case "description":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Description = graphql.OmittableOf(data)
|
|
case "websiteUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("websiteUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.WebsiteURL = graphql.OmittableOf(data)
|
|
case "email":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Email = graphql.OmittableOf(data)
|
|
case "headquarterAddress":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("headquarterAddress"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.HeadquarterAddress = graphql.OmittableOf(data)
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateSAMLConfigurationInput(ctx context.Context, obj any) (types.UpdateSAMLConfigurationInput, error) {
|
|
var it types.UpdateSAMLConfigurationInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "samlConfigurationId", "idpEntityId", "idpSsoUrl", "idpCertificate", "autoSignupEnabled", "enforcementPolicy", "attributeMappings"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "samlConfigurationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("samlConfigurationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.SamlConfigurationID = data
|
|
case "idpEntityId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpEntityId"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.IdpEntityID = data
|
|
case "idpSsoUrl":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpSsoUrl"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.IdpSsoURL = data
|
|
case "idpCertificate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idpCertificate"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.IdpCertificate = data
|
|
case "autoSignupEnabled":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoSignupEnabled"))
|
|
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AutoSignupEnabled = data
|
|
case "enforcementPolicy":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enforcementPolicy"))
|
|
data, err := ec.unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.EnforcementPolicy = data
|
|
case "attributeMappings":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attributeMappings"))
|
|
data, err := ec.unmarshalOSAMLAttributeMappingsInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappingsInput(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AttributeMappings = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateSCIMBridgeInput(ctx context.Context, obj any) (types.UpdateSCIMBridgeInput, error) {
|
|
var it types.UpdateSCIMBridgeInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"organizationId", "scimBridgeId", "excludedUserNames"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "organizationId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.OrganizationID = data
|
|
case "scimBridgeId":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scimBridgeId"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ScimBridgeID = data
|
|
case "excludedUserNames":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludedUserNames"))
|
|
data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ExcludedUserNames = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj any) (types.UpdateUserInput, error) {
|
|
var it types.UpdateUserInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"id", "fullName", "additionalEmailAddresses", "kind", "position", "contractStartDate", "contractEndDate"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "id":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id"))
|
|
data, err := ec.unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ID = data
|
|
case "fullName":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.FullName = data
|
|
case "additionalEmailAddresses":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("additionalEmailAddresses"))
|
|
data, err := ec.unmarshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.AdditionalEmailAddresses = data
|
|
case "kind":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Kind = data
|
|
case "position":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("position"))
|
|
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Position = data
|
|
case "contractStartDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractStartDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractStartDate = graphql.OmittableOf(data)
|
|
case "contractEndDate":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contractEndDate"))
|
|
data, err := ec.unmarshalODatetime2ᚖtimeᚐTime(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.ContractEndDate = graphql.OmittableOf(data)
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalInputVerifyEmailInput(ctx context.Context, obj any) (types.VerifyEmailInput, error) {
|
|
var it types.VerifyEmailInput
|
|
asMap := map[string]any{}
|
|
for k, v := range obj.(map[string]any) {
|
|
asMap[k] = v
|
|
}
|
|
|
|
fieldsInOrder := [...]string{"token"}
|
|
for _, k := range fieldsInOrder {
|
|
v, ok := asMap[k]
|
|
if !ok {
|
|
continue
|
|
}
|
|
switch k {
|
|
case "token":
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
|
|
data, err := ec.unmarshalNString2string(ctx, v)
|
|
if err != nil {
|
|
return it, err
|
|
}
|
|
it.Token = data
|
|
}
|
|
}
|
|
return it, nil
|
|
}
|
|
|
|
// endregion **************************** input.gotpl *****************************
|
|
|
|
// region ************************** interface.gotpl ***************************
|
|
|
|
func (ec *executionContext) _AssumeOrganizationSessionResult(ctx context.Context, sel ast.SelectionSet, obj types.AssumeOrganizationSessionResult) graphql.Marshaler {
|
|
switch obj := (obj).(type) {
|
|
case nil:
|
|
return graphql.Null
|
|
case types.SAMLAuthenticationRequired:
|
|
return ec._SAMLAuthenticationRequired(ctx, sel, &obj)
|
|
case *types.SAMLAuthenticationRequired:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLAuthenticationRequired(ctx, sel, obj)
|
|
case types.PasswordRequired:
|
|
return ec._PasswordRequired(ctx, sel, &obj)
|
|
case *types.PasswordRequired:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._PasswordRequired(ctx, sel, obj)
|
|
case types.OrganizationSessionCreated:
|
|
return ec._OrganizationSessionCreated(ctx, sel, &obj)
|
|
case *types.OrganizationSessionCreated:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._OrganizationSessionCreated(ctx, sel, obj)
|
|
default:
|
|
if typedObj, ok := obj.(graphql.Marshaler); ok {
|
|
return typedObj
|
|
} else {
|
|
panic(fmt.Errorf("unexpected type %T; non-generated variants of AssumeOrganizationSessionResult must implement graphql.Marshaler", obj))
|
|
}
|
|
}
|
|
}
|
|
|
|
func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj types.Node) graphql.Marshaler {
|
|
switch obj := (obj).(type) {
|
|
case nil:
|
|
return graphql.Null
|
|
case types.Session:
|
|
return ec._Session(ctx, sel, &obj)
|
|
case *types.Session:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Session(ctx, sel, obj)
|
|
case types.SCIMEvent:
|
|
return ec._SCIMEvent(ctx, sel, &obj)
|
|
case *types.SCIMEvent:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMEvent(ctx, sel, obj)
|
|
case types.SCIMConfiguration:
|
|
return ec._SCIMConfiguration(ctx, sel, &obj)
|
|
case *types.SCIMConfiguration:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMConfiguration(ctx, sel, obj)
|
|
case types.SCIMBridge:
|
|
return ec._SCIMBridge(ctx, sel, &obj)
|
|
case *types.SCIMBridge:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMBridge(ctx, sel, obj)
|
|
case types.SAMLConfiguration:
|
|
return ec._SAMLConfiguration(ctx, sel, &obj)
|
|
case *types.SAMLConfiguration:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLConfiguration(ctx, sel, obj)
|
|
case types.Profile:
|
|
return ec._Profile(ctx, sel, &obj)
|
|
case *types.Profile:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Profile(ctx, sel, obj)
|
|
case types.PersonalAPIKey:
|
|
return ec._PersonalAPIKey(ctx, sel, &obj)
|
|
case *types.PersonalAPIKey:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._PersonalAPIKey(ctx, sel, obj)
|
|
case types.Organization:
|
|
return ec._Organization(ctx, sel, &obj)
|
|
case *types.Organization:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Organization(ctx, sel, obj)
|
|
case types.Membership:
|
|
return ec._Membership(ctx, sel, &obj)
|
|
case *types.Membership:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Membership(ctx, sel, obj)
|
|
case types.Invitation:
|
|
return ec._Invitation(ctx, sel, &obj)
|
|
case *types.Invitation:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Invitation(ctx, sel, obj)
|
|
case types.Identity:
|
|
return ec._Identity(ctx, sel, &obj)
|
|
case *types.Identity:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Identity(ctx, sel, obj)
|
|
case types.Connector:
|
|
return ec._Connector(ctx, sel, &obj)
|
|
case *types.Connector:
|
|
if obj == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Connector(ctx, sel, obj)
|
|
default:
|
|
if typedObj, ok := obj.(graphql.Marshaler); ok {
|
|
return typedObj
|
|
} else {
|
|
panic(fmt.Errorf("unexpected type %T; non-generated variants of Node must implement graphql.Marshaler", obj))
|
|
}
|
|
}
|
|
}
|
|
|
|
// endregion ************************** interface.gotpl ***************************
|
|
|
|
// region **************************** object.gotpl ****************************
|
|
|
|
var activateAccountPayloadImplementors = []string{"ActivateAccountPayload"}
|
|
|
|
func (ec *executionContext) _ActivateAccountPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ActivateAccountPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, activateAccountPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ActivateAccountPayload")
|
|
case "createPasswordToken":
|
|
out.Values[i] = ec._ActivateAccountPayload_createPasswordToken(ctx, field, obj)
|
|
case "ssoLoginUrl":
|
|
out.Values[i] = ec._ActivateAccountPayload_ssoLoginUrl(ctx, field, obj)
|
|
case "profile":
|
|
out.Values[i] = ec._ActivateAccountPayload_profile(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var assumeOrganizationSessionPayloadImplementors = []string{"AssumeOrganizationSessionPayload"}
|
|
|
|
func (ec *executionContext) _AssumeOrganizationSessionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.AssumeOrganizationSessionPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, assumeOrganizationSessionPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("AssumeOrganizationSessionPayload")
|
|
case "result":
|
|
out.Values[i] = ec._AssumeOrganizationSessionPayload_result(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var changeEmailPayloadImplementors = []string{"ChangeEmailPayload"}
|
|
|
|
func (ec *executionContext) _ChangeEmailPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ChangeEmailPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, changeEmailPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ChangeEmailPayload")
|
|
case "success":
|
|
out.Values[i] = ec._ChangeEmailPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var changePasswordPayloadImplementors = []string{"ChangePasswordPayload"}
|
|
|
|
func (ec *executionContext) _ChangePasswordPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ChangePasswordPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, changePasswordPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ChangePasswordPayload")
|
|
case "success":
|
|
out.Values[i] = ec._ChangePasswordPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var connectorImplementors = []string{"Connector", "Node"}
|
|
|
|
func (ec *executionContext) _Connector(ctx context.Context, sel ast.SelectionSet, obj *types.Connector) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, connectorImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Connector")
|
|
case "id":
|
|
out.Values[i] = ec._Connector_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "provider":
|
|
out.Values[i] = ec._Connector_provider(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Connector_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Connector_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Connector_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createOrganizationPayloadImplementors = []string{"CreateOrganizationPayload"}
|
|
|
|
func (ec *executionContext) _CreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateOrganizationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createOrganizationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateOrganizationPayload")
|
|
case "organization":
|
|
out.Values[i] = ec._CreateOrganizationPayload_organization(ctx, field, obj)
|
|
case "profile":
|
|
out.Values[i] = ec._CreateOrganizationPayload_profile(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createPersonalAPIKeyPayloadImplementors = []string{"CreatePersonalAPIKeyPayload"}
|
|
|
|
func (ec *executionContext) _CreatePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreatePersonalAPIKeyPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createPersonalAPIKeyPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreatePersonalAPIKeyPayload")
|
|
case "personalAPIKeyEdge":
|
|
out.Values[i] = ec._CreatePersonalAPIKeyPayload_personalAPIKeyEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "token":
|
|
out.Values[i] = ec._CreatePersonalAPIKeyPayload_token(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createSAMLConfigurationPayloadImplementors = []string{"CreateSAMLConfigurationPayload"}
|
|
|
|
func (ec *executionContext) _CreateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateSAMLConfigurationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createSAMLConfigurationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateSAMLConfigurationPayload")
|
|
case "samlConfigurationEdge":
|
|
out.Values[i] = ec._CreateSAMLConfigurationPayload_samlConfigurationEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createSCIMConfigurationPayloadImplementors = []string{"CreateSCIMConfigurationPayload"}
|
|
|
|
func (ec *executionContext) _CreateSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateSCIMConfigurationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createSCIMConfigurationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateSCIMConfigurationPayload")
|
|
case "scimConfiguration":
|
|
out.Values[i] = ec._CreateSCIMConfigurationPayload_scimConfiguration(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "scimBridge":
|
|
out.Values[i] = ec._CreateSCIMConfigurationPayload_scimBridge(ctx, field, obj)
|
|
case "token":
|
|
out.Values[i] = ec._CreateSCIMConfigurationPayload_token(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var createUserPayloadImplementors = []string{"CreateUserPayload"}
|
|
|
|
func (ec *executionContext) _CreateUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.CreateUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, createUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("CreateUserPayload")
|
|
case "profileEdge":
|
|
out.Values[i] = ec._CreateUserPayload_profileEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deactivateUserPayloadImplementors = []string{"DeactivateUserPayload"}
|
|
|
|
func (ec *executionContext) _DeactivateUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeactivateUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deactivateUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeactivateUserPayload")
|
|
case "success":
|
|
out.Values[i] = ec._DeactivateUserPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteOrganizationHorizontalLogoPayloadImplementors = []string{"DeleteOrganizationHorizontalLogoPayload"}
|
|
|
|
func (ec *executionContext) _DeleteOrganizationHorizontalLogoPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteOrganizationHorizontalLogoPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteOrganizationHorizontalLogoPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteOrganizationHorizontalLogoPayload")
|
|
case "organization":
|
|
out.Values[i] = ec._DeleteOrganizationHorizontalLogoPayload_organization(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteOrganizationPayloadImplementors = []string{"DeleteOrganizationPayload"}
|
|
|
|
func (ec *executionContext) _DeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteOrganizationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteOrganizationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteOrganizationPayload")
|
|
case "deletedOrganizationId":
|
|
out.Values[i] = ec._DeleteOrganizationPayload_deletedOrganizationId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteSAMLConfigurationPayloadImplementors = []string{"DeleteSAMLConfigurationPayload"}
|
|
|
|
func (ec *executionContext) _DeleteSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteSAMLConfigurationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteSAMLConfigurationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteSAMLConfigurationPayload")
|
|
case "deletedSamlConfigurationId":
|
|
out.Values[i] = ec._DeleteSAMLConfigurationPayload_deletedSamlConfigurationId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var deleteSCIMConfigurationPayloadImplementors = []string{"DeleteSCIMConfigurationPayload"}
|
|
|
|
func (ec *executionContext) _DeleteSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.DeleteSCIMConfigurationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, deleteSCIMConfigurationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("DeleteSCIMConfigurationPayload")
|
|
case "deletedScimConfigurationId":
|
|
out.Values[i] = ec._DeleteSCIMConfigurationPayload_deletedScimConfigurationId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var forgotPasswordPayloadImplementors = []string{"ForgotPasswordPayload"}
|
|
|
|
func (ec *executionContext) _ForgotPasswordPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ForgotPasswordPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, forgotPasswordPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ForgotPasswordPayload")
|
|
case "success":
|
|
out.Values[i] = ec._ForgotPasswordPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var identityImplementors = []string{"Identity", "Node"}
|
|
|
|
func (ec *executionContext) _Identity(ctx context.Context, sel ast.SelectionSet, obj *types.Identity) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, identityImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Identity")
|
|
case "id":
|
|
out.Values[i] = ec._Identity_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "email":
|
|
out.Values[i] = ec._Identity_email(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "fullName":
|
|
out.Values[i] = ec._Identity_fullName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "emailVerified":
|
|
out.Values[i] = ec._Identity_emailVerified(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Identity_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Identity_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "profiles":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Identity_profiles(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "sessions":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Identity_sessions(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "personalAPIKeys":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Identity_personalAPIKeys(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "ssoLoginURL":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Identity_ssoLoginURL(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Identity_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var invitationImplementors = []string{"Invitation", "Node"}
|
|
|
|
func (ec *executionContext) _Invitation(ctx context.Context, sel ast.SelectionSet, obj *types.Invitation) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, invitationImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Invitation")
|
|
case "id":
|
|
out.Values[i] = ec._Invitation_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "expiresAt":
|
|
out.Values[i] = ec._Invitation_expiresAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "acceptedAt":
|
|
out.Values[i] = ec._Invitation_acceptedAt(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._Invitation_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "status":
|
|
out.Values[i] = ec._Invitation_status(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Invitation_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var invitationConnectionImplementors = []string{"InvitationConnection"}
|
|
|
|
func (ec *executionContext) _InvitationConnection(ctx context.Context, sel ast.SelectionSet, obj *types.InvitationConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, invitationConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("InvitationConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._InvitationConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._InvitationConnection_pageInfo(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var invitationEdgeImplementors = []string{"InvitationEdge"}
|
|
|
|
func (ec *executionContext) _InvitationEdge(ctx context.Context, sel ast.SelectionSet, obj *types.InvitationEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, invitationEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("InvitationEdge")
|
|
case "node":
|
|
out.Values[i] = ec._InvitationEdge_node(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "cursor":
|
|
out.Values[i] = ec._InvitationEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var inviteUserPayloadImplementors = []string{"InviteUserPayload"}
|
|
|
|
func (ec *executionContext) _InviteUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.InviteUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, inviteUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("InviteUserPayload")
|
|
case "invitationEdge":
|
|
out.Values[i] = ec._InviteUserPayload_invitationEdge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var membershipImplementors = []string{"Membership", "Node"}
|
|
|
|
func (ec *executionContext) _Membership(ctx context.Context, sel ast.SelectionSet, obj *types.Membership) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, membershipImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Membership")
|
|
case "id":
|
|
out.Values[i] = ec._Membership_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Membership_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "role":
|
|
out.Values[i] = ec._Membership_role(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "lastSession":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Membership_lastSession(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Membership_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var mutationImplementors = []string{"Mutation"}
|
|
|
|
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
|
|
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
Object: "Mutation",
|
|
})
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
|
|
Object: field.Name,
|
|
Field: field,
|
|
})
|
|
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Mutation")
|
|
case "signIn":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_signIn(ctx, field)
|
|
})
|
|
case "signUp":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_signUp(ctx, field)
|
|
})
|
|
case "signOut":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_signOut(ctx, field)
|
|
})
|
|
case "activateAccount":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_activateAccount(ctx, field)
|
|
})
|
|
case "forgotPassword":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_forgotPassword(ctx, field)
|
|
})
|
|
case "resetPassword":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_resetPassword(ctx, field)
|
|
})
|
|
case "verifyEmail":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_verifyEmail(ctx, field)
|
|
})
|
|
case "changePassword":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_changePassword(ctx, field)
|
|
})
|
|
case "changeEmail":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_changeEmail(ctx, field)
|
|
})
|
|
case "assumeOrganizationSession":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_assumeOrganizationSession(ctx, field)
|
|
})
|
|
case "revokeSession":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_revokeSession(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "revokeAllSessions":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_revokeAllSessions(ctx, field)
|
|
})
|
|
case "createPersonalAPIKey":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createPersonalAPIKey(ctx, field)
|
|
})
|
|
case "revokePersonalAPIKey":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_revokePersonalAPIKey(ctx, field)
|
|
})
|
|
case "createOrganization":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createOrganization(ctx, field)
|
|
})
|
|
case "updateOrganization":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateOrganization(ctx, field)
|
|
})
|
|
case "deleteOrganization":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteOrganization(ctx, field)
|
|
})
|
|
case "deleteOrganizationHorizontalLogo":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteOrganizationHorizontalLogo(ctx, field)
|
|
})
|
|
case "createUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createUser(ctx, field)
|
|
})
|
|
case "inviteUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_inviteUser(ctx, field)
|
|
})
|
|
case "deactivateUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deactivateUser(ctx, field)
|
|
})
|
|
case "updateUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateUser(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "updateMembership":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateMembership(ctx, field)
|
|
})
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "removeUser":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_removeUser(ctx, field)
|
|
})
|
|
case "createSAMLConfiguration":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createSAMLConfiguration(ctx, field)
|
|
})
|
|
case "updateSAMLConfiguration":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateSAMLConfiguration(ctx, field)
|
|
})
|
|
case "deleteSAMLConfiguration":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteSAMLConfiguration(ctx, field)
|
|
})
|
|
case "createSCIMConfiguration":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_createSCIMConfiguration(ctx, field)
|
|
})
|
|
case "deleteSCIMConfiguration":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_deleteSCIMConfiguration(ctx, field)
|
|
})
|
|
case "regenerateSCIMToken":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_regenerateSCIMToken(ctx, field)
|
|
})
|
|
case "updateSCIMBridge":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Mutation_updateSCIMBridge(ctx, field)
|
|
})
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var organizationImplementors = []string{"Organization", "Node"}
|
|
|
|
func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *types.Organization) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Organization")
|
|
case "id":
|
|
out.Values[i] = ec._Organization_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._Organization_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "logoUrl":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_logoUrl(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "horizontalLogoUrl":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_horizontalLogoUrl(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "email":
|
|
out.Values[i] = ec._Organization_email(ctx, field, obj)
|
|
case "description":
|
|
out.Values[i] = ec._Organization_description(ctx, field, obj)
|
|
case "websiteUrl":
|
|
out.Values[i] = ec._Organization_websiteUrl(ctx, field, obj)
|
|
case "headquarterAddress":
|
|
out.Values[i] = ec._Organization_headquarterAddress(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._Organization_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Organization_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "profiles":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_profiles(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "samlConfigurations":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_samlConfigurations(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "scimConfiguration":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_scimConfiguration(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "viewer":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_viewer(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Organization_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var organizationSessionCreatedImplementors = []string{"OrganizationSessionCreated", "AssumeOrganizationSessionResult"}
|
|
|
|
func (ec *executionContext) _OrganizationSessionCreated(ctx context.Context, sel ast.SelectionSet, obj *types.OrganizationSessionCreated) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, organizationSessionCreatedImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("OrganizationSessionCreated")
|
|
case "session":
|
|
out.Values[i] = ec._OrganizationSessionCreated_session(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "membership":
|
|
out.Values[i] = ec._OrganizationSessionCreated_membership(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var pageInfoImplementors = []string{"PageInfo"}
|
|
|
|
func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *types.PageInfo) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PageInfo")
|
|
case "hasNextPage":
|
|
out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "hasPreviousPage":
|
|
out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "startCursor":
|
|
out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj)
|
|
case "endCursor":
|
|
out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var passwordRequiredImplementors = []string{"PasswordRequired", "AssumeOrganizationSessionResult"}
|
|
|
|
func (ec *executionContext) _PasswordRequired(ctx context.Context, sel ast.SelectionSet, obj *types.PasswordRequired) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, passwordRequiredImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PasswordRequired")
|
|
case "reason":
|
|
out.Values[i] = ec._PasswordRequired_reason(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var personalAPIKeyImplementors = []string{"PersonalAPIKey", "Node"}
|
|
|
|
func (ec *executionContext) _PersonalAPIKey(ctx context.Context, sel ast.SelectionSet, obj *types.PersonalAPIKey) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, personalAPIKeyImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PersonalAPIKey")
|
|
case "id":
|
|
out.Values[i] = ec._PersonalAPIKey_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec._PersonalAPIKey_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "expiresAt":
|
|
out.Values[i] = ec._PersonalAPIKey_expiresAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "lastUsedAt":
|
|
out.Values[i] = ec._PersonalAPIKey_lastUsedAt(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._PersonalAPIKey_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "token":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._PersonalAPIKey_token(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._PersonalAPIKey_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var personalAPIKeyConnectionImplementors = []string{"PersonalAPIKeyConnection"}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyConnection(ctx context.Context, sel ast.SelectionSet, obj *types.PersonalAPIKeyConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, personalAPIKeyConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PersonalAPIKeyConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._PersonalAPIKeyConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._PersonalAPIKeyConnection_pageInfo(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "totalCount":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._PersonalAPIKeyConnection_totalCount(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var personalAPIKeyEdgeImplementors = []string{"PersonalAPIKeyEdge"}
|
|
|
|
func (ec *executionContext) _PersonalAPIKeyEdge(ctx context.Context, sel ast.SelectionSet, obj *types.PersonalAPIKeyEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, personalAPIKeyEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("PersonalAPIKeyEdge")
|
|
case "node":
|
|
out.Values[i] = ec._PersonalAPIKeyEdge_node(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "cursor":
|
|
out.Values[i] = ec._PersonalAPIKeyEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var profileImplementors = []string{"Profile", "Node"}
|
|
|
|
func (ec *executionContext) _Profile(ctx context.Context, sel ast.SelectionSet, obj *types.Profile) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, profileImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Profile")
|
|
case "id":
|
|
out.Values[i] = ec._Profile_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "fullName":
|
|
out.Values[i] = ec._Profile_fullName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "emailAddress":
|
|
out.Values[i] = ec._Profile_emailAddress(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "source":
|
|
out.Values[i] = ec._Profile_source(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "state":
|
|
out.Values[i] = ec._Profile_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "additionalEmailAddresses":
|
|
out.Values[i] = ec._Profile_additionalEmailAddresses(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "kind":
|
|
out.Values[i] = ec._Profile_kind(ctx, field, obj)
|
|
case "position":
|
|
out.Values[i] = ec._Profile_position(ctx, field, obj)
|
|
case "contractStartDate":
|
|
out.Values[i] = ec._Profile_contractStartDate(ctx, field, obj)
|
|
case "contractEndDate":
|
|
out.Values[i] = ec._Profile_contractEndDate(ctx, field, obj)
|
|
case "createdAt":
|
|
out.Values[i] = ec._Profile_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Profile_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "identity":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Profile_identity(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "organization":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Profile_organization(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "membership":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Profile_membership(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "pendingInvitations":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Profile_pendingInvitations(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Profile_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var profileConnectionImplementors = []string{"ProfileConnection"}
|
|
|
|
func (ec *executionContext) _ProfileConnection(ctx context.Context, sel ast.SelectionSet, obj *types.ProfileConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, profileConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ProfileConnection")
|
|
case "totalCount":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._ProfileConnection_totalCount(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "edges":
|
|
out.Values[i] = ec._ProfileConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._ProfileConnection_pageInfo(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var profileEdgeImplementors = []string{"ProfileEdge"}
|
|
|
|
func (ec *executionContext) _ProfileEdge(ctx context.Context, sel ast.SelectionSet, obj *types.ProfileEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, profileEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ProfileEdge")
|
|
case "cursor":
|
|
out.Values[i] = ec._ProfileEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "node":
|
|
out.Values[i] = ec._ProfileEdge_node(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var queryImplementors = []string{"Query"}
|
|
|
|
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
|
|
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
|
|
Object: "Query",
|
|
})
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
|
|
Object: field.Name,
|
|
Field: field,
|
|
})
|
|
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Query")
|
|
case "node":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Query_node(ctx, field)
|
|
return res
|
|
}
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
|
case "viewer":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Query_viewer(ctx, field)
|
|
return res
|
|
}
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
|
case "ssoLoginURL":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Query_ssoLoginURL(ctx, field)
|
|
return res
|
|
}
|
|
|
|
rrm := func(ctx context.Context) graphql.Marshaler {
|
|
return ec.OperationContext.RootResolverMiddleware(ctx,
|
|
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
|
|
case "__type":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Query___type(ctx, field)
|
|
})
|
|
case "__schema":
|
|
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
|
|
return ec._Query___schema(ctx, field)
|
|
})
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var regenerateSCIMTokenPayloadImplementors = []string{"RegenerateSCIMTokenPayload"}
|
|
|
|
func (ec *executionContext) _RegenerateSCIMTokenPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RegenerateSCIMTokenPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, regenerateSCIMTokenPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RegenerateSCIMTokenPayload")
|
|
case "scimConfiguration":
|
|
out.Values[i] = ec._RegenerateSCIMTokenPayload_scimConfiguration(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "token":
|
|
out.Values[i] = ec._RegenerateSCIMTokenPayload_token(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var removeUserPayloadImplementors = []string{"RemoveUserPayload"}
|
|
|
|
func (ec *executionContext) _RemoveUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RemoveUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, removeUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RemoveUserPayload")
|
|
case "deletedProfileId":
|
|
out.Values[i] = ec._RemoveUserPayload_deletedProfileId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var resetPasswordPayloadImplementors = []string{"ResetPasswordPayload"}
|
|
|
|
func (ec *executionContext) _ResetPasswordPayload(ctx context.Context, sel ast.SelectionSet, obj *types.ResetPasswordPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, resetPasswordPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("ResetPasswordPayload")
|
|
case "success":
|
|
out.Values[i] = ec._ResetPasswordPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var revokeAllSessionsPayloadImplementors = []string{"RevokeAllSessionsPayload"}
|
|
|
|
func (ec *executionContext) _RevokeAllSessionsPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RevokeAllSessionsPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, revokeAllSessionsPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RevokeAllSessionsPayload")
|
|
case "revokedCount":
|
|
out.Values[i] = ec._RevokeAllSessionsPayload_revokedCount(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var revokePersonalAPIKeyPayloadImplementors = []string{"RevokePersonalAPIKeyPayload"}
|
|
|
|
func (ec *executionContext) _RevokePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RevokePersonalAPIKeyPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, revokePersonalAPIKeyPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RevokePersonalAPIKeyPayload")
|
|
case "personalAPIKeyId":
|
|
out.Values[i] = ec._RevokePersonalAPIKeyPayload_personalAPIKeyId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var revokeSessionPayloadImplementors = []string{"RevokeSessionPayload"}
|
|
|
|
func (ec *executionContext) _RevokeSessionPayload(ctx context.Context, sel ast.SelectionSet, obj *types.RevokeSessionPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, revokeSessionPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("RevokeSessionPayload")
|
|
case "success":
|
|
out.Values[i] = ec._RevokeSessionPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sAMLAttributeMappingsImplementors = []string{"SAMLAttributeMappings"}
|
|
|
|
func (ec *executionContext) _SAMLAttributeMappings(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLAttributeMappings) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sAMLAttributeMappingsImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SAMLAttributeMappings")
|
|
case "email":
|
|
out.Values[i] = ec._SAMLAttributeMappings_email(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "firstName":
|
|
out.Values[i] = ec._SAMLAttributeMappings_firstName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "lastName":
|
|
out.Values[i] = ec._SAMLAttributeMappings_lastName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "role":
|
|
out.Values[i] = ec._SAMLAttributeMappings_role(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sAMLAuthenticationRequiredImplementors = []string{"SAMLAuthenticationRequired", "AssumeOrganizationSessionResult"}
|
|
|
|
func (ec *executionContext) _SAMLAuthenticationRequired(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLAuthenticationRequired) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sAMLAuthenticationRequiredImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SAMLAuthenticationRequired")
|
|
case "reason":
|
|
out.Values[i] = ec._SAMLAuthenticationRequired_reason(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sAMLConfigurationImplementors = []string{"SAMLConfiguration", "Node"}
|
|
|
|
func (ec *executionContext) _SAMLConfiguration(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLConfiguration) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sAMLConfigurationImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SAMLConfiguration")
|
|
case "id":
|
|
out.Values[i] = ec._SAMLConfiguration_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "emailDomain":
|
|
out.Values[i] = ec._SAMLConfiguration_emailDomain(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "enforcementPolicy":
|
|
out.Values[i] = ec._SAMLConfiguration_enforcementPolicy(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "domainVerifiedAt":
|
|
out.Values[i] = ec._SAMLConfiguration_domainVerifiedAt(ctx, field, obj)
|
|
case "domainVerificationToken":
|
|
out.Values[i] = ec._SAMLConfiguration_domainVerificationToken(ctx, field, obj)
|
|
case "idpEntityId":
|
|
out.Values[i] = ec._SAMLConfiguration_idpEntityId(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "idpSsoUrl":
|
|
out.Values[i] = ec._SAMLConfiguration_idpSsoUrl(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "idpCertificate":
|
|
out.Values[i] = ec._SAMLConfiguration_idpCertificate(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "autoSignupEnabled":
|
|
out.Values[i] = ec._SAMLConfiguration_autoSignupEnabled(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._SAMLConfiguration_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._SAMLConfiguration_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "testLoginUrl":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SAMLConfiguration_testLoginUrl(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "attributeMappings":
|
|
out.Values[i] = ec._SAMLConfiguration_attributeMappings(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SAMLConfiguration_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sAMLConfigurationConnectionImplementors = []string{"SAMLConfigurationConnection"}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLConfigurationConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sAMLConfigurationConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SAMLConfigurationConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._SAMLConfigurationConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._SAMLConfigurationConnection_pageInfo(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "totalCount":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SAMLConfigurationConnection_totalCount(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sAMLConfigurationEdgeImplementors = []string{"SAMLConfigurationEdge"}
|
|
|
|
func (ec *executionContext) _SAMLConfigurationEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SAMLConfigurationEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sAMLConfigurationEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SAMLConfigurationEdge")
|
|
case "node":
|
|
out.Values[i] = ec._SAMLConfigurationEdge_node(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "cursor":
|
|
out.Values[i] = ec._SAMLConfigurationEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sCIMBridgeImplementors = []string{"SCIMBridge", "Node"}
|
|
|
|
func (ec *executionContext) _SCIMBridge(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMBridge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sCIMBridgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SCIMBridge")
|
|
case "id":
|
|
out.Values[i] = ec._SCIMBridge_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "state":
|
|
out.Values[i] = ec._SCIMBridge_state(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "scimConfiguration":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMBridge_scimConfiguration(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "connector":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMBridge_connector(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "type":
|
|
out.Values[i] = ec._SCIMBridge_type(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "excludedUserNames":
|
|
out.Values[i] = ec._SCIMBridge_excludedUserNames(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._SCIMBridge_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._SCIMBridge_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMBridge_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sCIMConfigurationImplementors = []string{"SCIMConfiguration", "Node"}
|
|
|
|
func (ec *executionContext) _SCIMConfiguration(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMConfiguration) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sCIMConfigurationImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SCIMConfiguration")
|
|
case "id":
|
|
out.Values[i] = ec._SCIMConfiguration_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "endpointUrl":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMConfiguration_endpointUrl(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "createdAt":
|
|
out.Values[i] = ec._SCIMConfiguration_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._SCIMConfiguration_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "organization":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMConfiguration_organization(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "bridge":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMConfiguration_bridge(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "events":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMConfiguration_events(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMConfiguration_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sCIMEventImplementors = []string{"SCIMEvent", "Node"}
|
|
|
|
func (ec *executionContext) _SCIMEvent(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMEvent) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sCIMEventImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SCIMEvent")
|
|
case "id":
|
|
out.Values[i] = ec._SCIMEvent_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "method":
|
|
out.Values[i] = ec._SCIMEvent_method(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "path":
|
|
out.Values[i] = ec._SCIMEvent_path(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "statusCode":
|
|
out.Values[i] = ec._SCIMEvent_statusCode(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "requestBody":
|
|
out.Values[i] = ec._SCIMEvent_requestBody(ctx, field, obj)
|
|
case "responseBody":
|
|
out.Values[i] = ec._SCIMEvent_responseBody(ctx, field, obj)
|
|
case "errorMessage":
|
|
out.Values[i] = ec._SCIMEvent_errorMessage(ctx, field, obj)
|
|
case "userName":
|
|
out.Values[i] = ec._SCIMEvent_userName(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "ipAddress":
|
|
out.Values[i] = ec._SCIMEvent_ipAddress(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._SCIMEvent_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMEvent_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sCIMEventConnectionImplementors = []string{"SCIMEventConnection"}
|
|
|
|
func (ec *executionContext) _SCIMEventConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMEventConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sCIMEventConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SCIMEventConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._SCIMEventConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._SCIMEventConnection_pageInfo(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "totalCount":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SCIMEventConnection_totalCount(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sCIMEventEdgeImplementors = []string{"SCIMEventEdge"}
|
|
|
|
func (ec *executionContext) _SCIMEventEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SCIMEventEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sCIMEventEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SCIMEventEdge")
|
|
case "node":
|
|
out.Values[i] = ec._SCIMEventEdge_node(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "cursor":
|
|
out.Values[i] = ec._SCIMEventEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sessionImplementors = []string{"Session", "Node"}
|
|
|
|
func (ec *executionContext) _Session(ctx context.Context, sel ast.SelectionSet, obj *types.Session) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sessionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("Session")
|
|
case "id":
|
|
out.Values[i] = ec._Session_id(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "identity":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Session_identity(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
case "ipAddress":
|
|
out.Values[i] = ec._Session_ipAddress(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "userAgent":
|
|
out.Values[i] = ec._Session_userAgent(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "updatedAt":
|
|
out.Values[i] = ec._Session_updatedAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "createdAt":
|
|
out.Values[i] = ec._Session_createdAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "expiresAt":
|
|
out.Values[i] = ec._Session_expiresAt(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "permission":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._Session_permission(ctx, field, obj)
|
|
if res == graphql.Null {
|
|
atomic.AddUint32(&fs.Invalids, 1)
|
|
}
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sessionConnectionImplementors = []string{"SessionConnection"}
|
|
|
|
func (ec *executionContext) _SessionConnection(ctx context.Context, sel ast.SelectionSet, obj *types.SessionConnection) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sessionConnectionImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SessionConnection")
|
|
case "edges":
|
|
out.Values[i] = ec._SessionConnection_edges(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "pageInfo":
|
|
out.Values[i] = ec._SessionConnection_pageInfo(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
atomic.AddUint32(&out.Invalids, 1)
|
|
}
|
|
case "totalCount":
|
|
field := field
|
|
|
|
innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) {
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ec.Error(ctx, ec.Recover(ctx, r))
|
|
}
|
|
}()
|
|
res = ec._SessionConnection_totalCount(ctx, field, obj)
|
|
return res
|
|
}
|
|
|
|
if field.Deferrable != nil {
|
|
dfs, ok := deferred[field.Deferrable.Label]
|
|
di := 0
|
|
if ok {
|
|
dfs.AddField(field)
|
|
di = len(dfs.Values) - 1
|
|
} else {
|
|
dfs = graphql.NewFieldSet([]graphql.CollectedField{field})
|
|
deferred[field.Deferrable.Label] = dfs
|
|
}
|
|
dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler {
|
|
return innerFunc(ctx, dfs)
|
|
})
|
|
|
|
// don't run the out.Concurrently() call below
|
|
out.Values[i] = graphql.Null
|
|
continue
|
|
}
|
|
|
|
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var sessionEdgeImplementors = []string{"SessionEdge"}
|
|
|
|
func (ec *executionContext) _SessionEdge(ctx context.Context, sel ast.SelectionSet, obj *types.SessionEdge) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, sessionEdgeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SessionEdge")
|
|
case "node":
|
|
out.Values[i] = ec._SessionEdge_node(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "cursor":
|
|
out.Values[i] = ec._SessionEdge_cursor(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var signInPayloadImplementors = []string{"SignInPayload"}
|
|
|
|
func (ec *executionContext) _SignInPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignInPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, signInPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SignInPayload")
|
|
case "identity":
|
|
out.Values[i] = ec._SignInPayload_identity(ctx, field, obj)
|
|
case "session":
|
|
out.Values[i] = ec._SignInPayload_session(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var signOutPayloadImplementors = []string{"SignOutPayload"}
|
|
|
|
func (ec *executionContext) _SignOutPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignOutPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, signOutPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SignOutPayload")
|
|
case "success":
|
|
out.Values[i] = ec._SignOutPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var signUpPayloadImplementors = []string{"SignUpPayload"}
|
|
|
|
func (ec *executionContext) _SignUpPayload(ctx context.Context, sel ast.SelectionSet, obj *types.SignUpPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, signUpPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("SignUpPayload")
|
|
case "identity":
|
|
out.Values[i] = ec._SignUpPayload_identity(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateMembershipPayloadImplementors = []string{"UpdateMembershipPayload"}
|
|
|
|
func (ec *executionContext) _UpdateMembershipPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateMembershipPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateMembershipPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateMembershipPayload")
|
|
case "membership":
|
|
out.Values[i] = ec._UpdateMembershipPayload_membership(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateOrganizationPayloadImplementors = []string{"UpdateOrganizationPayload"}
|
|
|
|
func (ec *executionContext) _UpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateOrganizationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateOrganizationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateOrganizationPayload")
|
|
case "organization":
|
|
out.Values[i] = ec._UpdateOrganizationPayload_organization(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateSAMLConfigurationPayloadImplementors = []string{"UpdateSAMLConfigurationPayload"}
|
|
|
|
func (ec *executionContext) _UpdateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateSAMLConfigurationPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateSAMLConfigurationPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateSAMLConfigurationPayload")
|
|
case "samlConfiguration":
|
|
out.Values[i] = ec._UpdateSAMLConfigurationPayload_samlConfiguration(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateSCIMBridgePayloadImplementors = []string{"UpdateSCIMBridgePayload"}
|
|
|
|
func (ec *executionContext) _UpdateSCIMBridgePayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateSCIMBridgePayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateSCIMBridgePayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateSCIMBridgePayload")
|
|
case "scimBridge":
|
|
out.Values[i] = ec._UpdateSCIMBridgePayload_scimBridge(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var updateUserPayloadImplementors = []string{"UpdateUserPayload"}
|
|
|
|
func (ec *executionContext) _UpdateUserPayload(ctx context.Context, sel ast.SelectionSet, obj *types.UpdateUserPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, updateUserPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("UpdateUserPayload")
|
|
case "profile":
|
|
out.Values[i] = ec._UpdateUserPayload_profile(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var verifyEmailPayloadImplementors = []string{"VerifyEmailPayload"}
|
|
|
|
func (ec *executionContext) _VerifyEmailPayload(ctx context.Context, sel ast.SelectionSet, obj *types.VerifyEmailPayload) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, verifyEmailPayloadImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("VerifyEmailPayload")
|
|
case "success":
|
|
out.Values[i] = ec._VerifyEmailPayload_success(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var __DirectiveImplementors = []string{"__Directive"}
|
|
|
|
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("__Directive")
|
|
case "name":
|
|
out.Values[i] = ec.___Directive_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec.___Directive_description(ctx, field, obj)
|
|
case "isRepeatable":
|
|
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "locations":
|
|
out.Values[i] = ec.___Directive_locations(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "args":
|
|
out.Values[i] = ec.___Directive_args(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var __EnumValueImplementors = []string{"__EnumValue"}
|
|
|
|
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("__EnumValue")
|
|
case "name":
|
|
out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
|
|
case "isDeprecated":
|
|
out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deprecationReason":
|
|
out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var __FieldImplementors = []string{"__Field"}
|
|
|
|
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("__Field")
|
|
case "name":
|
|
out.Values[i] = ec.___Field_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec.___Field_description(ctx, field, obj)
|
|
case "args":
|
|
out.Values[i] = ec.___Field_args(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "type":
|
|
out.Values[i] = ec.___Field_type(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "isDeprecated":
|
|
out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deprecationReason":
|
|
out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var __InputValueImplementors = []string{"__InputValue"}
|
|
|
|
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("__InputValue")
|
|
case "name":
|
|
out.Values[i] = ec.___InputValue_name(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "description":
|
|
out.Values[i] = ec.___InputValue_description(ctx, field, obj)
|
|
case "type":
|
|
out.Values[i] = ec.___InputValue_type(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "defaultValue":
|
|
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
|
|
case "isDeprecated":
|
|
out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "deprecationReason":
|
|
out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var __SchemaImplementors = []string{"__Schema"}
|
|
|
|
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("__Schema")
|
|
case "description":
|
|
out.Values[i] = ec.___Schema_description(ctx, field, obj)
|
|
case "types":
|
|
out.Values[i] = ec.___Schema_types(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "queryType":
|
|
out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "mutationType":
|
|
out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
|
|
case "subscriptionType":
|
|
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
|
|
case "directives":
|
|
out.Values[i] = ec.___Schema_directives(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
var __TypeImplementors = []string{"__Type"}
|
|
|
|
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
|
|
fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
|
|
|
|
out := graphql.NewFieldSet(fields)
|
|
deferred := make(map[string]*graphql.FieldSet)
|
|
for i, field := range fields {
|
|
switch field.Name {
|
|
case "__typename":
|
|
out.Values[i] = graphql.MarshalString("__Type")
|
|
case "kind":
|
|
out.Values[i] = ec.___Type_kind(ctx, field, obj)
|
|
if out.Values[i] == graphql.Null {
|
|
out.Invalids++
|
|
}
|
|
case "name":
|
|
out.Values[i] = ec.___Type_name(ctx, field, obj)
|
|
case "description":
|
|
out.Values[i] = ec.___Type_description(ctx, field, obj)
|
|
case "specifiedByURL":
|
|
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
|
|
case "fields":
|
|
out.Values[i] = ec.___Type_fields(ctx, field, obj)
|
|
case "interfaces":
|
|
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
|
|
case "possibleTypes":
|
|
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
|
|
case "enumValues":
|
|
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
|
|
case "inputFields":
|
|
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
|
|
case "ofType":
|
|
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
|
|
case "isOneOf":
|
|
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
|
|
default:
|
|
panic("unknown field " + strconv.Quote(field.Name))
|
|
}
|
|
}
|
|
out.Dispatch(ctx)
|
|
if out.Invalids > 0 {
|
|
return graphql.Null
|
|
}
|
|
|
|
atomic.AddInt32(&ec.Deferred, int32(len(deferred)))
|
|
|
|
for label, dfs := range deferred {
|
|
ec.ProcessDeferredGroup(graphql.DeferredGroup{
|
|
Label: label,
|
|
Path: graphql.GetPath(ctx),
|
|
FieldSet: dfs,
|
|
Context: ctx,
|
|
})
|
|
}
|
|
|
|
return out
|
|
}
|
|
|
|
// endregion **************************** object.gotpl ****************************
|
|
|
|
// region ***************************** type.gotpl *****************************
|
|
|
|
func (ec *executionContext) unmarshalNActivateAccountInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountInput(ctx context.Context, v any) (types.ActivateAccountInput, error) {
|
|
res, err := ec.unmarshalInputActivateAccountInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNAssumeOrganizationSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionInput(ctx context.Context, v any) (types.AssumeOrganizationSessionInput, error) {
|
|
res, err := ec.unmarshalInputAssumeOrganizationSessionInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNAssumeOrganizationSessionResult2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionResult(ctx context.Context, sel ast.SelectionSet, v types.AssumeOrganizationSessionResult) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._AssumeOrganizationSessionResult(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalBoolean(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNChangeEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailInput(ctx context.Context, v any) (types.ChangeEmailInput, error) {
|
|
res, err := ec.unmarshalInputChangeEmailInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNChangePasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordInput(ctx context.Context, v any) (types.ChangePasswordInput, error) {
|
|
res, err := ec.unmarshalInputChangePasswordInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider(ctx context.Context, v any) (coredata.ConnectorProvider, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider(ctx context.Context, sel ast.SelectionSet, v coredata.ConnectorProvider) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider = map[string]coredata.ConnectorProvider{
|
|
"SLACK": coredata.ConnectorProviderSlack,
|
|
"GOOGLE_WORKSPACE": coredata.ConnectorProviderGoogleWorkspace,
|
|
}
|
|
marshalNConnectorProvider2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐConnectorProvider = map[coredata.ConnectorProvider]string{
|
|
coredata.ConnectorProviderSlack: "SLACK",
|
|
coredata.ConnectorProviderGoogleWorkspace: "GOOGLE_WORKSPACE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNCreateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationInput(ctx context.Context, v any) (types.CreateOrganizationInput, error) {
|
|
res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreatePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyInput(ctx context.Context, v any) (types.CreatePersonalAPIKeyInput, error) {
|
|
res, err := ec.unmarshalInputCreatePersonalAPIKeyInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationInput(ctx context.Context, v any) (types.CreateSAMLConfigurationInput, error) {
|
|
res, err := ec.unmarshalInputCreateSAMLConfigurationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationInput(ctx context.Context, v any) (types.CreateSCIMConfigurationInput, error) {
|
|
res, err := ec.unmarshalInputCreateSCIMConfigurationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCreateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserInput(ctx context.Context, v any) (types.CreateUserInput, error) {
|
|
res, err := ec.unmarshalInputCreateUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (page.CursorKey, error) {
|
|
res, err := cursor.UnmarshalCursorKeyScalar(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNCursorKey2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v page.CursorKey) graphql.Marshaler {
|
|
_ = sel
|
|
res := cursor.MarshalCursorKeyScalar(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDatetime2timeᚐTime(ctx context.Context, v any) (time.Time, error) {
|
|
res, err := graphql.UnmarshalTime(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNDatetime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalTime(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeactivateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserInput(ctx context.Context, v any) (types.DeactivateUserInput, error) {
|
|
res, err := ec.unmarshalInputDeactivateUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteOrganizationHorizontalLogoInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoInput(ctx context.Context, v any) (types.DeleteOrganizationHorizontalLogoInput, error) {
|
|
res, err := ec.unmarshalInputDeleteOrganizationHorizontalLogoInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationInput(ctx context.Context, v any) (types.DeleteOrganizationInput, error) {
|
|
res, err := ec.unmarshalInputDeleteOrganizationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationInput(ctx context.Context, v any) (types.DeleteSAMLConfigurationInput, error) {
|
|
res, err := ec.unmarshalInputDeleteSAMLConfigurationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNDeleteSCIMConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationInput(ctx context.Context, v any) (types.DeleteSCIMConfigurationInput, error) {
|
|
res, err := ec.unmarshalInputDeleteSCIMConfigurationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, v any) (mail.Addr, error) {
|
|
res, err := mail1.UnmarshalAddrScalar(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx context.Context, sel ast.SelectionSet, v mail.Addr) graphql.Marshaler {
|
|
_ = sel
|
|
res := mail1.MarshalAddrScalar(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, v any) ([]mail.Addr, error) {
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]mail.Addr, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalNEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, sel ast.SelectionSet, v []mail.Addr) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNForgotPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordInput(ctx context.Context, v any) (types.ForgotPasswordInput, error) {
|
|
res, err := ec.unmarshalInputForgotPasswordInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (gid.GID, error) {
|
|
res, err := gid1.UnmarshalGIDScalar(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNID2goᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v gid.GID) graphql.Marshaler {
|
|
_ = sel
|
|
res := gid1.MarshalGIDScalar(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) {
|
|
res, err := graphql.UnmarshalInt(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalInt(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInvitation2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitation(ctx context.Context, sel ast.SelectionSet, v *types.Invitation) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Invitation(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInvitationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.InvitationEdge) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalNInvitationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdge(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInvitationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationEdge(ctx context.Context, sel ast.SelectionSet, v *types.InvitationEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._InvitationEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField(ctx context.Context, v any) (coredata.InvitationOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.InvitationOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField = map[string]coredata.InvitationOrderField{
|
|
"CREATED_AT": coredata.InvitationOrderFieldCreatedAt,
|
|
}
|
|
marshalNInvitationOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationOrderField = map[coredata.InvitationOrderField]string{
|
|
coredata.InvitationOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus(ctx context.Context, v any) (coredata.InvitationStatus, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus(ctx context.Context, sel ast.SelectionSet, v coredata.InvitationStatus) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus = map[string]coredata.InvitationStatus{
|
|
"PENDING": coredata.InvitationStatusPending,
|
|
"ACCEPTED": coredata.InvitationStatusAccepted,
|
|
"EXPIRED": coredata.InvitationStatusExpired,
|
|
}
|
|
marshalNInvitationStatus2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐInvitationStatus = map[coredata.InvitationStatus]string{
|
|
coredata.InvitationStatusPending: "PENDING",
|
|
coredata.InvitationStatusAccepted: "ACCEPTED",
|
|
coredata.InvitationStatusExpired: "EXPIRED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNInviteUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserInput(ctx context.Context, v any) (types.InviteUserInput, error) {
|
|
res, err := ec.unmarshalInputInviteUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership(ctx context.Context, sel ast.SelectionSet, v *types.Membership) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Membership(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx context.Context, v any) (coredata.MembershipRole, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole(ctx context.Context, sel ast.SelectionSet, v coredata.MembershipRole) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole = map[string]coredata.MembershipRole{
|
|
"OWNER": coredata.MembershipRoleOwner,
|
|
"ADMIN": coredata.MembershipRoleAdmin,
|
|
"EMPLOYEE": coredata.MembershipRoleEmployee,
|
|
"VIEWER": coredata.MembershipRoleViewer,
|
|
"AUDITOR": coredata.MembershipRoleAuditor,
|
|
}
|
|
marshalNMembershipRole2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipRole = map[coredata.MembershipRole]string{
|
|
coredata.MembershipRoleOwner: "OWNER",
|
|
coredata.MembershipRoleAdmin: "ADMIN",
|
|
coredata.MembershipRoleEmployee: "EMPLOYEE",
|
|
coredata.MembershipRoleViewer: "VIEWER",
|
|
coredata.MembershipRoleAuditor: "AUDITOR",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, v any) (page.OrderDirection, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v page.OrderDirection) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection = map[string]page.OrderDirection{
|
|
"ASC": page.OrderDirectionAsc,
|
|
"DESC": page.OrderDirectionDesc,
|
|
}
|
|
marshalNOrderDirection2goᚗproboᚗincᚋproboᚋpkgᚋpageᚐOrderDirection = map[page.OrderDirection]string{
|
|
page.OrderDirectionAsc: "ASC",
|
|
page.OrderDirectionDesc: "DESC",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Organization(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPageInfo2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v types.PageInfo) graphql.Marshaler {
|
|
return ec._PageInfo(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPersonalAPIKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKey(ctx context.Context, sel ast.SelectionSet, v *types.PersonalAPIKey) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PersonalAPIKey(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPersonalAPIKeyEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.PersonalAPIKeyEdge) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalNPersonalAPIKeyEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdge(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNPersonalAPIKeyEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyEdge(ctx context.Context, sel ast.SelectionSet, v *types.PersonalAPIKeyEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._PersonalAPIKeyEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v *types.Profile) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Profile(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProfileEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.ProfileEdge) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdge(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProfileEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileEdge(ctx context.Context, sel ast.SelectionSet, v *types.ProfileEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._ProfileEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx context.Context, v any) (coredata.MembershipProfileOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.MembershipProfileOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField = map[string]coredata.MembershipProfileOrderField{
|
|
"FULL_NAME": coredata.MembershipProfileOrderFieldFullName,
|
|
"CREATED_AT": coredata.MembershipProfileOrderFieldCreatedAt,
|
|
"KIND": coredata.MembershipProfileOrderFieldKind,
|
|
"ORGANIZATION_NAME": coredata.MembershipProfileOrderFieldOrganizationName,
|
|
"STATE": coredata.MembershipProfileOrderFieldState,
|
|
}
|
|
marshalNProfileOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐMembershipProfileOrderField = map[coredata.MembershipProfileOrderField]string{
|
|
coredata.MembershipProfileOrderFieldFullName: "FULL_NAME",
|
|
coredata.MembershipProfileOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.MembershipProfileOrderFieldKind: "KIND",
|
|
coredata.MembershipProfileOrderFieldOrganizationName: "ORGANIZATION_NAME",
|
|
coredata.MembershipProfileOrderFieldState: "STATE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, v any) (coredata.ProfileState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, sel ast.SelectionSet, v coredata.ProfileState) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[string]coredata.ProfileState{
|
|
"ACTIVE": coredata.ProfileStateActive,
|
|
"INACTIVE": coredata.ProfileStateInactive,
|
|
}
|
|
marshalNProfileState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[coredata.ProfileState]string{
|
|
coredata.ProfileStateActive: "ACTIVE",
|
|
coredata.ProfileStateInactive: "INACTIVE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason(ctx context.Context, v any) (types.ReauthenticationReason, error) {
|
|
var res types.ReauthenticationReason
|
|
err := res.UnmarshalGQL(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNReauthenticationReason2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐReauthenticationReason(ctx context.Context, sel ast.SelectionSet, v types.ReauthenticationReason) graphql.Marshaler {
|
|
return v
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNRegenerateSCIMTokenInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenInput(ctx context.Context, v any) (types.RegenerateSCIMTokenInput, error) {
|
|
res, err := ec.unmarshalInputRegenerateSCIMTokenInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNRemoveUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserInput(ctx context.Context, v any) (types.RemoveUserInput, error) {
|
|
res, err := ec.unmarshalInputRemoveUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNResetPasswordInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordInput(ctx context.Context, v any) (types.ResetPasswordInput, error) {
|
|
res, err := ec.unmarshalInputResetPasswordInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNRevokePersonalAPIKeyInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyInput(ctx context.Context, v any) (types.RevokePersonalAPIKeyInput, error) {
|
|
res, err := ec.unmarshalInputRevokePersonalAPIKeyInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNRevokeSessionInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionInput(ctx context.Context, v any) (types.RevokeSessionInput, error) {
|
|
res, err := ec.unmarshalInputRevokeSessionInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRevokeSessionPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionPayload(ctx context.Context, sel ast.SelectionSet, v types.RevokeSessionPayload) graphql.Marshaler {
|
|
return ec._RevokeSessionPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNRevokeSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeSessionPayload(ctx context.Context, sel ast.SelectionSet, v *types.RevokeSessionPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._RevokeSessionPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSAMLAttributeMappings2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappings(ctx context.Context, sel ast.SelectionSet, v *types.SAMLAttributeMappings) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLAttributeMappings(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfiguration) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLConfiguration(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSAMLConfigurationEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SAMLConfigurationEdge) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalNSAMLConfigurationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdge(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSAMLConfigurationEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationEdge(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfigurationEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLConfigurationEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy(ctx context.Context, v any) (coredata.SAMLEnforcementPolicy, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy(ctx context.Context, sel ast.SelectionSet, v coredata.SAMLEnforcementPolicy) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy = map[string]coredata.SAMLEnforcementPolicy{
|
|
"OFF": coredata.SAMLEnforcementPolicyOff,
|
|
"OPTIONAL": coredata.SAMLEnforcementPolicyOptional,
|
|
"REQUIRED": coredata.SAMLEnforcementPolicyRequired,
|
|
}
|
|
marshalNSAMLEnforcementPolicy2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSAMLEnforcementPolicy = map[coredata.SAMLEnforcementPolicy]string{
|
|
coredata.SAMLEnforcementPolicyOff: "OFF",
|
|
coredata.SAMLEnforcementPolicyOptional: "OPTIONAL",
|
|
coredata.SAMLEnforcementPolicyRequired: "REQUIRED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge(ctx context.Context, sel ast.SelectionSet, v *types.SCIMBridge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMBridge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState(ctx context.Context, v any) (coredata.SCIMBridgeState, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState(ctx context.Context, sel ast.SelectionSet, v coredata.SCIMBridgeState) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState = map[string]coredata.SCIMBridgeState{
|
|
"PENDING": coredata.SCIMBridgeStatePending,
|
|
"ACTIVE": coredata.SCIMBridgeStateActive,
|
|
"FAILED": coredata.SCIMBridgeStateFailed,
|
|
}
|
|
marshalNSCIMBridgeState2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeState = map[coredata.SCIMBridgeState]string{
|
|
coredata.SCIMBridgeStatePending: "PENDING",
|
|
coredata.SCIMBridgeStateActive: "ACTIVE",
|
|
coredata.SCIMBridgeStateFailed: "FAILED",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType(ctx context.Context, v any) (coredata.SCIMBridgeType, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType(ctx context.Context, sel ast.SelectionSet, v coredata.SCIMBridgeType) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType = map[string]coredata.SCIMBridgeType{
|
|
"GOOGLE_WORKSPACE": coredata.SCIMBridgeTypeGoogleWorkspace,
|
|
}
|
|
marshalNSCIMBridgeType2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMBridgeType = map[coredata.SCIMBridgeType]string{
|
|
coredata.SCIMBridgeTypeGoogleWorkspace: "GOOGLE_WORKSPACE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SCIMConfiguration) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMConfiguration(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSCIMEvent2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEvent(ctx context.Context, sel ast.SelectionSet, v *types.SCIMEvent) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMEvent(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSCIMEventEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SCIMEventEdge) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalNSCIMEventEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdge(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSCIMEventEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventEdge(ctx context.Context, sel ast.SelectionSet, v *types.SCIMEventEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMEventEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField(ctx context.Context, v any) (coredata.SCIMEventOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.SCIMEventOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField = map[string]coredata.SCIMEventOrderField{
|
|
"CREATED_AT": coredata.SCIMEventOrderFieldCreatedAt,
|
|
}
|
|
marshalNSCIMEventOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSCIMEventOrderField = map[coredata.SCIMEventOrderField]string{
|
|
coredata.SCIMEventOrderFieldCreatedAt: "CREATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalNSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession(ctx context.Context, sel ast.SelectionSet, v *types.Session) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._Session(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSessionEdge2ᚕᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdgeᚄ(ctx context.Context, sel ast.SelectionSet, v []*types.SessionEdge) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalNSessionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdge(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSessionEdge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionEdge(ctx context.Context, sel ast.SelectionSet, v *types.SessionEdge) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._SessionEdge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField(ctx context.Context, v any) (coredata.SessionOrderField, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField(ctx context.Context, sel ast.SelectionSet, v coredata.SessionOrderField) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField = map[string]coredata.SessionOrderField{
|
|
"CREATED_AT": coredata.SessionOrderFieldCreatedAt,
|
|
"EXPIRED_AT": coredata.SessionOrderFieldExpiredAt,
|
|
"UPDATED_AT": coredata.SessionOrderFieldUpdatedAt,
|
|
}
|
|
marshalNSessionOrderField2goᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐSessionOrderField = map[coredata.SessionOrderField]string{
|
|
coredata.SessionOrderFieldCreatedAt: "CREATED_AT",
|
|
coredata.SessionOrderFieldExpiredAt: "EXPIRED_AT",
|
|
coredata.SessionOrderFieldUpdatedAt: "UPDATED_AT",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx context.Context, v any) (session.SessionRequirement, error) {
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement[tmp]
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement(ctx context.Context, sel ast.SelectionSet, v session.SessionRequirement) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement[v])
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement = map[string]session.SessionRequirement{
|
|
"PRESENT": session.SessionRequirementPresent,
|
|
"NONE": session.SessionRequirementNone,
|
|
"OPTIONAL": session.SessionRequirementOptional,
|
|
}
|
|
marshalNSessionRequirement2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋgqlutilsᚋdirectivesᚋsessionᚐSessionRequirement = map[session.SessionRequirement]string{
|
|
session.SessionRequirementPresent: "PRESENT",
|
|
session.SessionRequirementNone: "NONE",
|
|
session.SessionRequirementOptional: "OPTIONAL",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) unmarshalNSignInInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInInput(ctx context.Context, v any) (types.SignInInput, error) {
|
|
res, err := ec.unmarshalInputSignInInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNSignUpInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpInput(ctx context.Context, v any) (types.SignUpInput, error) {
|
|
res, err := ec.unmarshalInputSignUpInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
|
|
res, err := graphql.UnmarshalString(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]string, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateMembershipInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipInput(ctx context.Context, v any) (types.UpdateMembershipInput, error) {
|
|
res, err := ec.unmarshalInputUpdateMembershipInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateMembershipPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateMembershipPayload) graphql.Marshaler {
|
|
return ec._UpdateMembershipPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateMembershipPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateMembershipPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateMembershipPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateMembershipPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateOrganizationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationInput(ctx context.Context, v any) (types.UpdateOrganizationInput, error) {
|
|
res, err := ec.unmarshalInputUpdateOrganizationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateSAMLConfigurationInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationInput(ctx context.Context, v any) (types.UpdateSAMLConfigurationInput, error) {
|
|
res, err := ec.unmarshalInputUpdateSAMLConfigurationInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateSCIMBridgeInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgeInput(ctx context.Context, v any) (types.UpdateSCIMBridgeInput, error) {
|
|
res, err := ec.unmarshalInputUpdateSCIMBridgeInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNUpdateUserInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserInput(ctx context.Context, v any) (types.UpdateUserInput, error) {
|
|
res, err := ec.unmarshalInputUpdateUserInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateUserPayload2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserPayload(ctx context.Context, sel ast.SelectionSet, v types.UpdateUserPayload) graphql.Marshaler {
|
|
return ec._UpdateUserPayload(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalNUpdateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalNVerifyEmailInput2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailInput(ctx context.Context, v any) (types.VerifyEmailInput, error) {
|
|
res, err := ec.unmarshalInputVerifyEmailInput(ctx, v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
|
|
return ec.___Directive(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) {
|
|
res, err := graphql.UnmarshalString(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]string, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
|
|
return ec.___EnumValue(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
|
|
return ec.___Field(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
|
|
return ec.___InputValue(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
|
|
return ec.___Type(ctx, sel, &v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
|
|
if v == nil {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
return graphql.Null
|
|
}
|
|
return ec.___Type(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) {
|
|
res, err := graphql.UnmarshalString(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
|
|
_ = sel
|
|
res := graphql.MarshalString(v)
|
|
if res == graphql.Null {
|
|
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
|
|
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
|
|
}
|
|
}
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOActivateAccountPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐActivateAccountPayload(ctx context.Context, sel ast.SelectionSet, v *types.ActivateAccountPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ActivateAccountPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOAssumeOrganizationSessionPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐAssumeOrganizationSessionPayload(ctx context.Context, sel ast.SelectionSet, v *types.AssumeOrganizationSessionPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._AssumeOrganizationSessionPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
return res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalBoolean(v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalBoolean(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalBoolean(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOChangeEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangeEmailPayload(ctx context.Context, sel ast.SelectionSet, v *types.ChangeEmailPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ChangeEmailPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOChangePasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐChangePasswordPayload(ctx context.Context, sel ast.SelectionSet, v *types.ChangePasswordPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ChangePasswordPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOConnector2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐConnector(ctx context.Context, sel ast.SelectionSet, v *types.Connector) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Connector(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCreateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateOrganizationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateOrganizationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCreatePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreatePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreatePersonalAPIKeyPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._CreatePersonalAPIKeyPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCreateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateSAMLConfigurationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateSAMLConfigurationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCreateSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateSCIMConfigurationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateSCIMConfigurationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCreateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐCreateUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.CreateUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._CreateUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, v any) (*page.CursorKey, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := cursor.UnmarshalCursorKeyScalar(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOCursorKey2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋpageᚐCursorKey(ctx context.Context, sel ast.SelectionSet, v *page.CursorKey) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := cursor.MarshalCursorKeyScalar(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalODatetime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalTime(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODatetime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalTime(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalODeactivateUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeactivateUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeactivateUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DeactivateUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODeleteOrganizationHorizontalLogoPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationHorizontalLogoPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteOrganizationHorizontalLogoPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteOrganizationHorizontalLogoPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODeleteOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteOrganizationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteOrganizationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODeleteSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteSAMLConfigurationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteSAMLConfigurationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalODeleteSCIMConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐDeleteSCIMConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.DeleteSCIMConfigurationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._DeleteSCIMConfigurationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, v any) ([]mail.Addr, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]mail.Addr, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalOEmailAddr2ᚕgoᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddrᚄ(ctx context.Context, sel ast.SelectionSet, v []mail.Addr) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalOForgotPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐForgotPasswordPayload(ctx context.Context, sel ast.SelectionSet, v *types.ForgotPasswordPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ForgotPasswordPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, v any) (*gid.GID, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := gid1.UnmarshalGIDScalar(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOID2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋgidᚐGID(ctx context.Context, sel ast.SelectionSet, v *gid.GID) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := gid1.MarshalGIDScalar(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOIdentity2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐIdentity(ctx context.Context, sel ast.SelectionSet, v *types.Identity) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Identity(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalInt(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalInt(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOInvitationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationConnection(ctx context.Context, sel ast.SelectionSet, v *types.InvitationConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._InvitationConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOInvitationOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInvitationOrderBy(ctx context.Context, v any) (*types.InvitationOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputInvitationOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOInviteUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐInviteUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.InviteUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._InviteUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOMembership2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐMembership(ctx context.Context, sel ast.SelectionSet, v *types.Membership) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Membership(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalONode2goᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐNode(ctx context.Context, sel ast.SelectionSet, v types.Node) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Node(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOOrganization2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *types.Organization) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Organization(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOPersonalAPIKeyConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐPersonalAPIKeyConnection(ctx context.Context, sel ast.SelectionSet, v *types.PersonalAPIKeyConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._PersonalAPIKeyConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProfile2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfile(ctx context.Context, sel ast.SelectionSet, v *types.Profile) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Profile(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProfileConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileConnection(ctx context.Context, sel ast.SelectionSet, v *types.ProfileConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ProfileConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOProfileFilter2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileFilter(ctx context.Context, v any) (*types.ProfileFilter, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputProfileFilter(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOProfileOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐProfileOrderBy(ctx context.Context, v any) (*types.ProfileOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputProfileOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, v any) (*coredata.ProfileState, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
tmp, err := graphql.UnmarshalString(v)
|
|
res := unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[tmp]
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState(ctx context.Context, sel ast.SelectionSet, v *coredata.ProfileState) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(marshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState[*v])
|
|
return res
|
|
}
|
|
|
|
var (
|
|
unmarshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[string]coredata.ProfileState{
|
|
"ACTIVE": coredata.ProfileStateActive,
|
|
"INACTIVE": coredata.ProfileStateInactive,
|
|
}
|
|
marshalOProfileState2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋcoredataᚐProfileState = map[coredata.ProfileState]string{
|
|
coredata.ProfileStateActive: "ACTIVE",
|
|
coredata.ProfileStateInactive: "INACTIVE",
|
|
}
|
|
)
|
|
|
|
func (ec *executionContext) marshalORegenerateSCIMTokenPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRegenerateSCIMTokenPayload(ctx context.Context, sel ast.SelectionSet, v *types.RegenerateSCIMTokenPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._RegenerateSCIMTokenPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalORemoveUserPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRemoveUserPayload(ctx context.Context, sel ast.SelectionSet, v *types.RemoveUserPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._RemoveUserPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOResetPasswordPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐResetPasswordPayload(ctx context.Context, sel ast.SelectionSet, v *types.ResetPasswordPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._ResetPasswordPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalORevokeAllSessionsPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokeAllSessionsPayload(ctx context.Context, sel ast.SelectionSet, v *types.RevokeAllSessionsPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._RevokeAllSessionsPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalORevokePersonalAPIKeyPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐRevokePersonalAPIKeyPayload(ctx context.Context, sel ast.SelectionSet, v *types.RevokePersonalAPIKeyPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._RevokePersonalAPIKeyPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOSAMLAttributeMappingsInput2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLAttributeMappingsInput(ctx context.Context, v any) (*types.SAMLAttributeMappingsInput, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputSAMLAttributeMappingsInput(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSAMLConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfiguration) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLConfiguration(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSAMLConfigurationConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSAMLConfigurationConnection(ctx context.Context, sel ast.SelectionSet, v *types.SAMLConfigurationConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SAMLConfigurationConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSCIMBridge2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMBridge(ctx context.Context, sel ast.SelectionSet, v *types.SCIMBridge) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMBridge(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSCIMConfiguration2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMConfiguration(ctx context.Context, sel ast.SelectionSet, v *types.SCIMConfiguration) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMConfiguration(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSCIMEventConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventConnection(ctx context.Context, sel ast.SelectionSet, v *types.SCIMEventConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SCIMEventConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOSCIMEventOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSCIMEventOrderBy(ctx context.Context, v any) (*types.SCIMEventOrderBy, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputSCIMEventOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSession2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSession(ctx context.Context, sel ast.SelectionSet, v *types.Session) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._Session(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSessionConnection2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionConnection(ctx context.Context, sel ast.SelectionSet, v *types.SessionConnection) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SessionConnection(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOSessionOrder2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSessionOrder(ctx context.Context, v any) (*types.SessionOrder, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := ec.unmarshalInputSessionOrder(ctx, v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSignInPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignInPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignInPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SignInPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSignOutPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignOutPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignOutPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SignOutPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOSignUpPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐSignUpPayload(ctx context.Context, sel ast.SelectionSet, v *types.SignUpPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._SignUpPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
var vSlice []any
|
|
vSlice = graphql.CoerceList(v)
|
|
var err error
|
|
res := make([]string, len(vSlice))
|
|
for i := range vSlice {
|
|
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
|
|
res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
return res, nil
|
|
}
|
|
|
|
func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := make(graphql.Array, len(v))
|
|
for i := range v {
|
|
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
|
|
}
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalString(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalString(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOUpdateOrganizationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateOrganizationPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateOrganizationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateOrganizationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOUpdateSAMLConfigurationPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSAMLConfigurationPayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateSAMLConfigurationPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateSAMLConfigurationPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOUpdateSCIMBridgePayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐUpdateSCIMBridgePayload(ctx context.Context, sel ast.SelectionSet, v *types.UpdateSCIMBridgePayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._UpdateSCIMBridgePayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v any) (*graphql.Upload, error) {
|
|
if v == nil {
|
|
return nil, nil
|
|
}
|
|
res, err := graphql.UnmarshalUpload(v)
|
|
return &res, graphql.ErrorOnPath(ctx, err)
|
|
}
|
|
|
|
func (ec *executionContext) marshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v *graphql.Upload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
_ = sel
|
|
_ = ctx
|
|
res := graphql.MarshalUpload(*v)
|
|
return res
|
|
}
|
|
|
|
func (ec *executionContext) marshalOVerifyEmailPayload2ᚖgoᚗproboᚗincᚋproboᚋpkgᚋserverᚋapiᚋconnectᚋv1ᚋtypesᚐVerifyEmailPayload(ctx context.Context, sel ast.SelectionSet, v *types.VerifyEmailPayload) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec._VerifyEmailPayload(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec.___Schema(ctx, sel, v)
|
|
}
|
|
|
|
func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
|
|
fc := graphql.GetFieldContext(ctx)
|
|
fc.Result = &v[i]
|
|
return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
|
|
})
|
|
|
|
for _, e := range ret {
|
|
if e == graphql.Null {
|
|
return graphql.Null
|
|
}
|
|
}
|
|
|
|
return ret
|
|
}
|
|
|
|
func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
|
|
if v == nil {
|
|
return graphql.Null
|
|
}
|
|
return ec.___Type(ctx, sel, v)
|
|
}
|
|
|
|
// endregion ***************************** type.gotpl *****************************
|