@gentrace/core
Version:
Core Gentrace Node.JS library
82 lines (81 loc) • 2.5 kB
TypeScript
/**
* Gentrace API
* These API routes are designed to ingest events from clients.
*
* The version of the OpenAPI document: 0.27.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { MetadataValueObject } from "./metadata-value-object";
import { V1TestResultPostRequestTestRunsInner } from "./v1-test-result-post-request-test-runs-inner";
/**
*
* @export
* @interface V1TestResultPostRequest
*/
export interface V1TestResultPostRequest {
/**
* The pipeline slug to create the test result for. Only one of pipelineSlug or pipelineId is required.
* @type {string}
* @memberof V1TestResultPostRequest
*/
pipelineSlug?: string;
/**
* The pipeline ID to create the test result for. Only one of pipelineSlug or pipelineId is required.
* @type {string}
* @memberof V1TestResultPostRequest
*/
pipelineId?: string;
/**
* The method used to collect the test runs
* @type {string}
* @memberof V1TestResultPostRequest
*/
collectionMethod?: V1TestResultPostRequestCollectionMethodEnum;
/**
* The branch that the test result was created from
* @type {string}
* @memberof V1TestResultPostRequest
*/
branch?: string | null;
/**
* The commit that the test result was created from
* @type {string}
* @memberof V1TestResultPostRequest
*/
commit?: string | null;
/**
* The name of the test result
* @type {string}
* @memberof V1TestResultPostRequest
*/
name?: string | null;
/**
*
* @type {{ [key: string]: MetadataValueObject; }}
* @memberof V1TestResultPostRequest
*/
metadata?: {
[key: string]: MetadataValueObject;
} | null;
/**
* Optional flag to trigger remote evaluations
* @type {boolean}
* @memberof V1TestResultPostRequest
*/
triggerRemoteEvals?: boolean;
/**
*
* @type {Array<V1TestResultPostRequestTestRunsInner>}
* @memberof V1TestResultPostRequest
*/
testRuns: Array<V1TestResultPostRequestTestRunsInner>;
}
export declare const V1TestResultPostRequestCollectionMethodEnum: {
readonly Manual: "manual";
readonly Runner: "runner";
};
export type V1TestResultPostRequestCollectionMethodEnum = (typeof V1TestResultPostRequestCollectionMethodEnum)[keyof typeof V1TestResultPostRequestCollectionMethodEnum];