@vendasta/mission-control 3.4.0 → 3.6.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.
@@ -1,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
3
- import * as i1 from '@angular/common/http';
4
- import { HttpHeaders } from '@angular/common/http';
2
+ import { Injectable, inject } from '@angular/core';
3
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
5
4
  import { map } from 'rxjs/operators';
6
5
 
7
6
  // *********************************
@@ -935,6 +934,32 @@ class Application {
935
934
  return toReturn;
936
935
  }
937
936
  }
937
+ class ApplicationLink {
938
+ static fromProto(proto) {
939
+ let m = new ApplicationLink();
940
+ m = Object.assign(m, proto);
941
+ return m;
942
+ }
943
+ constructor(kwargs) {
944
+ if (!kwargs) {
945
+ return;
946
+ }
947
+ Object.assign(this, kwargs);
948
+ }
949
+ toApiJson() {
950
+ const toReturn = {};
951
+ if (typeof this.buttonText !== 'undefined') {
952
+ toReturn['buttonText'] = this.buttonText;
953
+ }
954
+ if (typeof this.url !== 'undefined') {
955
+ toReturn['url'] = this.url;
956
+ }
957
+ if (typeof this.collapsed !== 'undefined') {
958
+ toReturn['collapsed'] = this.collapsed;
959
+ }
960
+ return toReturn;
961
+ }
962
+ }
938
963
  class Artifacts {
939
964
  static fromProto(proto) {
940
965
  let m = new Artifacts();
@@ -1420,6 +1445,98 @@ class Event {
1420
1445
  return toReturn;
1421
1446
  }
1422
1447
  }
1448
+ class GetApplicationLinksRequest {
1449
+ static fromProto(proto) {
1450
+ let m = new GetApplicationLinksRequest();
1451
+ m = Object.assign(m, proto);
1452
+ if (proto.environment) {
1453
+ m.environment = enumStringToValue$2(Environment, proto.environment);
1454
+ }
1455
+ return m;
1456
+ }
1457
+ constructor(kwargs) {
1458
+ if (!kwargs) {
1459
+ return;
1460
+ }
1461
+ Object.assign(this, kwargs);
1462
+ }
1463
+ toApiJson() {
1464
+ const toReturn = {};
1465
+ if (typeof this.applicationId !== 'undefined') {
1466
+ toReturn['applicationId'] = this.applicationId;
1467
+ }
1468
+ if (typeof this.environment !== 'undefined') {
1469
+ toReturn['environment'] = this.environment;
1470
+ }
1471
+ return toReturn;
1472
+ }
1473
+ }
1474
+ class GetApplicationLinksResponse {
1475
+ static fromProto(proto) {
1476
+ let m = new GetApplicationLinksResponse();
1477
+ m = Object.assign(m, proto);
1478
+ if (proto.links) {
1479
+ m.links = proto.links.map(ApplicationLink.fromProto);
1480
+ }
1481
+ return m;
1482
+ }
1483
+ constructor(kwargs) {
1484
+ if (!kwargs) {
1485
+ return;
1486
+ }
1487
+ Object.assign(this, kwargs);
1488
+ }
1489
+ toApiJson() {
1490
+ const toReturn = {};
1491
+ if (typeof this.links !== 'undefined' && this.links !== null) {
1492
+ toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
1493
+ }
1494
+ return toReturn;
1495
+ }
1496
+ }
1497
+ class GetSecurityVulnerabilitiesRequest {
1498
+ static fromProto(proto) {
1499
+ let m = new GetSecurityVulnerabilitiesRequest();
1500
+ m = Object.assign(m, proto);
1501
+ return m;
1502
+ }
1503
+ constructor(kwargs) {
1504
+ if (!kwargs) {
1505
+ return;
1506
+ }
1507
+ Object.assign(this, kwargs);
1508
+ }
1509
+ toApiJson() {
1510
+ const toReturn = {};
1511
+ if (typeof this.applicationId !== 'undefined') {
1512
+ toReturn['applicationId'] = this.applicationId;
1513
+ }
1514
+ return toReturn;
1515
+ }
1516
+ }
1517
+ class GetSecurityVulnerabilitiesResponse {
1518
+ static fromProto(proto) {
1519
+ let m = new GetSecurityVulnerabilitiesResponse();
1520
+ m = Object.assign(m, proto);
1521
+ if (proto.vulnerabilities) {
1522
+ m.vulnerabilities = proto.vulnerabilities.map(SecurityVulnerability.fromProto);
1523
+ }
1524
+ return m;
1525
+ }
1526
+ constructor(kwargs) {
1527
+ if (!kwargs) {
1528
+ return;
1529
+ }
1530
+ Object.assign(this, kwargs);
1531
+ }
1532
+ toApiJson() {
1533
+ const toReturn = {};
1534
+ if (typeof this.vulnerabilities !== 'undefined' && this.vulnerabilities !== null) {
1535
+ toReturn['vulnerabilities'] = 'toApiJson' in this.vulnerabilities ? this.vulnerabilities.toApiJson() : this.vulnerabilities;
1536
+ }
1537
+ return toReturn;
1538
+ }
1539
+ }
1423
1540
  class GetUserSettingsRequest {
1424
1541
  static fromProto(proto) {
1425
1542
  let m = new GetUserSettingsRequest();
@@ -1887,6 +2004,35 @@ class ListEventsResponse {
1887
2004
  return toReturn;
1888
2005
  }
1889
2006
  }
2007
+ class SecurityVulnerability {
2008
+ static fromProto(proto) {
2009
+ let m = new SecurityVulnerability();
2010
+ m = Object.assign(m, proto);
2011
+ return m;
2012
+ }
2013
+ constructor(kwargs) {
2014
+ if (!kwargs) {
2015
+ return;
2016
+ }
2017
+ Object.assign(this, kwargs);
2018
+ }
2019
+ toApiJson() {
2020
+ const toReturn = {};
2021
+ if (typeof this.severity !== 'undefined') {
2022
+ toReturn['severity'] = this.severity;
2023
+ }
2024
+ if (typeof this.title !== 'undefined') {
2025
+ toReturn['title'] = this.title;
2026
+ }
2027
+ if (typeof this.description !== 'undefined') {
2028
+ toReturn['description'] = this.description;
2029
+ }
2030
+ if (typeof this.mitigation !== 'undefined') {
2031
+ toReturn['mitigation'] = this.mitigation;
2032
+ }
2033
+ return toReturn;
2034
+ }
2035
+ }
1890
2036
  class SendBuildNotificationRequest {
1891
2037
  static fromProto(proto) {
1892
2038
  let m = new SendBuildNotificationRequest();
@@ -2435,9 +2581,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2435
2581
  // API Service.
2436
2582
  // *********************************
2437
2583
  class AppMetricsApiService {
2438
- constructor(http, hostService) {
2439
- this.http = http;
2440
- this.hostService = hostService;
2584
+ constructor() {
2585
+ this.hostService = inject(HostService);
2586
+ this.http = inject(HttpClient);
2441
2587
  this._host = this.hostService.hostWithScheme;
2442
2588
  }
2443
2589
  apiOptions() {
@@ -2479,12 +2625,12 @@ class AppMetricsApiService {
2479
2625
  .pipe(map(resp => LeadTimeListResponse.fromProto(resp)));
2480
2626
  }
2481
2627
  }
2482
- AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2628
+ AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2483
2629
  AppMetricsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, providedIn: 'root' });
2484
2630
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, decorators: [{
2485
2631
  type: Injectable,
2486
2632
  args: [{ providedIn: 'root' }]
2487
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2633
+ }] });
2488
2634
 
2489
2635
  // *********************************
2490
2636
  // Code generated by sdkgen
@@ -2493,9 +2639,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2493
2639
  // API Service.
2494
2640
  // *********************************
2495
2641
  class MissionControlApiService {
2496
- constructor(http, hostService) {
2497
- this.http = http;
2498
- this.hostService = hostService;
2642
+ constructor() {
2643
+ this.hostService = inject(HostService);
2644
+ this.http = inject(HttpClient);
2499
2645
  this._host = this.hostService.hostWithScheme;
2500
2646
  }
2501
2647
  apiOptions() {
@@ -2584,13 +2730,23 @@ class MissionControlApiService {
2584
2730
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetZones", request.toApiJson(), this.apiOptions())
2585
2731
  .pipe(map(resp => GetZonesResponse.fromProto(resp)));
2586
2732
  }
2733
+ getSecurityVulnerabilities(r) {
2734
+ const request = (r.toApiJson) ? r : new GetSecurityVulnerabilitiesRequest(r);
2735
+ return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetSecurityVulnerabilities", request.toApiJson(), this.apiOptions())
2736
+ .pipe(map(resp => GetSecurityVulnerabilitiesResponse.fromProto(resp)));
2737
+ }
2738
+ getApplicationLinks(r) {
2739
+ const request = (r.toApiJson) ? r : new GetApplicationLinksRequest(r);
2740
+ return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetApplicationLinks", request.toApiJson(), this.apiOptions())
2741
+ .pipe(map(resp => GetApplicationLinksResponse.fromProto(resp)));
2742
+ }
2587
2743
  }
2588
- MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2744
+ MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2589
2745
  MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, providedIn: 'root' });
2590
2746
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, decorators: [{
2591
2747
  type: Injectable,
2592
2748
  args: [{ providedIn: 'root' }]
2593
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2749
+ }] });
2594
2750
 
