@vendasta/mission-control 3.8.0 → 3.10.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.
@@ -1226,6 +1226,9 @@ class Delivery {
1226
1226
  if (typeof this.buildId !== 'undefined') {
1227
1227
  toReturn['buildId'] = this.buildId;
1228
1228
  }
1229
+ if (typeof this.vulnerabilityRiskOverrideReason !== 'undefined') {
1230
+ toReturn['vulnerabilityRiskOverrideReason'] = this.vulnerabilityRiskOverrideReason;
1231
+ }
1229
1232
  return toReturn;
1230
1233
  }
1231
1234
  }
@@ -1517,6 +1520,61 @@ class GetApplicationLinksResponse {
1517
1520
  return toReturn;
1518
1521
  }
1519
1522
  }
1523
+ class GetDeploymentRequest {
1524
+ static fromProto(proto) {
1525
+ let m = new GetDeploymentRequest();
1526
+ m = Object.assign(m, proto);
1527
+ if (proto.environment) {
1528
+ m.environment = enumStringToValue$2(Environment, proto.environment);
1529
+ }
1530
+ return m;
1531
+ }
1532
+ constructor(kwargs) {
1533
+ if (!kwargs) {
1534
+ return;
1535
+ }
1536
+ Object.assign(this, kwargs);
1537
+ }
1538
+ toApiJson() {
1539
+ const toReturn = {};
1540
+ if (typeof this.appId !== 'undefined') {
1541
+ toReturn['appId'] = this.appId;
1542
+ }
1543
+ if (typeof this.environment !== 'undefined') {
1544
+ toReturn['environment'] = this.environment;
1545
+ }
1546
+ if (typeof this.deploymentId !== 'undefined') {
1547
+ toReturn['deploymentId'] = this.deploymentId;
1548
+ }
1549
+ if (typeof this.includeVulnerabilitySnapshot !== 'undefined') {
1550
+ toReturn['includeVulnerabilitySnapshot'] = this.includeVulnerabilitySnapshot;
1551
+ }
1552
+ return toReturn;
1553
+ }
1554
+ }
1555
+ class GetDeploymentResponse {
1556
+ static fromProto(proto) {
1557
+ let m = new GetDeploymentResponse();
1558
+ m = Object.assign(m, proto);
1559
+ if (proto.deployment) {
1560
+ m.deployment = Deployment.fromProto(proto.deployment);
1561
+ }
1562
+ return m;
1563
+ }
1564
+ constructor(kwargs) {
1565
+ if (!kwargs) {
1566
+ return;
1567
+ }
1568
+ Object.assign(this, kwargs);
1569
+ }
1570
+ toApiJson() {
1571
+ const toReturn = {};
1572
+ if (typeof this.deployment !== 'undefined' && this.deployment !== null) {
1573
+ toReturn['deployment'] = 'toApiJson' in this.deployment ? this.deployment.toApiJson() : this.deployment;
1574
+ }
1575
+ return toReturn;
1576
+ }
1577
+ }
1520
1578
  class GetSecurityVulnerabilitiesRequest {
1521
1579
  static fromProto(proto) {
1522
1580
  let m = new GetSecurityVulnerabilitiesRequest();
@@ -2763,6 +2821,11 @@ class MissionControlApiService {
2763
2821
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListDeployments", request.toApiJson(), this.apiOptions())
2764
2822
  .pipe(map(resp => ListDeploymentsResponse.fromProto(resp)));
2765
2823
  }
2824
+ getDeployment(r) {
2825
+ const request = (r.toApiJson) ? r : new GetDeploymentRequest(r);
2826
+ return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetDeployment", request.toApiJson(), this.apiOptions())
2827
+ .pipe(map(resp => GetDeploymentResponse.fromProto(resp)));
2828
+ }
2766
2829
  updateDeployment(r) {
2767
2830
  const request = (r.toApiJson) ? r : new UpdateDeploymentRequest(r);
2768
2831
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateDeployment", request.toApiJson(), this.apiOptions())
@@ -2922,5 +2985,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2922
2985
  * Generated bundle index. Do not edit.
2923
2986
  */
2924
2987
 
2925
- 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 };
2988
+ 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 };
2926
2989
  //# sourceMappingURL=vendasta-mission-control.mjs.map