chatpendinginterrupt

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chatpendinginterrupt type in the database.
	Label = "chat_pending_interrupt"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldConversationID holds the string denoting the conversation_id field in the database.
	FieldConversationID = "conversation_id"
	// FieldTurnID holds the string denoting the turn_id field in the database.
	FieldTurnID = "turn_id"
	// FieldProviderRequestID holds the string denoting the provider_request_id field in the database.
	FieldProviderRequestID = "provider_request_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldPayloadJSON holds the string denoting the payload_json field in the database.
	FieldPayloadJSON = "payload_json"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldDecision holds the string denoting the decision field in the database.
	FieldDecision = "decision"
	// FieldResponseJSON holds the string denoting the response_json field in the database.
	FieldResponseJSON = "response_json"
	// FieldResolvedAt holds the string denoting the resolved_at field in the database.
	FieldResolvedAt = "resolved_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeConversation holds the string denoting the conversation edge name in mutations.
	EdgeConversation = "conversation"
	// EdgeTurn holds the string denoting the turn edge name in mutations.
	EdgeTurn = "turn"
	// Table holds the table name of the chatpendinginterrupt in the database.
	Table = "chat_pending_interrupts"
	// ConversationTable is the table that holds the conversation relation/edge.
	ConversationTable = "chat_pending_interrupts"
	// ConversationInverseTable is the table name for the ChatConversation entity.
	// It exists in this package in order to avoid circular dependency with the "chatconversation" package.
	ConversationInverseTable = "chat_conversations"
	// ConversationColumn is the table column denoting the conversation relation/edge.
	ConversationColumn = "conversation_id"
	// TurnTable is the table that holds the turn relation/edge.
	TurnTable = "chat_pending_interrupts"
	// TurnInverseTable is the table name for the ChatTurn entity.
	// It exists in this package in order to avoid circular dependency with the "chatturn" package.
	TurnInverseTable = "chat_turns"
	// TurnColumn is the table column denoting the turn relation/edge.
	TurnColumn = "turn_id"
)

Variables

