Files
PrivateCaptcha/pkg/db/generated/querier.go
2026-01-15 14:57:51 +02:00

108 lines
7.8 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package generated
import (
"context"
"github.com/jackc/pgx/v5/pgtype"
)
type Querier interface {
CreateAPIKey(ctx context.Context, arg *CreateAPIKeyParams) (*APIKey, error)
CreateAsyncTask(ctx context.Context, arg *CreateAsyncTaskParams) (pgtype.UUID, error)
CreateAuditLogs(ctx context.Context, arg []*CreateAuditLogsParams) (int64, error)
CreateCache(ctx context.Context, arg *CreateCacheParams) error
CreateCacheMany(ctx context.Context, arg *CreateCacheManyParams) error
CreateNotificationTemplate(ctx context.Context, arg *CreateNotificationTemplateParams) (*NotificationTemplate, error)
CreateOrganization(ctx context.Context, arg *CreateOrganizationParams) (*Organization, error)
CreateProperty(ctx context.Context, arg *CreatePropertyParams) (*Property, error)
CreateSubscription(ctx context.Context, arg *CreateSubscriptionParams) (*Subscription, error)
CreateSystemNotification(ctx context.Context, arg *CreateSystemNotificationParams) (*SystemNotification, error)
CreateUser(ctx context.Context, arg *CreateUserParams) (*User, error)
CreateUserNotification(ctx context.Context, arg *CreateUserNotificationParams) (*UserNotification, error)
DeleteAPIKey(ctx context.Context, arg *DeleteAPIKeyParams) (*APIKey, error)
DeleteCachedByKey(ctx context.Context, key string) error
DeleteDeletedRecords(ctx context.Context, deletedAt pgtype.Timestamptz) error
DeleteExpiredCache(ctx context.Context) error
DeleteLock(ctx context.Context, name string) error
DeleteOldAsyncTasks(ctx context.Context, createdAt pgtype.Timestamptz) error
DeleteOldAuditLogs(ctx context.Context, createdAt pgtype.Timestamptz) error
DeleteOrganizations(ctx context.Context, dollar_1 []int32) error
DeletePendingUserNotification(ctx context.Context, arg *DeletePendingUserNotificationParams) error
DeleteProcessedUserNotifications(ctx context.Context, processedAt pgtype.Timestamptz) error
DeleteProperties(ctx context.Context, dollar_1 []int32) error
DeleteUnprocessedUserNotifications(ctx context.Context, scheduledAt pgtype.Timestamptz) error
DeleteUnusedNotificationTemplates(ctx context.Context, arg *DeleteUnusedNotificationTemplatesParams) error
DeleteUserAPIKeys(ctx context.Context, userID pgtype.Int4) error
DeleteUsers(ctx context.Context, dollar_1 []int32) error
FindUserOrgByName(ctx context.Context, arg *FindUserOrgByNameParams) (*Organization, error)
GetAPIKeyByExternalID(ctx context.Context, externalID pgtype.UUID) (*APIKey, error)
GetAsyncTask(ctx context.Context, id pgtype.UUID) (*AsyncTask, error)
GetCachedByKey(ctx context.Context, key string) ([]byte, error)
GetLastActiveSystemNotification(ctx context.Context, arg *GetLastActiveSystemNotificationParams) (*SystemNotification, error)
GetLock(ctx context.Context, name string) (*Lock, error)
GetNotificationTemplateByHash(ctx context.Context, externalID string) (*NotificationTemplate, error)
GetOrgAuditLogs(ctx context.Context, arg *GetOrgAuditLogsParams) ([]*GetOrgAuditLogsRow, error)
GetOrgProperties(ctx context.Context, arg *GetOrgPropertiesParams) ([]*Property, error)
GetOrgPropertiesCount(ctx context.Context, orgID pgtype.Int4) (int64, error)
GetOrgPropertyByName(ctx context.Context, arg *GetOrgPropertyByNameParams) (*Property, error)
GetOrganizationUsers(ctx context.Context, orgID int32) ([]*GetOrganizationUsersRow, error)
GetOrganizationUsersWithEmailInvites(ctx context.Context, orgID int32) ([]*GetOrganizationUsersWithEmailInvitesRow, error)
GetOrganizationWithAccess(ctx context.Context, arg *GetOrganizationWithAccessParams) (*GetOrganizationWithAccessRow, error)
GetPendingAsyncTasks(ctx context.Context, arg *GetPendingAsyncTasksParams) ([]*GetPendingAsyncTasksRow, error)
GetPendingUserNotifications(ctx context.Context, arg *GetPendingUserNotificationsParams) ([]*GetPendingUserNotificationsRow, error)
GetProperties(ctx context.Context, limit int32) ([]*Property, error)
GetPropertiesByExternalID(ctx context.Context, dollar_1 []pgtype.UUID) ([]*Property, error)
GetPropertiesByID(ctx context.Context, dollar_1 []int32) ([]*Property, error)
GetPropertyAuditLogs(ctx context.Context, arg *GetPropertyAuditLogsParams) ([]*GetPropertyAuditLogsRow, error)
GetPropertyByExternalID(ctx context.Context, externalID pgtype.UUID) (*Property, error)
GetPropertyByID(ctx context.Context, id int32) (*Property, error)
GetSoftDeletedOrganizations(ctx context.Context, arg *GetSoftDeletedOrganizationsParams) ([]*GetSoftDeletedOrganizationsRow, error)
GetSoftDeletedProperties(ctx context.Context, arg *GetSoftDeletedPropertiesParams) ([]*GetSoftDeletedPropertiesRow, error)
GetSoftDeletedUsers(ctx context.Context, arg *GetSoftDeletedUsersParams) ([]*GetSoftDeletedUsersRow, error)
GetSubscriptionByID(ctx context.Context, id int32) (*Subscription, error)
GetSystemNotificationById(ctx context.Context, id int32) (*SystemNotification, error)
GetTrialUsers(ctx context.Context, arg *GetTrialUsersParams) ([]*User, error)
GetUserAPIKeyByName(ctx context.Context, arg *GetUserAPIKeyByNameParams) (*APIKey, error)
GetUserAPIKeys(ctx context.Context, userID pgtype.Int4) ([]*APIKey, error)
GetUserAuditLogs(ctx context.Context, arg *GetUserAuditLogsParams) ([]*GetUserAuditLogsRow, error)
GetUserByEmail(ctx context.Context, email string) (*User, error)
GetUserByID(ctx context.Context, id int32) (*User, error)
GetUserOrganizations(ctx context.Context, userID pgtype.Int4) ([]*GetUserOrganizationsRow, error)
GetUserPropertiesCount(ctx context.Context, orgOwnerID pgtype.Int4) (int64, error)
GetUsersWithoutSubscription(ctx context.Context, dollar_1 []int32) ([]*User, error)
InsertLock(ctx context.Context, arg *InsertLockParams) (*Lock, error)
InviteEmailToOrg(ctx context.Context, arg *InviteEmailToOrgParams) (*OrganizationUser, error)
InviteUserToOrg(ctx context.Context, arg *InviteUserToOrgParams) (*OrganizationUser, error)
LinkOrgInviteToUser(ctx context.Context, arg *LinkOrgInviteToUserParams) (*OrganizationUser, error)
MoveProperty(ctx context.Context, arg *MovePropertyParams) (*Property, error)
Ping(ctx context.Context) (int32, error)
RemoveOrgInviteByID(ctx context.Context, id int32) error
RemoveUserFromOrg(ctx context.Context, arg *RemoveUserFromOrgParams) error
RotateAPIKey(ctx context.Context, arg *RotateAPIKeyParams) (*APIKey, error)
SoftDeleteProperties(ctx context.Context, arg *SoftDeletePropertiesParams) ([]*Property, error)
SoftDeleteProperty(ctx context.Context, id int32) (*Property, error)
SoftDeleteUser(ctx context.Context, id int32) (*User, error)
SoftDeleteUserOrganization(ctx context.Context, arg *SoftDeleteUserOrganizationParams) error
SoftDeleteUserOrganizations(ctx context.Context, userID pgtype.Int4) error
SwapOrgOwnership(ctx context.Context, arg *SwapOrgOwnershipParams) error
TransferOrgProperties(ctx context.Context, arg *TransferOrgPropertiesParams) error
TransferOrganization(ctx context.Context, arg *TransferOrganizationParams) error
UpdateAPIKey(ctx context.Context, arg *UpdateAPIKeyParams) (*APIKey, error)
UpdateAsyncTask(ctx context.Context, arg *UpdateAsyncTaskParams) error
UpdateAttemptedUserNotifications(ctx context.Context, dollar_1 []int32) error
UpdateCacheExpiration(ctx context.Context, arg *UpdateCacheExpirationParams) error
UpdateInternalSubscriptions(ctx context.Context, arg *UpdateInternalSubscriptionsParams) error
UpdateOrgMembershipLevel(ctx context.Context, arg *UpdateOrgMembershipLevelParams) error
UpdateOrganization(ctx context.Context, arg *UpdateOrganizationParams) (*Organization, error)
UpdateProcessedUserNotifications(ctx context.Context, arg *UpdateProcessedUserNotificationsParams) error
UpdateProperty(ctx context.Context, arg *UpdatePropertyParams) (*UpdatePropertyRow, error)
UpdateUserData(ctx context.Context, arg *UpdateUserDataParams) (*User, error)
UpdateUserSubscription(ctx context.Context, arg *UpdateUserSubscriptionParams) (*User, error)
}
var _ Querier = (*Queries)(nil)