@vendasta/mission-control 3.0.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 +25 -0
- package/esm2020/lib/_internal/app-metrics.api.service.mjs +66 -0
- package/esm2020/lib/_internal/enums/app-metrics.enum.mjs +24 -0
- package/esm2020/lib/_internal/enums/index.mjs +11 -0
- package/esm2020/lib/_internal/enums/mission-control.enum.mjs +54 -0
- package/esm2020/lib/_internal/enums/service-level.enum.mjs +14 -0
- package/esm2020/lib/_internal/enums/shared-const.enum.mjs +15 -0
- package/esm2020/lib/_internal/index.mjs +14 -0
- package/esm2020/lib/_internal/interfaces/app-metrics.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/mission-control.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/service-level.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/shared-const.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/user.interface.mjs +8 -0
- package/esm2020/lib/_internal/mission-control.api.service.mjs +109 -0
- package/esm2020/lib/_internal/objects/app-metrics.mjs +637 -0
- package/esm2020/lib/_internal/objects/index.mjs +12 -0
- package/esm2020/lib/_internal/objects/mission-control.mjs +1255 -0
- package/esm2020/lib/_internal/objects/service-level.mjs +151 -0
- package/esm2020/lib/_internal/objects/shared-const.mjs +56 -0
- package/esm2020/lib/_internal/objects/user.mjs +131 -0
- package/esm2020/lib/_internal/service-levels.api.service.mjs +50 -0
- package/esm2020/lib/_internal/user.api.service.mjs +45 -0
- package/esm2020/lib/index.mjs +2 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/vendasta-mission-control.mjs +5 -0
- package/fesm2015/vendasta-mission-control.mjs +2592 -0
- package/fesm2015/vendasta-mission-control.mjs.map +1 -0
- package/fesm2020/vendasta-mission-control.mjs +2591 -0
- package/fesm2020/vendasta-mission-control.mjs.map +1 -0
- package/lib/_generated/host.service.d.ts +7 -0
- package/lib/_internal/app-metrics.api.service.d.ts +21 -0
- package/lib/_internal/enums/app-metrics.enum.d.ts +15 -0
- package/lib/_internal/enums/index.d.ts +4 -0
- package/lib/_internal/enums/mission-control.enum.d.ts +40 -0
- package/lib/_internal/enums/service-level.enum.d.ts +6 -0
- package/lib/_internal/enums/shared-const.enum.d.ts +7 -0
- package/lib/_internal/index.d.ts +7 -0
- package/lib/_internal/interfaces/app-metrics.interface.d.ts +102 -0
- package/lib/_internal/interfaces/index.d.ts +5 -0
- package/lib/_internal/interfaces/mission-control.interface.d.ts +216 -0
- package/lib/_internal/interfaces/service-level.interface.d.ts +29 -0
- package/lib/_internal/interfaces/shared-const.interface.d.ts +8 -0
- package/lib/_internal/interfaces/user.interface.d.ts +20 -0
- package/lib/_internal/mission-control.api.service.d.ts +31 -0
- package/lib/_internal/objects/app-metrics.d.ts +164 -0
- package/lib/_internal/objects/index.d.ts +5 -0
- package/lib/_internal/objects/mission-control.d.ts +332 -0
- package/lib/_internal/objects/service-level.d.ts +43 -0
- package/lib/_internal/objects/shared-const.d.ts +16 -0
- package/lib/_internal/objects/user.d.ts +37 -0
- package/lib/_internal/service-levels.api.service.d.ts +18 -0
- package/lib/_internal/user.api.service.d.ts +17 -0
- package/lib/index.d.ts +1 -0
- package/package.json +35 -0
- package/public_api.d.ts +1 -0
- package/src/README.md +1 -0
- package/vendasta-mission-control.d.ts +5 -0
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import { PagedRequestOptions, PagedResponseMetadata } from './shared-const';
|
|
3
|
+
import * as e from '../enums';
|
|
4
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
5
|
+
export declare class Alert implements i.AlertInterface {
|
|
6
|
+
message: string;
|
|
7
|
+
type: e.AlertType;
|
|
8
|
+
static fromProto(proto: any): Alert;
|
|
9
|
+
constructor(kwargs?: i.AlertInterface);
|
|
10
|
+
toApiJson(): object;
|
|
11
|
+
}
|
|
12
|
+
export declare class AppConfig implements i.AppConfigInterface {
|
|
13
|
+
appengineProjectId: string;
|
|
14
|
+
entryUrlTemplate: string;
|
|
15
|
+
deliveryMethods: DeliveryMethod[];
|
|
16
|
+
static fromProto(proto: any): AppConfig;
|
|
17
|
+
constructor(kwargs?: i.AppConfigInterface);
|
|
18
|
+
toApiJson(): object;
|
|
19
|
+
}
|
|
20
|
+
export declare class Application implements i.ApplicationInterface {
|
|
21
|
+
appId: string;
|
|
22
|
+
appName: string;
|
|
23
|
+
appType: e.AppType;
|
|
24
|
+
githubRepoUrl: string;
|
|
25
|
+
entryUrlTemplate: string;
|
|
26
|
+
prodConfig: AppConfig;
|
|
27
|
+
demoConfig: AppConfig;
|
|
28
|
+
googleRepoName: string;
|
|
29
|
+
invalidConfigurationError: string;
|
|
30
|
+
alerts: Alert[];
|
|
31
|
+
appRoot: string;
|
|
32
|
+
defaultBranch: string;
|
|
33
|
+
static fromProto(proto: any): Application;
|
|
34
|
+
constructor(kwargs?: i.ApplicationInterface);
|
|
35
|
+
toApiJson(): object;
|
|
36
|
+
}
|
|
37
|
+
export declare class Artifacts implements i.ArtifactsInterface {
|
|
38
|
+
gcsBucket: string;
|
|
39
|
+
image: string;
|
|
40
|
+
static fromProto(proto: any): Artifacts;
|
|
41
|
+
constructor(kwargs?: i.ArtifactsInterface);
|
|
42
|
+
toApiJson(): object;
|
|
43
|
+
}
|
|
44
|
+
export declare class CreateApplicationRequest implements i.CreateApplicationRequestInterface {
|
|
45
|
+
application: Application;
|
|
46
|
+
static fromProto(proto: any): CreateApplicationRequest;
|
|
47
|
+
constructor(kwargs?: i.CreateApplicationRequestInterface);
|
|
48
|
+
toApiJson(): object;
|
|
49
|
+
}
|
|
50
|
+
export declare class CreateDeliveryRequest implements i.CreateDeliveryRequestInterface {
|
|
51
|
+
delivery: Delivery;
|
|
52
|
+
static fromProto(proto: any): CreateDeliveryRequest;
|
|
53
|
+
constructor(kwargs?: i.CreateDeliveryRequestInterface);
|
|
54
|
+
toApiJson(): object;
|
|
55
|
+
}
|
|
56
|
+
export declare class CreateDeliveryResponse implements i.CreateDeliveryResponseInterface {
|
|
57
|
+
deliveryId: string;
|
|
58
|
+
static fromProto(proto: any): CreateDeliveryResponse;
|
|
59
|
+
constructor(kwargs?: i.CreateDeliveryResponseInterface);
|
|
60
|
+
toApiJson(): object;
|
|
61
|
+
}
|
|
62
|
+
export declare class CreateDeploymentRequest implements i.CreateDeploymentRequestInterface {
|
|
63
|
+
deployment: Deployment;
|
|
64
|
+
static fromProto(proto: any): CreateDeploymentRequest;
|
|
65
|
+
constructor(kwargs?: i.CreateDeploymentRequestInterface);
|
|
66
|
+
toApiJson(): object;
|
|
67
|
+
}
|
|
68
|
+
export declare class CreateDeploymentResponse implements i.CreateDeploymentResponseInterface {
|
|
69
|
+
deploymentId: string;
|
|
70
|
+
static fromProto(proto: any): CreateDeploymentResponse;
|
|
71
|
+
constructor(kwargs?: i.CreateDeploymentResponseInterface);
|
|
72
|
+
toApiJson(): object;
|
|
73
|
+
}
|
|
74
|
+
export declare class DeleteApplicationRequest implements i.DeleteApplicationRequestInterface {
|
|
75
|
+
appId: string;
|
|
76
|
+
static fromProto(proto: any): DeleteApplicationRequest;
|
|
77
|
+
constructor(kwargs?: i.DeleteApplicationRequestInterface);
|
|
78
|
+
toApiJson(): object;
|
|
79
|
+
}
|
|
80
|
+
export declare class DeleteDeliveryRequest implements i.DeleteDeliveryRequestInterface {
|
|
81
|
+
appId: string;
|
|
82
|
+
deliveryId: string;
|
|
83
|
+
environment: e.Environment;
|
|
84
|
+
static fromProto(proto: any): DeleteDeliveryRequest;
|
|
85
|
+
constructor(kwargs?: i.DeleteDeliveryRequestInterface);
|
|
86
|
+
toApiJson(): object;
|
|
87
|
+
}
|
|
88
|
+
export declare class Delivery implements i.DeliveryInterface {
|
|
89
|
+
appId: string;
|
|
90
|
+
deploymentId: string;
|
|
91
|
+
deliveryId: string;
|
|
92
|
+
deliveryType: e.DeliveryType;
|
|
93
|
+
environment: e.Environment;
|
|
94
|
+
created: Date;
|
|
95
|
+
updated: Date;
|
|
96
|
+
userEmail: string;
|
|
97
|
+
zone: string;
|
|
98
|
+
deliveryMethodId: string;
|
|
99
|
+
lock: DeliveryLock;
|
|
100
|
+
automated: boolean;
|
|
101
|
+
message: string;
|
|
102
|
+
isRollback: boolean;
|
|
103
|
+
buildId: string;
|
|
104
|
+
static fromProto(proto: any): Delivery;
|
|
105
|
+
constructor(kwargs?: i.DeliveryInterface);
|
|
106
|
+
toApiJson(): object;
|
|
107
|
+
}
|
|
108
|
+
export declare class DeliveryLock implements i.DeliveryLockInterface {
|
|
109
|
+
userEmail: string;
|
|
110
|
+
message: string;
|
|
111
|
+
created: Date;
|
|
112
|
+
static fromProto(proto: any): DeliveryLock;
|
|
113
|
+
constructor(kwargs?: i.DeliveryLockInterface);
|
|
114
|
+
toApiJson(): object;
|
|
115
|
+
}
|
|
116
|
+
export declare class DeliveryMethod implements i.DeliveryMethodInterface {
|
|
117
|
+
deliveryMethodId: string;
|
|
118
|
+
deliveryType: e.DeliveryType;
|
|
119
|
+
args: string[];
|
|
120
|
+
description: string;
|
|
121
|
+
zones: string[];
|
|
122
|
+
weight: string;
|
|
123
|
+
static fromProto(proto: any): DeliveryMethod;
|
|
124
|
+
constructor(kwargs?: i.DeliveryMethodInterface);
|
|
125
|
+
toApiJson(): object;
|
|
126
|
+
}
|
|
127
|
+
export declare class Deployment implements i.DeploymentInterface {
|
|
128
|
+
appId: string;
|
|
129
|
+
deploymentId: string;
|
|
130
|
+
gitHash: string;
|
|
131
|
+
artifacts: Artifacts;
|
|
132
|
+
environment: e.Environment;
|
|
133
|
+
created: Date;
|
|
134
|
+
updated: Date;
|
|
135
|
+
buildId: string;
|
|
136
|
+
gitCommitDetails: GitCommitDetails;
|
|
137
|
+
author: string;
|
|
138
|
+
name: string;
|
|
139
|
+
branchName: string;
|
|
140
|
+
status: e.DeploymentStatus;
|
|
141
|
+
statusDescription: string;
|
|
142
|
+
gitHashBase: string;
|
|
143
|
+
additionalGitCommitDetails: GitCommitDetails[];
|
|
144
|
+
k8sConfig: K8SConfig;
|
|
145
|
+
static fromProto(proto: any): Deployment;
|
|
146
|
+
constructor(kwargs?: i.DeploymentInterface);
|
|
147
|
+
toApiJson(): object;
|
|
148
|
+
}
|
|
149
|
+
export declare class Event implements i.EventInterface {
|
|
150
|
+
appId: string;
|
|
151
|
+
environment: e.Environment;
|
|
152
|
+
eventType: e.EventType;
|
|
153
|
+
eventId: string;
|
|
154
|
+
userEmail: string;
|
|
155
|
+
title: string;
|
|
156
|
+
details: string;
|
|
157
|
+
created: Date;
|
|
158
|
+
buildId: string;
|
|
159
|
+
automated: boolean;
|
|
160
|
+
probableAppType: e.AppType;
|
|
161
|
+
static fromProto(proto: any): Event;
|
|
162
|
+
constructor(kwargs?: i.EventInterface);
|
|
163
|
+
toApiJson(): object;
|
|
164
|
+
}
|
|
165
|
+
export declare class GetUserSettingsRequest implements i.GetUserSettingsRequestInterface {
|
|
166
|
+
userEmail: string;
|
|
167
|
+
static fromProto(proto: any): GetUserSettingsRequest;
|
|
168
|
+
constructor(kwargs?: i.GetUserSettingsRequestInterface);
|
|
169
|
+
toApiJson(): object;
|
|
170
|
+
}
|
|
171
|
+
export declare class GetUserSettingsResponse implements i.GetUserSettingsResponseInterface {
|
|
172
|
+
settings: UserSettings;
|
|
173
|
+
static fromProto(proto: any): GetUserSettingsResponse;
|
|
174
|
+
constructor(kwargs?: i.GetUserSettingsResponseInterface);
|
|
175
|
+
toApiJson(): object;
|
|
176
|
+
}
|
|
177
|
+
export declare class GitCommitDetails implements i.GitCommitDetailsInterface {
|
|
178
|
+
author: GithubCommitUser;
|
|
179
|
+
committer: GithubCommitUser;
|
|
180
|
+
message: string;
|
|
181
|
+
static fromProto(proto: any): GitCommitDetails;
|
|
182
|
+
constructor(kwargs?: i.GitCommitDetailsInterface);
|
|
183
|
+
toApiJson(): object;
|
|
184
|
+
}
|
|
185
|
+
export declare class GithubCommitUser implements i.GithubCommitUserInterface {
|
|
186
|
+
date: Date;
|
|
187
|
+
name: string;
|
|
188
|
+
email: string;
|
|
189
|
+
static fromProto(proto: any): GithubCommitUser;
|
|
190
|
+
constructor(kwargs?: i.GithubCommitUserInterface);
|
|
191
|
+
toApiJson(): object;
|
|
192
|
+
}
|
|
193
|
+
export declare class K8SConfig implements i.K8SConfigInterface {
|
|
194
|
+
clusterContext: string;
|
|
195
|
+
controller: e.KubernetesController;
|
|
196
|
+
static fromProto(proto: any): K8SConfig;
|
|
197
|
+
constructor(kwargs?: i.K8SConfigInterface);
|
|
198
|
+
toApiJson(): object;
|
|
199
|
+
}
|
|
200
|
+
export declare class ListApplicationsRequest implements i.ListApplicationsRequestInterface {
|
|
201
|
+
appType: e.AppType;
|
|
202
|
+
pagingOptions: PagedRequestOptions;
|
|
203
|
+
static fromProto(proto: any): ListApplicationsRequest;
|
|
204
|
+
constructor(kwargs?: i.ListApplicationsRequestInterface);
|
|
205
|
+
toApiJson(): object;
|
|
206
|
+
}
|
|
207
|
+
export declare class ListApplicationsResponse implements i.ListApplicationsResponseInterface {
|
|
208
|
+
applications: Application[];
|
|
209
|
+
pagingMetadata: PagedResponseMetadata;
|
|
210
|
+
static fromProto(proto: any): ListApplicationsResponse;
|
|
211
|
+
constructor(kwargs?: i.ListApplicationsResponseInterface);
|
|
212
|
+
toApiJson(): object;
|
|
213
|
+
}
|
|
214
|
+
export declare class ListDeliveriesByUserRequest implements i.ListDeliveriesByUserRequestInterface {
|
|
215
|
+
userId: string;
|
|
216
|
+
environment: e.Environment;
|
|
217
|
+
pagingOptions: PagedRequestOptions;
|
|
218
|
+
static fromProto(proto: any): ListDeliveriesByUserRequest;
|
|
219
|
+
constructor(kwargs?: i.ListDeliveriesByUserRequestInterface);
|
|
220
|
+
toApiJson(): object;
|
|
221
|
+
}
|
|
222
|
+
export declare class ListDeliveriesRequest implements i.ListDeliveriesRequestInterface {
|
|
223
|
+
appId: string;
|
|
224
|
+
environment: e.Environment;
|
|
225
|
+
pagingOptions: PagedRequestOptions;
|
|
226
|
+
static fromProto(proto: any): ListDeliveriesRequest;
|
|
227
|
+
constructor(kwargs?: i.ListDeliveriesRequestInterface);
|
|
228
|
+
toApiJson(): object;
|
|
229
|
+
}
|
|
230
|
+
export declare class ListDeliveriesResponse implements i.ListDeliveriesResponseInterface {
|
|
231
|
+
deliveries: Delivery[];
|
|
232
|
+
pagingMetadata: PagedResponseMetadata;
|
|
233
|
+
static fromProto(proto: any): ListDeliveriesResponse;
|
|
234
|
+
constructor(kwargs?: i.ListDeliveriesResponseInterface);
|
|
235
|
+
toApiJson(): object;
|
|
236
|
+
}
|
|
237
|
+
export declare class ListDeploymentsRequest implements i.ListDeploymentsRequestInterface {
|
|
238
|
+
appId: string;
|
|
239
|
+
environment: e.Environment;
|
|
240
|
+
pagingOptions: PagedRequestOptions;
|
|
241
|
+
static fromProto(proto: any): ListDeploymentsRequest;
|
|
242
|
+
constructor(kwargs?: i.ListDeploymentsRequestInterface);
|
|
243
|
+
toApiJson(): object;
|
|
244
|
+
}
|
|
245
|
+
export declare class ListDeploymentsResponse implements i.ListDeploymentsResponseInterface {
|
|
246
|
+
deployments: Deployment[];
|
|
247
|
+
pagingMetadata: PagedResponseMetadata;
|
|
248
|
+
static fromProto(proto: any): ListDeploymentsResponse;
|
|
249
|
+
constructor(kwargs?: i.ListDeploymentsResponseInterface);
|
|
250
|
+
toApiJson(): object;
|
|
251
|
+
}
|
|
252
|
+
export declare class ListEventsRequest implements i.ListEventsRequestInterface {
|
|
253
|
+
appId: string;
|
|
254
|
+
environment: e.Environment;
|
|
255
|
+
eventType: e.EventType;
|
|
256
|
+
start: Date;
|
|
257
|
+
userEmail: string;
|
|
258
|
+
pagingOptions: PagedRequestOptions;
|
|
259
|
+
static fromProto(proto: any): ListEventsRequest;
|
|
260
|
+
constructor(kwargs?: i.ListEventsRequestInterface);
|
|
261
|
+
toApiJson(): object;
|
|
262
|
+
}
|
|
263
|
+
export declare class ListEventsResponse implements i.ListEventsResponseInterface {
|
|
264
|
+
events: Event[];
|
|
265
|
+
pagingMetadata: PagedResponseMetadata;
|
|
266
|
+
static fromProto(proto: any): ListEventsResponse;
|
|
267
|
+
constructor(kwargs?: i.ListEventsResponseInterface);
|
|
268
|
+
toApiJson(): object;
|
|
269
|
+
}
|
|
270
|
+
export declare class SendBuildNotificationRequest implements i.SendBuildNotificationRequestInterface {
|
|
271
|
+
buildId: string;
|
|
272
|
+
message: string;
|
|
273
|
+
repository: string;
|
|
274
|
+
status: e.BuildStatus;
|
|
275
|
+
gitHash: string;
|
|
276
|
+
static fromProto(proto: any): SendBuildNotificationRequest;
|
|
277
|
+
constructor(kwargs?: i.SendBuildNotificationRequestInterface);
|
|
278
|
+
toApiJson(): object;
|
|
279
|
+
}
|
|
280
|
+
export declare class UpdateApplicationRequest implements i.UpdateApplicationRequestInterface {
|
|
281
|
+
application: Application;
|
|
282
|
+
static fromProto(proto: any): UpdateApplicationRequest;
|
|
283
|
+
constructor(kwargs?: i.UpdateApplicationRequestInterface);
|
|
284
|
+
toApiJson(): object;
|
|
285
|
+
}
|
|
286
|
+
export declare class UpdateDeliveryRequest implements i.UpdateDeliveryRequestInterface {
|
|
287
|
+
appId: string;
|
|
288
|
+
deliveryId: string;
|
|
289
|
+
environment: e.Environment;
|
|
290
|
+
lock: DeliveryLock;
|
|
291
|
+
static fromProto(proto: any): UpdateDeliveryRequest;
|
|
292
|
+
constructor(kwargs?: i.UpdateDeliveryRequestInterface);
|
|
293
|
+
toApiJson(): object;
|
|
294
|
+
}
|
|
295
|
+
export declare class UpdateDeploymentRequest implements i.UpdateDeploymentRequestInterface {
|
|
296
|
+
appId: string;
|
|
297
|
+
deploymentId: string;
|
|
298
|
+
environment: e.Environment;
|
|
299
|
+
status: e.DeploymentStatus;
|
|
300
|
+
buildId: string;
|
|
301
|
+
static fromProto(proto: any): UpdateDeploymentRequest;
|
|
302
|
+
constructor(kwargs?: i.UpdateDeploymentRequestInterface);
|
|
303
|
+
toApiJson(): object;
|
|
304
|
+
}
|
|
305
|
+
export declare class UpdateDeploymentResponse implements i.UpdateDeploymentResponseInterface {
|
|
306
|
+
deploymentId: string;
|
|
307
|
+
static fromProto(proto: any): UpdateDeploymentResponse;
|
|
308
|
+
constructor(kwargs?: i.UpdateDeploymentResponseInterface);
|
|
309
|
+
toApiJson(): object;
|
|
310
|
+
}
|
|
311
|
+
export declare class UpdateUserSettingsRequest implements i.UpdateUserSettingsRequestInterface {
|
|
312
|
+
settings: UserSettings;
|
|
313
|
+
static fromProto(proto: any): UpdateUserSettingsRequest;
|
|
314
|
+
constructor(kwargs?: i.UpdateUserSettingsRequestInterface);
|
|
315
|
+
toApiJson(): object;
|
|
316
|
+
}
|
|
317
|
+
export declare class UserNotifications implements i.UserNotificationsInterface {
|
|
318
|
+
buildSuccessSlackOptOut: boolean;
|
|
319
|
+
buildFailureSlackOptOut: boolean;
|
|
320
|
+
static fromProto(proto: any): UserNotifications;
|
|
321
|
+
constructor(kwargs?: i.UserNotificationsInterface);
|
|
322
|
+
toApiJson(): object;
|
|
323
|
+
}
|
|
324
|
+
export declare class UserSettings implements i.UserSettingsInterface {
|
|
325
|
+
userEmail: string;
|
|
326
|
+
favoritedApps: string[];
|
|
327
|
+
notifications: UserNotifications;
|
|
328
|
+
alternateEmail: string;
|
|
329
|
+
static fromProto(proto: any): UserSettings;
|
|
330
|
+
constructor(kwargs?: i.UserSettingsInterface);
|
|
331
|
+
toApiJson(): object;
|
|
332
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import * as e from '../enums';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class GetServiceLevelsRequest implements i.GetServiceLevelsRequestInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
githubRepoUrl: string;
|
|
7
|
+
includeDeleted: boolean;
|
|
8
|
+
static fromProto(proto: any): GetServiceLevelsRequest;
|
|
9
|
+
constructor(kwargs?: i.GetServiceLevelsRequestInterface);
|
|
10
|
+
toApiJson(): object;
|
|
11
|
+
}
|
|
12
|
+
export declare class QueryServiceLevelsRequest implements i.QueryServiceLevelsRequestInterface {
|
|
13
|
+
platform: string;
|
|
14
|
+
language: string;
|
|
15
|
+
owner: string;
|
|
16
|
+
dependency: string;
|
|
17
|
+
includeDeleted: boolean;
|
|
18
|
+
static fromProto(proto: any): QueryServiceLevelsRequest;
|
|
19
|
+
constructor(kwargs?: i.QueryServiceLevelsRequestInterface);
|
|
20
|
+
toApiJson(): object;
|
|
21
|
+
}
|
|
22
|
+
export declare class ServiceLevel implements i.ServiceLevelInterface {
|
|
23
|
+
name: string;
|
|
24
|
+
githubRepoUrl: string;
|
|
25
|
+
platform: string;
|
|
26
|
+
language: string;
|
|
27
|
+
availability: number;
|
|
28
|
+
readiness: e.ServiceReadiness;
|
|
29
|
+
owner: string;
|
|
30
|
+
hardDependencies: string[];
|
|
31
|
+
created: Date;
|
|
32
|
+
modified: Date;
|
|
33
|
+
deleted: Date;
|
|
34
|
+
static fromProto(proto: any): ServiceLevel;
|
|
35
|
+
constructor(kwargs?: i.ServiceLevelInterface);
|
|
36
|
+
toApiJson(): object;
|
|
37
|
+
}
|
|
38
|
+
export declare class ServiceLevelsResponse implements i.ServiceLevelsResponseInterface {
|
|
39
|
+
serviceLevels: ServiceLevel[];
|
|
40
|
+
static fromProto(proto: any): ServiceLevelsResponse;
|
|
41
|
+
constructor(kwargs?: i.ServiceLevelsResponseInterface);
|
|
42
|
+
toApiJson(): object;
|
|
43
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class PagedRequestOptions implements i.PagedRequestOptionsInterface {
|
|
4
|
+
cursor: string;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
static fromProto(proto: any): PagedRequestOptions;
|
|
7
|
+
constructor(kwargs?: i.PagedRequestOptionsInterface);
|
|
8
|
+
toApiJson(): object;
|
|
9
|
+
}
|
|
10
|
+
export declare class PagedResponseMetadata implements i.PagedResponseMetadataInterface {
|
|
11
|
+
nextCursor: string;
|
|
12
|
+
hasMore: boolean;
|
|
13
|
+
static fromProto(proto: any): PagedResponseMetadata;
|
|
14
|
+
constructor(kwargs?: i.PagedResponseMetadataInterface);
|
|
15
|
+
toApiJson(): object;
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
|
+
export declare class GetUserSettingsRequestV2 implements i.GetUserSettingsRequestV2Interface {
|
|
4
|
+
iamUserId: string;
|
|
5
|
+
static fromProto(proto: any): GetUserSettingsRequestV2;
|
|
6
|
+
constructor(kwargs?: i.GetUserSettingsRequestV2Interface);
|
|
7
|
+
toApiJson(): object;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetUserSettingsResponseV2 implements i.GetUserSettingsResponseV2Interface {
|
|
10
|
+
settings: UserSettingsV2;
|
|
11
|
+
static fromProto(proto: any): GetUserSettingsResponseV2;
|
|
12
|
+
constructor(kwargs?: i.GetUserSettingsResponseV2Interface);
|
|
13
|
+
toApiJson(): object;
|
|
14
|
+
}
|
|
15
|
+
export declare class UpdateUserSettingsRequestV2 implements i.UpdateUserSettingsRequestV2Interface {
|
|
16
|
+
settings: UserSettingsV2;
|
|
17
|
+
static fromProto(proto: any): UpdateUserSettingsRequestV2;
|
|
18
|
+
constructor(kwargs?: i.UpdateUserSettingsRequestV2Interface);
|
|
19
|
+
toApiJson(): object;
|
|
20
|
+
}
|
|
21
|
+
export declare class UserNotificationsV2 implements i.UserNotificationsV2Interface {
|
|
22
|
+
buildSuccessSlackOptOut: boolean;
|
|
23
|
+
buildFailureSlackOptOut: boolean;
|
|
24
|
+
static fromProto(proto: any): UserNotificationsV2;
|
|
25
|
+
constructor(kwargs?: i.UserNotificationsV2Interface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
28
|
+
export declare class UserSettingsV2 implements i.UserSettingsV2Interface {
|
|
29
|
+
iamUserId: string;
|
|
30
|
+
userEmail: string;
|
|
31
|
+
favoritedApps: string[];
|
|
32
|
+
notifications: UserNotificationsV2;
|
|
33
|
+
alternateEmail: string;
|
|
34
|
+
static fromProto(proto: any): UserSettingsV2;
|
|
35
|
+
constructor(kwargs?: i.UserSettingsV2Interface);
|
|
36
|
+
toApiJson(): object;
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GetServiceLevelsRequest, QueryServiceLevelsRequest, ServiceLevel, ServiceLevelsResponse } from './objects/';
|
|
2
|
+
import { GetServiceLevelsRequestInterface, QueryServiceLevelsRequestInterface, ServiceLevelInterface } from './interfaces/';
|
|
3
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
4
|
+
import { HostService } from '../_generated/host.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ServiceLevelsApiService {
|
|
8
|
+
private http;
|
|
9
|
+
private hostService;
|
|
10
|
+
private _host;
|
|
11
|
+
constructor(http: HttpClient, hostService: HostService);
|
|
12
|
+
private apiOptions;
|
|
13
|
+
get(r: GetServiceLevelsRequest | GetServiceLevelsRequestInterface): Observable<ServiceLevelsResponse>;
|
|
14
|
+
query(r: QueryServiceLevelsRequest | QueryServiceLevelsRequestInterface): Observable<ServiceLevelsResponse>;
|
|
15
|
+
update(r: ServiceLevel | ServiceLevelInterface): Observable<HttpResponse<null>>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceLevelsApiService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ServiceLevelsApiService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GetUserSettingsRequestV2, GetUserSettingsResponseV2, UpdateUserSettingsRequestV2 } from './objects/';
|
|
2
|
+
import { GetUserSettingsRequestV2Interface, UpdateUserSettingsRequestV2Interface } from './interfaces/';
|
|
3
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
4
|
+
import { HostService } from '../_generated/host.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UserApiService {
|
|
8
|
+
private http;
|
|
9
|
+
private hostService;
|
|
10
|
+
private _host;
|
|
11
|
+
constructor(http: HttpClient, hostService: HostService);
|
|
12
|
+
private apiOptions;
|
|
13
|
+
updateUserSettings(r: UpdateUserSettingsRequestV2 | UpdateUserSettingsRequestV2Interface): Observable<HttpResponse<null>>;
|
|
14
|
+
getUserSettings(r: GetUserSettingsRequestV2 | GetUserSettingsRequestV2Interface): Observable<GetUserSettingsResponseV2>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserApiService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserApiService>;
|
|
17
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './_internal';
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vendasta/mission-control",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^13.0.0",
|
|
6
|
+
"@angular/core": "^13.0.0"
|
|
7
|
+
},
|
|
8
|
+
"author": "Vendasta R&D",
|
|
9
|
+
"description": "SDK to interact with the mission-control service",
|
|
10
|
+
"typings": "vendasta-mission-control.d.ts",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"main": "index.js",
|
|
13
|
+
"module": "fesm2015/vendasta-mission-control.mjs",
|
|
14
|
+
"es2020": "fesm2020/vendasta-mission-control.mjs",
|
|
15
|
+
"esm2020": "esm2020/vendasta-mission-control.mjs",
|
|
16
|
+
"fesm2020": "fesm2020/vendasta-mission-control.mjs",
|
|
17
|
+
"fesm2015": "fesm2015/vendasta-mission-control.mjs",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./package.json": {
|
|
20
|
+
"default": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./vendasta-mission-control.d.ts",
|
|
24
|
+
"esm2020": "./esm2020/vendasta-mission-control.mjs",
|
|
25
|
+
"es2020": "./fesm2020/vendasta-mission-control.mjs",
|
|
26
|
+
"es2015": "./fesm2015/vendasta-mission-control.mjs",
|
|
27
|
+
"node": "./fesm2015/vendasta-mission-control.mjs",
|
|
28
|
+
"default": "./fesm2020/vendasta-mission-control.mjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"tslib": "^2.3.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
package/public_api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
package/src/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# mission-control SDK
|