2595
2751
  // *********************************
2596
2752
  // Code generated by sdkgen
@@ -2599,9 +2755,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2599
2755
  // API Service.
2600
2756
  // *********************************
2601
2757
  class ServiceLevelsApiService {
2602
- constructor(http, hostService) {
2603
- this.http = http;
2604
- this.hostService = hostService;
2758
+ constructor() {
2759
+ this.hostService = inject(HostService);
2760
+ this.http = inject(HttpClient);
2605
2761
  this._host = this.hostService.hostWithScheme;
2606
2762
  }
2607
2763
  apiOptions() {
@@ -2627,12 +2783,12 @@ class ServiceLevelsApiService {
2627
2783
  return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2628
2784
  }
2629
2785
  }
2630
- ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2786
+ ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2631
2787
  ServiceLevelsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, providedIn: 'root' });
2632
2788
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, decorators: [{
2633
2789
  type: Injectable,
2634
2790
  args: [{ providedIn: 'root' }]
2635
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2791
+ }] });
2636
2792
 
2637
2793
  // *********************************
2638
2794
  // Code generated by sdkgen
@@ -2641,9 +2797,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2641
2797
  // API Service.
2642
2798
  // *********************************
2643
2799
  class UserApiService {
2644
- constructor(http, hostService) {
2645
- this.http = http;
2646
- this.hostService = hostService;
2800
+ constructor() {
2801
+ this.hostService = inject(HostService);
2802
+ this.http = inject(HttpClient);
2647
2803
  this._host = this.hostService.hostWithScheme;
2648
2804
  }
2649
2805
  apiOptions() {
@@ -2664,12 +2820,12 @@ class UserApiService {
2664
2820
  .pipe(map(resp => GetUserSettingsResponseV2.fromProto(resp)));
2665
2821
  }
2666
2822
  }
2667
- UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2823
+ UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2668
2824
  UserApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, providedIn: 'root' });
