@vendasta/mission-control 3.5.0 → 3.7.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
  // *********************************
@@ -867,6 +866,9 @@ class AppConfig {
867
866
  if (typeof this.deliveryMethods !== 'undefined' && this.deliveryMethods !== null) {
868
867
  toReturn['deliveryMethods'] = 'toApiJson' in this.deliveryMethods ? this.deliveryMethods.toApiJson() : this.deliveryMethods;
869
868
  }
869
+ if (typeof this.customEnvName !== 'undefined') {
870
+ toReturn['customEnvName'] = this.customEnvName;
871
+ }
870
872
  return toReturn;
871
873
  }
872
874
  }
@@ -935,6 +937,32 @@ class Application {
935
937
  return toReturn;
936
938
  }
937
939
  }
940
+ class ApplicationLink {
941
+ static fromProto(proto) {
942
+ let m = new ApplicationLink();
943
+ m = Object.assign(m, proto);
944
+ return m;
945
+ }
946
+ constructor(kwargs) {
947
+ if (!kwargs) {
948
+ return;
949
+ }
950
+ Object.assign(this, kwargs);
951
+ }
952
+ toApiJson() {
953
+ const toReturn = {};
954
+ if (typeof this.buttonText !== 'undefined') {
955
+ toReturn['buttonText'] = this.buttonText;
956
+ }
957
+ if (typeof this.url !== 'undefined') {
958
+ toReturn['url'] = this.url;
959
+ }
960
+ if (typeof this.collapsed !== 'undefined') {
961
+ toReturn['collapsed'] = this.collapsed;
962
+ }
963
+ return toReturn;
964
+ }
965
+ }
938
966
  class Artifacts {
939
967
  static fromProto(proto) {
940
968
  let m = new Artifacts();
@@ -1420,6 +1448,55 @@ class Event {
1420
1448
  return toReturn;
1421
1449
  }
1422
1450
  }
1451
+ class GetApplicationLinksRequest {
1452
+ static fromProto(proto) {
1453
+ let m = new GetApplicationLinksRequest();
1454
+ m = Object.assign(m, proto);
1455
+ if (proto.environment) {
1456
+ m.environment = enumStringToValue$2(Environment, proto.environment);
1457
+ }
1458
+ return m;
1459
+ }
1460
+ constructor(kwargs) {
1461
+ if (!kwargs) {
1462
+ return;
1463
+ }
1464
+ Object.assign(this, kwargs);
1465
+ }
1466
+ toApiJson() {
1467
+ const toReturn = {};
1468
+ if (typeof this.applicationId !== 'undefined') {
1469
+ toReturn['applicationId'] = this.applicationId;
1470
+ }
1471
+ if (typeof this.environment !== 'undefined') {
1472
+ toReturn['environment'] = this.environment;
1473
+ }
1474
+ return toReturn;
1475
+ }
1476
+ }
1477
+ class GetApplicationLinksResponse {
1478
+ static fromProto(proto) {
1479
+ let m = new GetApplicationLinksResponse();
1480
+ m = Object.assign(m, proto);
1481
+ if (proto.links) {
1482
+ m.links = proto.links.map(ApplicationLink.fromProto);
1483
+ }
1484
+ return m;
1485
+ }
1486
+ constructor(kwargs) {
1487
+ if (!kwargs) {
1488
+ return;
1489
+ }
1490
+ Object.assign(this, kwargs);
1491
+ }
1492
+ toApiJson() {
1493
+ const toReturn = {};
1494
+ if (typeof this.links !== 'undefined' && this.links !== null) {
1495
+ toReturn['links'] = 'toApiJson' in this.links ? this.links.toApiJson() : this.links;
1496
+ }
1497
+ return toReturn;
1498
+ }
1499
+ }
1423
1500
  class GetSecurityVulnerabilitiesRequest {
1424
1501
  static fromProto(proto) {
1425
1502
  let m = new GetSecurityVulnerabilitiesRequest();
@@ -2507,9 +2584,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2507
2584
  // API Service.
2508
2585
  // *********************************
2509
2586
  class AppMetricsApiService {
2510
- constructor(http, hostService) {
2511
- this.http = http;
2512
- this.hostService = hostService;
2587
+ constructor() {
2588
+ this.hostService = inject(HostService);
2589
+ this.http = inject(HttpClient);
2513
2590
  this._host = this.hostService.hostWithScheme;
2514
2591
  }
2515
2592
  apiOptions() {
@@ -2551,12 +2628,12 @@ class AppMetricsApiService {
2551
2628
  .pipe(map(resp => LeadTimeListResponse.fromProto(resp)));
2552
2629
  }
2553
2630
  }
2554
- 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 });
2631
+ AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2555
2632
  AppMetricsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, providedIn: 'root' });
2556
2633
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, decorators: [{
2557
2634
  type: Injectable,
2558
2635
  args: [{ providedIn: 'root' }]
2559
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2636
+ }] });
2560
2637
 
