1.0.5 • Published 6 months ago

@types/testingbot-api v1.0.5

Weekly downloads
116
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/testingbot-api

Summary

This package contains type definitions for testingbot-api (https://github.com/testingbot/testingbot-api).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testingbot-api.

index.d.ts

// Type definitions for testingbot-api 1.0
// Project: https://github.com/testingbot/testingbot-api
// Definitions by: Tim Brust <https://github.com/timbru31>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace TestingBot {
    type BrowserType = 'webdriver' | 'rc';
    type TestSuccess = true | false | 0 | 1;

    interface TestingBotOptions {
        api_key?: string | undefined;
        api_secret?: string | undefined;
    }

    interface UserInfo {
        first_name?: string | undefined;
        last_name?: string | undefined;
        email?: string | undefined;
    }

    interface TestData {
        'test[success]'?: TestSuccess | undefined;
        'test[status_message]'?: string | undefined;
        'test[name]'?: string | undefined;
        'test[extra]'?: string | undefined;
        build?: string | undefined;
        groups?: string | undefined;
    }

    interface TestLabData {
        'test[url]'?: string | undefined;
        'test[name]'?: string | undefined;
        'test[cron]'?: string | undefined;
        'test[enabled]'?: boolean | undefined;
    }

    interface TestingBot {
        getTestDetails(testID: string, callback?: (error: any, responseBody: any) => any): void;

        getBrowsers(callback?: (error: any, responseBody: any) => any, type?: BrowserType): void;

        getLabTestDetails(testID: string, callback?: (error: any, responseBody: any) => any): void;

        getTunnel(callback?: (error: any, responseBody: any) => any): void;

        getUserInfo(callback?: (error: any, responseBody: any) => any): void;

        getTests(callback?: (error: any, responseBody: any) => any, offset?: number, limit?: number): void;

        getLabTests(callback?: (error: any, responseBody: any) => any, offset?: number, limit?: number): void;

        updateUserInfo(data: UserInfo, callback?: (error: any, responseBody: any) => any): void;

        updateTest(data: TestData, testID: string, callback?: (error: any, responseBody: any) => any): void;

        updateLabTest(data: TestLabData, testID: string, callback?: (error: any, responseBody: any) => any): void;

        deleteTest(testID: string, callback?: (error: any, responseBody: any) => any): void;

        deleteLabTest(testID: string, callback?: (error: any, responseBody: any) => any): void;
    }
}

declare const TestingBot: {
    new (options?: TestingBot.TestingBotOptions): TestingBot.TestingBot;
};

export = TestingBot;

Additional Details

  • Last updated: Fri, 02 Jul 2021 21:32:18 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Tim Brust.

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

8 months ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

7 years ago