/** * * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./trellis.schema.json of @oada/formats * and run `$ yarn build` to regenerate this file. * * @packageDocumentation */ /** * `$id` of the source schema * @see {@link https://formats.openag.io/trellis.schema.json} */ export declare const $id = "https://formats.openag.io/trellis.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/trellis.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/trellis.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly definitions: { readonly location: { readonly description: "location describes the postal address used to identify where something is."; readonly properties: { readonly street_address: { readonly $ref: "#/definitions/street_address"; }; readonly postal_code: { readonly $ref: "#/definitions/postal_code"; }; readonly city: { readonly $ref: "#/definitions/city"; }; readonly state: { readonly $ref: "#/definitions/state"; }; readonly country: { readonly $ref: "#/definitions/country"; }; }; }; readonly street_address: { readonly description: "The street name and mailbox number of a postal address."; readonly type: "string"; }; readonly postal_code: { readonly description: "postal_code is the postal code used in a postal address"; readonly type: "string"; }; readonly city: { readonly description: "The name of the city, usually in a postal address."; readonly type: "string"; }; readonly state: { readonly description: "The name of the state or major region, usually in a postal address."; readonly type: "string"; }; readonly country: { readonly description: "The name of the country, usually in a postal address."; readonly type: "string"; }; readonly phone: { readonly description: "phone describes the phone number with country code and area code."; readonly type: "string"; }; }; }; /** * Returns true if `val` is a @type `TrellisSchema`, false otherwise */ export declare function is(val: unknown): val is TrellisSchema; /** * Asserts that `val` is a @type `TrellisSchema` */ export declare function assert(val: unknown): asserts val is TrellisSchema; /** * * */ export default TrellisSchema; /** * The street name and mailbox number of a postal address. * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "street_address". */ export type StreetAddress = string; /** * postal_code is the postal code used in a postal address * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "postal_code". */ export type PostalCode = string; /** * The name of the city, usually in a postal address. * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "city". */ export type City = string; /** * The name of the state or major region, usually in a postal address. * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "state". */ export type State = string; /** * The name of the country, usually in a postal address. * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "country". */ export type Country = string; /** * phone describes the phone number with country code and area code. * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "phone". */ export type Phone = string; export interface TrellisSchema { [k: string]: unknown; } /** * location describes the postal address used to identify where something is. * * This interface was referenced by `TrellisSchema`'s JSON-Schema * via the `definition` "location". */ export interface Location { street_address?: StreetAddress; postal_code?: PostalCode; city?: City; state?: State; country?: Country; [k: string]: unknown; }