@vendasta/mission-control 3.0.0 → 3.1.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.
@@ -1406,6 +1406,9 @@ class Event {
1406
1406
  if (typeof this.probableAppType !== 'undefined') {
1407
1407
  toReturn['probableAppType'] = this.probableAppType;
1408
1408
  }
1409
+ if (typeof this.triggerName !== 'undefined') {
1410
+ toReturn['triggerName'] = this.triggerName;
1411
+ }
1409
1412
  return toReturn;
1410
1413
  }
1411
1414
  }
@@ -1452,6 +1455,55 @@ class GetUserSettingsResponse {
1452
1455
  return toReturn;
1453
1456
  }
1454
1457
  }
1458
+ class GetZonesRequest {
1459
+ constructor(kwargs) {
1460
+ if (!kwargs) {
1461
+ return;
1462
+ }
1463
+ Object.assign(this, kwargs);
1464
+ }
1465
+ static fromProto(proto) {
1466
+ let m = new GetZonesRequest();
1467
+ m = Object.assign(m, proto);
1468
+ if (proto.environment) {
1469
+ m.environment = enumStringToValue$2(Environment, proto.environment);
1470
+ }
1471
+ return m;
1472
+ }
1473
+ toApiJson() {
1474
+ const toReturn = {};
1475
+ if (typeof this.applicationId !== 'undefined') {
1476
+ toReturn['applicationId'] = this.applicationId;
1477
+ }
1478
+ if (typeof this.environment !== 'undefined') {
1479
+ toReturn['environment'] = this.environment;
1480
+ }
1481
+ if (typeof this.enabled !== 'undefined') {
1482
+ toReturn['enabled'] = this.enabled;
1483
+ }
1484
+ return toReturn;
1485
+ }
1486
+ }
1487
+ class GetZonesResponse {
1488
+ constructor(kwargs) {
1489
+ if (!kwargs) {
1490
+ return;
1491
+ }
1492
+ Object.assign(this, kwargs);
1493
+ }
1494
+ static fromProto(proto) {
1495
+ let m = new GetZonesResponse();
1496
+ m = Object.assign(m, proto);
1497
+ return m;
1498
+ }
1499
+ toApiJson() {
1500
+ const toReturn = {};
1501
+ if (typeof this.name !== 'undefined') {
1502
+ toReturn['name'] = this.name;
1503
+ }
1504
+ return toReturn;
1505
+ }
1506
+ }
1455
1507
  class GitCommitDetails {
1456
1508
  constructor(kwargs) {
1457
1509
  if (!kwargs) {
@@ -2504,6 +2556,11 @@ class MissionControlApiService {
2504
2556
  const request = (r.toApiJson) ? r : new SendBuildNotificationRequest(r);
2505
2557
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/SendBuildNotification", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2506
2558
  }
2559
+ getZones(r) {
2560
+ const request = (r.toApiJson) ? r : new GetZonesRequest(r);
2561
+ return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetZones", request.toApiJson(), this.apiOptions())
2562
+ .pipe(map(resp => GetZonesResponse.fromProto(resp)));
2563
+ }
2507
2564
  }
2508
2565
  MissionControlApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MissionControlApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2509
2566
  MissionControlApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: MissionControlApiService, providedIn: 'root' });
@@ -2587,5 +2644,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
2587
2644
  * Generated bundle index. Do not edit.
2588
2645
  */
2589
2646
 
2590
- 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, 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 };
2647
+ 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 };
2591
2648
  //# sourceMappingURL=vendasta-mission-control.mjs.map