enums

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package enums has enums

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider added in v0.2.7

type AuthProvider string
var (
	// Credentials provider is when the user authenticates with a username and password
	AuthProviderCredentials AuthProvider = "CREDENTIALS"
	// Google oauth2 provider for authentication
	AuthProviderGoogle AuthProvider = "GOOGLE"
	// Github oauth2 provider for authentication
	AuthProviderGitHub AuthProvider = "GITHUB"
	// Webauthn passkey provider for authentication
	AuthProviderWebauthn AuthProvider = "WEBAUTHN"
	// AuthProviderInvalid is the default value for the AuthProvider enum
	AuthProviderInvalid AuthProvider = "INVALID"
)

func ToAuthProvider added in v0.5.0

func ToAuthProvider(r string) *AuthProvider

ToAuthProvider returns the AuthProvider based on string input

func (AuthProvider) MarshalGQL added in v0.2.7

func (r AuthProvider) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (AuthProvider) String added in v0.2.7

func (r AuthProvider) String() string

String returns the AuthProvider as a string

func (*AuthProvider) UnmarshalGQL added in v0.2.7

func (r *AuthProvider) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (AuthProvider) Values added in v0.2.7

func (AuthProvider) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the AuthProvider enum. Possible default values are "CREDENTIALS", "GOOGLE", "GITHUB", and "WEBAUTHN"

type DocumentType added in v0.4.4

type DocumentType string
var (
	// RootTemplate are templates provided by the system
	RootTemplate DocumentType = "ROOTTEMPLATE"
	// Document are templates from root templates, or scratch, owned by the organization
	Document DocumentType = "DOCUMENT"
	// DocumentTypeInvalid is the default value for the DocumentType enum
	DocumentTypeInvalid DocumentType = "INVALID"
)

func ToDocumentType added in v0.4.4

func ToDocumentType(r string) *DocumentType

ToDocumentType returns the user status enum based on string input

func (DocumentType) MarshalGQL added in v0.4.4

func (r DocumentType) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (DocumentType) String added in v0.4.4

func (r DocumentType) String() string

String returns the DocumentType as a string

func (*DocumentType) UnmarshalGQL added in v0.4.4

func (r *DocumentType) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (DocumentType) Values added in v0.4.4

func (DocumentType) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the DocumentType enum. Possible default values are "ROOTTEMPLATE", "DOCUMENT"

type InviteStatus added in v0.2.6

type InviteStatus string
var (
	InvitationSent     InviteStatus = "INVITATION_SENT"
	ApprovalRequired   InviteStatus = "APPROVAL_REQUIRED"
	InvitationAccepted InviteStatus = "INVITATION_ACCEPTED"
	InvitationExpired  InviteStatus = "INVITATION_EXPIRED"
	InviteInvalid      InviteStatus = "INVITE_INVALID"
)

func ToInviteStatus added in v0.2.6

func ToInviteStatus(r string) *InviteStatus

ToInviteStatus returns the invite status enum based on string input

func (InviteStatus) MarshalGQL added in v0.2.6

func (r InviteStatus) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (InviteStatus) String added in v0.2.6

func (r InviteStatus) String() string

String returns the invite status as a string

func (*InviteStatus) UnmarshalGQL added in v0.2.6

func (r *InviteStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (InviteStatus) Values added in v0.2.6

func (InviteStatus) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the InviteStatus enum. Possible default values are "INVITATION_SENT", "APPROVAL_REQUIRED", "INVITATION_ACCEPTED", and "INVITATION_EXPIRED"

type JoinPolicy added in v0.2.6

type JoinPolicy string
var (
	// JoinPolicyOpen is when the group is open for anyone to join
	JoinPolicyOpen JoinPolicy = "OPEN"
	// JoinPolicyInviteOnly is when the group is only joinable by invite
	JoinPolicyInviteOnly JoinPolicy = "INVITE_ONLY"
	// JoinPolicyApplicationOnly is when the group is only joinable by application
	JoinPolicyApplicationOnly JoinPolicy = "APPLICATION_ONLY"
	// JoinPolicyInviteOrApplication is when the group is joinable by invite or application
	JoinPolicyInviteOrApplication JoinPolicy = "INVITE_OR_APPLICATION"
	// JoinPolicyInvalid is the default value for the JoinPolicy enum
	JoinPolicyInvalid JoinPolicy = "INVALID"
)

func ToGroupJoinPolicy added in v0.3.5

func ToGroupJoinPolicy(r string) *JoinPolicy

ToGroupJoinPolicy returns the user status enum based on string input

func (JoinPolicy) MarshalGQL added in v0.2.6

func (r JoinPolicy) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (JoinPolicy) String added in v0.2.6

func (r JoinPolicy) String() string

String returns the JoinPolicy as a string

func (*JoinPolicy) UnmarshalGQL added in v0.2.6

func (r *JoinPolicy) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (JoinPolicy) Values added in v0.2.6

func (JoinPolicy) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the JoinPolicy enum. Possible default values are "OPEN", "INVITE_ONLY", "APPLICATION_ONLY", and "INVITE_OR_APPLICATION".

type Region added in v0.4.2

type Region string
var (
	Amer          Region = "AMER"
	Emea          Region = "EMEA"
	Apac          Region = "APAC"
	InvalidRegion Region = "INVALID"
)

func ToRegion added in v0.4.2

func ToRegion(p string) *Region

ToRegion returns the database provider enum based on string input

func (Region) MarshalGQL added in v0.4.2

func (r Region) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Region) String added in v0.4.2

