ApiSchemasVariables
Variable: listing
const listing: object & Typed<{
category?: string;
condition?: "new" | "like-new" | "good" | "fair" | "for-parts";
description?: string;
images?: readonly object[];
place?: {
address?: {
country?: string;
locality?: string;
postcode?: string;
region?: string;
street?: string;
};
cells?: readonly string[];
lat?: number;
lon?: number;
name?: string;
};
price?: {
amount: string;
currency: string;
};
status?: "available" | "reserved" | "sold";
title: string;
}>;Defined in: packages/core/src/schemas/library/money.ts:122
Something for sale, to give away or to lend.
Type Declaration
description
readonly description: "Something for sale, to give away or to lend." = 'Something for sale, to give away or to lend.';name
readonly name: "std.listing" = 'std.listing';schema
readonly schema: object;schema.properties
readonly properties: object;schema.properties.category
readonly category: object;schema.properties.category.maxLength
maxLength: number = max;schema.properties.category.minLength?
minLength?: number = min;schema.properties.category.type
type: "string";schema.properties.condition
readonly condition: object;schema.properties.condition.enum
enum: ("new" | "like-new" | "good" | "fair" | "for-parts")[];schema.properties.description
readonly description: object;schema.properties.description.maxLength
maxLength: number = max;schema.properties.description.minLength?
minLength?: number = min;schema.properties.description.type
type: "string";schema.properties.images
readonly images: object;schema.properties.images.items
readonly items: object & object;Type Declaration
properties
properties: object;properties.alt
alt: object;properties.alt.maxLength
maxLength: number = max;properties.alt.minLength?
minLength?: number = min;properties.alt.type
type: "string";properties.blob
blob: object & object;Type Declaration
properties
properties: object;properties.hash
hash: ...;properties.key
key: ...;properties.mime
mime: ...;properties.name
name: ...;properties.salt
salt: ...;properties.size
size: ...;required
required: readonly [..., ..., ...];type
type: "object";x-kind
readonly "x-kind": "file";required
required: readonly ["blob"];type
type: "object";x-kind
readonly "x-kind": "image";schema.properties.images.maxItems
readonly maxItems: 12 = 12;schema.properties.images.type
readonly type: "array" = 'array';schema.properties.place
readonly place: object;schema.properties.place.properties
properties: object;schema.properties.place.properties.address
address: object;schema.properties.place.properties.address.properties
properties: object;schema.properties.place.properties.address.properties.country
country: object;schema.properties.place.properties.address.properties.country.maxLength
maxLength: number = max;schema.properties.place.properties.address.properties.country.minLength?
minLength?: number = min;schema.properties.place.properties.address.properties.country.type
type: "string";schema.properties.place.properties.address.properties.locality
locality: object;schema.properties.place.properties.address.properties.locality.maxLength
maxLength: number = max;schema.properties.place.properties.address.properties.locality.minLength?
minLength?: number = min;schema.properties.place.properties.address.properties.locality.type
type: "string";schema.properties.place.properties.address.properties.postcode
postcode: object;schema.properties.place.properties.address.properties.postcode.maxLength
maxLength: number = max;schema.properties.place.properties.address.properties.postcode.minLength?
minLength?: number = min;schema.properties.place.properties.address.properties.postcode.type
type: "string";schema.properties.place.properties.address.properties.region
region: object;schema.properties.place.properties.address.properties.region.maxLength
maxLength: number = max;schema.properties.place.properties.address.properties.region.minLength?
minLength?: number = min;schema.properties.place.properties.address.properties.region.type
type: "string";schema.properties.place.properties.address.properties.street
street: object;schema.properties.place.properties.address.properties.street.maxLength
maxLength: number = max;schema.properties.place.properties.address.properties.street.minLength?
minLength?: number = min;schema.properties.place.properties.address.properties.street.type
type: "string";schema.properties.place.properties.address.type
type: "object";schema.properties.place.properties.cells
cells: object;schema.properties.place.properties.cells.description
description: string = 'The geohash cells lat and lon are in, coarsest first: precisions 3, 4, 5 and 6';schema.properties.place.properties.cells.items
items: object;schema.properties.place.properties.cells.items.maxLength
maxLength: number = max;schema.properties.place.properties.cells.items.minLength?
minLength?: number = min;schema.properties.place.properties.cells.items.type
type: "string";schema.properties.place.properties.cells.maxItems
maxItems: number = 8;schema.properties.place.properties.cells.type
type: "array";schema.properties.place.properties.lat
lat: object;schema.properties.place.properties.lat.maximum
maximum: number = 90;schema.properties.place.properties.lat.minimum
minimum: number = -90;schema.properties.place.properties.lat.type
type: "number";schema.properties.place.properties.lon
lon: object;schema.properties.place.properties.lon.maximum
maximum: number = 180;schema.properties.place.properties.lon.minimum
minimum: number = -180;schema.properties.place.properties.lon.type
type: "number";schema.properties.place.properties.name
name: object;schema.properties.place.properties.name.maxLength
maxLength: number = max;schema.properties.place.properties.name.minLength?
minLength?: number = min;schema.properties.place.properties.name.type
type: "string";schema.properties.place.type
type: "object";schema.properties.price
readonly price: object & object;Type Declaration
properties
properties: object;properties.amount
amount: object;properties.amount.maxLength
maxLength: number = max;properties.amount.minLength?
minLength?: number = min;properties.amount.type
type: "string";properties.currency
currency: object;properties.currency.maxLength
maxLength: number = 3;properties.currency.minLength
minLength: number = 3;properties.currency.type
type: "string";required
required: readonly ["amount", "currency"];type
type: "object";x-kind
readonly "x-kind": "money";schema.properties.status
readonly status: object;schema.properties.status.enum
enum: ("available" | "reserved" | "sold")[];schema.properties.title
readonly title: object;schema.properties.title.maxLength
maxLength: number = max;schema.properties.title.minLength?
minLength?: number = min;schema.properties.title.type
type: "string";schema.required
readonly required: readonly ["title"];schema.type
readonly type: "object" = 'object';title
readonly title: "Listing" = 'Listing';topics
readonly topics: readonly ["place.cells"];