2561
2638
  // *********************************
2562
2639
  // Code generated by sdkgen
@@ -2565,9 +2642,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2565
2642
  // API Service.
2566
2643
  // *********************************
2567
2644
  class MissionControlApiService {
2568
- constructor(http, hostService) {
2569
- this.http = http;
2570
- this.hostService = hostService;
2645
+ constructor() {
2646
+ this.hostService = inject(HostService);
2647
+ this.http = inject(HttpClient);
2571
2648
  this._host = this.hostService.hostWithScheme;
2572
2649
  }
2573
2650
  apiOptions() {
@@ -2661,13 +2738,18 @@ class MissionControlApiService {
2661
2738
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetSecurityVulnerabilities", request.toApiJson(), this.apiOptions())
2662
2739
  .pipe(map(resp => GetSecurityVulnerabilitiesResponse.fromProto(resp)));
2663
2740
  }
2741
+ getApplicationLinks(r) {
2742
+ const request = (r.toApiJson) ? r : new GetApplicationLinksRequest(r);
2743
+ return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetApplicationLinks", request.toApiJson(), this.apiOptions())
2744
+ .pipe(map(resp => GetApplicationLinksResponse.fromProto(resp)));
2745
+ }
2664
2746
  }
2665
- 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 });
2747
+ MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2666
2748
  MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, providedIn: 'root' });
2667
2749
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, decorators: [{
2668
2750
  type: Injectable,
2669
2751
  args: [{ providedIn: 'root' }]
2670
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2752
+ }] });
2671
2753
 
2672
2754
  // *********************************
2673
2755
  // Code generated by sdkgen
@@ -2676,9 +2758,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2676
2758
  // API Service.
2677
2759
  // *********************************
2678
2760
  class ServiceLevelsApiService {
2679
- constructor(http, hostService) {
2680
- this.http = http;
2681
- this.hostService = hostService;
2761
+ constructor() {
2762
+ this.hostService = inject(HostService);
2763
+ this.http = inject(HttpClient);
2682
2764
  this._host = this.hostService.hostWithScheme;
2683
2765
  }
2684
2766
  apiOptions() {
@@ -2704,12 +2786,12 @@ class ServiceLevelsApiService {
2704
2786
  return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2705
2787
  }
2706
2788
  }
2707
- 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 });
2789
+ ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2708
2790
  ServiceLevelsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, providedIn: 'root' });
2709
2791
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, decorators: [{
2710
2792
  type: Injectable,
2711
2793
  args: [{ providedIn: 'root' }]
2712
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2794
+ }] });
2713
2795
 
2714
2796
  // *********************************
2715
2797
  // Code generated by sdkgen
@@ -2718,9 +2800,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2718
2800
  // API Service.
2719
2801
  // *********************************
2720
2802
  class UserApiService {
2721
- constructor(http, hostService) {
2722
- this.http = http;
2723
- this.hostService = hostService;
2803
+ constructor() {
2804
+ this.hostService = inject(HostService);
2805
+ this.http = inject(HttpClient);
2724
2806
  this._host = this.hostService.hostWithScheme;
2725
2807
  }
2726
2808
  apiOptions() {
@@ -2741,12 +2823,12 @@ class UserApiService {
2741
2823
  .pipe(map(resp => GetUserSettingsResponseV2.fromProto(resp)));
2742
2824
  }
2743
2825
  }
2744
- 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 });
2826
+ UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2745
2827
  UserApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, providedIn: 'root' });
2746
2828
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, decorators: [{
2747
2829
  type: Injectable,
2748
2830
  args: [{ providedIn: 'root' }]
2749
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
2831
+ }] });
2750
2832
 
2751
2833
  // *********************************
2752
2834
  // Code generated by sdkgen
@@ -2759,5 +2841,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2759
2841
  * Generated bundle index. Do not edit.
2760
2842
  */
2761
2843
 
2762
- 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, 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 };
2844
+ 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 };
2763
2845
  //# sourceMappingURL=vendasta-mission-control.mjs.map