minca
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"];

On this page

Type Declarationdescriptionnameschemaschema.propertiesschema.properties.categoryschema.properties.category.maxLengthschema.properties.category.minLength?schema.properties.category.typeschema.properties.conditionschema.properties.condition.enumschema.properties.descriptionschema.properties.description.maxLengthschema.properties.description.minLength?schema.properties.description.typeschema.properties.imagesschema.properties.images.itemsType Declarationpropertiesproperties.altproperties.alt.maxLengthproperties.alt.minLength?properties.alt.typeproperties.blobType Declarationpropertiesproperties.hashproperties.keyproperties.mimeproperties.nameproperties.saltproperties.sizerequiredtypex-kindrequiredtypex-kindschema.properties.images.maxItemsschema.properties.images.typeschema.properties.placeschema.properties.place.propertiesschema.properties.place.properties.addressschema.properties.place.properties.address.propertiesschema.properties.place.properties.address.properties.countryschema.properties.place.properties.address.properties.country.maxLengthschema.properties.place.properties.address.properties.country.minLength?schema.properties.place.properties.address.properties.country.typeschema.properties.place.properties.address.properties.localityschema.properties.place.properties.address.properties.locality.maxLengthschema.properties.place.properties.address.properties.locality.minLength?schema.properties.place.properties.address.properties.locality.typeschema.properties.place.properties.address.properties.postcodeschema.properties.place.properties.address.properties.postcode.maxLengthschema.properties.place.properties.address.properties.postcode.minLength?schema.properties.place.properties.address.properties.postcode.typeschema.properties.place.properties.address.properties.regionschema.properties.place.properties.address.properties.region.maxLengthschema.properties.place.properties.address.properties.region.minLength?schema.properties.place.properties.address.properties.region.typeschema.properties.place.properties.address.properties.streetschema.properties.place.properties.address.properties.street.maxLengthschema.properties.place.properties.address.properties.street.minLength?schema.properties.place.properties.address.properties.street.typeschema.properties.place.properties.address.typeschema.properties.place.properties.cellsschema.properties.place.properties.cells.descriptionschema.properties.place.properties.cells.itemsschema.properties.place.properties.cells.items.maxLengthschema.properties.place.properties.cells.items.minLength?schema.properties.place.properties.cells.items.typeschema.properties.place.properties.cells.maxItemsschema.properties.place.properties.cells.typeschema.properties.place.properties.latschema.properties.place.properties.lat.maximumschema.properties.place.properties.lat.minimumschema.properties.place.properties.lat.typeschema.properties.place.properties.lonschema.properties.place.properties.lon.maximumschema.properties.place.properties.lon.minimumschema.properties.place.properties.lon.typeschema.properties.place.properties.nameschema.properties.place.properties.name.maxLengthschema.properties.place.properties.name.minLength?schema.properties.place.properties.name.typeschema.properties.place.typeschema.properties.priceType Declarationpropertiesproperties.amountproperties.amount.maxLengthproperties.amount.minLength?properties.amount.typeproperties.currencyproperties.currency.maxLengthproperties.currency.minLengthproperties.currency.typerequiredtypex-kindschema.properties.statusschema.properties.status.enumschema.properties.titleschema.properties.title.maxLengthschema.properties.title.minLength?schema.properties.title.typeschema.requiredschema.typetitletopics