Documentation
¶
Index ¶
- type Account
- type AccountAddress
- type AccountBilling
- type AccountBranding
- type AccountGroup
- type AccountGroupProductLine
- type AccountGroupQuantityDiscount
- type AccountIntegration
- type AccountInventorySetting
- type AccountPlan
- type AccountPlanFeature
- type AccountPlanLimit
- type AccountPortal
- type AccountPrice
- type AccountPriceAttribute
- type AccountPriceItemCategory
- type AccountProductionScheduleSetting
- type AccountRelation
- type AccountRelationNotificationPreference
- type AccountRelationNotificationType
- type AccountRelationPriceGroup
- type AccountRelationProductLine
- type AccountStatus
- type AccountUser
- type AcquireTaskLeaseParams
- type ActionType
- type Address
- type AdjustmentType
- type AdvanceRecoveryPointParams
- type AgentTokenBilling
- type Announcement
- type AnnouncementReceipt
- type ApiKey
- type Attribute
- type AuditEvent
- type Batch
- type BatchFlow
- type BatchGetResourceCreatorsParams
- type BatchGetResourceCreatorsRow
- type BatchesMachine
- type Carrier
- type CarrierOption
- type CarrierTransitEstimate
- type ChangeLog
- type Color
- type Consumption
- type Conversation
- type ConversationDmKey
- type ConversationLink
- type ConversationParticipant
- type CreateAuditEventParams
- type CreateIdempotencyKeyWithScopeParams
- type CreateOutboxMessageParams
- type CreateRequestLogParams
- type DBTX
- type DcLocation
- type DeletedRecord
- type Delivery
- type DeliveryLine
- type DeliveryStatus
- type DemandOverride
- type DemandOverrideType
- type Department
- type DepartmentsPick
- type DocApiKey
- type EdiRun
- type EmailDomain
- type EmailInbox
- type EmailLog
- type EmailMessage
- type EmailRecipient
- type ErrorLog
- type FindAuditEventByIDParams
- type FindAuditEventByIDRow
- type FindRequestLogBaseByIDParams
- type FindRequestLogBaseByIDRow
- type FindRequestLogByIDParams
- type FindRequestLogByIDRow
- type FulfillmentPolicy
- type Geolocation
- type GetInboxRecordByMessageAndHandlerParams
- type GetLockedOutboxMessagesByIDsParams
- type GetRecoveryPointRow
- type GetResourceCreateChangesParams
- type HubspotAccountUserLink
- type HubspotCompanyReview
- type HubspotSyncJob
- type HubspotSyncRecord
- type IdempotencyKey
- type InventoryAllocation
- type InventoryChangeLog
- type InventoryIssue
- type InventoryLog
- type InventoryPolicyType
- type InventoryReceipt
- type InventoryReceiptStatus
- type Inventoryissuestatus
- type Invoice
- type InvoiceLine
- type Item
- type ItemAttribute
- type ItemCategoriesProperty
- type ItemCategoriesQuantityDiscount
- type ItemCategory
- type ItemCategoryType
- type ItemType
- type Job
- type JournalPosting
- type LabelSize
- type LabelType
- type ListAuditEventsBackwardParams
- type ListAuditEventsBackwardRow
- type ListAuditEventsForwardParams
- type ListAuditEventsForwardRow
- type ListResourceUserActorIDsParams
- type LockIdempotencyKeyParams
- type LockOutboxMessagesByIDsParams
- type Lot
- type Machine
- type MachineDowntimeEvent
- type MachineDowntimeReason
- type MarkInboxRecordFailedParams
- type MarkOutboxMessageFailedParams
- type Material
- type Message
- type MessageAttachment
- type MessageInbox
- type MessageOutbox
- type MessageReceipt
- type MessagingBlock
- type MessagingGroup
- type MessagingGroupMember
- type MessagingReport
- type Notification
- type NotificationPreference
- type OnboardingStatus
- type OperatingCalendar
- type OperatingCalendarClosure
- type OrderDiscount
- type OrderEmailContact
- type OrderPaymentIntent
- type ParentChildProductionStep
- type Part
- type PaymentTerm
- type PaymentTermsRegistrationFlow
- type Permission
- type PermissionGroup
- type Pick
- type PickLine
- type PortalDomain
- type PortalRegistrationSession
- type Priority
- type Product
- type ProductLine
- type ProductLineTarget
- type ProductLinesQuantityDiscount
- type ProductType
- type Production
- type ProductionRun
- type ProductionSchedule
- type ProductionScheduleDerivedLine
- type ProductionScheduleDeviation
- type ProductionScheduleFinishedPolicy
- type ProductionScheduleFinishingLine
- type ProductionScheduleItemPolicy
- type ProductionScheduleItemSetting
- type ProductionScheduleLine
- type ProductionScheduleLineOrder
- type ProductionScheduleLineStatus
- type ProductionScheduleResourceSetting
- type ProductionScheduleStatus
- type ProductionShift
- type ProductionStep
- type Property
- type PurgeProcessedInboxMessagesParams
- type PurgePublishedOutboxMessagesByIDsParams
- type Quantity
- type QuantityDiscount
- type QuantityDiscountTier
- type QuantityDiscountsAttribute
- type QuantityDiscountsUnit
- type Queries
- func (q *Queries) AcquireTaskLease(ctx context.Context, arg AcquireTaskLeaseParams) (sql.Result, error)
- func (q *Queries) AdvanceRecoveryPoint(ctx context.Context, arg AdvanceRecoveryPointParams) error
- func (q *Queries) BatchGetResourceCreators(ctx context.Context, arg BatchGetResourceCreatorsParams) ([]BatchGetResourceCreatorsRow, error)
- func (q *Queries) CleanupExpiredOutboxLocksByIDs(ctx context.Context, ids []int64) (sql.Result, error)
- func (q *Queries) CreateAuditEvent(ctx context.Context, arg CreateAuditEventParams) error
- func (q *Queries) CreateIdempotencyKeyWithScope(ctx context.Context, arg CreateIdempotencyKeyWithScopeParams) (int64, error)
- func (q *Queries) CreateOutboxMessage(ctx context.Context, arg CreateOutboxMessageParams) (int64, error)
- func (q *Queries) CreateRequestLog(ctx context.Context, arg CreateRequestLogParams) error
- func (q *Queries) DB() DBTX
- func (q *Queries) DeleteExpiredAuditEvents(ctx context.Context, limit int32) (sql.Result, error)
- func (q *Queries) DeleteExpiredDeletedRecords(ctx context.Context, limit int32) (sql.Result, error)
- func (q *Queries) DeleteExpiredIdempotencyKeys(ctx context.Context, limit int32) (sql.Result, error)
- func (q *Queries) DeleteExpiredRequestLogs(ctx context.Context, limit int32) (sql.Result, error)
- func (q *Queries) DeleteExpiredServiceIdempotencyKeys(ctx context.Context, limit int32) (sql.Result, error)
- func (q *Queries) FindAuditEventByID(ctx context.Context, arg FindAuditEventByIDParams) (FindAuditEventByIDRow, error)
- func (q *Queries) FindRequestLogBaseByID(ctx context.Context, arg FindRequestLogBaseByIDParams) (FindRequestLogBaseByIDRow, error)
- func (q *Queries) FindRequestLogByID(ctx context.Context, arg FindRequestLogByIDParams) (FindRequestLogByIDRow, error)
- func (q *Queries) GetIdempotencyKeyByScopeHashForUpdate(ctx context.Context, scopeHash string) (IdempotencyKey, error)
- func (q *Queries) GetInboxRecordByMessageAndHandler(ctx context.Context, arg GetInboxRecordByMessageAndHandlerParams) (MessageInbox, error)
- func (q *Queries) GetLockedOutboxMessagesByIDs(ctx context.Context, arg GetLockedOutboxMessagesByIDsParams) ([]MessageOutbox, error)
- func (q *Queries) GetRecoveryPoint(ctx context.Context, typeID string) (GetRecoveryPointRow, error)
- func (q *Queries) GetResourceCreateChanges(ctx context.Context, arg GetResourceCreateChangesParams) (db.NullableRawMessage, error)
- func (q *Queries) ListAuditEventsBackward(ctx context.Context, arg ListAuditEventsBackwardParams) ([]ListAuditEventsBackwardRow, error)
- func (q *Queries) ListAuditEventsForward(ctx context.Context, arg ListAuditEventsForwardParams) ([]ListAuditEventsForwardRow, error)
- func (q *Queries) ListResourceUserActorIDs(ctx context.Context, arg ListResourceUserActorIDsParams) ([]string, error)
- func (q *Queries) LockIdempotencyKey(ctx context.Context, arg LockIdempotencyKeyParams) (sql.Result, error)
- func (q *Queries) LockOutboxMessagesByIDs(ctx context.Context, arg LockOutboxMessagesByIDsParams) error
- func (q *Queries) MarkInboxRecordFailed(ctx context.Context, arg MarkInboxRecordFailedParams) error
- func (q *Queries) MarkInboxRecordProcessed(ctx context.Context, id int64) error
- func (q *Queries) MarkOutboxMessageFailed(ctx context.Context, arg MarkOutboxMessageFailedParams) error
- func (q *Queries) MarkOutboxMessagesPublished(ctx context.Context, ids []int64) error
- func (q *Queries) PurgeProcessedInboxMessages(ctx context.Context, arg PurgeProcessedInboxMessagesParams) (sql.Result, error)
- func (q *Queries) PurgePublishedOutboxMessagesByIDs(ctx context.Context, arg PurgePublishedOutboxMessagesByIDsParams) (sql.Result, error)
- func (q *Queries) ReleaseIdempotencyKeyLock(ctx context.Context, typeID string) error
- func (q *Queries) ReleaseTaskLease(ctx context.Context, arg ReleaseTaskLeaseParams) error
- func (q *Queries) RenewTaskLease(ctx context.Context, arg RenewTaskLeaseParams) (sql.Result, error)
- func (q *Queries) SelectExpiredOutboxLockIDs(ctx context.Context, limit int32) ([]int64, error)
- func (q *Queries) SelectOutboxMessageIDsForLock(ctx context.Context, limit int32) ([]int64, error)
- func (q *Queries) SelectPublishedOutboxMessageIDsForPurge(ctx context.Context, arg SelectPublishedOutboxMessageIDsForPurgeParams) ([]int64, error)
- func (q *Queries) SetIdempotencyKeyResponse(ctx context.Context, arg SetIdempotencyKeyResponseParams) error
- func (q *Queries) SetIdempotencyKeyResponseWithTTL(ctx context.Context, arg SetIdempotencyKeyResponseWithTTLParams) error
- func (q *Queries) TryInsertInboxRecord(ctx context.Context, arg TryInsertInboxRecordParams) (sql.Result, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Rate
- type ReceivingOrder
- type ReceivingOrderLine
- type RefreshToken
- type RegistrationFlow
- type RegistrationFlowsShippingTerm
- type RegistrationQueue
- type RegistrationSession
- type ReleaseTaskLeaseParams
- type RenewTaskLeaseParams
- type RequestLog
- type Role
- type RolePermission
- type RoleType
- type SalesOrder
- type SalesOrderLine
- type SalesOrderStatus
- type SalesOrderType
- type SandboxAccount
- type ScanningStation
- type ScanningStationType
- type ScheduleDeviationType
- type SelectPublishedOutboxMessageIDsForPurgeParams
- type ServiceIdempotencyKey
- type SetIdempotencyKeyResponseParams
- type SetIdempotencyKeyResponseWithTTLParams
- type Settlement
- type Shipment
- type ShipmentLine
- type ShipmentStatus
- type ShippingCase
- type ShippingTerm
- type ShippingTermFreeShippingRule
- type StorageLocation
- type StorageLocationType
- type StripeEventLog
- type SupplierMaterial
- type SupportRoute
- type SysProperty
- type SysPropertyType
- type Target
- type TaskLease
- type Territory
- type TokenPackPurchase
- type Transaction
- type TransactionAllocation
- type TransactionMethod
- type TransactionType
- type TryInsertInboxRecordParams
- type Unit
- type UnitGroup
- type UnitGroupUnit
- type UnitType
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string
Name string
AccountTypeCode string
OnboardingStatusCode string
AccountBillingID sql.NullString
DefaultBillingAddressID sql.NullString
DefaultShippingAddressID sql.NullString
UpdatedAt time.Time
CreatedAt time.Time
AccountPlanID sql.NullString
InternalStripeCustomerID sql.NullString
InternalStripeSubscriptionID sql.NullString
SubscriptionStatus sql.NullString
SubscriptionCurrentPeriodEnd sql.NullTime
}
type AccountAddress ¶
type AccountBilling ¶
type AccountBilling struct {
ID string
AccountPlanID string
InternalStripeCustomerID sql.NullString
InternalStripeSubscriptionID sql.NullString
SubscriptionStatus sql.NullString
SubscriptionCurrentPeriodEnd sql.NullTime
StripeBillingProfileID sql.NullString
StripeBillingCadenceID sql.NullString
StripePricingPlanSubscriptionID sql.NullString
ServicingStatus sql.NullString
CollectionStatus sql.NullString
AgentMonthlySpendingCapCents sql.NullInt64
CreatedAt time.Time
UpdatedAt time.Time
}
type AccountBranding ¶
type AccountBranding struct {
ID string
OwnerAccountID string
SupportEmail sql.NullString
LogoUrl sql.NullString
FaviconUrl sql.NullString
PhoneNumber sql.NullString
FacebookHandle sql.NullString
InstagramHandle sql.NullString
LinkedinHandle sql.NullString
TwitterHandle sql.NullString
WebsiteUrl sql.NullString
UpdatedAt time.Time
CreatedAt time.Time
}
type AccountGroup ¶
type AccountGroup struct {
ID string
OwnerAccountID string
Name string
Description sql.NullString
CommissionStatusCode string
FreightStatusCode string
AccountGroupTypeCode string
RegistrationFlowID sql.NullString
UpdatedAt time.Time
CreatedAt time.Time
DefaultLeadTimeDays sql.NullInt32
FulfillmentPolicyCode sql.NullString
ReceiveCalendarID sql.NullString
}
type AccountGroupProductLine ¶
type AccountIntegration ¶
type AccountInventorySetting ¶
type AccountPlan ¶
type AccountPlan struct {
ID int64
TypeID string
Name string
PlanTypeCode string
Version int32
PricePerSeat string
PricePerMonth sql.NullString
SeatMinimum sql.NullInt32
StripePricingPlanID sql.NullString
RegistrationLimit sql.NullInt32
DisplayFeatures json.RawMessage
DisplayOrder int32
IsHighlighted bool
ButtonText string
IncludesPreviousPlan sql.NullString
IsPubliclyVisible bool
EffectiveAt time.Time
ExpiresAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
}
type AccountPlanFeature ¶
type AccountPlanLimit ¶
type AccountPortal ¶
type AccountPrice ¶
type AccountPriceAttribute ¶
type AccountProductionScheduleSetting ¶
type AccountProductionScheduleSetting struct {
ID string
AccountID string
ConstraintDepartmentID sql.NullString
PlanningHorizonWeeks int32
FrozenWeeks int32
WeekStartDay int32
DemandWindowMonths int32
ForecastHistoryMonths int32
ForecastMonths int32
DemandBasisCode string
ForecastZ string
ChangeoverAvgMinutes string
ChangeoverMinMinutes string
ChangeoverMaxMinutes string
ChangeoverLaborRate string
HoldingRatePct string
ServiceLevelZ string
FinishLeadTimeWeeks string
DefaultConstraintLeadTimeWeeks string
MaxWeeksSupply string
MaxFlowDepth int32
ShiftsPerDay int32
HoursPerShift string
WorkDaysPerWeek int32
WeeksPerYear int32
CapacityHeadroomPct string
DefaultLotUnits string
IsEnabled bool
GenerationCron sql.NullString
GenerationTimezone string
AutoPublish bool
LastGeneratedAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
DefaultCustomerLeadTimeDays int32
DefaultFulfillmentPolicyCode string
RecommendationAdiThreshold string
RecommendationConcentrationPct string
RecommendationCv2Threshold string
RecommendationDormantMonths int32
RecommendationHighValueUnitCost string
RecommendationSlowMoverCogs string
ReceiveCalendarID sql.NullString
ShipCalendarID sql.NullString
}
type AccountRelation ¶
type AccountRelation struct {
ID string
OwnerAccountID string
CounterpartyAccountID string
AccountRelationRoleCode string
ExternalNumber string
IsEdiEnabled bool
StripeCustomerID sql.NullString
StripeEmail sql.NullString
HubspotCompanyID sql.NullString
Notes sql.NullString
UpdatedAt time.Time
CreatedAt time.Time
ParentAccountRelationID sql.NullString
Alias sql.NullString
DefaultBillingAddressID sql.NullString
DefaultShippingAddressID sql.NullString
CommissionStatusCode sql.NullString
FreightStatusCode sql.NullString
DefaultCarrierID sql.NullString
DefaultCarrierOptionID sql.NullString
DefaultSalesRepID sql.NullString
AccountStatusCode sql.NullString
PaymentTermID sql.NullString
AccountGroupID sql.NullString
PriorityCode string
ShippingTermID sql.NullString
CarrierBillingType sql.NullString
CarrierBillingAccount sql.NullString
CreditLimitID sql.NullString
DefaultLeadTimeDays sql.NullInt32
FulfillmentPolicyCode sql.NullString
ReceiveCalendarID sql.NullString
}
type AccountStatus ¶
type AccountUser ¶
type AcquireTaskLeaseParams ¶
type ActionType ¶
type Address ¶
type Address struct {
ID string
Name string
Phone sql.NullString
Email sql.NullString
IsDropShip bool
GeolocationID string
CreatedAt time.Time
UpdatedAt time.Time
ReceiveCalendarID sql.NullString
}
type AdjustmentType ¶
type AdvanceRecoveryPointParams ¶
type AdvanceRecoveryPointParams struct {
RecoveryPoint string
RequestParams db.NullableRawMessage
TypeID string
}
type AgentTokenBilling ¶
type Announcement ¶
type Announcement struct {
ID string
Scope string
AccountID sql.NullString
Category string
TemplateKey sql.NullString
TemplateParams json.RawMessage
Title string
Body sql.NullString
LinkResourceType sql.NullString
LinkResourceID sql.NullString
Priority string
Audience json.RawMessage
PublishAt time.Time
ExpiresAt sql.NullTime
CreatedBy sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type AnnouncementReceipt ¶
type AuditEvent ¶
type AuditEvent struct {
ID int64
TypeID string
ActorID string
ActorType string
IdentityType string
AccountID string
TargetAccountID sql.NullString
Action string
ResourceType string
ResourceID string
Changes db.NullableRawMessage
Metadata db.NullableRawMessage
ServiceName string
RequestID sql.NullString
IdempotencyKeyID sql.NullString
SourceIp sql.NullString
OccurredAt time.Time
CreatedAt time.Time
RootResourceID sql.NullString
RootResourceType sql.NullString
}
type Batch ¶
type Batch struct {
ID string
CreatedAt time.Time
ClosedAt sql.NullTime
UpdatedAt time.Time
AccountID string
ItemID string
QuantityID string
ScanningStationID sql.NullString
SecondsQuantityID sql.NullString
WasteQuantityID sql.NullString
ProductionStepID sql.NullString
ProductionRunID sql.NullString
ScannedAt sql.NullTime
LocationID sql.NullString
}
type BatchGetResourceCreatorsParams ¶
type BatchGetResourceCreatorsParams struct {
ResourceType string
ResourceIds []string
CallerAccountIDActor string
CallerAccountIDTarget sql.NullString
}
type BatchGetResourceCreatorsRow ¶
type BatchGetResourceCreatorsRow struct {
ResourceID string
ActorID string
ActorType string
IdentityType string
UserName sql.NullString
UserEmail sql.NullString
ApiKeyName sql.NullString
ApiKeyRedactedValue sql.NullString
}
type BatchesMachine ¶
type Carrier ¶
type Carrier struct {
ID string
Code sql.NullString
Description sql.NullString
Name string
ShippoCarrierAccountID sql.NullString
AccountNumber sql.NullString
AccountID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
IsPortalEnabled bool
DeletedAt sql.NullTime
}
type CarrierOption ¶
type CarrierTransitEstimate ¶
type Color ¶
type Color struct {
ID string
CreatedAt time.Time
DarkHex sql.NullString
LightHex sql.NullString
Name sql.NullString
Code string
UpdatedAt time.Time
}
type Consumption ¶
type Conversation ¶
type Conversation struct {
ID string
AccountID string
Type string
Audience string
Title sql.NullString
GroupID sql.NullString
TopicResourceType sql.NullString
TopicResourceID sql.NullString
CreatedByParticipantID sql.NullString
NextSequence int64
LastMessageID sql.NullString
LastMessageAt sql.NullTime
IsArchived bool
LegalHold bool
WorkflowStatus sql.NullString
AssigneeResourceType sql.NullString
AssigneeResourceID sql.NullString
EmailInboxID sql.NullString
EmailExternalAddress sql.NullString
Metadata json.RawMessage
CreatedAt time.Time
UpdatedAt time.Time
}
type ConversationDmKey ¶
type ConversationLink ¶
type ConversationParticipant ¶
type ConversationParticipant struct {
ID string
ConversationID string
AccountID string
ParticipantType string
AccountUserID sql.NullString
AgentConfigID sql.NullString
Role string
Membership string
Notifications string
MutedUntil sql.NullTime
LastReadMessageID sql.NullString
LastReadSequence int64
LastReadAt sql.NullTime
LastSeenAt sql.NullTime
HiddenAt sql.NullTime
AgentTriggerPolicy sql.NullString
AgentTriggerKeywords json.RawMessage
RelationAccountID sql.NullString
JoinedAt time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
type CreateAuditEventParams ¶
type CreateAuditEventParams struct {
TypeID string
ActorID string
ActorType string
IdentityType string
AccountID string
TargetAccountID sql.NullString
Action string
ResourceType string
ResourceID string
RootResourceType sql.NullString
RootResourceID sql.NullString
Changes db.NullableRawMessage
Metadata db.NullableRawMessage
ServiceName string
RequestID sql.NullString
IdempotencyKeyID sql.NullString
SourceIp sql.NullString
OccurredAt time.Time
}
type CreateIdempotencyKeyWithScopeParams ¶
type CreateIdempotencyKeyWithScopeParams struct {
TypeID string
ScopeHash string
RequestBodyHash string
ActorID sql.NullString
IdentityType string
TargetAccountID sql.NullString
RequestMethod string
NormalizedRoute string
IdempotencyKey string
RequestParams db.NullableRawMessage
RecoveryPoint string
LockOwner sql.NullString
}
type CreateOutboxMessageParams ¶
type CreateOutboxMessageParams struct {
MessageID string
ServiceName string
MessageType string
Destination string
RoutingKey sql.NullString
Headers db.NullableRawMessage
Payload json.RawMessage
MaxAttempts int32
RequestID sql.NullString
ParentMessageID sql.NullString
}
type CreateRequestLogParams ¶
type CreateRequestLogParams struct {
ID string
Method string
Host string
Path string
NormalizedRoute string
QueryJson db.NullableRawMessage
StatusCode int32
LatencyUs int64
AccountID sql.NullString
TargetAccountID sql.NullString
ClientIp sql.NullString
ClientIpString sql.NullString
UserAgent sql.NullString
Referrer sql.NullString
ErrorCode sql.NullString
ErrorMessage sql.NullString
OccurredAt time.Time
CreatedAt time.Time
IdempotencyKeyID sql.NullString
ActorID sql.NullString
ActorType sql.NullString
InternalErrorMessage sql.NullString
StackTrace sql.NullString
IdentityType sql.NullString
ApiVersion sql.NullString
TraceID sql.NullString
PublicEndpoint bool
Hidden bool
RequestBodyJson db.NullableRawMessage
ResponseBodyJson db.NullableRawMessage
}
type DcLocation ¶
type DeletedRecord ¶
type DeliveryLine ¶
type DeliveryStatus ¶
type DemandOverride ¶
type DemandOverride struct {
ID string
AccountID string
ScopeCode string
ScopeRefID string
PeriodStartDate time.Time
PeriodEndDate time.Time
OverrideTypeCode string
Value string
UnitID sql.NullString
ReasonCode sql.NullString
Note sql.NullString
CreatedByID string
EffectiveFrom time.Time
ExpiresAt sql.NullTime
IsActive bool
CreatedAt time.Time
UpdatedAt time.Time
}
type DemandOverrideType ¶
type Department ¶
type Department struct {
ID string
Name string
Notes sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
LocationID sql.NullString
AccountID string
LaborRateID sql.NullString
}
type DepartmentsPick ¶
type EmailDomain ¶
type EmailInbox ¶
type EmailInbox struct {
ID string
AccountID string
EmailDomainID string
Address string
FromName sql.NullString
Status string
AgentConfigID sql.NullString
AgentTriggerPolicy sql.NullString
AgentTriggerKeywords json.RawMessage
GroupID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type EmailLog ¶
type EmailLog struct {
ID string
HasSent bool
AccountID string
SentByID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
Subject sql.NullString
Filename sql.NullString
SesMessageID sql.NullString
}
type EmailMessage ¶
type EmailMessage struct {
ID string
AccountID string
ConversationID string
MessageID string
EmailInboxID string
Direction string
RfcMessageID string
InReplyTo sql.NullString
References sql.NullString
FromAddr string
ToAddrs string
CcAddrs sql.NullString
Subject sql.NullString
RawS3Key sql.NullString
SesMessageID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type EmailRecipient ¶
type FindAuditEventByIDParams ¶
type FindAuditEventByIDParams struct {
IncludeChanges db.NullableRawMessage
IncludeMetadata db.NullableRawMessage
TypeID string
CallerAccountIDActor string
CallerAccountIDTarget sql.NullString
}
type FindAuditEventByIDRow ¶
type FindAuditEventByIDRow struct {
TypeID string
ActorID string
ActorType string
IdentityType string
AccountID string
Action string
ResourceType string
ResourceID string
Changes interface{}
Metadata interface{}
ServiceName string
RequestID sql.NullString
IdempotencyKeyID sql.NullString
SourceIp sql.NullString
OccurredAt time.Time
CreatedAt time.Time
TargetAccountID sql.NullString
AccountName sql.NullString
AccountCreatedAt sql.NullTime
AccountUpdatedAt sql.NullTime
UserName sql.NullString
UserEmail sql.NullString
ApiKeyName sql.NullString
ApiKeyRedactedValue sql.NullString
IdempotencyKey sql.NullString
}
type FindRequestLogBaseByIDParams ¶
type FindRequestLogBaseByIDParams struct {
IncludeQueryJson db.NullableRawMessage
IncludeRequestBodyJson db.NullableRawMessage
IncludeResponseBodyJson db.NullableRawMessage
ID string
CallerAccountID sql.NullString
}
type FindRequestLogBaseByIDRow ¶
type FindRequestLogBaseByIDRow struct {
ID string
Method string
Host string
Path string
NormalizedRoute string
QueryJson interface{}
StatusCode int32
LatencyUs int64
ApiVersion sql.NullString
ActorID sql.NullString
ActorType sql.NullString
IdentityType sql.NullString
ClientIpString sql.NullString
UserAgent sql.NullString
Referrer sql.NullString
ErrorCode sql.NullString
ErrorMessage sql.NullString
OccurredAt time.Time
CreatedAt time.Time
IdempotencyKeyID sql.NullString
RequestBodyJson interface{}
ResponseBodyJson interface{}
TargetAccountID sql.NullString
IdempotencyKey sql.NullString
}
type FindRequestLogByIDParams ¶
type FindRequestLogByIDParams struct {
IncludeQueryJson db.NullableRawMessage
IncludeRequestBodyJson db.NullableRawMessage
IncludeResponseBodyJson db.NullableRawMessage
ID string
CallerAccountID sql.NullString
}
type FindRequestLogByIDRow ¶
type FindRequestLogByIDRow struct {
ID string
Method string
Host string
Path string
NormalizedRoute string
QueryJson interface{}
StatusCode int32
LatencyUs int64
ApiVersion sql.NullString
ActorID sql.NullString
ActorType sql.NullString
IdentityType sql.NullString
ClientIpString sql.NullString
UserAgent sql.NullString
Referrer sql.NullString
ErrorCode sql.NullString
ErrorMessage sql.NullString
OccurredAt time.Time
CreatedAt time.Time
IdempotencyKeyID sql.NullString
RequestBodyJson interface{}
ResponseBodyJson interface{}
UserEmail sql.NullString
UserName sql.NullString
ApiKeyTypeID sql.NullString
ApiKeyRedactedValue sql.NullString
ApiKeyName sql.NullString
UserRoleID sql.NullString
UserRoleName sql.NullString
UserRoleTypeCode sql.NullString
ApiKeyRoleID sql.NullString
ApiKeyRoleName sql.NullString
ApiKeyRoleTypeCode sql.NullString
TargetAccountID sql.NullString
AccountName sql.NullString
AccountCreatedAt sql.NullTime
AccountUpdatedAt sql.NullTime
IdempotencyKey sql.NullString
}
type FulfillmentPolicy ¶
type Geolocation ¶
type Geolocation struct {
ID string
StreetLine1 sql.NullString
StreetLine2 sql.NullString
Locality sql.NullString
State sql.NullString
PostalCode sql.NullString
Country string
AddressDetails json.RawMessage
GooglePlaceID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
Latitude sql.NullFloat64
Longitude sql.NullFloat64
Timezone sql.NullString
}
type GetLockedOutboxMessagesByIDsParams ¶
type GetLockedOutboxMessagesByIDsParams struct {
Ids []int64
LockOwner sql.NullString
}
type GetRecoveryPointRow ¶
type GetRecoveryPointRow struct {
RecoveryPoint string
RequestParams db.NullableRawMessage
}
type HubspotAccountUserLink ¶
type HubspotCompanyReview ¶
type HubspotCompanyReview struct {
ID string
JobID string
AccountID string
AugnoCustomerID string
CustomerName string
CustomerEmail sql.NullString
CustomerUrl sql.NullString
CandidateMatches json.RawMessage
Status string
Resolution sql.NullString
ResolvedHubspotID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type HubspotSyncJob ¶
type HubspotSyncRecord ¶
type IdempotencyKey ¶
type IdempotencyKey struct {
ID int64
TypeID string
IdempotencyKey string
ActorID sql.NullString
IdentityType string
TargetAccountID sql.NullString
RequestMethod string
NormalizedRoute string
RequestBodyHash string
ScopeHash string
RequestParams db.NullableRawMessage
ResponseCode sql.NullInt32
ResponseBody db.NullableRawMessage
ResponseHeaders db.NullableRawMessage
RecoveryPoint string
LockedAt sql.NullTime
LockOwner sql.NullString
LockExpiresAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
LastRunAt sql.NullTime
ExpiresAt sql.NullTime
}
type InventoryAllocation ¶
type InventoryChangeLog ¶
type InventoryChangeLog struct {
ID string
ItemID string
QuantityID string
ActionTypeCode string
ScanningStationID sql.NullString
CreatedAt time.Time
AccountID string
InventoryLogID sql.NullString
UpdatedAt time.Time
ResponsibleUserID sql.NullString
}
type InventoryIssue ¶
type InventoryIssue struct {
ID string
AccountID string
ItemID string
StorageLocationID sql.NullString
LotID sql.NullString
IssuedAt sql.NullTime
OrderID sql.NullString
BatchID sql.NullString
StatusCode string
QuantityID string
CreatedAt time.Time
UpdatedAt time.Time
}
type InventoryLog ¶
type InventoryPolicyType ¶
type InventoryReceipt ¶
type InventoryReceipt struct {
ID string
OwnerAccountID string
HolderAccountID string
ItemID string
StorageLocationID sql.NullString
LotID sql.NullString
ReceivedAt time.Time
QuantityID string
UnitCostID string
OrderID sql.NullString
BatchID sql.NullString
StatusCode string
CreatedAt time.Time
UpdatedAt time.Time
}
type InventoryReceiptStatus ¶
type Inventoryissuestatus ¶
type InvoiceLine ¶
type ItemAttribute ¶
type ItemCategoriesProperty ¶
type ItemCategory ¶
type ItemCategoryType ¶
type Job ¶
type Job struct {
ID int64
JobID string
Type string
JobItems json.RawMessage
AccountID sql.NullString
CreatedBy sql.NullString
Results json.RawMessage
Errors json.RawMessage
ErrorSummary sql.NullString
UpdatedAt time.Time
CreatedAt time.Time
StartedAt sql.NullTime
CancelledAt sql.NullTime
CompletedAt sql.NullTime
FailedAt sql.NullTime
Error json.RawMessage
ResourceType sql.NullString
}
type JournalPosting ¶
type ListAuditEventsBackwardParams ¶
type ListAuditEventsBackwardParams struct {
IncludeChanges db.NullableRawMessage
IncludeMetadata db.NullableRawMessage
CallerAccountIDActor string
CallerAccountIDTarget sql.NullString
IncludeActorAccountFilter interface{}
ActorAccountIds []string
IncludeTargetAccountFilter interface{}
TargetAccountIds []sql.NullString
IncludeResourceTypeFilter interface{}
ResourceTypes []string
IncludeResourceIDFilter interface{}
ResourceIds []string
IncludeRootFilter interface{}
RootResourceType sql.NullString
RootResourceID sql.NullString
IncludeActorIDFilter interface{}
ActorIds []string
IncludeActorTypeFilter interface{}
ActorTypes []string
IncludeActionFilter interface{}
Actions []string
StartDate sql.NullTime
EndDate sql.NullTime
SearchQuery sql.NullString
CursorOccurredAt time.Time
CursorID string
Limit int32
}
type ListAuditEventsBackwardRow ¶
type ListAuditEventsBackwardRow struct {
TypeID string
ActorID string
ActorType string
IdentityType string
AccountID string
Action string
ResourceType string
ResourceID string
Changes interface{}
Metadata interface{}
ServiceName string
RequestID sql.NullString
IdempotencyKeyID sql.NullString
SourceIp sql.NullString
OccurredAt time.Time
CreatedAt time.Time
TargetAccountID sql.NullString
AccountName sql.NullString
AccountCreatedAt sql.NullTime
AccountUpdatedAt sql.NullTime
UserName sql.NullString
UserEmail sql.NullString
ApiKeyName sql.NullString
ApiKeyRedactedValue sql.NullString
IdempotencyKey sql.NullString
}
type ListAuditEventsForwardParams ¶
type ListAuditEventsForwardParams struct {
IncludeChanges db.NullableRawMessage
IncludeMetadata db.NullableRawMessage
CallerAccountIDActor string
CallerAccountIDTarget sql.NullString
IncludeActorAccountFilter interface{}
ActorAccountIds []string
IncludeTargetAccountFilter interface{}
TargetAccountIds []sql.NullString
IncludeResourceTypeFilter interface{}
ResourceTypes []string
IncludeResourceIDFilter interface{}
ResourceIds []string
IncludeRootFilter interface{}
RootResourceType sql.NullString
RootResourceID sql.NullString
IncludeActorIDFilter interface{}
ActorIds []string
IncludeActorTypeFilter interface{}
ActorTypes []string
IncludeActionFilter interface{}
Actions []string
StartDate sql.NullTime
EndDate sql.NullTime
SearchQuery sql.NullString
CursorOccurredAt sql.NullTime
CursorID sql.NullString
Limit int32
}
type ListAuditEventsForwardRow ¶
type ListAuditEventsForwardRow struct {
TypeID string
ActorID string
ActorType string
IdentityType string
AccountID string
Action string
ResourceType string
ResourceID string
Changes interface{}
Metadata interface{}
ServiceName string
RequestID sql.NullString
IdempotencyKeyID sql.NullString
SourceIp sql.NullString
OccurredAt time.Time
CreatedAt time.Time
TargetAccountID sql.NullString
AccountName sql.NullString
AccountCreatedAt sql.NullTime
AccountUpdatedAt sql.NullTime
UserName sql.NullString
UserEmail sql.NullString
ApiKeyName sql.NullString
ApiKeyRedactedValue sql.NullString
IdempotencyKey sql.NullString
}
type ListResourceUserActorIDsParams ¶
type ListResourceUserActorIDsParams struct {
AccountID string
ResourceType string
ResourceID string
RootResourceType sql.NullString
RootResourceID sql.NullString
}
type LockIdempotencyKeyParams ¶
type LockIdempotencyKeyParams struct {
LockOwner sql.NullString
TypeID string
}
type LockOutboxMessagesByIDsParams ¶
type LockOutboxMessagesByIDsParams struct {
LockOwner sql.NullString
LockDurationSeconds interface{}
Ids []int64
}
type MachineDowntimeEvent ¶
type MachineDowntimeEvent struct {
ID string
AccountID string
MachineID string
DepartmentID sql.NullString
ProductionStepID sql.NullString
ReasonCode string
StartedAt time.Time
EndedAt sql.NullTime
DurationSeconds sql.NullInt32
ShiftDate time.Time
ShiftCode sql.NullString
ItemID sql.NullString
ProductionRunID sql.NullString
BatchID sql.NullString
ScheduleLineID sql.NullString
Note sql.NullString
ReportedByID string
SourceCode string
CreatedAt time.Time
UpdatedAt time.Time
}
type MachineDowntimeReason ¶
type MarkInboxRecordFailedParams ¶
type MarkInboxRecordFailedParams struct {
LastError sql.NullString
ID int64
}
type MarkOutboxMessageFailedParams ¶
type MarkOutboxMessageFailedParams struct {
LastError sql.NullString
Column2 interface{}
ID int64
}
type Message ¶
type Message struct {
ID string
ConversationID string
AccountID string
Sequence sql.NullInt64
Kind string
Status string
Visibility string
SenderParticipantID sql.NullString
ClientMessageID sql.NullString
Body sql.NullString
Subject sql.NullString
Channel sql.NullString
Preview sql.NullString
EventType sql.NullString
TemplateKey sql.NullString
TemplateParams json.RawMessage
LinkResourceType sql.NullString
LinkResourceID sql.NullString
AgentRunID sql.NullString
ReplyToMessageID sql.NullString
SourceThreadMessageID sql.NullString
ApprovedByAccountUserID sql.NullString
StreamingState string
ScheduledFor sql.NullTime
ScheduledAttempts int32
LastError sql.NullString
LockedAt sql.NullTime
LockOwner sql.NullString
EditedAt sql.NullTime
DeletedAt sql.NullTime
Metadata json.RawMessage
CreatedAt time.Time
UpdatedAt time.Time
}
type MessageAttachment ¶
type MessageAttachment struct {
ID string
MessageID string
AccountID string
Kind string
S3Key sql.NullString
Url sql.NullString
ThumbnailUrl sql.NullString
Filename sql.NullString
ContentType sql.NullString
SizeBytes sql.NullInt64
ResourceType sql.NullString
ResourceID sql.NullString
DeletedAt sql.NullTime
S3PurgedAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
}
type MessageInbox ¶
type MessageOutbox ¶
type MessageOutbox struct {
ID int64
MessageID string
ServiceName string
MessageType string
Destination string
RoutingKey sql.NullString
Headers db.NullableRawMessage
Payload json.RawMessage
Status string
Attempts int32
MaxAttempts int32
NextRunAt time.Time
LockedAt sql.NullTime
LockOwner sql.NullString
LockExpiresAt sql.NullTime
LastError sql.NullString
PublishedAt sql.NullTime
RequestID sql.NullString
ParentMessageID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type MessageReceipt ¶
type MessagingBlock ¶
type MessagingGroup ¶
type MessagingGroupMember ¶
type MessagingGroupMember struct {
ID string
GroupID string
AccountID string
MemberType string
AccountUserID sql.NullString
AgentConfigID sql.NullString
CreatedAt time.Time
}
type MessagingReport ¶
type Notification ¶
type Notification struct {
ID string
AccountID string
RecipientAccountUserID string
Category string
SourceMessageID sql.NullString
ConversationID sql.NullString
Title string
Body sql.NullString
TemplateKey sql.NullString
TemplateParams json.RawMessage
LinkResourceType sql.NullString
LinkResourceID sql.NullString
SenderType sql.NullString
SenderID sql.NullString
SenderName sql.NullString
Priority string
SeenAt sql.NullTime
ReadAt sql.NullTime
DismissedAt sql.NullTime
Metadata json.RawMessage
CreatedAt time.Time
UpdatedAt time.Time
}
type NotificationPreference ¶
type OnboardingStatus ¶
type OperatingCalendar ¶
type OrderDiscount ¶
type OrderEmailContact ¶
type OrderPaymentIntent ¶
type PaymentTerm ¶
type Permission ¶
type PermissionGroup ¶
type PortalDomain ¶
type PortalRegistrationSession ¶
type PortalRegistrationSession struct {
ID int64
TypeID string
UserID string
SellerAccountID string
SellerSlug string
IsExistingCustomer sql.NullBool
Step string
CustomerID sql.NullString
SessionData json.RawMessage
CompletedAt sql.NullTime
AbandonedAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
}
type ProductLine ¶
type ProductLine struct {
ID string
Name string
Description sql.NullString
Notes sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
AccountID sql.NullString
UnitGroupID string
IsCommissionExempt bool
IsFreightExempt bool
DefaultLotID sql.NullString
FulfillmentPolicyCode sql.NullString
}
type ProductLineTarget ¶
type ProductType ¶
type Production ¶
type ProductionRun ¶
type ProductionSchedule ¶
type ProductionSchedule struct {
ID string
AccountID string
Version int32
StatusCode string
Name sql.NullString
PlanningAsOf time.Time
HorizonStartDate time.Time
HorizonEndDate time.Time
HorizonWeeks int32
FrozenWeeks int32
FrozenThroughDate sql.NullTime
DemandBasisCode string
GenerationSourceCode string
SolverVersion string
SettingsSnapshot json.RawMessage
Diagnostics json.RawMessage
ErrorMessage sql.NullString
FrozenLineCount int32
FrozenPlannedQuantity string
GeneratedByID sql.NullString
PublishedByID sql.NullString
PublishedAt sql.NullTime
SupersededByID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type ProductionScheduleDerivedLine ¶
type ProductionScheduleDerivedLine struct {
ID string
AccountID string
ProductionScheduleID string
SourceLineID string
ProductionStepID string
DepartmentID sql.NullString
ItemID string
WeekIndex int32
WeekStartDate time.Time
Quantity string
PlannedUnitID sql.NullString
ExplosionDepth int32
OffsetWeeks int32
StatusCode string
CreatedAt time.Time
UpdatedAt time.Time
}
type ProductionScheduleDeviation ¶
type ProductionScheduleDeviation struct {
ID string
AccountID string
ProductionScheduleID string
ProductionScheduleLineID sql.NullString
DeviationTypeCode string
IsFrozenWeek bool
WeekIndex sql.NullInt32
MachineID sql.NullString
ItemID sql.NullString
BeforeJson json.RawMessage
AfterJson json.RawMessage
DeltaQuantity string
DeltaRunHours string
ReasonCode sql.NullString
ReasonNote sql.NullString
ActorID string
CreatedAt time.Time
}
type ProductionScheduleFinishedPolicy ¶
type ProductionScheduleFinishedPolicy struct {
ID string
AccountID string
ProductionScheduleID string
ItemID string
Sku string
GreigeItemID string
GreigeSku string
ProductLineID sql.NullString
AnnualDemand string
WeeklyDemand string
SigmaWeekly string
SafetyStock string
ReorderPoint string
OnHand string
WeeksOfCover string
CreatedAt time.Time
UpdatedAt time.Time
}
type ProductionScheduleFinishingLine ¶
type ProductionScheduleFinishingLine struct {
ID string
AccountID string
ProductionScheduleID string
WeekIndex int32
WeekStartDate time.Time
ItemID string
Sku string
GreigeItemID string
GreigeSku string
DepartmentID sql.NullString
ProductionStepID sql.NullString
PlannedQuantity string
PlannedUnitID sql.NullString
PlannedLots int32
PlannedLotUnits string
PlannedRunHours string
GreigeConsumed string
FirmUnits string
ProjectedOnHandBefore string
ProjectedOnHandAfter string
StatusCode string
SourceCode string
IsFrozen bool
CreatedAt time.Time
UpdatedAt time.Time
}
type ProductionScheduleItemPolicy ¶
type ProductionScheduleItemPolicy struct {
ID string
AccountID string
ProductionScheduleID string
ItemID string
Sku string
ProductionStepID sql.NullString
PrimaryMachineID sql.NullString
AnnualDemand string
WeeklyDemand string
SecondsPerUnit string
UnitCost string
SetupCost string
HoldingCost string
EoqUnits string
ConstraintLeadTimeWeeks string
FinishLeadTimeWeeks string
SigmaWeeklyPooled string
SigmaDownstreamSum string
SafetyStockPrimary string
SafetyStockDownstream string
ReorderPoint string
OrderUpTo string
OnHandEchelon string
OnHandGreige string
AverageGreigeInventory string
MaxGreigeInventory string
WeeksOfCover string
ProjectedOnHand json.RawMessage
AnnualRunHours string
AbcClass sql.NullString
WasEoqCapped bool
WasCapacityStarved bool
CreatedAt time.Time
UpdatedAt time.Time
UnitID sql.NullString
FirmDemandUnits string
ForecastDemandUnits string
FulfillmentPolicyCode string
PolicySourceCode string
}
type ProductionScheduleItemSetting ¶
type ProductionScheduleItemSetting struct {
ID string
AccountID string
ItemID string
IsExcluded bool
MinLotUnits sql.NullString
MaxLotUnits sql.NullString
LotMultipleUnits sql.NullString
FixedLeadTimeWeeks sql.NullString
ServiceLevelZ sql.NullString
ManualEoqUnits sql.NullString
AbcClassOverride sql.NullString
PreferredMachineID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
FulfillmentPolicyCode sql.NullString
}
type ProductionScheduleLine ¶
type ProductionScheduleLine struct {
ID string
AccountID string
ProductionScheduleID string
WeekIndex int32
WeekStartDate time.Time
MachineID string
ProductionStepID sql.NullString
DepartmentID sql.NullString
ItemID string
PlannedQuantity string
PlannedUnitID sql.NullString
PlannedLots int32
PlannedRunHours string
PlannedChangeoverMinutes string
SequenceIndex int32
ProjectedOnHandBefore string
ProjectedOnHandAfter string
StatusCode string
SourceCode string
ReasonCode sql.NullString
IsFrozen bool
ProductionRunID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
PlannedLotUnits string
}
type ProductionScheduleResourceSetting ¶
type ProductionScheduleResourceSetting struct {
ID string
AccountID string
ScopeCode string
ScopeRefID string
IsExcluded bool
IsEnabled bool
ShiftsPerDay sql.NullInt32
HoursPerShift sql.NullString
WorkDaysPerWeek sql.NullInt32
CapacityHeadroomPct sql.NullString
EfficiencyPct sql.NullString
LeadTimeWeeks sql.NullString
LeadTimeOffsetWeeks string
ChangeoverAvgMinutes sql.NullString
ChangeoverMinMinutes sql.NullString
ChangeoverMaxMinutes sql.NullString
SortOrder int32
CreatedAt time.Time
UpdatedAt time.Time
}
type ProductionShift ¶
type ProductionStep ¶
type PurgeProcessedInboxMessagesParams ¶
type PurgeProcessedInboxMessagesParams struct {
Column1 interface{}
Limit int32
}
type PurgePublishedOutboxMessagesByIDsParams ¶
type PurgePublishedOutboxMessagesByIDsParams struct {
Ids []int64
RetentionHours interface{}
}
type QuantityDiscount ¶
type QuantityDiscountTier ¶
type QuantityDiscountsUnit ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AcquireTaskLease ¶
func (*Queries) AdvanceRecoveryPoint ¶
func (q *Queries) AdvanceRecoveryPoint(ctx context.Context, arg AdvanceRecoveryPointParams) error
func (*Queries) BatchGetResourceCreators ¶
func (q *Queries) BatchGetResourceCreators(ctx context.Context, arg BatchGetResourceCreatorsParams) ([]BatchGetResourceCreatorsRow, error)
Returns the `create` audit-event actor for each of the given resource IDs, scoped to the caller's account. Backs the `created_by` include without granting full audit-event read access. actor_type carries the relation (internal/customer/supplier); identity_type the kind (user/api_key).
func (*Queries) CleanupExpiredOutboxLocksByIDs ¶
func (*Queries) CreateAuditEvent ¶
func (q *Queries) CreateAuditEvent(ctx context.Context, arg CreateAuditEventParams) error
func (*Queries) CreateIdempotencyKeyWithScope ¶
func (*Queries) CreateOutboxMessage ¶
func (*Queries) CreateRequestLog ¶
func (q *Queries) CreateRequestLog(ctx context.Context, arg CreateRequestLogParams) error
func (*Queries) DB ¶
DB exposes the underlying DBTX handle so repositories can execute dynamically-built SQL alongside sqlc-generated queries. Hand-written, not regenerated by sqlc.
func (*Queries) DeleteExpiredAuditEvents ¶
func (*Queries) DeleteExpiredDeletedRecords ¶
func (*Queries) DeleteExpiredIdempotencyKeys ¶
func (*Queries) DeleteExpiredRequestLogs ¶
func (*Queries) DeleteExpiredServiceIdempotencyKeys ¶
func (*Queries) FindAuditEventByID ¶
func (q *Queries) FindAuditEventByID(ctx context.Context, arg FindAuditEventByIDParams) (FindAuditEventByIDRow, error)
actor_id stores the raw actor key (user_id / api_key.type_id) — exposed directly. Enrichment joins key on it: user by id, api_key by type_id. Resolves the target account (target_account_id) for the `account` sub-resource. Visible when the caller's account is either the acting account or the target.
func (*Queries) FindRequestLogBaseByID ¶
func (q *Queries) FindRequestLogBaseByID(ctx context.Context, arg FindRequestLogBaseByIDParams) (FindRequestLogBaseByIDRow, error)
Request log list queries are built dynamically in Go — see repository/request_log_list_query.go. Filter predicates are only emitted when the caller supplied a value. The actor-or-target security scope is an OR over account_id / target_account_id, satisfied by index_merge over the per-side (…, occurred_at DESC, id DESC) cursor indexes. Visible when the caller's account is either the acting account or the target.
func (*Queries) FindRequestLogByID ¶
func (q *Queries) FindRequestLogByID(ctx context.Context, arg FindRequestLogByIDParams) (FindRequestLogByIDRow, error)
actor_id stores the raw actor key (user_id for user actors, api_key.type_id for api_key actors) — the value the API exposes directly. Enrichment joins key on it: user by id, api_key by type_id, and account_user (for the role) by (user_id, target account). Visible when the caller's account is either the acting account or the target.
func (*Queries) GetIdempotencyKeyByScopeHashForUpdate ¶
func (*Queries) GetInboxRecordByMessageAndHandler ¶
func (q *Queries) GetInboxRecordByMessageAndHandler(ctx context.Context, arg GetInboxRecordByMessageAndHandlerParams) (MessageInbox, error)
func (*Queries) GetLockedOutboxMessagesByIDs ¶
func (q *Queries) GetLockedOutboxMessagesByIDs(ctx context.Context, arg GetLockedOutboxMessagesByIDsParams) ([]MessageOutbox, error)
func (*Queries) GetRecoveryPoint ¶
func (*Queries) GetResourceCreateChanges ¶
func (q *Queries) GetResourceCreateChanges(ctx context.Context, arg GetResourceCreateChangesParams) (db.NullableRawMessage, error)
The field changes recorded when the resource was created (a full snapshot of its audited fields). Lets consumers recover display attributes (e.g. an order number) without a cross-service lookup.
func (*Queries) ListAuditEventsBackward ¶
func (q *Queries) ListAuditEventsBackward(ctx context.Context, arg ListAuditEventsBackwardParams) ([]ListAuditEventsBackwardRow, error)
actor_id stores the raw actor key (user_id / api_key.type_id) — exposed directly. Enrichment joins key on it: user by id, api_key by type_id. Resolves the target account (target_account_id) for the `account` sub-resource.
func (*Queries) ListAuditEventsForward ¶
func (q *Queries) ListAuditEventsForward(ctx context.Context, arg ListAuditEventsForwardParams) ([]ListAuditEventsForwardRow, error)
actor_id stores the raw actor key (user_id / api_key.type_id) — exposed directly. Enrichment joins key on it: user by id, api_key by type_id. Resolves the target account (target_account_id) for the `account` sub-resource.
func (*Queries) ListResourceUserActorIDs ¶
func (q *Queries) ListResourceUserActorIDs(ctx context.Context, arg ListResourceUserActorIDsParams) ([]string, error)
Distinct user actors who have touched a resource's record tree — the resource itself or any child event whose root points at it. They form the follower set for resource-activity notifications. The UNION arms each match a dedicated composite index (account_id+resource vs the root idx).
func (*Queries) LockIdempotencyKey ¶
func (*Queries) LockOutboxMessagesByIDs ¶
func (q *Queries) LockOutboxMessagesByIDs(ctx context.Context, arg LockOutboxMessagesByIDsParams) error
func (*Queries) MarkInboxRecordFailed ¶
func (q *Queries) MarkInboxRecordFailed(ctx context.Context, arg MarkInboxRecordFailedParams) error
func (*Queries) MarkInboxRecordProcessed ¶
func (*Queries) MarkOutboxMessageFailed ¶
func (q *Queries) MarkOutboxMessageFailed(ctx context.Context, arg MarkOutboxMessageFailedParams) error
func (*Queries) MarkOutboxMessagesPublished ¶
func (*Queries) PurgeProcessedInboxMessages ¶
func (*Queries) PurgePublishedOutboxMessagesByIDs ¶
func (*Queries) ReleaseIdempotencyKeyLock ¶
func (*Queries) ReleaseTaskLease ¶
func (q *Queries) ReleaseTaskLease(ctx context.Context, arg ReleaseTaskLeaseParams) error
func (*Queries) RenewTaskLease ¶
func (*Queries) SelectExpiredOutboxLockIDs ¶
func (*Queries) SelectOutboxMessageIDsForLock ¶
func (*Queries) SelectPublishedOutboxMessageIDsForPurge ¶
func (*Queries) SetIdempotencyKeyResponse ¶
func (q *Queries) SetIdempotencyKeyResponse(ctx context.Context, arg SetIdempotencyKeyResponseParams) error
func (*Queries) SetIdempotencyKeyResponseWithTTL ¶
func (q *Queries) SetIdempotencyKeyResponseWithTTL(ctx context.Context, arg SetIdempotencyKeyResponseWithTTLParams) error
func (*Queries) TryInsertInboxRecord ¶
type ReceivingOrder ¶
type ReceivingOrderLine ¶
type RefreshToken ¶
type RegistrationFlow ¶
type RegistrationQueue ¶
type RegistrationSession ¶
type RegistrationSession struct {
ID int64
TypeID string
Email string
PlanCode string
Step string
VerificationToken string
IsEmailVerified bool
IsExistingUser sql.NullBool
UserID sql.NullString
AccountID sql.NullString
StripeCustomerID sql.NullString
StripeCheckoutSessionID sql.NullString
StripeSubscriptionID sql.NullString
PaymentCompleted bool
SessionData json.RawMessage
CompletedAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
}
type ReleaseTaskLeaseParams ¶
type RenewTaskLeaseParams ¶
type RequestLog ¶
type RequestLog struct {
ID string
Method string
Host string
Path string
NormalizedRoute string
QueryJson db.NullableRawMessage
RequestBodyJson db.NullableRawMessage
ResponseBodyJson db.NullableRawMessage
StatusCode int32
LatencyUs int64
TargetAccountID sql.NullString
PublicEndpoint bool
ApiVersion sql.NullString
AccountID sql.NullString
ActorID sql.NullString
ActorType sql.NullString
IdentityType sql.NullString
ClientIp sql.NullString
ClientIpString sql.NullString
UserAgent sql.NullString
Referrer sql.NullString
ErrorCode sql.NullString
ErrorMessage sql.NullString
CreatedAt time.Time
OccurredAt time.Time
IdempotencyKeyID sql.NullString
StackTrace sql.NullString
InternalErrorMessage sql.NullString
TraceID sql.NullString
Hidden bool
}
type RolePermission ¶
type SalesOrder ¶
type SalesOrder struct {
ID string
BillingAddressID string
ShippingAddressID string
CustomerPoNumber sql.NullString
Note sql.NullString
Number string
IsAcknowledgmentSent bool
CarrierID sql.NullString
CarrierOptionID sql.NullString
CarrierBillingType sql.NullString
CarrierBillingAccount sql.NullString
PriorityCode string
SalesRepID sql.NullString
ShippingTermID sql.NullString
SalesOrderStatusCode string
SalesOrderTypeCode string
PaymentTermID sql.NullString
ProductionRunID sql.NullString
OrderDiscountID sql.NullString
BuyerAccountID string
SellerAccountID string
OwnerAccountID string
CompletedAt sql.NullTime
ExpiredAt sql.NullTime
FirstShipAt sql.NullTime
IssuedAt sql.NullTime
PromisedAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
LeadTimeDays sql.NullInt32
LeadTimeSourceCode sql.NullString
ShipByDate sql.NullTime
TransitDays sql.NullInt32
TransitSourceCode sql.NullString
CalendarAdjustmentDays sql.NullInt32
LeadTimeOverrideDays sql.NullInt32
ShipByCutoffAt sql.NullTime
ShipByOverrideDate sql.NullTime
}
type SalesOrderLine ¶
type SalesOrderLine struct {
ID string
ProductSku string
ProductDescription sql.NullString
EdiLineItemID sql.NullString
LineItemNumber sql.NullInt32
ProductID sql.NullString
ItemID sql.NullString
SalesOrderID string
QuantityID string
UnitPriceID string
UnitCostID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type SalesOrderStatus ¶
type SalesOrderType ¶
type SandboxAccount ¶
type ScanningStation ¶
type ScanningStationType ¶
type ScheduleDeviationType ¶
type SelectPublishedOutboxMessageIDsForPurgeParams ¶
type SelectPublishedOutboxMessageIDsForPurgeParams struct {
RetentionHours interface{}
Limit int32
}
type ServiceIdempotencyKey ¶
type ServiceIdempotencyKey struct {
ID int64
TypeID string
ServiceName string
Handler string
IdempotencyKey string
ActorID sql.NullString
IdentityType string
ScopeHash string
ResponseCode sql.NullInt32
ResponseBody json.RawMessage
RecoveryPoint string
LockedAt sql.NullTime
LockOwner sql.NullString
LockExpiresAt sql.NullTime
CreatedAt time.Time
UpdatedAt time.Time
LastRunAt sql.NullTime
ExpiresAt sql.NullTime
}
type SetIdempotencyKeyResponseParams ¶
type SetIdempotencyKeyResponseParams struct {
ResponseCode sql.NullInt32
ResponseBody db.NullableRawMessage
ResponseHeaders db.NullableRawMessage
RecoveryPoint string
TypeID string
}
type SetIdempotencyKeyResponseWithTTLParams ¶
type SetIdempotencyKeyResponseWithTTLParams struct {
ResponseCode sql.NullInt32
ResponseBody db.NullableRawMessage
ResponseHeaders db.NullableRawMessage
Column4 interface{}
RecoveryPoint string
TypeID string
}
type Settlement ¶
type Shipment ¶
type Shipment struct {
ID string
BillOfLading sql.NullString
ShippedAt sql.NullTime
Note sql.NullString
Number string
InvoiceID sql.NullString
CarrierID string
CarrierOptionID sql.NullString
ShippingAddressID string
ShippedByID sql.NullString
SalesOrderID string
ShipmentStatusCode string
AccountID string
CreatedAt time.Time
UpdatedAt time.Time
MasterTrackingNumber sql.NullString
}
type ShipmentLine ¶
type ShipmentStatus ¶
type ShippingCase ¶
type ShippingCase struct {
ID string
Number string
Sscc sql.NullString
TrackingNumber sql.NullString
ShippoTransactionID sql.NullString
ShippingLabelUrl sql.NullString
ShippedAt sql.NullTime
FreightAmountID string
FreightWeightID string
ShipmentID string
CarrierID string
AccountID string
CreatedAt time.Time
UpdatedAt time.Time
}
type ShippingTerm ¶
type ShippingTerm struct {
ID string
Name string
IsFreightExempt bool
IsCarrierRate bool
AccountID sql.NullString
FlatRateID sql.NullString
MinimumOrderID sql.NullString
CreatedAt time.Time
UpdatedAt time.Time
}
type StorageLocation ¶
type StorageLocationType ¶
type StripeEventLog ¶
type SupplierMaterial ¶
type SupportRoute ¶
type SysProperty ¶
type SysPropertyType ¶
type TokenPackPurchase ¶
type Transaction ¶
type Transaction struct {
ID string
CustomerAccountID string
AmountID string
Note sql.NullString
TransactionMethodCode sql.NullString
TransactionTypeCode string
IsFullyAllocated bool
ResponsibleUserID sql.NullString
AccountID string
CreatedAt time.Time
UpdatedAt time.Time
AdjustmentTypeCode sql.NullString
StripePaymentID sql.NullString
FundsReceivedAt sql.NullTime
Number string
}
type TransactionAllocation ¶
type TransactionMethod ¶
type TransactionType ¶
type TryInsertInboxRecordParams ¶
type TryInsertInboxRecordParams struct {
MessageID string
ServiceName string
Handler string
MessageType string
RequestID sql.NullString
ParentMessageID sql.NullString
}
type UnitGroupUnit ¶
type User ¶
type User struct {
ID string
Email sql.NullString
Name sql.NullString
Username sql.NullString
HashedPassword sql.NullString
EmailVerified sql.NullTime
ImageUrl sql.NullString
StatusCode string
CreatedAt time.Time
UpdatedAt time.Time
}