/** * The format for the collection of @oada/jobs items. * @example * ```json * { * "jobs": { * "_id": "resources/KXxjds93" * }, * "watches": { * "_id": "resources/glakceo3r" * } * } * ``` * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./oada/service.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/service.schema.json} */ export declare const $id = "https://formats.openag.io/oada/service.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/oada/service.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/oada/service.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly description: "The format for the collection of @oada/jobs items."; readonly type: "object"; readonly properties: { readonly jobs: { readonly $ref: "../oada.schema.json#/definitions/link/definitions/unversioned"; }; readonly watches: { readonly $ref: "../oada.schema.json#/definitions/link/definitions/unversioned"; }; }; readonly examples: readonly [{ readonly jobs: { readonly _id: "resources/KXxjds93"; }; readonly watches: { readonly _id: "resources/glakceo3r"; }; }]; }; /** * Returns true if `val` is a @type `ServiceSchema`, false otherwise */ export declare function is(val: unknown): val is ServiceSchema; /** * Asserts that `val` is a @type `ServiceSchema` */ export declare function assert(val: unknown): asserts val is ServiceSchema; /** * The format for the collection of @oada/jobs items. * @example * ```json * { * "jobs": { * "_id": "resources/KXxjds93" * }, * "watches": { * "_id": "resources/glakceo3r" * } * } * ``` * */ export default ServiceSchema; /** * The format for the collection of @oada/jobs items. */ export interface ServiceSchema { jobs?: Unversioned; watches?: Unversioned; [k: string]: unknown; } export interface Unversioned { /** * _id identifies a resource in the OADA API. */ _id: string; /** * _type identifies the content-type of a resource in the OADA API. */ _type?: string; }