1 | import basem = require('./ClientApiBases');
|
2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
3 | import CIXInterfaces = require("./interfaces/CIXInterfaces");
|
4 | export interface ICixApi extends basem.ClientApiBase {
|
5 | getConfigurations(project: string, repositoryType?: string, repositoryId?: string, branch?: string, serviceConnectionId?: string): Promise<CIXInterfaces.ConfigurationFile[]>;
|
6 | createProjectConnection(createConnectionInputs: CIXInterfaces.CreatePipelineConnectionInputs, project: string): Promise<CIXInterfaces.PipelineConnection>;
|
7 | getDetectedBuildFrameworks(project: string, repositoryType?: string, repositoryId?: string, branch?: string, detectionType?: CIXInterfaces.BuildFrameworkDetectionType, serviceConnectionId?: string): Promise<CIXInterfaces.DetectedBuildFramework[]>;
|
8 | createResources(creationParameters: {
|
9 | [key: string]: CIXInterfaces.ResourceCreationParameter;
|
10 | }, project: string): Promise<CIXInterfaces.CreatedResources>;
|
11 | }
|
12 | export declare class CixApi extends basem.ClientApiBase implements ICixApi {
|
13 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
14 | /**
|
15 | * Gets a list of existing configuration files for the given repository.
|
16 | *
|
17 | * @param {string} project - Project ID or project name
|
18 | * @param {string} repositoryType - The type of the repository such as GitHub, TfsGit (i.e. Azure Repos), Bitbucket, etc.
|
19 | * @param {string} repositoryId - The vendor-specific identifier or the name of the repository, e.g. Microsoft/vscode (GitHub) or e9d82045-ddba-4e01-a63d-2ab9f040af62 (Azure Repos)
|
20 | * @param {string} branch - The repository branch where to look for the configuration file.
|
21 | * @param {string} serviceConnectionId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TfsGit (i.e. Azure Repos).
|
22 | */
|
23 | getConfigurations(project: string, repositoryType?: string, repositoryId?: string, branch?: string, serviceConnectionId?: string): Promise<CIXInterfaces.ConfigurationFile[]>;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | createProjectConnection(createConnectionInputs: CIXInterfaces.CreatePipelineConnectionInputs, project: string): Promise<CIXInterfaces.PipelineConnection>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | getDetectedBuildFrameworks(project: string, repositoryType?: string, repositoryId?: string, branch?: string, detectionType?: CIXInterfaces.BuildFrameworkDetectionType, serviceConnectionId?: string): Promise<CIXInterfaces.DetectedBuildFramework[]>;
|
42 | |
43 |
|
44 |
|
45 |
|
46 | createResources(creationParameters: {
|
47 | [key: string]: CIXInterfaces.ResourceCreationParameter;
|
48 | }, project: string): Promise<CIXInterfaces.CreatedResources>;
|
49 | }
|