generated

package
Version: v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

func Sources added in v0.0.2

func Sources() []*ast.Source

Sources exports the gglgen ast sources.

These sources are used in a custom generate command to generate code using a "remote" schema.

Each time we implement Sourceable, we need to add the new sources to the generator.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Address struct {
		FormattedAddress func(childComplexity int) int
		Latitude         func(childComplexity int) int
		Locality         func(childComplexity int) int
		Longitude        func(childComplexity int) int
		Name             func(childComplexity int) int
		PlaceID          func(childComplexity int) int
	}

	Admin struct {
		ID                      func(childComplexity int) int
		PhotoUploadID           func(childComplexity int) int
		PrimaryEmailAddress     func(childComplexity int) int
		PrimaryPhone            func(childComplexity int) int
		ResendPIN               func(childComplexity int) int
		Roles                   func(childComplexity int) int
		SecondaryEmailAddresses func(childComplexity int) int
		SecondaryPhoneNumbers   func(childComplexity int) int
		Suspended               func(childComplexity int) int
		TermsAccepted           func(childComplexity int) int
		UserBioData             func(childComplexity int) int
	}

	Agent struct {
		ID                      func(childComplexity int) int
		PhotoUploadID           func(childComplexity int) int
		PrimaryEmailAddress     func(childComplexity int) int
		PrimaryPhone            func(childComplexity int) int
		ResendPIN               func(childComplexity int) int
		Roles                   func(childComplexity int) int
		SecondaryEmailAddresses func(childComplexity int) int
		SecondaryPhoneNumbers   func(childComplexity int) int
		Suspended               func(childComplexity int) int
		TermsAccepted           func(childComplexity int) int
		UserBioData             func(childComplexity int) int
	}

	Beneficiary struct {
		DateOfBirth  func(childComplexity int) int
		Emails       func(childComplexity int) int
		Msisdns      func(childComplexity int) int
		Name         func(childComplexity int) int
		Relationship func(childComplexity int) int
	}

	BioData struct {
		DateOfBirth func(childComplexity int) int
		FirstName   func(childComplexity int) int
		Gender      func(childComplexity int) int
		LastName    func(childComplexity int) int
	}

	Branch struct {
		BranchSladeCode       func(childComplexity int) int
		ID                    func(childComplexity int) int
		Name                  func(childComplexity int) int
		OrganizationSladeCode func(childComplexity int) int
	}

	BranchConnection struct {
		Edges    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	BranchEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	BusinessPartner struct {
		ID        func(childComplexity int) int
		Name      func(childComplexity int) int
		Parent    func(childComplexity int) int
		SladeCode func(childComplexity int) int
	}

	BusinessPartnerConnection struct {
		Edges    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	BusinessPartnerEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Cover struct {
		MemberName     func(childComplexity int) int
		MemberNumber   func(childComplexity int) int
		PayerName      func(childComplexity int) int
		PayerSladeCode func(childComplexity int) int
	}

	Customer struct {
		Active             func(childComplexity int) int
		CustomerID         func(childComplexity int) int
		ID                 func(childComplexity int) int
		ProfileID          func(childComplexity int) int
		ReceivablesAccount func(childComplexity int) int
	}

	Entity struct {
		FindMicroserviceByID      func(childComplexity int, id string) int
		FindPageInfoByHasNextPage func(childComplexity int, hasNextPage bool) int
		FindUserProfileByID       func(childComplexity int, id string) int
	}

	GroupedNavigationActions struct {
		Primary   func(childComplexity int) int
		Secondary func(childComplexity int) int
	}

	Identification struct {
		IdentificationDocNumber         func(childComplexity int) int
		IdentificationDocNumberUploadID func(childComplexity int) int
		IdentificationDocType           func(childComplexity int) int
	}

	IndividualCoach struct {
		AccreditationID         func(childComplexity int) int
		AccreditationUploadID   func(childComplexity int) int
		IdentificationDoc       func(childComplexity int) int
		KRAPIN                  func(childComplexity int) int
		KRAPINUploadID          func(childComplexity int) int
		PracticeLicenseID       func(childComplexity int) int
		PracticeLicenseUploadID func(childComplexity int) int
		SupportingDocuments     func(childComplexity int) int
	}

	IndividualNutrition struct {
		IdentificationDoc       func(childComplexity int) int
		KRAPIN                  func(childComplexity int) int
		KRAPINUploadID          func(childComplexity int) int
		PracticeLicenseID       func(childComplexity int) int
		PracticeLicenseUploadID func(childComplexity int) int
		SupportingDocuments     func(childComplexity int) int
	}

	IndividualPharmaceutical struct {
		IdentificationDoc       func(childComplexity int) int
		KRAPIN                  func(childComplexity int) int
		KRAPINUploadID          func(childComplexity int) int
		PracticeLicenseID       func(childComplexity int) int
		PracticeLicenseUploadID func(childComplexity int) int
		RegistrationNumber      func(childComplexity int) int
		SupportingDocuments     func(childComplexity int) int
	}

	IndividualPractitioner struct {
		Cadre                   func(childComplexity int) int
		IdentificationDoc       func(childComplexity int) int
		KRAPIN                  func(childComplexity int) int
		KRAPINUploadID          func(childComplexity int) int
		PracticeLicenseID       func(childComplexity int) int
		PracticeLicenseUploadID func(childComplexity int) int
		PracticeServices        func(childComplexity int) int
		RegistrationNumber      func(childComplexity int) int
		SupportingDocuments     func(childComplexity int) int
	}

	IndividualRider struct {
		CertificateGoodConductUploadID func(childComplexity int) int
		DrivingLicenseID               func(childComplexity int) int
		DrivingLicenseUploadID         func(childComplexity int) int
		IdentificationDoc              func(childComplexity int) int
		KRAPIN                         func(childComplexity int) int
		KRAPINUploadID                 func(childComplexity int) int
		SupportingDocuments            func(childComplexity int) int
	}

	KYCRequest struct {
		FiledTimestamp      func(childComplexity int) int
		ID                  func(childComplexity int) int
		Processed           func(childComplexity int) int
		ProcessedTimestamp  func(childComplexity int) int
		ReqOrganizationType func(childComplexity int) int
		ReqPartnerType      func(childComplexity int) int
		ReqRaw              func(childComplexity int) int
		Status              func(childComplexity int) int
		SupplierRecord      func(childComplexity int) int
	}

	Link struct {
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		LinkType    func(childComplexity int) int
		Thumbnail   func(childComplexity int) int
		Title       func(childComplexity int) int
		URL         func(childComplexity int) int
	}

	Location struct {
		BranchSladeCode func(childComplexity int) int
		ID              func(childComplexity int) int
		Name            func(childComplexity int) int
	}

	Microservice struct {
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		URL         func(childComplexity int) int
	}

	Mutation struct {
		ActivateAgent                    func(childComplexity int, input *dto.ProfileSuspensionInput) int
		ActivateEmployeeAccount          func(childComplexity int, input *dto.ProfileSuspensionInput) int
		ActivateRole                     func(childComplexity int, roleID string) int
		AddAddress                       func(childComplexity int, input dto.UserAddressInput, addressType enumutils.AddressType) int
		AddIndividualCoachKyc            func(childComplexity int, input domain.IndividualCoach) int
		AddIndividualNutritionKyc        func(childComplexity int, input domain.IndividualNutrition) int
		AddIndividualPharmaceuticalKyc   func(childComplexity int, input domain.IndividualPharmaceutical) int
		AddIndividualPractitionerKyc     func(childComplexity int, input domain.IndividualPractitioner) int
		AddIndividualRiderKyc            func(childComplexity int, input domain.IndividualRider) int
		AddNHIFDetails                   func(childComplexity int, input dto.NHIFDetailsInput) int
		AddOrganizationCoachKyc          func(childComplexity int, input domain.OrganizationCoach) int
		AddOrganizationNutritionKyc      func(childComplexity int, input domain.OrganizationNutrition) int
		AddOrganizationPharmaceuticalKyc func(childComplexity int, input domain.OrganizationPharmaceutical) int
		AddOrganizationPractitionerKyc   func(childComplexity int, input domain.OrganizationPractitioner) int
		AddOrganizationProviderKyc       func(childComplexity int, input domain.OrganizationProvider) int
		AddOrganizationRiderKyc          func(childComplexity int, input domain.OrganizationRider) int
		AddPartnerType                   func(childComplexity int, name string, partnerType profileutils.PartnerType) int
		AddPermissionsToRole             func(childComplexity int, input dto.RolePermissionInput) int
		AddSecondaryEmailAddress         func(childComplexity int, email []string) int
		AddSecondaryPhoneNumber          func(childComplexity int, phone []string) int
		AssignMultipleRoles              func(childComplexity int, userID string, roleIDs []string) int
		AssignRole                       func(childComplexity int, userID string, roleID string) int
		CompleteSignup                   func(childComplexity int, flavour feedlib.Flavour) int
		CreateRole                       func(childComplexity int, input dto.RoleInput) int
		DeactivateAgent                  func(childComplexity int, input *dto.ProfileSuspensionInput) int
		DeactivateEmployeeAccount        func(childComplexity int, input *dto.ProfileSuspensionInput) int
		DeactivateRole                   func(childComplexity int, roleID string) int
		DeleteFavoriteNavAction          func(childComplexity int, title string) int
		DeleteRole                       func(childComplexity int, roleID string) int
		DeregisterAllMicroservices       func(childComplexity int) int
		DeregisterMicroservice           func(childComplexity int, id string) int
		ProcessKYCRequest                func(childComplexity int, id string, status domain.KYCProcessStatus, rejectionReason *string) int
		RecordPostVisitSurvey            func(childComplexity int, input dto.PostVisitSurveyInput) int
		RegisterAdmin                    func(childComplexity int, input dto.RegisterAdminInput) int
		RegisterAgent                    func(childComplexity int, input dto.RegisterAgentInput) int
		RegisterMicroservice             func(childComplexity int, input domain.Microservice) int
		RegisterPushToken                func(childComplexity int, token string) int
		RetireKYCProcessingRequest       func(childComplexity int) int
		RetireSecondaryEmailAddresses    func(childComplexity int, emails []string) int
		RetireSecondaryPhoneNumbers      func(childComplexity int, phones []string) int
		RevokeRole                       func(childComplexity int, userID string, roleID string, reason string) int
		RevokeRolePermission             func(childComplexity int, input dto.RolePermissionInput) int
		SaveFavoriteNavAction            func(childComplexity int, title string) int
		SetPrimaryEmailAddress           func(childComplexity int, email string, otp string) int
		SetPrimaryPhoneNumber            func(childComplexity int, phone string, otp string) int
		SetUpSupplier                    func(childComplexity int, accountType profileutils.AccountType) int
		SetUserCommunicationsSettings    func(childComplexity int, allowWhatsApp *bool, allowTextSms *bool, allowPush *bool, allowEmail *bool) int
		SetupAsExperimentParticipant     func(childComplexity int, participate *bool) int
		SupplierEDILogin                 func(childComplexity int, username string, password string, sladeCode string) int
		SupplierSetDefaultLocation       func(childComplexity int, locationID string) int
		SuspendSupplier                  func(childComplexity int, suspensionReason *string) int
		UpdateRolePermissions            func(childComplexity int, input dto.RolePermissionInput) int
		UpdateUserName                   func(childComplexity int, username string) int
		UpdateUserPin                    func(childComplexity int, phone string, pin string) int
		UpdateUserProfile                func(childComplexity int, input dto.UserProfileInput) int
	}

	NHIFDetails struct {
		Employment                func(childComplexity int) int
		ID                        func(childComplexity int) int
		IDDocType                 func(childComplexity int) int
		IDNumber                  func(childComplexity int) int
		IdentificationCardPhotoID func(childComplexity int) int
		MembershipNumber          func(childComplexity int) int
		NHIFCardPhotoID           func(childComplexity int) int
		ProfileID                 func(childComplexity int) int
	}

	NavAction struct {
		Favourite  func(childComplexity int) int
		Icon       func(childComplexity int) int
		Nested     func(childComplexity int) int
		OnTapRoute func(childComplexity int) int
		Title      func(childComplexity int) int
	}

	NavigationAction struct {
		Favorite   func(childComplexity int) int
		Icon       func(childComplexity int) int
		Nested     func(childComplexity int) int
		OnTapRoute func(childComplexity int) int
		Title      func(childComplexity int) int
	}

	NavigationActions struct {
		Primary   func(childComplexity int) int
		Secondary func(childComplexity int) int
	}

	NestedNavAction struct {
		OnTapRoute func(childComplexity int) int
		Title      func(childComplexity int) int
	}

	OrganizationCoach struct {
		CertificateOfInCorporationUploadID func(childComplexity int) int
		CertificateOfIncorporation         func(childComplexity int) int
		DirectorIdentifications            func(childComplexity int) int
		KRAPIN                             func(childComplexity int) int
		KRAPINUploadID                     func(childComplexity int) int
		OrganizationCertificate            func(childComplexity int) int
		OrganizationTypeName               func(childComplexity int) int
		PracticeLicenseID                  func(childComplexity int) int
		PracticeLicenseUploadID            func(childComplexity int) int
		RegistrationNumber                 func(childComplexity int) int
		SupportingDocuments                func(childComplexity int) int
	}

	OrganizationNutrition struct {
		CertificateOfInCorporationUploadID func(childComplexity int) int
		CertificateOfIncorporation         func(childComplexity int) int
		DirectorIdentifications            func(childComplexity int) int
		KRAPIN                             func(childComplexity int) int
		KRAPINUploadID                     func(childComplexity int) int
		OrganizationCertificate            func(childComplexity int) int
		OrganizationTypeName               func(childComplexity int) int
		PracticeLicenseID                  func(childComplexity int) int
		PracticeLicenseUploadID            func(childComplexity int) int
		RegistrationNumber                 func(childComplexity int) int
		SupportingDocuments                func(childComplexity int) int
	}

	OrganizationPharmaceutical struct {
		CertificateOfInCorporationUploadID func(childComplexity int) int
		CertificateOfIncorporation         func(childComplexity int) int
		DirectorIdentifications            func(childComplexity int) int
		KRAPIN                             func(childComplexity int) int
		KRAPINUploadID                     func(childComplexity int) int
		OrganizationCertificate            func(childComplexity int) int
		OrganizationTypeName               func(childComplexity int) int
		PracticeLicenseID                  func(childComplexity int) int
		PracticeLicenseUploadID            func(childComplexity int) int
		RegistrationNumber                 func(childComplexity int) int
		SupportingDocuments                func(childComplexity int) int
	}

	OrganizationPractitioner struct {
		Cadre                              func(childComplexity int) int
		CertificateOfInCorporationUploadID func(childComplexity int) int
		CertificateOfIncorporation         func(childComplexity int) int
		DirectorIdentifications            func(childComplexity int) int
		KRAPIN                             func(childComplexity int) int
		KRAPINUploadID                     func(childComplexity int) int
		OrganizationCertificate            func(childComplexity int) int
		OrganizationTypeName               func(childComplexity int) int
		PracticeLicenseUploadID            func(childComplexity int) int
		PracticeServices                   func(childComplexity int) int
		RegistrationNumber                 func(childComplexity int) int
		SupportingDocuments                func(childComplexity int) int
	}

	OrganizationProvider struct {
		CertificateOfInCorporationUploadID func(childComplexity int) int
		CertificateOfIncorporation         func(childComplexity int) int
		DirectorIdentifications            func(childComplexity int) int
		KRAPIN                             func(childComplexity int) int
		KRAPINUploadID                     func(childComplexity int) int
		OrganizationCertificate            func(childComplexity int) int
		OrganizationTypeName               func(childComplexity int) int
		PracticeLicenseID                  func(childComplexity int) int
		PracticeLicenseUploadID            func(childComplexity int) int
		PracticeServices                   func(childComplexity int) int
		RegistrationNumber                 func(childComplexity int) int
		SupportingDocuments                func(childComplexity int) int
	}

	OrganizationRider struct {
		CertificateOfInCorporationUploadID func(childComplexity int) int
		CertificateOfIncorporation         func(childComplexity int) int
		DirectorIdentifications            func(childComplexity int) int
		KRAPIN                             func(childComplexity int) int
		KRAPINUploadID                     func(childComplexity int) int
		OrganizationCertificate            func(childComplexity int) int
		OrganizationTypeName               func(childComplexity int) int
		SupportingDocuments                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
	}

	PayablesAccount struct {
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		IsActive    func(childComplexity int) int
		Name        func(childComplexity int) int
		Number      func(childComplexity int) int
		Tag         func(childComplexity int) int
	}

	Permission struct {
		Allowed     func(childComplexity int) int
		Description func(childComplexity int) int
		Group       func(childComplexity int) int
		Scope       func(childComplexity int) int
	}

	Query struct {
		CheckSupplierKYCSubmitted     func(childComplexity int) int
		DummyQuery                    func(childComplexity int) int
		FetchAdmins                   func(childComplexity int) int
		FetchAgents                   func(childComplexity int) int
		FetchKYCProcessingRequests    func(childComplexity int) int
		FetchSupplierAllowedLocations func(childComplexity int) int
		FetchUserNavigationActions    func(childComplexity int) int
		FindAdminByNameOrPhone        func(childComplexity int, nameOrPhone *string) int
		FindAgentbyPhone              func(childComplexity int, phoneNumber *string) int
		FindBranch                    func(childComplexity int, pagination *firebasetools.PaginationInput, filter []*dto.BranchFilterInput, sort []*dto.BranchSortInput) int
		FindProvider                  func(childComplexity int, pagination *firebasetools.PaginationInput, filter []*dto.BusinessPartnerFilterInput, sort []*dto.BusinessPartnerSortInput) int
		FindRoleByName                func(childComplexity int, roleName *string) int
		FindUserByPhone               func(childComplexity int, phoneNumber string) int
		GetAddresses                  func(childComplexity int) int
		GetAllPermissions             func(childComplexity int) int
		GetAllRoles                   func(childComplexity int) int
		GetNavigationActions          func(childComplexity int) int
		GetUserCommunicationsSettings func(childComplexity int) int
		ListMicroservices             func(childComplexity int) int
		NHIFDetails                   func(childComplexity int) int
		ResumeWithPin                 func(childComplexity int, pin string) int
		SupplierProfile               func(childComplexity int) int
		UserProfile                   func(childComplexity int) int
		// contains filtered or unexported fields
	}

	ReceivablesAccount struct {
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		IsActive    func(childComplexity int) int
		Name        func(childComplexity int) int
		Number      func(childComplexity int) int
		Tag         func(childComplexity int) int
	}

	RoleOutput struct {
		Active      func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Name        func(childComplexity int) int
		Permissions func(childComplexity int) int
		Scopes      func(childComplexity int) int
		Users       func(childComplexity int) int
	}

	ServicesOffered struct {
		OtherServices func(childComplexity int) int
		Services      func(childComplexity int) int
	}

	Supplier struct {
		AccountType            func(childComplexity int) int
		Active                 func(childComplexity int) int
		HasBranches            func(childComplexity int) int
		ID                     func(childComplexity int) int
		IsOrganizationVerified func(childComplexity int) int
		KYCSubmitted           func(childComplexity int) int
		Location               func(childComplexity int) int
		OrganizationName       func(childComplexity int) int
		ParentOrganizationID   func(childComplexity int) int
		PartnerSetupComplete   func(childComplexity int) int
		PartnerType            func(childComplexity int) int
		PayablesAccount        func(childComplexity int) int
		ProfileID              func(childComplexity int) int
		SladeCode              func(childComplexity int) int
		SupplierID             func(childComplexity int) int
		SupplierKYC            func(childComplexity int) int
		UnderOrganization      func(childComplexity int) int
	}

	SupplierLogin struct {
		Branches func(childComplexity int) int
		Supplier func(childComplexity int) int
	}

	SupportingDocument struct {
		SupportingDocumentDescription func(childComplexity int) int
		SupportingDocumentTitle       func(childComplexity int) int
		SupportingDocumentUpload      func(childComplexity int) int
	}

	ThinAddress struct {
		Latitude  func(childComplexity int) int
		Longitude func(childComplexity int) int
	}

	UserAddresses struct {
		HomeAddress func(childComplexity int) int
		WorkAddress func(childComplexity int) int
	}

	UserCommunicationsSetting struct {
		AllowEmail    func(childComplexity int) int
		AllowPush     func(childComplexity int) int
		AllowTextSMS  func(childComplexity int) int
		AllowWhatsApp func(childComplexity int) int
		ID            func(childComplexity int) int
		ProfileID     func(childComplexity int) int
	}

	UserProfile struct {
		Covers                  func(childComplexity int) int
		HomeAddress             func(childComplexity int) int
		ID                      func(childComplexity int) int
		Permissions             func(childComplexity int) int
		PhotoUploadID           func(childComplexity int) int
		PrimaryEmailAddress     func(childComplexity int) int
		PrimaryPhone            func(childComplexity int) int
		PushTokens              func(childComplexity int) int
		RoleDetails             func(childComplexity int) int
		Roles                   func(childComplexity int) int
		SecondaryEmailAddresses func(childComplexity int) int
		SecondaryPhoneNumbers   func(childComplexity int) int
		Suspended               func(childComplexity int) int
		TermsAccepted           func(childComplexity int) int
		UserBioData             func(childComplexity int) int
		UserName                func(childComplexity int) int
		VerifiedIdentifiers     func(childComplexity int) int
		WorkAddress             func(childComplexity int) int
	}

	VerifiedIdentifier struct {
		LoginProvider func(childComplexity int) int
		Timestamp     func(childComplexity int) int
		UID           func(childComplexity int) int
	}

	Service struct {
		SDL func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type EntityResolver

type EntityResolver interface {
	FindMicroserviceByID(ctx context.Context, id string) (*domain.Microservice, error)
	FindPageInfoByHasNextPage(ctx context.Context, hasNextPage bool) (*firebasetools.PageInfo, error)
	FindUserProfileByID(ctx context.Context, id string) (*profileutils.UserProfile, error)
}

type MutationResolver

type MutationResolver interface {
	CompleteSignup(ctx context.Context, flavour feedlib.Flavour) (bool, error)
	UpdateUserProfile(ctx context.Context, input dto.UserProfileInput) (*profileutils.UserProfile, error)
	UpdateUserPin(ctx context.Context, phone string, pin string) (bool, error)
	SetPrimaryPhoneNumber(ctx context.Context, phone string, otp string) (bool, error)
	SetPrimaryEmailAddress(ctx context.Context, email string, otp string) (bool, error)
	AddSecondaryPhoneNumber(ctx context.Context, phone []string) (bool, error)
	RetireSecondaryPhoneNumbers(ctx context.Context, phones []string) (bool, error)
	AddSecondaryEmailAddress(ctx context.Context, email []string) (bool, error)
	RetireSecondaryEmailAddresses(ctx context.Context, emails []string) (bool, error)
	UpdateUserName(ctx context.Context, username string) (bool, error)
	RegisterPushToken(ctx context.Context, token string) (bool, error)
	AddPartnerType(ctx context.Context, name string, partnerType profileutils.PartnerType) (bool, error)
	SuspendSupplier(ctx context.Context, suspensionReason *string) (bool, error)
	SetUpSupplier(ctx context.Context, accountType profileutils.AccountType) (*profileutils.Supplier, error)
	SupplierEDILogin(ctx context.Context, username string, password string, sladeCode string) (*dto.SupplierLogin, error)
	SupplierSetDefaultLocation(ctx context.Context, locationID string) (*profileutils.Supplier, error)
	AddIndividualRiderKyc(ctx context.Context, input domain.IndividualRider) (*domain.IndividualRider, error)
	AddOrganizationRiderKyc(ctx context.Context, input domain.OrganizationRider) (*domain.OrganizationRider, error)
	AddIndividualPractitionerKyc(ctx context.Context, input domain.IndividualPractitioner) (*domain.IndividualPractitioner, error)
	AddOrganizationPractitionerKyc(ctx context.Context, input domain.OrganizationPractitioner) (*domain.OrganizationPractitioner, error)
	AddOrganizationProviderKyc(ctx context.Context, input domain.OrganizationProvider) (*domain.OrganizationProvider, error)
	AddIndividualPharmaceuticalKyc(ctx context.Context, input domain.IndividualPharmaceutical) (*domain.IndividualPharmaceutical, error)
	AddOrganizationPharmaceuticalKyc(ctx context.Context, input domain.OrganizationPharmaceutical) (*domain.OrganizationPharmaceutical, error)
	AddIndividualCoachKyc(ctx context.Context, input domain.IndividualCoach) (*domain.IndividualCoach, error)
	AddOrganizationCoachKyc(ctx context.Context, input domain.OrganizationCoach) (*domain.OrganizationCoach, error)
	AddIndividualNutritionKyc(ctx context.Context, input domain.IndividualNutrition) (*domain.IndividualNutrition, error)
	AddOrganizationNutritionKyc(ctx context.Context, input domain.OrganizationNutrition) (*domain.OrganizationNutrition, error)
	ProcessKYCRequest(ctx context.Context, id string, status domain.KYCProcessStatus, rejectionReason *string) (bool, error)
	RecordPostVisitSurvey(ctx context.Context, input dto.PostVisitSurveyInput) (bool, error)
	RetireKYCProcessingRequest(ctx context.Context) (bool, error)
	SetupAsExperimentParticipant(ctx context.Context, participate *bool) (bool, error)
	AddNHIFDetails(ctx context.Context, input dto.NHIFDetailsInput) (*domain.NHIFDetails, error)
	AddAddress(ctx context.Context, input dto.UserAddressInput, addressType enumutils.AddressType) (*profileutils.Address, error)
	SetUserCommunicationsSettings(ctx context.Context, allowWhatsApp *bool, allowTextSms *bool, allowPush *bool, allowEmail *bool) (*profileutils.UserCommunicationsSetting, error)
	RegisterAdmin(ctx context.Context, input dto.RegisterAdminInput) (*profileutils.UserProfile, error)
	RegisterAgent(ctx context.Context, input dto.RegisterAgentInput) (*profileutils.UserProfile, error)
	ActivateEmployeeAccount(ctx context.Context, input *dto.ProfileSuspensionInput) (bool, error)
	DeactivateEmployeeAccount(ctx context.Context, input *dto.ProfileSuspensionInput) (bool, error)
	ActivateAgent(ctx context.Context, input *dto.ProfileSuspensionInput) (bool, error)
	DeactivateAgent(ctx context.Context, input *dto.ProfileSuspensionInput) (bool, error)
	SaveFavoriteNavAction(ctx context.Context, title string) (bool, error)
	DeleteFavoriteNavAction(ctx context.Context, title string) (bool, error)
	RegisterMicroservice(ctx context.Context, input domain.Microservice) (*domain.Microservice, error)
	DeregisterMicroservice(ctx context.Context, id string) (bool, error)
	DeregisterAllMicroservices(ctx context.Context) (bool, error)
	CreateRole(ctx context.Context, input dto.RoleInput) (*dto.RoleOutput, error)
	DeleteRole(ctx context.Context, roleID string) (bool, error)
	AddPermissionsToRole(ctx context.Context, input dto.RolePermissionInput) (*dto.RoleOutput, error)
	RevokeRolePermission(ctx context.Context, input dto.RolePermissionInput) (*dto.RoleOutput, error)
	UpdateRolePermissions(ctx context.Context, input dto.RolePermissionInput) (*dto.RoleOutput, error)
	AssignRole(ctx context.Context, userID string, roleID string) (bool, error)
	AssignMultipleRoles(ctx context.Context, userID string, roleIDs []string) (bool, error)
	RevokeRole(ctx context.Context, userID string, roleID string, reason string) (bool, error)
	ActivateRole(ctx context.Context, roleID string) (*dto.RoleOutput, error)
	DeactivateRole(ctx context.Context, roleID string) (*dto.RoleOutput, error)
}

type QueryResolver

type QueryResolver interface {
	DummyQuery(ctx context.Context) (*bool, error)
	UserProfile(ctx context.Context) (*profileutils.UserProfile, error)
	SupplierProfile(ctx context.Context) (*profileutils.Supplier, error)
	ResumeWithPin(ctx context.Context, pin string) (bool, error)
	FindProvider(ctx context.Context, pagination *firebasetools.PaginationInput, filter []*dto.BusinessPartnerFilterInput, sort []*dto.BusinessPartnerSortInput) (*dto.BusinessPartnerConnection, error)
	FindBranch(ctx context.Context, pagination *firebasetools.PaginationInput, filter []*dto.BranchFilterInput, sort []*dto.BranchSortInput) (*dto.BranchConnection, error)
	FetchSupplierAllowedLocations(ctx context.Context) (*dto.BranchConnection, error)
	FetchKYCProcessingRequests(ctx context.Context) ([]*domain.KYCRequest, error)
	GetAddresses(ctx context.Context) (*domain.UserAddresses, error)
	NHIFDetails(ctx context.Context) (*domain.NHIFDetails, error)
	GetUserCommunicationsSettings(ctx context.Context) (*profileutils.UserCommunicationsSetting, error)
	CheckSupplierKYCSubmitted(ctx context.Context) (bool, error)
	FetchAdmins(ctx context.Context) ([]*dto.Admin, error)
	FetchAgents(ctx context.Context) ([]*dto.Agent, error)
	FindAgentbyPhone(ctx context.Context, phoneNumber *string) (*dto.Agent, error)
	FindAdminByNameOrPhone(ctx context.Context, nameOrPhone *string) ([]*dto.Admin, error)
	FetchUserNavigationActions(ctx context.Context) (*profileutils.NavigationActions, error)
	ListMicroservices(ctx context.Context) ([]*domain.Microservice, error)
	GetAllRoles(ctx context.Context) ([]*dto.RoleOutput, error)
	FindRoleByName(ctx context.Context, roleName *string) ([]*dto.RoleOutput, error)
	GetAllPermissions(ctx context.Context) ([]*profileutils.Permission, error)
	FindUserByPhone(ctx context.Context, phoneNumber string) (*profileutils.UserProfile, error)
	GetNavigationActions(ctx context.Context) (*dto.GroupedNavigationActions, error)
}

type ResolverRoot

type ResolverRoot interface {
	Entity() EntityResolver
	Mutation() MutationResolver
	Query() QueryResolver
	UserProfile() UserProfileResolver
	VerifiedIdentifier() VerifiedIdentifierResolver
}

type UserProfileResolver added in v0.0.2

type UserProfileResolver interface {
	RoleDetails(ctx context.Context, obj *profileutils.UserProfile) ([]*dto.RoleOutput, error)
}

type VerifiedIdentifierResolver

type VerifiedIdentifierResolver interface {
	Timestamp(ctx context.Context, obj *profileutils.VerifiedIdentifier) (*scalarutils.Date, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL