1 | import basem = require('./ClientApiBases');
|
2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
3 | import ManagementInterfaces = require("./interfaces/ManagementInterfaces");
|
4 | export interface IManagementApi extends basem.ClientApiBase {
|
5 | deleteBillingInfo(organizationId: string): Promise<void>;
|
6 | deleteMeterUsageHistory(organizationId: string): Promise<void>;
|
7 | getBillingInfo(organizationId: string): Promise<ManagementInterfaces.BillingInfo>;
|
8 | saveBillingInfo(billingInfo: ManagementInterfaces.BillingInfo, organizationId: string): Promise<void>;
|
9 | createBillingSnapshot(meterUsage: ManagementInterfaces.MeterUsage): Promise<void>;
|
10 | getBillableCommitterDetails(billingDate?: Date): Promise<ManagementInterfaces.BillableCommitterDetails[]>;
|
11 | getLastMeterUsage(): Promise<ManagementInterfaces.MeterUsage>;
|
12 | getMeterUsage(billingDate?: Date): Promise<ManagementInterfaces.MeterUsage>;
|
13 | getOrgEnablementStatus(includeAllProperties?: boolean): Promise<ManagementInterfaces.AdvSecEnablementSettings>;
|
14 | updateOrgEnablementStatus(savedAdvSecEnablementStatus: ManagementInterfaces.AdvSecEnablementSettingsUpdate): Promise<void>;
|
15 | getEstimatedOrgBillablePushers(): Promise<string[]>;
|
16 | getProjectEnablementStatus(project: string, includeAllProperties?: boolean): Promise<ManagementInterfaces.AdvSecEnablementSettings>;
|
17 | updateProjectEnablementStatus(savedAdvSecEnablementStatus: ManagementInterfaces.AdvSecEnablementSettingsUpdate, project: string): Promise<void>;
|
18 | getEstimatedProjectBillablePushers(project: string): Promise<string[]>;
|
19 | getRepoEnablementStatus(project: string, repository: string, includeAllProperties?: boolean): Promise<ManagementInterfaces.AdvSecEnablementStatus>;
|
20 | updateRepoAdvSecEnablementStatus(savedAdvSecEnablementStatus: ManagementInterfaces.AdvSecEnablementStatusUpdate, project: string, repository: string): Promise<void>;
|
21 | getEstimatedRepoBillableCommitters(project: string, repository: string): Promise<string[]>;
|
22 | }
|
23 | export declare class ManagementApi extends basem.ClientApiBase implements IManagementApi {
|
24 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
25 | /**
|
26 | * Delete the billing info for an organization.
|
27 | *
|
28 | * @param {string} organizationId
|
29 | */
|
30 | deleteBillingInfo(organizationId: string): Promise<void>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 | deleteMeterUsageHistory(organizationId: string): Promise<void>;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 | getBillingInfo(organizationId: string): Promise<ManagementInterfaces.BillingInfo>;
|
43 | |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | saveBillingInfo(billingInfo: ManagementInterfaces.BillingInfo, organizationId: string): Promise<void>;
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | createBillingSnapshot(meterUsage: ManagementInterfaces.MeterUsage): Promise<void>;
|
56 | |
57 |
|
58 |
|
59 |
|
60 |
|
61 | getBillableCommitterDetails(billingDate?: Date): Promise<ManagementInterfaces.BillableCommitterDetails[]>;
|
62 | |
63 |
|
64 | getLastMeterUsage(): Promise<ManagementInterfaces.MeterUsage>;
|
65 | |
66 |
|
67 |
|
68 |
|
69 |
|
70 | getMeterUsage(billingDate?: Date): Promise<ManagementInterfaces.MeterUsage>;
|
71 | |
72 |
|
73 |
|
74 |
|
75 |
|
76 | getOrgEnablementStatus(includeAllProperties?: boolean): Promise<ManagementInterfaces.AdvSecEnablementSettings>;
|
77 | |
78 |
|
79 |
|
80 |
|
81 |
|
82 | updateOrgEnablementStatus(savedAdvSecEnablementStatus: ManagementInterfaces.AdvSecEnablementSettingsUpdate): Promise<void>;
|
83 | |
84 |
|
85 |
|
86 |
|
87 | getEstimatedOrgBillablePushers(): Promise<string[]>;
|
88 | |
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 | getProjectEnablementStatus(project: string, includeAllProperties?: boolean): Promise<ManagementInterfaces.AdvSecEnablementSettings>;
|
95 | |
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 | updateProjectEnablementStatus(savedAdvSecEnablementStatus: ManagementInterfaces.AdvSecEnablementSettingsUpdate, project: string): Promise<void>;
|
102 | |
103 |
|
104 |
|
105 |
|
106 |
|
107 | getEstimatedProjectBillablePushers(project: string): Promise<string[]>;
|
108 | |
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 | getRepoEnablementStatus(project: string, repository: string, includeAllProperties?: boolean): Promise<ManagementInterfaces.AdvSecEnablementStatus>;
|
116 | |
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 | updateRepoAdvSecEnablementStatus(savedAdvSecEnablementStatus: ManagementInterfaces.AdvSecEnablementStatusUpdate, project: string, repository: string): Promise<void>;
|
124 | |
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 | getEstimatedRepoBillableCommitters(project: string, repository: string): Promise<string[]>;
|
131 | }
|