2669
2825
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, decorators: [{
2670
2826
  type: Injectable,
2671
2827
  args: [{ providedIn: 'root' }]
2672
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2828
+ }] });
2673
2829
 
2674
2830
  // *********************************
2675
2831
  // Code generated by sdkgen
@@ -2682,5 +2838,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2682
2838
  * Generated bundle index. Do not edit.
2683
2839
  */
2684
2840
 
2685
- export { Alert, AlertType, AppConfig, AppMetricsApiService, AppType, Application, Artifacts, BuildStatus, ChangeFailData, ChangeFailGetMultiRequest, ChangeFailGetMultiResponse, CreateApplicationRequest, CreateDeliveryRequest, CreateDeliveryResponse, CreateDeploymentRequest, CreateDeploymentResponse, DeleteApplicationRequest, DeleteDeliveryRequest, Delivery, DeliveryLock, DeliveryMethod, DeliveryType, Deployment, DeploymentFrequencyData, DeploymentFrequencyGetMultiRequest, DeploymentFrequencyGetMultiResponse, DeploymentStatus, Environment, Event, EventType, 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, SendBuildNotificationRequest, ServiceLevel, ServiceLevelsApiService, ServiceLevelsResponse, ServiceReadiness, StatRate, StatRateUnit, StatSnapshot, TimeRange, UpdateApplicationRequest, UpdateDeliveryRequest, UpdateDeploymentRequest, UpdateDeploymentResponse, UpdateUserSettingsRequest, UpdateUserSettingsRequestV2, UserApiService, UserDeployFrequencyData, UserDeployFrequencyGetMultiRequest, UserDeployFrequencyGetMultiResponse, UserNotifications, UserNotificationsV2, UserSettings, UserSettingsV2 };
2841
+ 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 };
2686
2842
  //# sourceMappingURL=vendasta-mission-control.mjs.map