@vendasta/mission-control 3.5.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.
- package/esm2020/lib/_internal/app-metrics.api.service.mjs +7 -8
- 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 +13 -9
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/mission-control.mjs +76 -1
- package/esm2020/lib/_internal/service-levels.api.service.mjs +7 -8
- package/esm2020/lib/_internal/user.api.service.mjs +7 -8
- package/fesm2015/vendasta-mission-control.mjs +103 -24
- package/fesm2015/vendasta-mission-control.mjs.map +1 -1
- package/fesm2020/vendasta-mission-control.mjs +103 -24
- package/fesm2020/vendasta-mission-control.mjs.map +1 -1
- package/lib/_internal/app-metrics.api.service.d.ts +2 -5
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/mission-control.interface.d.ts +12 -0
- package/lib/_internal/mission-control.api.service.d.ts +6 -7
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/mission-control.d.ts +21 -0
- package/lib/_internal/service-levels.api.service.d.ts +3 -5
- package/lib/_internal/user.api.service.d.ts +3 -5
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import
|
|
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,55 @@ 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
|
+
}
|
|
1423
1497
|
class GetSecurityVulnerabilitiesRequest {
|
|
1424
1498
|
static fromProto(proto) {
|
|
1425
1499
|
let m = new GetSecurityVulnerabilitiesRequest();
|
|
@@ -2507,9 +2581,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2507
2581
|
// API Service.
|
|
2508
2582
|
// *********************************
|
|
2509
2583
|
class AppMetricsApiService {
|
|
2510
|
-
constructor(
|
|
2511
|
-
this.
|
|
2512
|
-
this.
|
|
2584
|
+
constructor() {
|
|
2585
|
+
this.hostService = inject(HostService);
|
|
2586
|
+
this.http = inject(HttpClient);
|
|
2513
2587
|
this._host = this.hostService.hostWithScheme;
|
|
2514
2588
|
}
|
|
2515
2589
|
apiOptions() {
|
|
@@ -2551,12 +2625,12 @@ class AppMetricsApiService {
|
|
|
2551
2625
|
.pipe(map(resp => LeadTimeListResponse.fromProto(resp)));
|
|
2552
2626
|
}
|
|
2553
2627
|
}
|
|
2554
|
-
AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, deps: [
|
|
2628
|
+
AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2555
2629
|
AppMetricsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, providedIn: 'root' });
|
|
2556
2630
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, decorators: [{
|
|
2557
2631
|
type: Injectable,
|
|
2558
2632
|
args: [{ providedIn: 'root' }]
|
|
2559
|
-
}]
|
|
2633
|
+
}] });
|
|
2560
2634
|
|
|
2561
2635
|
// *********************************
|
|
2562
2636
|
// Code generated by sdkgen
|
|
@@ -2565,9 +2639,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2565
2639
|
// API Service.
|
|
2566
2640
|
// *********************************
|
|
2567
2641
|
class MissionControlApiService {
|
|
2568
|
-
constructor(
|
|
2569
|
-
this.
|
|
2570
|
-
this.
|
|
2642
|
+
constructor() {
|
|
2643
|
+
this.hostService = inject(HostService);
|
|
2644
|
+
this.http = inject(HttpClient);
|
|
2571
2645
|
this._host = this.hostService.hostWithScheme;
|
|
2572
2646
|
}
|
|
2573
2647
|
apiOptions() {
|
|
@@ -2661,13 +2735,18 @@ class MissionControlApiService {
|
|
|
2661
2735
|
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetSecurityVulnerabilities", request.toApiJson(), this.apiOptions())
|
|
2662
2736
|
.pipe(map(resp => GetSecurityVulnerabilitiesResponse.fromProto(resp)));
|
|
2663
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
|
+
}
|
|
2664
2743
|
}
|
|
2665
|
-
MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, deps: [
|
|
2744
|
+
MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2666
2745
|
MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, providedIn: 'root' });
|
|
2667
2746
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, decorators: [{
|
|
2668
2747
|
type: Injectable,
|
|
2669
2748
|
args: [{ providedIn: 'root' }]
|
|
2670
|
-
}]
|
|
2749
|
+
}] });
|
|
2671
2750
|
|
|
2672
2751
|
// *********************************
|
|
2673
2752
|
// Code generated by sdkgen
|
|
@@ -2676,9 +2755,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2676
2755
|
// API Service.
|
|
2677
2756
|
// *********************************
|
|
2678
2757
|
class ServiceLevelsApiService {
|
|
2679
|
-
constructor(
|
|
2680
|
-
this.
|
|
2681
|
-
this.
|
|
2758
|
+
constructor() {
|
|
2759
|
+
this.hostService = inject(HostService);
|
|
2760
|
+
this.http = inject(HttpClient);
|
|
2682
2761
|
this._host = this.hostService.hostWithScheme;
|
|
2683
2762
|
}
|
|
2684
2763
|
apiOptions() {
|
|
@@ -2704,12 +2783,12 @@ class ServiceLevelsApiService {
|
|
|
2704
2783
|
return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2705
2784
|
}
|
|
2706
2785
|
}
|
|
2707
|
-
ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, deps: [
|
|
2786
|
+
ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2708
2787
|
ServiceLevelsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, providedIn: 'root' });
|
|
2709
2788
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, decorators: [{
|
|
2710
2789
|
type: Injectable,
|
|
2711
2790
|
args: [{ providedIn: 'root' }]
|
|
2712
|
-
}]
|
|
2791
|
+
}] });
|
|
2713
2792
|
|
|
2714
2793
|
// *********************************
|
|
2715
2794
|
// Code generated by sdkgen
|
|
@@ -2718,9 +2797,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2718
2797
|
// API Service.
|
|
2719
2798
|
// *********************************
|
|
2720
2799
|
class UserApiService {
|
|
2721
|
-
constructor(
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2800
|
+
constructor() {
|
|
2801
|
+
this.hostService = inject(HostService);
|
|
2802
|
+
this.http = inject(HttpClient);
|
|
2724
2803
|
this._host = this.hostService.hostWithScheme;
|
|
2725
2804
|
}
|
|
2726
2805
|
apiOptions() {
|
|
@@ -2741,12 +2820,12 @@ class UserApiService {
|
|
|
2741
2820
|
.pipe(map(resp => GetUserSettingsResponseV2.fromProto(resp)));
|
|
2742
2821
|
}
|
|
2743
2822
|
}
|
|
2744
|
-
UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, deps: [
|
|
2823
|
+
UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2745
2824
|
UserApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, providedIn: 'root' });
|
|
2746
2825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, decorators: [{
|
|
2747
2826
|
type: Injectable,
|
|
2748
2827
|
args: [{ providedIn: 'root' }]
|
|
2749
|
-
}]
|
|
2828
|
+
}] });
|
|
2750
2829
|
|
|
2751
2830
|
// *********************************
|
|
2752
2831
|
// Code generated by sdkgen
|
|
@@ -2759,5 +2838,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2759
2838
|
* Generated bundle index. Do not edit.
|
|
2760
2839
|
*/
|
|
2761
2840
|
|
|
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 };
|
|
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 };
|
|
2763
2842
|
//# sourceMappingURL=vendasta-mission-control.mjs.map
|