View Source
var (
	// ProviderRequestIDValidator is a validator for the "provider_request_id" field. It is called by the builders before save.
	ProviderRequestIDValidator func(string) error
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
	// DefaultPayloadJSON holds the default value on creation for the "payload_json" field.
	DefaultPayloadJSON func() map[string]interface{}
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for chatpendinginterrupt fields.

Functions

func And

And groups predicates with the AND operator between them.

func ConversationID

func ConversationID(v uuid.UUID) predicate.ChatPendingInterrupt

ConversationID applies equality check predicate on the "conversation_id" field. It's identical to ConversationIDEQ.

func ConversationIDEQ

func ConversationIDEQ(v uuid.UUID) predicate.ChatPendingInterrupt

ConversationIDEQ applies the EQ predicate on the "conversation_id" field.

func ConversationIDIn

func ConversationIDIn(vs ...uuid.UUID) predicate.ChatPendingInterrupt

ConversationIDIn applies the In predicate on the "conversation_id" field.

func ConversationIDNEQ

func ConversationIDNEQ(v uuid.UUID) predicate.ChatPendingInterrupt

ConversationIDNEQ applies the NEQ predicate on the "conversation_id" field.

func ConversationIDNotIn

func ConversationIDNotIn(vs ...uuid.UUID) predicate.ChatPendingInterrupt

ConversationIDNotIn applies the NotIn predicate on the "conversation_id" field.

func CreatedAt

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ChatPendingInterrupt

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ChatPendingInterrupt

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ChatPendingInterrupt

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.ChatPendingInterrupt

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ChatPendingInterrupt

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ChatPendingInterrupt

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ChatPendingInterrupt

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.ChatPendingInterrupt

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Decision

Decision applies equality check predicate on the "decision" field. It's identical to DecisionEQ.

func DecisionContains

func DecisionContains(v string) predicate.ChatPendingInterrupt

DecisionContains applies the Contains predicate on the "decision" field.

func DecisionContainsFold

func DecisionContainsFold(v string) predicate.ChatPendingInterrupt

DecisionContainsFold applies the ContainsFold predicate on the "decision" field.

func DecisionEQ

DecisionEQ applies the EQ predicate on the "decision" field.

func DecisionEqualFold

func DecisionEqualFold(v string) predicate.ChatPendingInterrupt

DecisionEqualFold applies the EqualFold predicate on the "decision" field.

func DecisionGT

DecisionGT applies the GT predicate on the "decision" field.

func DecisionGTE

func DecisionGTE(v string) predicate.ChatPendingInterrupt

DecisionGTE applies the GTE predicate on the "decision" field.

func DecisionHasPrefix

func DecisionHasPrefix(v string) predicate.ChatPendingInterrupt

DecisionHasPrefix applies the HasPrefix predicate on the "decision" field.

func DecisionHasSuffix

func DecisionHasSuffix(v string) predicate.ChatPendingInterrupt

DecisionHasSuffix applies the HasSuffix predicate on the "decision" field.

func DecisionIn

func DecisionIn(vs ...string) predicate.ChatPendingInterrupt

DecisionIn applies the In predicate on the "decision" field.

func DecisionIsNil

func DecisionIsNil() predicate.ChatPendingInterrupt

DecisionIsNil applies the IsNil predicate on the "decision" field.

func DecisionLT

DecisionLT applies the LT predicate on the "decision" field.

func DecisionLTE

func DecisionLTE(v string) predicate.ChatPendingInterrupt

DecisionLTE applies the LTE predicate on the "decision" field.

func DecisionNEQ

func DecisionNEQ(v string) predicate.ChatPendingInterrupt

DecisionNEQ applies the NEQ predicate on the "decision" field.

func DecisionNotIn

func DecisionNotIn(vs ...string) predicate.ChatPendingInterrupt

DecisionNotIn applies the NotIn predicate on the "decision" field.

func DecisionNotNil

func DecisionNotNil() predicate.ChatPendingInterrupt

DecisionNotNil applies the NotNil predicate on the "decision" field.

func HasConversation

func HasConversation() predicate.ChatPendingInterrupt

HasConversation applies the HasEdge predicate on the "conversation" edge.

func HasConversationWith

func HasConversationWith(preds ...predicate.ChatConversation) predicate.ChatPendingInterrupt

HasConversationWith applies the HasEdge predicate on the "conversation" edge with a given conditions (other predicates).

func HasTurn

HasTurn applies the HasEdge predicate on the "turn" edge.

func HasTurnWith

func HasTurnWith(preds ...predicate.ChatTurn) predicate.ChatPendingInterrupt

HasTurnWith applies the HasEdge predicate on the "turn" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ChatPendingInterrupt

IDNotIn applies the NotIn predicate on the ID field.

func Kind

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.ChatPendingInterrupt

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.ChatPendingInterrupt

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.ChatPendingInterrupt

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

KindGT applies the GT predicate on the "kind" field.

func KindGTE

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.ChatPendingInterrupt

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.ChatPendingInterrupt

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

KindIn applies the In predicate on the "kind" field.

func KindLT

KindLT applies the LT predicate on the "kind" field.

func KindLTE

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.ChatPendingInterrupt

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ProviderRequestID

func ProviderRequestID(v string) predicate.ChatPendingInterrupt

ProviderRequestID applies equality check predicate on the "provider_request_id" field. It's identical to ProviderRequestIDEQ.

func ProviderRequestIDContains

func ProviderRequestIDContains(v string) predicate.ChatPendingInterrupt

ProviderRequestIDContains applies the Contains predicate on the "provider_request_id" field.

func ProviderRequestIDContainsFold

func ProviderRequestIDContainsFold(v string) predicate.ChatPendingInterrupt

ProviderRequestIDContainsFold applies the ContainsFold predicate on the "provider_request_id" field.

func ProviderRequestIDEQ

func ProviderRequestIDEQ(v string) predicate.ChatPendingInterrupt

ProviderRequestIDEQ applies the EQ predicate on the "provider_request_id" field.

func ProviderRequestIDEqualFold

func ProviderRequestIDEqualFold(v string) predicate.ChatPendingInterrupt

ProviderRequestIDEqualFold applies the EqualFold predicate on the "provider_request_id" field.

func ProviderRequestIDGT

func ProviderRequestIDGT(v string) predicate.ChatPendingInterrupt

ProviderRequestIDGT applies the GT predicate on the "provider_request_id" field.

func ProviderRequestIDGTE

func ProviderRequestIDGTE(v string) predicate.ChatPendingInterrupt

ProviderRequestIDGTE applies the GTE predicate on the "provider_request_id" field.

func ProviderRequestIDHasPrefix

func ProviderRequestIDHasPrefix(v string) predicate.ChatPendingInterrupt

ProviderRequestIDHasPrefix applies the HasPrefix predicate on the "provider_request_id" field.

func ProviderRequestIDHasSuffix

func ProviderRequestIDHasSuffix(v string) predicate.ChatPendingInterrupt

ProviderRequestIDHasSuffix applies the HasSuffix predicate on the "provider_request_id" field.

func ProviderRequestIDIn

func ProviderRequestIDIn(vs ...string) predicate.ChatPendingInterrupt

ProviderRequestIDIn applies the In predicate on the "provider_request_id" field.

func ProviderRequestIDLT

func ProviderRequestIDLT(v string) predicate.ChatPendingInterrupt

ProviderRequestIDLT applies the LT predicate on the "provider_request_id" field.

func ProviderRequestIDLTE

func ProviderRequestIDLTE(v string) predicate.ChatPendingInterrupt

ProviderRequestIDLTE applies the LTE predicate on the "provider_request_id" field.

func ProviderRequestIDNEQ

func ProviderRequestIDNEQ(v string) predicate.ChatPendingInterrupt

ProviderRequestIDNEQ applies the NEQ predicate on the "provider_request_id" field.

func ProviderRequestIDNotIn

func ProviderRequestIDNotIn(vs ...string) predicate.ChatPendingInterrupt

ProviderRequestIDNotIn applies the NotIn predicate on the "provider_request_id" field.

func ResolvedAt

ResolvedAt applies equality check predicate on the "resolved_at" field. It's identical to ResolvedAtEQ.

func ResolvedAtEQ

func ResolvedAtEQ(v time.Time) predicate.ChatPendingInterrupt

ResolvedAtEQ applies the EQ predicate on the "resolved_at" field.

func ResolvedAtGT

func ResolvedAtGT(v time.Time) predicate.ChatPendingInterrupt

ResolvedAtGT applies the GT predicate on the "resolved_at" field.

func ResolvedAtGTE

func ResolvedAtGTE(v time.Time) predicate.ChatPendingInterrupt

ResolvedAtGTE applies the GTE predicate on the "resolved_at" field.

func ResolvedAtIn

func ResolvedAtIn(vs ...time.Time) predicate.ChatPendingInterrupt

ResolvedAtIn applies the In predicate on the "resolved_at" field.

func ResolvedAtIsNil

func ResolvedAtIsNil() predicate.ChatPendingInterrupt

ResolvedAtIsNil applies the IsNil predicate on the "resolved_at" field.

func ResolvedAtLT

func ResolvedAtLT(v time.Time) predicate.ChatPendingInterrupt

ResolvedAtLT applies the LT predicate on the "resolved_at" field.

func ResolvedAtLTE

func ResolvedAtLTE(v time.Time) predicate.ChatPendingInterrupt

ResolvedAtLTE applies the LTE predicate on the "resolved_at" field.

func ResolvedAtNEQ

func ResolvedAtNEQ(v time.Time) predicate.ChatPendingInterrupt

ResolvedAtNEQ applies the NEQ predicate on the "resolved_at" field.

func ResolvedAtNotIn

func ResolvedAtNotIn(vs ...time.Time) predicate.ChatPendingInterrupt

ResolvedAtNotIn applies the NotIn predicate on the "resolved_at" field.

func ResolvedAtNotNil

func ResolvedAtNotNil() predicate.ChatPendingInterrupt

ResolvedAtNotNil applies the NotNil predicate on the "resolved_at" field.

func ResponseJSONIsNil

func ResponseJSONIsNil() predicate.ChatPendingInterrupt

ResponseJSONIsNil applies the IsNil predicate on the "response_json" field.

func ResponseJSONNotNil

func ResponseJSONNotNil() predicate.ChatPendingInterrupt

ResponseJSONNotNil applies the NotNil predicate on the "response_json" field.

func Status

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.ChatPendingInterrupt

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.ChatPendingInterrupt

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.ChatPendingInterrupt

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.ChatPendingInterrupt

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.ChatPendingInterrupt

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.ChatPendingInterrupt

StatusIn applies the In predicate on the "status" field.

func StatusLT

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.ChatPendingInterrupt

StatusNotIn applies the NotIn predicate on the "status" field.

func TurnID

TurnID applies equality check predicate on the "turn_id" field. It's identical to TurnIDEQ.

func TurnIDEQ

TurnIDEQ applies the EQ predicate on the "turn_id" field.

func TurnIDIn

func TurnIDIn(vs ...uuid.UUID) predicate.ChatPendingInterrupt

TurnIDIn applies the In predicate on the "turn_id" field.

func TurnIDNEQ

TurnIDNEQ applies the NEQ predicate on the "turn_id" field.

func TurnIDNotIn

func TurnIDNotIn(vs ...uuid.UUID) predicate.ChatPendingInterrupt

TurnIDNotIn applies the NotIn predicate on the "turn_id" field.

func UpdatedAt

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ChatPendingInterrupt

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ChatPendingInterrupt

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ChatPendingInterrupt

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.ChatPendingInterrupt

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ChatPendingInterrupt

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ChatPendingInterrupt

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ChatPendingInterrupt

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.ChatPendingInterrupt

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ChatPendingInterrupt queries.

func ByConversationField

func ByConversationField(field string, opts ...sql.OrderTermOption) OrderOption

ByConversationField orders the results by conversation field.

func ByConversationID

func ByConversationID(opts ...sql.OrderTermOption) OrderOption

ByConversationID orders the results by the conversation_id field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDecision

func ByDecision(opts ...sql.OrderTermOption) OrderOption

ByDecision orders the results by the decision field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByKind

func ByKind(opts ...sql.OrderTermOption) OrderOption

ByKind orders the results by the kind field.

func ByProviderRequestID

func ByProviderRequestID(opts ...sql.OrderTermOption) OrderOption

ByProviderRequestID orders the results by the provider_request_id field.

func ByResolvedAt

func ByResolvedAt(opts ...sql.OrderTermOption) OrderOption

ByResolvedAt orders the results by the resolved_at field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTurnField

func ByTurnField(field string, opts ...sql.OrderTermOption) OrderOption

ByTurnField orders the results by turn field.

func ByTurnID

func ByTurnID(opts ...sql.OrderTermOption) OrderOption

ByTurnID orders the results by the turn_id field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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