Variable SupermarketItemSchemaConst

SupermarketItemSchema: ZodObject<{
    column: ZodUnion<[ZodLiteral<1>, ZodLiteral<2>, ZodLiteral<3>, ZodLiteral<4>, ZodLiteral<5>]>;
    createdAt: ZodString;
    description: ZodString;
    id: ZodString;
    name: ZodString;
    priceUsd: ZodNumber;
    row: ZodUnion<[ZodLiteral<1>, ZodLiteral<2>, ZodLiteral<3>, ZodLiteral<4>]>;
    sale: ZodObject<{
        soldAt: ZodOptional<ZodString>;
        soldToPlayerId: ZodOptional<ZodString>;
        status: ZodEnum<["available", "sold"]>;
    }, "strip", ZodTypeAny, {
        soldAt?: string;
        soldToPlayerId?: string;
        status: "available" | "sold";
    }, {
        soldAt?: string;
        soldToPlayerId?: string;
        status: "available" | "sold";
    }>;
    spaceId: ZodString;
}, "strip", ZodTypeAny, {
    column:
        | 1
        | 2
        | 3
        | 4
        | 5;
    createdAt: string;
    description: string;
    id: string;
    name: string;
    priceUsd: number;
    row:
        | 1
        | 2
        | 3
        | 4;
    sale: {
        soldAt?: string;
        soldToPlayerId?: string;
        status: "available" | "sold";
    };
    spaceId: string;
}, {
    column:
        | 1
        | 2
        | 3
        | 4
        | 5;
    createdAt: string;
    description: string;
    id: string;
    name: string;
    priceUsd: number;
    row:
        | 1
        | 2
        | 3
        | 4;
    sale: {
        soldAt?: string;
        soldToPlayerId?: string;
        status: "available" | "sold";
    };
    spaceId: string;
}> = ...

Supermarket amenity item — laid out on a 4×5 grid of slots.

row selects the section (1=Fruits, 2=Mens, 3=Womens, 4=Kids in the client-side stage); column is 1..5. If the AQL caller omits column the server picks the next free slot in that row.

SupermarketItemSchema.parse({
id: "sm-1",
spaceId: "space-42",
row: 1,
column: 3,
name: "Apple",
description: "fresh",
priceUsd: 1.25,
createdAt: new Date().toISOString(),
sale: { status: "available" },
});