@vendasta/mission-control 3.3.0 → 3.5.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/_generated/host.service.mjs +4 -4
- package/esm2020/lib/_internal/app-metrics.api.service.mjs +4 -4
- 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 +10 -5
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/mission-control.mjs +73 -1
- package/esm2020/lib/_internal/service-levels.api.service.mjs +4 -4
- package/esm2020/lib/_internal/user.api.service.mjs +4 -4
- package/fesm2015/vendasta-mission-control.mjs +128 -16
- package/fesm2015/vendasta-mission-control.mjs.map +1 -1
- package/fesm2020/vendasta-mission-control.mjs +128 -16
- package/fesm2020/vendasta-mission-control.mjs.map +1 -1
- 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 +3 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/mission-control.d.ts +21 -0
- package/package.json +1 -1
|
@@ -111,6 +111,11 @@ var ServiceReadiness;
|
|
|
111
111
|
ServiceReadiness[ServiceReadiness["SERVICE_READINESS_SUNSET"] = 3] = "SERVICE_READINESS_SUNSET";
|
|
112
112
|
})(ServiceReadiness || (ServiceReadiness = {}));
|
|
113
113
|
|
|
114
|
+
// *********************************
|
|
115
|
+
// Code generated by sdkgen
|
|
116
|
+
// DO NOT EDIT!.
|
|
117
|
+
//
|
|
118
|
+
// Enums Index.
|
|
114
119
|
// *********************************
|
|
115
120
|
|
|
116
121
|
function enumStringToValue$4(enumRef, value) {
|
|
@@ -1415,6 +1420,49 @@ class Event {
|
|
|
1415
1420
|
return toReturn;
|
|
1416
1421
|
}
|
|
1417
1422
|
}
|
|
1423
|
+
class GetSecurityVulnerabilitiesRequest {
|
|
1424
|
+
static fromProto(proto) {
|
|
1425
|
+
let m = new GetSecurityVulnerabilitiesRequest();
|
|
1426
|
+
m = Object.assign(m, proto);
|
|
1427
|
+
return m;
|
|
1428
|
+
}
|
|
1429
|
+
constructor(kwargs) {
|
|
1430
|
+
if (!kwargs) {
|
|
1431
|
+
return;
|
|
1432
|
+
}
|
|
1433
|
+
Object.assign(this, kwargs);
|
|
1434
|
+
}
|
|
1435
|
+
toApiJson() {
|
|
1436
|
+
const toReturn = {};
|
|
1437
|
+
if (typeof this.applicationId !== 'undefined') {
|
|
1438
|
+
toReturn['applicationId'] = this.applicationId;
|
|
1439
|
+
}
|
|
1440
|
+
return toReturn;
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
class GetSecurityVulnerabilitiesResponse {
|
|
1444
|
+
static fromProto(proto) {
|
|
1445
|
+
let m = new GetSecurityVulnerabilitiesResponse();
|
|
1446
|
+
m = Object.assign(m, proto);
|
|
1447
|
+
if (proto.vulnerabilities) {
|
|
1448
|
+
m.vulnerabilities = proto.vulnerabilities.map(SecurityVulnerability.fromProto);
|
|
1449
|
+
}
|
|
1450
|
+
return m;
|
|
1451
|
+
}
|
|
1452
|
+
constructor(kwargs) {
|
|
1453
|
+
if (!kwargs) {
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1456
|
+
Object.assign(this, kwargs);
|
|
1457
|
+
}
|
|
1458
|
+
toApiJson() {
|
|
1459
|
+
const toReturn = {};
|
|
1460
|
+
if (typeof this.vulnerabilities !== 'undefined' && this.vulnerabilities !== null) {
|
|
1461
|
+
toReturn['vulnerabilities'] = 'toApiJson' in this.vulnerabilities ? this.vulnerabilities.toApiJson() : this.vulnerabilities;
|
|
1462
|
+
}
|
|
1463
|
+
return toReturn;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1418
1466
|
class GetUserSettingsRequest {
|
|
1419
1467
|
static fromProto(proto) {
|
|
1420
1468
|
let m = new GetUserSettingsRequest();
|
|
@@ -1882,6 +1930,35 @@ class ListEventsResponse {
|
|
|
1882
1930
|
return toReturn;
|
|
1883
1931
|
}
|
|
1884
1932
|
}
|
|
1933
|
+
class SecurityVulnerability {
|
|
1934
|
+
static fromProto(proto) {
|
|
1935
|
+
let m = new SecurityVulnerability();
|
|
1936
|
+
m = Object.assign(m, proto);
|
|
1937
|
+
return m;
|
|
1938
|
+
}
|
|
1939
|
+
constructor(kwargs) {
|
|
1940
|
+
if (!kwargs) {
|
|
1941
|
+
return;
|
|
1942
|
+
}
|
|
1943
|
+
Object.assign(this, kwargs);
|
|
1944
|
+
}
|
|
1945
|
+
toApiJson() {
|
|
1946
|
+
const toReturn = {};
|
|
1947
|
+
if (typeof this.severity !== 'undefined') {
|
|
1948
|
+
toReturn['severity'] = this.severity;
|
|
1949
|
+
}
|
|
1950
|
+
if (typeof this.title !== 'undefined') {
|
|
1951
|
+
toReturn['title'] = this.title;
|
|
1952
|
+
}
|
|
1953
|
+
if (typeof this.description !== 'undefined') {
|
|
1954
|
+
toReturn['description'] = this.description;
|
|
1955
|
+
}
|
|
1956
|
+
if (typeof this.mitigation !== 'undefined') {
|
|
1957
|
+
toReturn['mitigation'] = this.mitigation;
|
|
1958
|
+
}
|
|
1959
|
+
return toReturn;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1885
1962
|
class SendBuildNotificationRequest {
|
|
1886
1963
|
static fromProto(proto) {
|
|
1887
1964
|
let m = new SendBuildNotificationRequest();
|
|
@@ -2393,6 +2470,11 @@ class UserSettingsV2 {
|
|
|
2393
2470
|
}
|
|
2394
2471
|
}
|
|
2395
2472
|
|
|
2473
|
+
// *********************************
|
|
2474
|
+
// Code generated by sdkgen
|
|
2475
|
+
// DO NOT EDIT!.
|
|
2476
|
+
//
|
|
2477
|
+
// Objects Index.
|
|
2396
2478
|
// *********************************
|
|
2397
2479
|
|
|
2398
2480
|
const environment = (window ? window['environment'] : 'prod') ?? 'prod';
|
|
@@ -2411,13 +2493,18 @@ class HostService {
|
|
|
2411
2493
|
return 'https://' + this.host;
|
|
2412
2494
|
}
|
|
2413
2495
|
}
|
|
2414
|
-
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2415
|
-
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2496
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2497
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
2498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
2417
2499
|
type: Injectable,
|
|
2418
2500
|
args: [{ providedIn: 'root' }]
|
|
2419
2501
|
}] });
|
|
2420
2502
|
|
|
2503
|
+
// *********************************
|
|
2504
|
+
// Code generated by sdkgen
|
|
2505
|
+
// DO NOT EDIT!.
|
|
2506
|
+
//
|
|
2507
|
+
// API Service.
|
|
2421
2508
|
// *********************************
|
|
2422
2509
|
class AppMetricsApiService {
|
|
2423
2510
|
constructor(http, hostService) {
|
|
@@ -2464,13 +2551,18 @@ class AppMetricsApiService {
|
|
|
2464
2551
|
.pipe(map(resp => LeadTimeListResponse.fromProto(resp)));
|
|
2465
2552
|
}
|
|
2466
2553
|
}
|
|
2467
|
-
AppMetricsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2468
|
-
AppMetricsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
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 });
|
|
2555
|
+
AppMetricsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, providedIn: 'root' });
|
|
2556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppMetricsApiService, decorators: [{
|
|
2470
2557
|
type: Injectable,
|
|
2471
2558
|
args: [{ providedIn: 'root' }]
|
|
2472
2559
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2473
2560
|
|
|
2561
|
+
// *********************************
|
|
2562
|
+
// Code generated by sdkgen
|
|
2563
|
+
// DO NOT EDIT!.
|
|
2564
|
+
//
|
|
2565
|
+
// API Service.
|
|
2474
2566
|
// *********************************
|
|
2475
2567
|
class MissionControlApiService {
|
|
2476
2568
|
constructor(http, hostService) {
|
|
@@ -2564,14 +2656,24 @@ class MissionControlApiService {
|
|
|
2564
2656
|
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetZones", request.toApiJson(), this.apiOptions())
|
|
2565
2657
|
.pipe(map(resp => GetZonesResponse.fromProto(resp)));
|
|
2566
2658
|
}
|
|
2659
|
+
getSecurityVulnerabilities(r) {
|
|
2660
|
+
const request = (r.toApiJson) ? r : new GetSecurityVulnerabilitiesRequest(r);
|
|
2661
|
+
return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetSecurityVulnerabilities", request.toApiJson(), this.apiOptions())
|
|
2662
|
+
.pipe(map(resp => GetSecurityVulnerabilitiesResponse.fromProto(resp)));
|
|
2663
|
+
}
|
|
2567
2664
|
}
|
|
2568
|
-
MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2569
|
-
MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
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 });
|
|
2666
|
+
MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, providedIn: 'root' });
|
|
2667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MissionControlApiService, decorators: [{
|
|
2571
2668
|
type: Injectable,
|
|
2572
2669
|
args: [{ providedIn: 'root' }]
|
|
2573
2670
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2574
2671
|
|
|
2672
|
+
// *********************************
|
|
2673
|
+
// Code generated by sdkgen
|
|
2674
|
+
// DO NOT EDIT!.
|
|
2675
|
+
//
|
|
2676
|
+
// API Service.
|
|
2575
2677
|
// *********************************
|
|
2576
2678
|
class ServiceLevelsApiService {
|
|
2577
2679
|
constructor(http, hostService) {
|
|
@@ -2602,13 +2704,18 @@ class ServiceLevelsApiService {
|
|
|
2602
2704
|
return this.http.post(this._host + "/missioncontrol.v2.ServiceLevels/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
2603
2705
|
}
|
|
2604
2706
|
}
|
|
2605
|
-
ServiceLevelsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2606
|
-
ServiceLevelsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
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 });
|
|
2708
|
+
ServiceLevelsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, providedIn: 'root' });
|
|
2709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ServiceLevelsApiService, decorators: [{
|
|
2608
2710
|
type: Injectable,
|
|
2609
2711
|
args: [{ providedIn: 'root' }]
|
|
2610
2712
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2611
2713
|
|
|
2714
|
+
// *********************************
|
|
2715
|
+
// Code generated by sdkgen
|
|
2716
|
+
// DO NOT EDIT!.
|
|
2717
|
+
//
|
|
2718
|
+
// API Service.
|
|
2612
2719
|
// *********************************
|
|
2613
2720
|
class UserApiService {
|
|
2614
2721
|
constructor(http, hostService) {
|
|
@@ -2634,18 +2741,23 @@ class UserApiService {
|
|
|
2634
2741
|
.pipe(map(resp => GetUserSettingsResponseV2.fromProto(resp)));
|
|
2635
2742
|
}
|
|
2636
2743
|
}
|
|
2637
|
-
UserApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2638
|
-
UserApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
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 });
|
|
2745
|
+
UserApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, providedIn: 'root' });
|
|
2746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserApiService, decorators: [{
|
|
2640
2747
|
type: Injectable,
|
|
2641
2748
|
args: [{ providedIn: 'root' }]
|
|
2642
2749
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
2643
2750
|
|
|
2644
2751
|
// *********************************
|
|
2752
|
+
// Code generated by sdkgen
|
|
2753
|
+
// DO NOT EDIT!.
|
|
2754
|
+
//
|
|
2755
|
+
// Index.
|
|
2756
|
+
// *********************************
|
|
2645
2757
|
|
|
2646
2758
|
/**
|
|
2647
2759
|
* Generated bundle index. Do not edit.
|
|
2648
2760
|
*/
|
|
2649
2761
|
|
|
2650
|
-
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 };
|
|
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 };
|
|
2651
2763
|
//# sourceMappingURL=vendasta-mission-control.mjs.map
|