/** * The "as-harvested" key holds the original data logged during harvest. This can be collections of time-series harvest data or data that is already geospatially referenced. A typical "yield map" exported from an FMIS system would go here. Think of this like the "raw" data that is used to generate tiled maps. * @example * ```json * { * "_id": "resources/kfj20ikejldss", * "_rev": 9, * "_type": "application/vnd.oada.as-harvested.1+json", * "yield-moisture-dataset": { * "_id": "resources/02ijfkl3k20ij3fsf" * } * } * ``` * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./oada/as-harvested/v1.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/oada/as-harvested/v1.schema.json} */ export declare const $id = "https://formats.openag.io/oada/as-harvested/v1.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/oada/as-harvested/v1.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/oada/as-harvested/v1.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly description: "The \"as-harvested\" key holds the original data logged during harvest. This can be collections of time-series harvest data or data that is already geospatially referenced. A typical \"yield map\" exported from an FMIS system would go here. Think of this like the \"raw\" data that is used to generate tiled maps."; readonly properties: { readonly 'yield-moisture-dataset': { readonly description: "A link in OADA has at least an _id key and links one resource to another."; readonly properties: { readonly _id: { readonly description: "_id identifies a resource in the OADA API."; readonly type: "string"; }; }; readonly required: readonly ["_id"]; readonly type: "object"; }; readonly _id: { readonly description: "_id identifies a resource in the OADA API."; readonly type: "string"; }; readonly _rev: { readonly description: "_rev is the revision string for a resource in the OADA API."; readonly type: "integer"; }; readonly _meta: { readonly description: "_meta is a link to the meta document for a resources."; readonly properties: { readonly _id: { readonly description: "_id identifies a resource in the OADA API."; readonly type: "string"; }; readonly _rev: { readonly description: "_rev is the revision string for a resource in the OADA API."; readonly type: "integer"; }; }; readonly required: readonly ["_id", "_rev"]; readonly type: "object"; }; readonly _type: { readonly enum: readonly ["application/vnd.oada.as-harvested.1+json"]; }; }; readonly additionalProperties: true; readonly required: readonly ["_type"]; readonly type: "object"; readonly examples: readonly [{ readonly _id: "resources/kfj20ikejldss"; readonly _rev: 9; readonly _type: "application/vnd.oada.as-harvested.1+json"; readonly 'yield-moisture-dataset': { readonly _id: "resources/02ijfkl3k20ij3fsf"; }; }]; }; /** * Returns true if `val` is a @type `V1Schema`, false otherwise */ export declare function is(val: unknown): val is V1Schema; /** * Asserts that `val` is a @type `V1Schema` */ export declare function assert(val: unknown): asserts val is V1Schema; /** * The "as-harvested" key holds the original data logged during harvest. This can be collections of time-series harvest data or data that is already geospatially referenced. A typical "yield map" exported from an FMIS system would go here. Think of this like the "raw" data that is used to generate tiled maps. * @example * ```json * { * "_id": "resources/kfj20ikejldss", * "_rev": 9, * "_type": "application/vnd.oada.as-harvested.1+json", * "yield-moisture-dataset": { * "_id": "resources/02ijfkl3k20ij3fsf" * } * } * ``` * */ export default V1Schema; /** * The "as-harvested" key holds the original data logged during harvest. This can be collections of time-series harvest data or data that is already geospatially referenced. A typical "yield map" exported from an FMIS system would go here. Think of this like the "raw" data that is used to generate tiled maps. */ export interface V1Schema { /** * A link in OADA has at least an _id key and links one resource to another. */ 'yield-moisture-dataset'?: { /** * _id identifies a resource in the OADA API. */ _id: string; [k: string]: unknown; }; /** * _id identifies a resource in the OADA API. */ '_id'?: string; /** * _rev is the revision string for a resource in the OADA API. */ '_rev'?: number; /** * _meta is a link to the meta document for a resources. */ '_meta'?: { /** * _id identifies a resource in the OADA API. */ _id: string; /** * _rev is the revision string for a resource in the OADA API. */ _rev: number; [k: string]: unknown; }; '_type': 'application/vnd.oada.as-harvested.1+json'; [k: string]: unknown; }