in 11-recommendation/helper_functions.py [0:0]
def get_past_purchases() -> List[Dict[str, Any]]:
"""
Get illustrative example records for past purchases.
:return: A list of dictionaries representing the selected records.
"""
# Illustrative example records
selected_records = [
{
"id": "c7cf3894-047d-4fa7-8aff-048dea35d829",
"product_name": "NatureShield Primer",
"category": "Paint: Primers and Sealers",
"price": 457.0,
"quantity": 3
},
{
"id": "29aa07ab-7244-431b-9c0e-471f89410ab4",
"product_name": "NatureFlow Sinks",
"category": "Plumbing: Toilets and Sinks",
"price": 295.05,
"quantity": 3
},
{
"id": "0d0719ff-e648-4141-b0d0-ea1b6281bcee",
"product_name": "MightyShield Primer",
"category": "Paint: Primers and Sealers",
"price": 52.87,
"quantity": 5
},
{
"id": "046bd7a6-9e90-4504-8de8-173547e9b94c",
"product_name": "Patio Paradise Side Table",
"category": "Outdoor: Patio Furniture",
"price": 138.61,
"quantity": 3
},
{
"id": "aef642a4-d568-4d6a-9033-413d1f2799bf",
"product_name": "Rustic Birdhouse Haven",
"category": "Gardening: Garden Décor",
"price": 473.65,
"quantity": 4
},
{
"id": "741f0f31-1704-4a8d-acdc-db5e33191544",
"product_name": "Mountain Ash Framing Lumber",
"category": "Building Materials: Lumber",
"price": 129.77,
"quantity": 5
},
{
"id": "3164fcac-b899-4d0e-a1b1-d041e3d1cfb2",
"product_name": "Western Hemlock Studs",
"category": "Building Materials: Lumber",
"price": 367.9,
"quantity": 3
},
{
"id": "58dc13e8-c3cb-4e46-9d51-3db6ec47da6b",
"product_name": "RustShield Coating",
"category": "Paint: Spray Paint",
"price": 60.95,
"quantity": 1
},
{
"id": "351492d2-cbc2-4d18-8aee-9b29b51a8a1d",
"product_name": "Nature's Shine Outdoor Cleaner",
"category": "Cleaning: Cleaning Supplies",
"price": 35.01,
"quantity": 5
},
{
"id": "c0265608-02df-48ee-b73b-c5fdfe13691a",
"product_name": "Multi-Purpose Garden Hoe",
"category": "Tools: Garden Tools",
"price": 76.45,
"quantity": 3
},
{
"id": "89b82f64-1b31-4909-b3c6-6d08bd8c2105",
"product_name": "Rustic Charm Fire Pit Table",
"category": "Outdoor: Patio Furniture",
"price": 165.69,
"quantity": 2
},
{
"id": "3772630e-7e49-4e86-a9de-430cfdcbeb1e",
"product_name": "Sunset Sensor Dusk Switch",
"category": "Electrical: Switches and Outlets",
"price": 68.38,
"quantity": 4
},
{
"id": "decc05c1-266c-4cd2-8202-28535e7bf6da",
"product_name": "All-Weather Mounting Bracket",
"category": "Hardware: Brackets and Supports",
"price": 467.67,
"quantity": 3
},
{
"id": "3ed54c59-0cab-4a94-8909-9eba38b7f790",
"product_name": "Green Thumb Organic Soil Blend",
"category": "Gardening: Soil and Fertilizers",
"price": 34.76,
"quantity": 4
},
{
"id": "d0e0ce3f-e0e8-4d31-8b94-8ff7507ff1ad",
"product_name": "ToughTex Sheet",
"category": "Building Materials: Drywall",
"price": 112.69,
"quantity": 5
},
{
"id": "25ad7bf6-984a-4f53-9eff-df22e1ef7552",
"product_name": "GreenGuard Patio Wash",
"category": "Cleaning: Cleaning Supplies",
"price": 51.74,
"quantity": 4
},
{
"id": "bde38688-b06d-4779-9515-12584f56eb7c",
"product_name": "Tropical Touch",
"category": "Paint: Interior Paint",
"price": 100.19,
"quantity": 2
},
{
"id": "cc3cae31-29e0-4709-a2a3-2117434e8f2a",
"product_name": "Sentinel Fire Control System",
"category": "Safety: Fire Extinguishers",
"price": 228.48,
"quantity": 5
},
{
"id": "c7a992f8-8ad9-43a2-ae09-ef627f9342a9",
"product_name": "Outdoor Performance Wire",
"category": "Electrical: Wiring and Cables",
"price": 391.79,
"quantity": 4
},
{
"id": "957672ba-e285-4cb7-8f2c-c664dc72627b",
"product_name": "SnapLock Compression Fittings",
"category": "Plumbing: Pipes and Fittings",
"price": 398.9,
"quantity": 5
},
{
"id": "fdf13694-6c23-4713-a89f-534acab02f48",
"product_name": "EcoSpray Adjustable Nozzle",
"category": "Gardening: Irrigation Supplies",
"price": 338.54,
"quantity": 3
},
{
"id": "5412952b-3502-467a-8b57-f8b55577cdb3",
"product_name": "HydroWave Drip Regulators",
"category": "Gardening: Irrigation Supplies",
"price": 297.63,
"quantity": 4
},
{
"id": "63a1ad77-2de3-4f82-82fe-872610487bb4",
"product_name": "TrailReady First Aid Supply",
"category": "Safety: First Aid Supplies",
"price": 337.96,
"quantity": 4
}