UNPKG

2.78 kBTypeScriptView Raw
1/// <reference types="node" />
2import type { Status } from "./model.js";
3import { type ContentType } from "./model.js";
4import { type AttachmentOptions, type Label, type Link, type ParameterMode, type ParameterOptions } from "./model.js";
5import { LabelName, LinkType } from "./model.js";
6export declare const label: (name: LabelName | string, value: string) => PromiseLike<void>;
7export declare const labels: (...labelsList: Label[]) => PromiseLike<void>;
8export declare const link: (url: string, name?: string, type?: LinkType | string) => PromiseLike<void>;
9export declare const links: (...linksList: Link[]) => PromiseLike<void>;
10export declare const parameter: (name: string, value: string, options?: ParameterOptions) => PromiseLike<void>;
11export declare const description: (markdown: string) => PromiseLike<void>;
12export declare const descriptionHtml: (html: string) => PromiseLike<void>;
13export declare const displayName: (name: string) => PromiseLike<void>;
14export declare const historyId: (value: string) => PromiseLike<void>;
15export declare const testCaseId: (value: string) => PromiseLike<void>;
16export declare const attachment: (name: string, content: Buffer | string, options: ContentType | string | AttachmentOptions) => PromiseLike<void>;
17export declare const attachmentPath: (name: string, path: string, options: ContentType | string | Omit<AttachmentOptions, "encoding">) => PromiseLike<void>;
18export type StepContext = {
19 displayName: (name: string) => void | PromiseLike<void>;
20 parameter: (name: string, value: string, mode?: ParameterMode) => void | PromiseLike<void>;
21};
22export declare const logStep: (name: string, status?: Status, error?: Error) => PromiseLike<void>;
23export declare const step: <T = void>(name: string, body: (context: StepContext) => T | PromiseLike<T>) => PromiseLike<T>;
24export declare const issue: (url: string, name?: string) => PromiseLike<void>;
25export declare const tms: (url: string, name?: string) => PromiseLike<void>;
26export declare const allureId: (value: string) => PromiseLike<void>;
27export declare const epic: (name: string) => PromiseLike<void>;
28export declare const feature: (name: string) => PromiseLike<void>;
29export declare const story: (name: string) => PromiseLike<void>;
30export declare const suite: (name: string) => PromiseLike<void>;
31export declare const parentSuite: (name: string) => PromiseLike<void>;
32export declare const subSuite: (name: string) => PromiseLike<void>;
33export declare const owner: (name: string) => PromiseLike<void>;
34export declare const severity: (name: string) => PromiseLike<void>;
35export declare const layer: (name: string) => PromiseLike<void>;
36export declare const tag: (name: string) => PromiseLike<void>;
37export declare const tags: (...tagsList: string[]) => PromiseLike<void>;