/** * Endpoint for rules engine stuff * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./trellis/rules.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/rules.schema.json} */ export declare const $id = "https://formats.openag.io/trellis/rules.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/trellis/rules.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/trellis/rules.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly description: "Endpoint for rules engine stuff"; readonly allOf: readonly [{ readonly $ref: "../oada/resource.schema.json"; }]; readonly properties: { readonly actions: {}; readonly conditions: {}; readonly configured: {}; readonly compiled: {}; }; }; /** * Returns true if `val` is a @type `RulesSchema`, false otherwise */ export declare function is(val: unknown): val is RulesSchema; /** * Asserts that `val` is a @type `RulesSchema` */ export declare function assert(val: unknown): asserts val is RulesSchema; /** * Endpoint for rules engine stuff * */ export default RulesSchema; /** * Endpoint for rules engine stuff */ export type RulesSchema = OADAResource & { actions?: unknown; conditions?: unknown; configured?: unknown; compiled?: unknown; [k: string]: unknown; }; export interface OADAResource { /** * _id identifies a resource in the OADA API. */ _id: string; /** * _rev is the revision for a resource in the OADA API. */ _rev: number; _meta: Versioned; /** * _type identifies the content-type of a resource in the OADA API. */ _type: string; [k: string]: unknown; } export interface Versioned { /** * _rev is the revision for a resource in the OADA API. */ _rev: number; /** * _id identifies a resource in the OADA API. */ _id?: string; /** * _type identifies the content-type of a resource in the OADA API. */ _type?: string; }