@vendasta/mission-control 3.7.0 → 3.8.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.
@@ -95,6 +95,14 @@ var KubernetesController;
95
95
  KubernetesController[KubernetesController["KUBERNETES_CONTROLLER_DEPLOYMENT"] = 0] = "KUBERNETES_CONTROLLER_DEPLOYMENT";
96
96
  KubernetesController[KubernetesController["KUBERNETES_CONTROLLER_ARGOROLLOUT"] = 1] = "KUBERNETES_CONTROLLER_ARGOROLLOUT";
97
97
  })(KubernetesController || (KubernetesController = {}));
98
+ var VulnerabilitySeverity;
99
+ (function (VulnerabilitySeverity) {
100
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_UNSPECIFIED"] = 0] = "VULNERABILITY_SEVERITY_UNSPECIFIED";
101
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_LOW"] = 1] = "VULNERABILITY_SEVERITY_LOW";
102
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_MODERATE"] = 2] = "VULNERABILITY_SEVERITY_MODERATE";
103
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_HIGH"] = 3] = "VULNERABILITY_SEVERITY_HIGH";
104
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_CRITICAL"] = 4] = "VULNERABILITY_SEVERITY_CRITICAL";
105
+ })(VulnerabilitySeverity || (VulnerabilitySeverity = {}));
98
106
 
99
107
  // *********************************
100
108
  // Code generated by sdkgen
@@ -1316,6 +1324,12 @@ class Deployment {
1316
1324
  if (proto.k8sConfig) {
1317
1325
  m.k8sConfig = K8SConfig.fromProto(proto.k8sConfig);
1318
1326
  }
1327
+ if (proto.vulnerabilitySummary) {
1328
+ m.vulnerabilitySummary = VulnerabilitySummary.fromProto(proto.vulnerabilitySummary);
1329
+ }
1330
+ if (proto.vulnerabilitySnapshot) {
1331
+ m.vulnerabilitySnapshot = VulnerabilitySnapshot.fromProto(proto.vulnerabilitySnapshot);
1332
+ }
1319
1333
  return m;
1320
1334
  }
1321
1335
  constructor(kwargs) {
@@ -1377,6 +1391,12 @@ class Deployment {
1377
1391
  if (typeof this.k8sConfig !== 'undefined' && this.k8sConfig !== null) {
1378
1392
  toReturn['k8sConfig'] = 'toApiJson' in this.k8sConfig ? this.k8sConfig.toApiJson() : this.k8sConfig;
1379
1393
  }
1394
+ if (typeof this.vulnerabilitySummary !== 'undefined' && this.vulnerabilitySummary !== null) {
1395
+ toReturn['vulnerabilitySummary'] = 'toApiJson' in this.vulnerabilitySummary ? this.vulnerabilitySummary.toApiJson() : this.vulnerabilitySummary;
1396
+ }
1397
+ if (typeof this.vulnerabilitySnapshot !== 'undefined' && this.vulnerabilitySnapshot !== null) {
1398
+ toReturn['vulnerabilitySnapshot'] = 'toApiJson' in this.vulnerabilitySnapshot ? this.vulnerabilitySnapshot.toApiJson() : this.vulnerabilitySnapshot;
1399
+ }
1380
1400
  return toReturn;
1381
1401
  }
1382
1402
  }
@@ -1899,6 +1919,9 @@ class ListDeploymentsRequest {
1899
1919
  if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
1900
1920
  toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
1901
1921
  }
1922
+ if (typeof this.includeVulnerabilitySnapshot !== 'undefined') {
1923
+ toReturn['includeVulnerabilitySnapshot'] = this.includeVulnerabilitySnapshot;
1924
+ }
1902
1925
  return toReturn;
1903
1926
  }
1904
1927
  }
@@ -2265,6 +2288,64 @@ class UserSettings {
2265
2288
  return toReturn;
2266
2289
  }
2267
2290
  }
2291
+ class VulnerabilitySnapshot {
2292
+ static fromProto(proto) {
2293
+ let m = new VulnerabilitySnapshot();
2294
+ m = Object.assign(m, proto);
2295
+ return m;
2296
+ }
2297
+ constructor(kwargs) {
2298
+ if (!kwargs) {
2299
+ return;
2300
+ }
2301
+ Object.assign(this, kwargs);
2302
+ }
2303
+ toApiJson() {
2304
+ const toReturn = {};
2305
+ if (typeof this.scannerType !== 'undefined') {
2306
+ toReturn['scannerType'] = this.scannerType;
2307
+ }
2308
+ if (typeof this.scannerVersion !== 'undefined') {
2309
+ toReturn['scannerVersion'] = this.scannerVersion;
2310
+ }
2311
+ if (typeof this.rawReportJson !== 'undefined') {
2312
+ toReturn['rawReportJson'] = this.rawReportJson;
2313
+ }
2314
+ return toReturn;
2315
+ }
2316
+ }
2317
+ class VulnerabilitySummary {
2318
+ static fromProto(proto) {
2319
+ let m = new VulnerabilitySummary();
2320
+ m = Object.assign(m, proto);
2321
+ return m;
2322
+ }
2323
+ constructor(kwargs) {
2324
+ if (!kwargs) {
2325
+ return;
2326
+ }
2327
+ Object.assign(this, kwargs);
2328
+ }
2329
+ toApiJson() {
2330
+ const toReturn = {};
2331
+ if (typeof this.totalCount !== 'undefined') {
2332
+ toReturn['totalCount'] = this.totalCount;
2333
+ }
2334
+ if (typeof this.criticalCount !== 'undefined') {
2335
+ toReturn['criticalCount'] = this.criticalCount;
2336
+ }
2337
+ if (typeof this.highCount !== 'undefined') {
2338
+ toReturn['highCount'] = this.highCount;
2339
+ }
2340
+ if (typeof this.moderateCount !== 'undefined') {
2341
+ toReturn['moderateCount'] = this.moderateCount;
2342
+ }
2343
+ if (typeof this.lowCount !== 'undefined') {
2344
+ toReturn['lowCount'] = this.lowCount;
2345
+ }
2346
+ return toReturn;
2347
+ }
2348
+ }
2268
2349
 
2269
2350
  function enumStringToValue$1(enumRef, value) {
2270
2351
  if (typeof value === 'number') {
@@ -2842,5 +2923,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2842
2923
  * Generated bundle index. Do not edit.
2843
2924
  */
2844
2925
 
2845
- 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 };
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 };
2846
2927
  //# sourceMappingURL=vendasta-mission-control.mjs.map