1 | import TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
|
2 | export declare enum BuildFrameworkDetectionType {
|
3 | Shallow = 0,
|
4 | Full = 10
|
5 | }
|
6 | export interface ConfigurationFile {
|
7 | /**
|
8 | * The content of the file.
|
9 | */
|
10 | content: string;
|
11 | /**
|
12 | * Indicates if the content is base64 encoded.
|
13 | */
|
14 | isBase64Encoded: boolean;
|
15 | /**
|
16 | * The full path of the file, relative to the root of the repository.
|
17 | */
|
18 | path: string;
|
19 | }
|
20 | export interface CreatedResources {
|
21 | resources?: {
|
22 | [key: string]: any;
|
23 | };
|
24 | }
|
25 | /**
|
26 | * This class is used to create a pipeline connection within the team project provided. If the team project does not exist, it will be created.
|
27 | */
|
28 | export interface CreatePipelineConnectionInputs {
|
29 | /**
|
30 | * The team project settings for an existing team project or for a new team project.
|
31 | */
|
32 | project?: TfsCoreInterfaces.TeamProject;
|
33 | /**
|
34 | * This dictionary contains information that is specific to the provider. This data is opaque to the rest of the Pipelines infrastructure and does NOT contribute to the resources Token. The format of the string and its contents depend on the implementation of the provider.
|
35 | */
|
36 | providerData?: {
|
37 | [key: string]: string;
|
38 | };
|
39 | /**
|
40 | * The external source provider id for which the connection is being made.
|
41 | */
|
42 | providerId: string;
|
43 | /**
|
44 | * If provided, this will be the URL returned with the PipelineConnection. This will override any other redirect URL that would have been generated for the connection.
|
45 | */
|
46 | redirectUrl?: string;
|
47 | /**
|
48 | * Where the request to create the pipeline originated (such as 'GitHub Marketplace' or 'Azure DevOps')
|
49 | */
|
50 | requestSource?: string;
|
51 | }
|
52 | export interface DetectedBuildFramework {
|
53 | /**
|
54 | * List of build targets discovered for the framework to act upon.
|
55 | */
|
56 | buildTargets: DetectedBuildTarget[];
|
57 | /**
|
58 | * The unique identifier of the build framework.
|
59 | */
|
60 | id: string;
|
61 | /**
|
62 | * Additional detected settings for the build framework.
|
63 | */
|
64 | settings: {
|
65 | [key: string]: string;
|
66 | };
|
67 | /**
|
68 | * The version of the framework if it can be determined from the sources.
|
69 | */
|
70 | version: string;
|
71 | }
|
72 | export interface DetectedBuildTarget {
|
73 | path: string;
|
74 | settings: {
|
75 | [key: string]: string;
|
76 | };
|
77 | type: string;
|
78 | }
|
79 | export interface PipelineConnection {
|
80 | /**
|
81 | * The account id that contains the team project for the connection.
|
82 | */
|
83 | accountId?: string;
|
84 | /**
|
85 | * The definition id that was created for the connection.
|
86 | */
|
87 | definitionId?: number;
|
88 | /**
|
89 | * This is the URL that the user should be taken to in order to continue setup.
|
90 | */
|
91 | redirectUrl?: string;
|
92 | /**
|
93 | * The service endpoint that was created for the connection.
|
94 | */
|
95 | serviceEndpointId?: string;
|
96 | /**
|
97 | * The team project that contains the definition for the connection.
|
98 | */
|
99 | teamProjectId?: string;
|
100 | }
|
101 | export interface ResourceCreationParameter {
|
102 | resourceToCreate?: any;
|
103 | type?: string;
|
104 | }
|
105 | export declare var TypeInfo: {
|
106 | BuildFrameworkDetectionType: {
|
107 | enumValues: {
|
108 | shallow: number;
|
109 | full: number;
|
110 | };
|
111 | };
|
112 | CreatePipelineConnectionInputs: any;
|
113 | };
|