func (r Region) String() string

String returns the Region as a string

func (*Region) UnmarshalGQL added in v0.4.2

func (r *Region) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Region) Values added in v0.4.2

func (Region) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Region enum. Possible default values are "AMER", "EMEA", and "APAC"

type Role

type Role string
var (
	RoleOwner   Role = "OWNER"
	RoleAdmin   Role = "ADMIN"
	RoleMember  Role = "MEMBER"
	RoleUser    Role = "USER"
	RoleInvalid Role = "INVALID"
)

func ToRole added in v0.2.6

func ToRole(r string) *Role

ToRole returns the Role based on string input

func (Role) MarshalGQL

func (r Role) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Role) String

func (r Role) String() string

String returns the role as a string

func (*Role) UnmarshalGQL

func (r *Role) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Role) Values

func (Role) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Role enum. Possible default values are "ADMIN", "MEMBER", "OWNER"

type Tier added in v0.2.6

type Tier string
var (
	TierFree       Tier = "FREE"
	TierPro        Tier = "PRO"
	TierEnterprise Tier = "ENTERPRISE"
	TierInvalid    Tier = "INVALID"
)

func ToTier added in v0.5.0

func ToTier(r string) *Tier

ToTier returns the Tier based on string input

func (Tier) MarshalGQL added in v0.2.6

func (r Tier) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Tier) String added in v0.2.6

func (r Tier) String() string

String returns the Tier as a string

func (*Tier) UnmarshalGQL added in v0.2.6

func (r *Tier) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Tier) Values added in v0.2.6

func (Tier) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Tier enum. Possible default values are "FREE", "PRO" and "ENTERPRISE".

type UserStatus added in v0.2.6

type UserStatus string
var (
	UserStatusActive      UserStatus = "ACTIVE"
	UserStatusInactive    UserStatus = "INACTIVE"
	UserStatusDeactivated UserStatus = "DEACTIVATED"
	UserStatusSuspended   UserStatus = "SUSPENDED"
	UserStatusInvalid     UserStatus = "INVALID"
)

func ToUserStatus added in v0.3.4

func ToUserStatus(r string) *UserStatus

ToUserStatus returns the user status enum based on string input

func (UserStatus) MarshalGQL added in v0.2.6

func (r UserStatus) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (UserStatus) String added in v0.2.6

func (r UserStatus) String() string

String returns the UserStatus as a string

func (*UserStatus) UnmarshalGQL added in v0.2.6

func (r *UserStatus) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (UserStatus) Values added in v0.2.6

func (UserStatus) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the UserStatus enum. Possible default values are "ACTIVE", "INACTIVE", "DEACTIVATED", and "SUSPENDED".

type Visibility added in v0.2.6

type Visibility string
var (
	VisibilityPublic  Visibility = "PUBLIC"
	VisibilityPrivate Visibility = "PRIVATE"
	VisibilityInvalid Visibility = "INVALID"
)

func ToGroupVisibility added in v0.3.5

func ToGroupVisibility(r string) *Visibility

ToGroupVisibility returns the user status enum based on string input

func (Visibility) MarshalGQL added in v0.2.6

func (r Visibility) MarshalGQL(w io.Writer)

MarshalGQL implement the Marshaler interface for gqlgen

func (Visibility) String added in v0.2.6

func (r Visibility) String() string

String returns the visibility as a string

func (*Visibility) UnmarshalGQL added in v0.2.6

func (r *Visibility) UnmarshalGQL(v interface{}) error

UnmarshalGQL implement the Unmarshaler interface for gqlgen

func (Visibility) Values added in v0.2.6

func (Visibility) Values() (kinds []string)

Values returns a slice of strings that represents all the possible values of the Visibility enum. Possible default values are "PUBLIC", and "PRIVATE".

Jump to

Keyboard shortcuts

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