repository

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryQuery

type InventoryQuery struct {
	Warehouse     string
	Category      string
	Supplier      string
	StockHealth   string
	Availability  string
	Search        string
	SortKey       string
	SortDirection string
}

type InventoryRepository

type InventoryRepository interface {
	List(context.Context, InventoryQuery) ([]InventoryRow, error)
	BySKU(context.Context, string) (InventoryRow, error)
}

type InventoryRow

type InventoryRow struct {
	ID             string
	SKU            string
	Slug           string
	Title          string
	Category       string
	PriceCents     int
	ProductStatus  string
	WarehouseID    string
	WarehouseName  string
	OnHand         int
	Reserved       int
	Available      int
	CoverDays      int
	Inbound        int
	Damaged        int
	ReorderPoint   int
	SafetyStock    int
	Status         string
	WeeklyUnits    int
	WeeklyRevenue  int
	SellThrough    int
	DemandScore    int
	RegionalShare  int
	ReorderUnits   int
	MarketPressure string
	MarketSignal   string
	UpdatedAt      string
}

type ModerationQuery

type ModerationQuery struct {
	Status   string
	Search   string
	SortKey  string
	PageSize int
}

type ModerationRepository

type ModerationRepository interface {
	List(context.Context, ModerationQuery) ([]string, error)
	Approve(context.Context, string) error
	Reject(context.Context, string) error
	Flag(context.Context, string) error
}

type PreferencesRepository

type PreferencesRepository interface {
	Save(context.Context, map[string]string) error
	Load(context.Context, string) (map[string]string, error)
}

type Product

type Product struct {
	SKU            string
	Slug           string
	Title          string
	Category       string
	PriceCents     int
	Status         string
	Summary        string
	SEODescription string
}

type ProductRepository

type ProductRepository interface {
	Catalog(context.Context) ([]Product, error)
	BySlug(context.Context, string) (Product, error)
}

type SavedView

type SavedView struct {
	ID            string
	Name          string
	Scope         string
	SortKey       string
	SortDirection string
	Density       string
	WarehouseID   string
	FiltersJSON   string
}

type SavedViewsRepository

type SavedViewsRepository interface {
	List(context.Context, string) ([]SavedView, error)
	Save(context.Context, SavedView) error
}

Jump to

Keyboard shortcuts

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