@vendasta/mission-control 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/mission-control.interface.mjs +1 -1
- package/esm2020/lib/_internal/mission-control.api.service.mjs +7 -2
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/mission-control.mjs +56 -1
- package/fesm2015/vendasta-mission-control.mjs +61 -1
- package/fesm2015/vendasta-mission-control.mjs.map +1 -1
- package/fesm2020/vendasta-mission-control.mjs +61 -1
- package/fesm2020/vendasta-mission-control.mjs.map +1 -1
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/mission-control.interface.d.ts +9 -0
- package/lib/_internal/mission-control.api.service.d.ts +3 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/mission-control.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1517,6 +1517,61 @@ class GetApplicationLinksResponse {
|
|
|
1517
1517
|
return toReturn;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
+
class GetDeploymentRequest {
|
|
1521
|
+
static fromProto(proto) {
|
|
1522
|
+
let m = new GetDeploymentRequest();
|
|
1523
|
+
m = Object.assign(m, proto);
|
|
1524
|
+
if (proto.environment) {
|
|
1525
|
+
m.environment = enumStringToValue$2(Environment, proto.environment);
|
|
1526
|
+
}
|
|
1527
|
+
return m;
|
|
1528
|
+
}
|
|
1529
|
+
constructor(kwargs) {
|
|
1530
|
+
if (!kwargs) {
|
|
1531
|
+
return;
|
|
1532
|
+
}
|
|
1533
|
+
Object.assign(this, kwargs);
|
|
1534
|
+
}
|
|
1535
|
+
toApiJson() {
|
|
1536
|
+
const toReturn = {};
|
|
1537
|
+
if (typeof this.appId !== 'undefined') {
|
|
1538
|
+
toReturn['appId'] = this.appId;
|
|
1539
|
+
}
|
|
1540
|
+
if (typeof this.environment !== 'undefined') {
|
|
1541
|
+
toReturn['environment'] = this.environment;
|
|
1542
|
+
}
|
|
1543
|
+
if (typeof this.deploymentId !== 'undefined') {
|
|
1544
|
+
toReturn['deploymentId'] = this.deploymentId;
|
|
1545
|
+
}
|
|
1546
|
+
if (typeof this.includeVulnerabilitySnapshot !== 'undefined') {
|
|
1547
|
+
toReturn['includeVulnerabilitySnapshot'] = this.includeVulnerabilitySnapshot;
|
|
1548
|
+
}
|
|
1549
|
+
return toReturn;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
class GetDeploymentResponse {
|
|
1553
|
+
static fromProto(proto) {
|
|
1554
|
+
let m = new GetDeploymentResponse();
|
|
1555
|
+
m = Object.assign(m, proto);
|
|
1556
|
+
if (proto.deployment) {
|
|
1557
|
+
m.deployment = Deployment.fromProto(proto.deployment);
|
|
1558
|
+
}
|
|
1559
|
+
return m;
|
|
1560
|
+
}
|
|
1561
|
+
constructor(kwargs) {
|
|
1562
|
+
if (!kwargs) {
|
|
1563
|
+
return;
|
|
1564
|
+
}
|
|
1565
|
+
Object.assign(this, kwargs);
|
|
1566
|
+
}
|
|
1567
|
+
toApiJson() {
|
|
1568
|
+
const toReturn = {};
|
|
1569
|
+
if (typeof this.deployment !== 'undefined' && this.deployment !== null) {
|
|
1570
|
+
toReturn['deployment'] = 'toApiJson' in this.deployment ? this.deployment.toApiJson() : this.deployment;
|
|
1571
|
+
}
|
|
1572
|
+
return toReturn;
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1520
1575
|
class GetSecurityVulnerabilitiesRequest {
|
|
1521
1576
|
static fromProto(proto) {
|
|
1522
1577
|
let m = new GetSecurityVulnerabilitiesRequest();
|
|
@@ -2764,6 +2819,11 @@ class MissionControlApiService {
|
|
|
2764
2819
|
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListDeployments", request.toApiJson(), this.apiOptions())
|
|
2765
2820
|
.pipe(map(resp => ListDeploymentsResponse.fromProto(resp)));
|
|
2766
2821
|
}
|
|
2822
|
+
getDeployment(r) {
|
|
2823
|
+
const request = (r.toApiJson) ? r : new GetDeploymentRequest(r);
|
|
2824
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetDeployment", request.toApiJson(), this.apiOptions())
|
|
2825
|
+
.pipe(map(resp => GetDeploymentResponse.fromProto(resp)));
|
|
2826
|
+
}
|
|
2767
2827
|
updateDeployment(r) {
|
|
2768
2828
|
const request = (r.toApiJson) ? r : new UpdateDeploymentRequest(r);
|
|
2769
2829
|
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateDeployment", request.toApiJson(), this.apiOptions())
|
|
@@ -2923,5 +2983,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2923
2983
|
* Generated bundle index. Do not edit.
|
|
2924
2984
|
*/
|
|
2925
2985
|
|
|
2926
|
-
export { Alert, AlertType, AppConfig, AppMetricsApiService, AppType, Application, ApplicationLink, Artifacts, BuildStatus, ChangeFailData, ChangeFailGetMultiRequest, ChangeFailGetMultiResponse, CreateApplicationRequest, CreateDeliveryRequest, CreateDeliveryResponse, CreateDeploymentRequest, CreateDeploymentResponse, DeleteApplicationRequest, DeleteDeliveryRequest, Delivery, DeliveryLock, DeliveryMethod, DeliveryType, Deployment, DeploymentFrequencyData, DeploymentFrequencyGetMultiRequest, DeploymentFrequencyGetMultiResponse, DeploymentStatus, Environment, Event, EventType, GetApplicationLinksRequest, GetApplicationLinksResponse, GetSecurityVulnerabilitiesRequest, GetSecurityVulnerabilitiesResponse, GetServiceLevelsRequest, GetUserSettingsRequest, GetUserSettingsRequestV2, GetUserSettingsResponse, GetUserSettingsResponseV2, GetZonesRequest, GetZonesResponse, GitCommitDetails, GithubCommitUser, K8SConfig, KubernetesController, LeadTime, LeadTimeGetMultiRequest, LeadTimeGetMultiResponse, LeadTimeListRequest, LeadTimeListResponse, LeadTimeSummary, ListApplicationsRequest, ListApplicationsResponse, ListDeliveriesByUserRequest, ListDeliveriesRequest, ListDeliveriesResponse, ListDeploymentsRequest, ListDeploymentsResponse, ListEventsRequest, ListEventsResponse, MTTRData, MTTRGetMultiRequest, MTTRGetMultiResponse, MissionControlApiService, PagedRequestOptions, PagedResponseMetadata, QueryServiceLevelsRequest, SecurityVulnerability, SendBuildNotificationRequest, ServiceLevel, ServiceLevelsApiService, ServiceLevelsResponse, ServiceReadiness, StatRate, StatRateUnit, StatSnapshot, TimeRange, UpdateApplicationRequest, UpdateDeliveryRequest, UpdateDeploymentRequest, UpdateDeploymentResponse, UpdateUserSettingsRequest, UpdateUserSettingsRequestV2, UserApiService, UserDeployFrequencyData, UserDeployFrequencyGetMultiRequest, UserDeployFrequencyGetMultiResponse, UserNotifications, UserNotificationsV2, UserSettings, UserSettingsV2, VulnerabilitySeverity, VulnerabilitySnapshot, VulnerabilitySummary };
|
|
2986
|
+
export { Alert, AlertType, AppConfig, AppMetricsApiService, AppType, Application, ApplicationLink, Artifacts, BuildStatus, ChangeFailData, ChangeFailGetMultiRequest, ChangeFailGetMultiResponse, CreateApplicationRequest, CreateDeliveryRequest, CreateDeliveryResponse, CreateDeploymentRequest, CreateDeploymentResponse, DeleteApplicationRequest, DeleteDeliveryRequest, Delivery, DeliveryLock, DeliveryMethod, DeliveryType, Deployment, DeploymentFrequencyData, DeploymentFrequencyGetMultiRequest, DeploymentFrequencyGetMultiResponse, DeploymentStatus, Environment, Event, EventType, GetApplicationLinksRequest, GetApplicationLinksResponse, GetDeploymentRequest, GetDeploymentResponse, GetSecurityVulnerabilitiesRequest, GetSecurityVulnerabilitiesResponse, GetServiceLevelsRequest, GetUserSettingsRequest, GetUserSettingsRequestV2, GetUserSettingsResponse, GetUserSettingsResponseV2, GetZonesRequest, GetZonesResponse, GitCommitDetails, GithubCommitUser, K8SConfig, KubernetesController, LeadTime, LeadTimeGetMultiRequest, LeadTimeGetMultiResponse, LeadTimeListRequest, LeadTimeListResponse, LeadTimeSummary, ListApplicationsRequest, ListApplicationsResponse, ListDeliveriesByUserRequest, ListDeliveriesRequest, ListDeliveriesResponse, ListDeploymentsRequest, ListDeploymentsResponse, ListEventsRequest, ListEventsResponse, MTTRData, MTTRGetMultiRequest, MTTRGetMultiResponse, MissionControlApiService, PagedRequestOptions, PagedResponseMetadata, QueryServiceLevelsRequest, SecurityVulnerability, SendBuildNotificationRequest, ServiceLevel, ServiceLevelsApiService, ServiceLevelsResponse, ServiceReadiness, StatRate, StatRateUnit, StatSnapshot, TimeRange, UpdateApplicationRequest, UpdateDeliveryRequest, UpdateDeploymentRequest, UpdateDeploymentResponse, UpdateUserSettingsRequest, UpdateUserSettingsRequestV2, UserApiService, UserDeployFrequencyData, UserDeployFrequencyGetMultiRequest, UserDeployFrequencyGetMultiResponse, UserNotifications, UserNotificationsV2, UserSettings, UserSettingsV2, VulnerabilitySeverity, VulnerabilitySnapshot, VulnerabilitySummary };
|
|
2927
2987
|
//# sourceMappingURL=vendasta-mission-control.mjs.map
|