@vendasta/wp-cloud-manager 0.2.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/_generated/index.mjs +2 -0
- package/esm2020/lib/_internal/index.mjs +11 -0
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
- package/esm2020/lib/_internal/objects/annotations.mjs +44 -0
- package/esm2020/lib/_internal/objects/api.mjs +651 -0
- package/esm2020/lib/_internal/objects/index.mjs +9 -0
- package/esm2020/lib/_internal/wp-client-manager.api.service.mjs +55 -0
- package/esm2020/lib/_internal/wp-cloud-manager.api.service.mjs +65 -0
- package/esm2020/lib/index.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/vendasta-wp-cloud-manager.mjs +5 -0
- package/fesm2015/vendasta-wp-cloud-manager.mjs +850 -0
- package/fesm2015/vendasta-wp-cloud-manager.mjs.map +1 -0
- package/fesm2020/vendasta-wp-cloud-manager.mjs +849 -0
- package/fesm2020/vendasta-wp-cloud-manager.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/_generated/host.service.d.ts +7 -0
- package/lib/_generated/index.d.ts +1 -0
- package/lib/_internal/index.d.ts +4 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +7 -0
- package/lib/_internal/interfaces/api.interface.d.ts +119 -0
- package/lib/_internal/interfaces/index.d.ts +2 -0
- package/lib/_internal/objects/annotations.d.ts +14 -0
- package/lib/_internal/objects/api.d.ts +195 -0
- package/lib/_internal/objects/index.d.ts +2 -0
- package/lib/_internal/wp-client-manager.api.service.d.ts +16 -0
- package/lib/_internal/wp-cloud-manager.api.service.d.ts +18 -0
- package/lib/index.d.ts +2 -0
- package/package.json +35 -0
- package/public_api.d.ts +1 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
4
|
+
import { map } from 'rxjs/operators';
|
|
5
|
+
|
|
6
|
+
class Access {
|
|
7
|
+
static fromProto(proto) {
|
|
8
|
+
let m = new Access();
|
|
9
|
+
m = Object.assign(m, proto);
|
|
10
|
+
return m;
|
|
11
|
+
}
|
|
12
|
+
constructor(kwargs) {
|
|
13
|
+
if (!kwargs) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
Object.assign(this, kwargs);
|
|
17
|
+
}
|
|
18
|
+
toApiJson() {
|
|
19
|
+
const toReturn = {};
|
|
20
|
+
if (typeof this.scope !== 'undefined') {
|
|
21
|
+
toReturn['scope'] = this.scope;
|
|
22
|
+
}
|
|
23
|
+
if (typeof this.public !== 'undefined') {
|
|
24
|
+
toReturn['public'] = this.public;
|
|
25
|
+
}
|
|
26
|
+
return toReturn;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
class MCPOptions {
|
|
30
|
+
static fromProto(proto) {
|
|
31
|
+
let m = new MCPOptions();
|
|
32
|
+
m = Object.assign(m, proto);
|
|
33
|
+
return m;
|
|
34
|
+
}
|
|
35
|
+
constructor(kwargs) {
|
|
36
|
+
if (!kwargs) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
Object.assign(this, kwargs);
|
|
40
|
+
}
|
|
41
|
+
toApiJson() {
|
|
42
|
+
const toReturn = {};
|
|
43
|
+
if (typeof this.serverId !== 'undefined') {
|
|
44
|
+
toReturn['serverId'] = this.serverId;
|
|
45
|
+
}
|
|
46
|
+
return toReturn;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
class GetAvailablePHPVersionsRequest {
|
|
51
|
+
static fromProto(proto) {
|
|
52
|
+
let m = new GetAvailablePHPVersionsRequest();
|
|
53
|
+
m = Object.assign(m, proto);
|
|
54
|
+
return m;
|
|
55
|
+
}
|
|
56
|
+
constructor(kwargs) {
|
|
57
|
+
if (!kwargs) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
Object.assign(this, kwargs);
|
|
61
|
+
}
|
|
62
|
+
toApiJson() {
|
|
63
|
+
const toReturn = {};
|
|
64
|
+
if (typeof this.client !== 'undefined') {
|
|
65
|
+
toReturn['client'] = this.client;
|
|
66
|
+
}
|
|
67
|
+
return toReturn;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
class GetAvailablePHPVersionsResponse {
|
|
71
|
+
static fromProto(proto) {
|
|
72
|
+
let m = new GetAvailablePHPVersionsResponse();
|
|
73
|
+
m = Object.assign(m, proto);
|
|
74
|
+
if (proto.phpVersions) {
|
|
75
|
+
m.phpVersions = proto.phpVersions.map(PHPVersion.fromProto);
|
|
76
|
+
}
|
|
77
|
+
return m;
|
|
78
|
+
}
|
|
79
|
+
constructor(kwargs) {
|
|
80
|
+
if (!kwargs) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
Object.assign(this, kwargs);
|
|
84
|
+
}
|
|
85
|
+
toApiJson() {
|
|
86
|
+
const toReturn = {};
|
|
87
|
+
if (typeof this.phpVersions !== 'undefined' && this.phpVersions !== null) {
|
|
88
|
+
toReturn['phpVersions'] = 'toApiJson' in this.phpVersions ? this.phpVersions.toApiJson() : this.phpVersions;
|
|
89
|
+
}
|
|
90
|
+
return toReturn;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
class GetCDNStatusRequest {
|
|
94
|
+
static fromProto(proto) {
|
|
95
|
+
let m = new GetCDNStatusRequest();
|
|
96
|
+
m = Object.assign(m, proto);
|
|
97
|
+
return m;
|
|
98
|
+
}
|
|
99
|
+
constructor(kwargs) {
|
|
100
|
+
if (!kwargs) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
Object.assign(this, kwargs);
|
|
104
|
+
}
|
|
105
|
+
toApiJson() {
|
|
106
|
+
const toReturn = {};
|
|
107
|
+
if (typeof this.site !== 'undefined') {
|
|
108
|
+
toReturn['site'] = this.site;
|
|
109
|
+
}
|
|
110
|
+
if (typeof this.domain !== 'undefined') {
|
|
111
|
+
toReturn['domain'] = this.domain;
|
|
112
|
+
}
|
|
113
|
+
return toReturn;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
class GetCDNStatusResponse {
|
|
117
|
+
static fromProto(proto) {
|
|
118
|
+
let m = new GetCDNStatusResponse();
|
|
119
|
+
m = Object.assign(m, proto);
|
|
120
|
+
return m;
|
|
121
|
+
}
|
|
122
|
+
constructor(kwargs) {
|
|
123
|
+
if (!kwargs) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
Object.assign(this, kwargs);
|
|
127
|
+
}
|
|
128
|
+
toApiJson() {
|
|
129
|
+
const toReturn = {};
|
|
130
|
+
if (typeof this.enabled !== 'undefined') {
|
|
131
|
+
toReturn['enabled'] = this.enabled;
|
|
132
|
+
}
|
|
133
|
+
if (typeof this.status !== 'undefined') {
|
|
134
|
+
toReturn['status'] = this.status;
|
|
135
|
+
}
|
|
136
|
+
return toReturn;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
class GetOneClickLoginRequest {
|
|
140
|
+
static fromProto(proto) {
|
|
141
|
+
let m = new GetOneClickLoginRequest();
|
|
142
|
+
m = Object.assign(m, proto);
|
|
143
|
+
return m;
|
|
144
|
+
}
|
|
145
|
+
constructor(kwargs) {
|
|
146
|
+
if (!kwargs) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
Object.assign(this, kwargs);
|
|
150
|
+
}
|
|
151
|
+
toApiJson() {
|
|
152
|
+
const toReturn = {};
|
|
153
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
154
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
155
|
+
}
|
|
156
|
+
if (typeof this.redirectTo !== 'undefined') {
|
|
157
|
+
toReturn['redirectTo'] = this.redirectTo;
|
|
158
|
+
}
|
|
159
|
+
return toReturn;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
class GetOneClickLoginResponse {
|
|
163
|
+
static fromProto(proto) {
|
|
164
|
+
let m = new GetOneClickLoginResponse();
|
|
165
|
+
m = Object.assign(m, proto);
|
|
166
|
+
if (proto.expiresAt) {
|
|
167
|
+
m.expiresAt = parseInt(proto.expiresAt, 10);
|
|
168
|
+
}
|
|
169
|
+
return m;
|
|
170
|
+
}
|
|
171
|
+
constructor(kwargs) {
|
|
172
|
+
if (!kwargs) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
Object.assign(this, kwargs);
|
|
176
|
+
}
|
|
177
|
+
toApiJson() {
|
|
178
|
+
const toReturn = {};
|
|
179
|
+
if (typeof this.loginUrl !== 'undefined') {
|
|
180
|
+
toReturn['loginUrl'] = this.loginUrl;
|
|
181
|
+
}
|
|
182
|
+
if (typeof this.expiresAt !== 'undefined') {
|
|
183
|
+
toReturn['expiresAt'] = this.expiresAt;
|
|
184
|
+
}
|
|
185
|
+
if (typeof this.ttl !== 'undefined') {
|
|
186
|
+
toReturn['ttl'] = this.ttl;
|
|
187
|
+
}
|
|
188
|
+
if (typeof this.userId !== 'undefined') {
|
|
189
|
+
toReturn['userId'] = this.userId;
|
|
190
|
+
}
|
|
191
|
+
return toReturn;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
class GetSiteDetailsRequest {
|
|
195
|
+
static fromProto(proto) {
|
|
196
|
+
let m = new GetSiteDetailsRequest();
|
|
197
|
+
m = Object.assign(m, proto);
|
|
198
|
+
return m;
|
|
199
|
+
}
|
|
200
|
+
constructor(kwargs) {
|
|
201
|
+
if (!kwargs) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
Object.assign(this, kwargs);
|
|
205
|
+
}
|
|
206
|
+
toApiJson() {
|
|
207
|
+
const toReturn = {};
|
|
208
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
209
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
210
|
+
}
|
|
211
|
+
return toReturn;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class GetSiteDetailsResponse {
|
|
215
|
+
static fromProto(proto) {
|
|
216
|
+
let m = new GetSiteDetailsResponse();
|
|
217
|
+
m = Object.assign(m, proto);
|
|
218
|
+
if (proto.siteDetails) {
|
|
219
|
+
m.siteDetails = SiteDetails.fromProto(proto.siteDetails);
|
|
220
|
+
}
|
|
221
|
+
return m;
|
|
222
|
+
}
|
|
223
|
+
constructor(kwargs) {
|
|
224
|
+
if (!kwargs) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
Object.assign(this, kwargs);
|
|
228
|
+
}
|
|
229
|
+
toApiJson() {
|
|
230
|
+
const toReturn = {};
|
|
231
|
+
if (typeof this.siteDetails !== 'undefined' && this.siteDetails !== null) {
|
|
232
|
+
toReturn['siteDetails'] = 'toApiJson' in this.siteDetails ? this.siteDetails.toApiJson() : this.siteDetails;
|
|
233
|
+
}
|
|
234
|
+
return toReturn;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
class GetSiteOptionsRequest {
|
|
238
|
+
static fromProto(proto) {
|
|
239
|
+
let m = new GetSiteOptionsRequest();
|
|
240
|
+
m = Object.assign(m, proto);
|
|
241
|
+
return m;
|
|
242
|
+
}
|
|
243
|
+
constructor(kwargs) {
|
|
244
|
+
if (!kwargs) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
Object.assign(this, kwargs);
|
|
248
|
+
}
|
|
249
|
+
toApiJson() {
|
|
250
|
+
const toReturn = {};
|
|
251
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
252
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
253
|
+
}
|
|
254
|
+
if (typeof this.options !== 'undefined') {
|
|
255
|
+
toReturn['options'] = this.options;
|
|
256
|
+
}
|
|
257
|
+
return toReturn;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
class GetSiteOptionsResponse {
|
|
261
|
+
static fromProto(proto) {
|
|
262
|
+
let m = new GetSiteOptionsResponse();
|
|
263
|
+
m = Object.assign(m, proto);
|
|
264
|
+
return m;
|
|
265
|
+
}
|
|
266
|
+
constructor(kwargs) {
|
|
267
|
+
if (!kwargs) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
Object.assign(this, kwargs);
|
|
271
|
+
}
|
|
272
|
+
toApiJson() {
|
|
273
|
+
const toReturn = {};
|
|
274
|
+
if (typeof this.data !== 'undefined') {
|
|
275
|
+
toReturn['data'] = this.data;
|
|
276
|
+
}
|
|
277
|
+
return toReturn;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
class GetSiteOverviewRequest {
|
|
281
|
+
static fromProto(proto) {
|
|
282
|
+
let m = new GetSiteOverviewRequest();
|
|
283
|
+
m = Object.assign(m, proto);
|
|
284
|
+
return m;
|
|
285
|
+
}
|
|
286
|
+
constructor(kwargs) {
|
|
287
|
+
if (!kwargs) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
Object.assign(this, kwargs);
|
|
291
|
+
}
|
|
292
|
+
toApiJson() {
|
|
293
|
+
const toReturn = {};
|
|
294
|
+
if (typeof this.site !== 'undefined') {
|
|
295
|
+
toReturn['site'] = this.site;
|
|
296
|
+
}
|
|
297
|
+
return toReturn;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
class GetSiteOverviewResponse {
|
|
301
|
+
static fromProto(proto) {
|
|
302
|
+
let m = new GetSiteOverviewResponse();
|
|
303
|
+
m = Object.assign(m, proto);
|
|
304
|
+
if (proto.siteOverview) {
|
|
305
|
+
m.siteOverview = SiteOverview.fromProto(proto.siteOverview);
|
|
306
|
+
}
|
|
307
|
+
return m;
|
|
308
|
+
}
|
|
309
|
+
constructor(kwargs) {
|
|
310
|
+
if (!kwargs) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
Object.assign(this, kwargs);
|
|
314
|
+
}
|
|
315
|
+
toApiJson() {
|
|
316
|
+
const toReturn = {};
|
|
317
|
+
if (typeof this.siteOverview !== 'undefined' && this.siteOverview !== null) {
|
|
318
|
+
toReturn['siteOverview'] = 'toApiJson' in this.siteOverview ? this.siteOverview.toApiJson() : this.siteOverview;
|
|
319
|
+
}
|
|
320
|
+
return toReturn;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
class PHPVersion {
|
|
324
|
+
static fromProto(proto) {
|
|
325
|
+
let m = new PHPVersion();
|
|
326
|
+
m = Object.assign(m, proto);
|
|
327
|
+
return m;
|
|
328
|
+
}
|
|
329
|
+
constructor(kwargs) {
|
|
330
|
+
if (!kwargs) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
Object.assign(this, kwargs);
|
|
334
|
+
}
|
|
335
|
+
toApiJson() {
|
|
336
|
+
const toReturn = {};
|
|
337
|
+
if (typeof this.version !== 'undefined') {
|
|
338
|
+
toReturn['version'] = this.version;
|
|
339
|
+
}
|
|
340
|
+
if (typeof this.isDefault !== 'undefined') {
|
|
341
|
+
toReturn['isDefault'] = this.isDefault;
|
|
342
|
+
}
|
|
343
|
+
if (typeof this.isDeprecated !== 'undefined') {
|
|
344
|
+
toReturn['isDeprecated'] = this.isDeprecated;
|
|
345
|
+
}
|
|
346
|
+
return toReturn;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
class PingRequest {
|
|
350
|
+
static fromProto(proto) {
|
|
351
|
+
let m = new PingRequest();
|
|
352
|
+
m = Object.assign(m, proto);
|
|
353
|
+
return m;
|
|
354
|
+
}
|
|
355
|
+
constructor(kwargs) {
|
|
356
|
+
if (!kwargs) {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
Object.assign(this, kwargs);
|
|
360
|
+
}
|
|
361
|
+
toApiJson() {
|
|
362
|
+
const toReturn = {};
|
|
363
|
+
return toReturn;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
class PingResponse {
|
|
367
|
+
static fromProto(proto) {
|
|
368
|
+
let m = new PingResponse();
|
|
369
|
+
m = Object.assign(m, proto);
|
|
370
|
+
return m;
|
|
371
|
+
}
|
|
372
|
+
constructor(kwargs) {
|
|
373
|
+
if (!kwargs) {
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
Object.assign(this, kwargs);
|
|
377
|
+
}
|
|
378
|
+
toApiJson() {
|
|
379
|
+
const toReturn = {};
|
|
380
|
+
if (typeof this.message !== 'undefined') {
|
|
381
|
+
toReturn['message'] = this.message;
|
|
382
|
+
}
|
|
383
|
+
return toReturn;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
class PluginInfo {
|
|
387
|
+
static fromProto(proto) {
|
|
388
|
+
let m = new PluginInfo();
|
|
389
|
+
m = Object.assign(m, proto);
|
|
390
|
+
return m;
|
|
391
|
+
}
|
|
392
|
+
constructor(kwargs) {
|
|
393
|
+
if (!kwargs) {
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
Object.assign(this, kwargs);
|
|
397
|
+
}
|
|
398
|
+
toApiJson() {
|
|
399
|
+
const toReturn = {};
|
|
400
|
+
if (typeof this.id !== 'undefined') {
|
|
401
|
+
toReturn['id'] = this.id;
|
|
402
|
+
}
|
|
403
|
+
if (typeof this.currentVersion !== 'undefined') {
|
|
404
|
+
toReturn['currentVersion'] = this.currentVersion;
|
|
405
|
+
}
|
|
406
|
+
if (typeof this.latestVersion !== 'undefined') {
|
|
407
|
+
toReturn['latestVersion'] = this.latestVersion;
|
|
408
|
+
}
|
|
409
|
+
if (typeof this.updateAvailable !== 'undefined') {
|
|
410
|
+
toReturn['updateAvailable'] = this.updateAvailable;
|
|
411
|
+
}
|
|
412
|
+
return toReturn;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
class PurgeCacheRequest {
|
|
416
|
+
static fromProto(proto) {
|
|
417
|
+
let m = new PurgeCacheRequest();
|
|
418
|
+
m = Object.assign(m, proto);
|
|
419
|
+
return m;
|
|
420
|
+
}
|
|
421
|
+
constructor(kwargs) {
|
|
422
|
+
if (!kwargs) {
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
Object.assign(this, kwargs);
|
|
426
|
+
}
|
|
427
|
+
toApiJson() {
|
|
428
|
+
const toReturn = {};
|
|
429
|
+
if (typeof this.site !== 'undefined') {
|
|
430
|
+
toReturn['site'] = this.site;
|
|
431
|
+
}
|
|
432
|
+
if (typeof this.domain !== 'undefined') {
|
|
433
|
+
toReturn['domain'] = this.domain;
|
|
434
|
+
}
|
|
435
|
+
return toReturn;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
class PurgeCacheResponse {
|
|
439
|
+
static fromProto(proto) {
|
|
440
|
+
let m = new PurgeCacheResponse();
|
|
441
|
+
m = Object.assign(m, proto);
|
|
442
|
+
return m;
|
|
443
|
+
}
|
|
444
|
+
constructor(kwargs) {
|
|
445
|
+
if (!kwargs) {
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
Object.assign(this, kwargs);
|
|
449
|
+
}
|
|
450
|
+
toApiJson() {
|
|
451
|
+
const toReturn = {};
|
|
452
|
+
if (typeof this.success !== 'undefined') {
|
|
453
|
+
toReturn['success'] = this.success;
|
|
454
|
+
}
|
|
455
|
+
return toReturn;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
class SetCDNStatusRequest {
|
|
459
|
+
static fromProto(proto) {
|
|
460
|
+
let m = new SetCDNStatusRequest();
|
|
461
|
+
m = Object.assign(m, proto);
|
|
462
|
+
return m;
|
|
463
|
+
}
|
|
464
|
+
constructor(kwargs) {
|
|
465
|
+
if (!kwargs) {
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
Object.assign(this, kwargs);
|
|
469
|
+
}
|
|
470
|
+
toApiJson() {
|
|
471
|
+
const toReturn = {};
|
|
472
|
+
if (typeof this.site !== 'undefined') {
|
|
473
|
+
toReturn['site'] = this.site;
|
|
474
|
+
}
|
|
475
|
+
if (typeof this.domain !== 'undefined') {
|
|
476
|
+
toReturn['domain'] = this.domain;
|
|
477
|
+
}
|
|
478
|
+
if (typeof this.enabled !== 'undefined') {
|
|
479
|
+
toReturn['enabled'] = this.enabled;
|
|
480
|
+
}
|
|
481
|
+
return toReturn;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
class SetCDNStatusResponse {
|
|
485
|
+
static fromProto(proto) {
|
|
486
|
+
let m = new SetCDNStatusResponse();
|
|
487
|
+
m = Object.assign(m, proto);
|
|
488
|
+
return m;
|
|
489
|
+
}
|
|
490
|
+
constructor(kwargs) {
|
|
491
|
+
if (!kwargs) {
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
Object.assign(this, kwargs);
|
|
495
|
+
}
|
|
496
|
+
toApiJson() {
|
|
497
|
+
const toReturn = {};
|
|
498
|
+
if (typeof this.success !== 'undefined') {
|
|
499
|
+
toReturn['success'] = this.success;
|
|
500
|
+
}
|
|
501
|
+
return toReturn;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
class SiteDetails {
|
|
505
|
+
static fromProto(proto) {
|
|
506
|
+
let m = new SiteDetails();
|
|
507
|
+
m = Object.assign(m, proto);
|
|
508
|
+
if (proto.plugins) {
|
|
509
|
+
m.plugins = proto.plugins.map(PluginInfo.fromProto);
|
|
510
|
+
}
|
|
511
|
+
if (proto.theme) {
|
|
512
|
+
m.theme = ThemeInfo.fromProto(proto.theme);
|
|
513
|
+
}
|
|
514
|
+
return m;
|
|
515
|
+
}
|
|
516
|
+
constructor(kwargs) {
|
|
517
|
+
if (!kwargs) {
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
Object.assign(this, kwargs);
|
|
521
|
+
}
|
|
522
|
+
toApiJson() {
|
|
523
|
+
const toReturn = {};
|
|
524
|
+
if (typeof this.coreCurrentVersion !== 'undefined') {
|
|
525
|
+
toReturn['coreCurrentVersion'] = this.coreCurrentVersion;
|
|
526
|
+
}
|
|
527
|
+
if (typeof this.coreLatestVersion !== 'undefined') {
|
|
528
|
+
toReturn['coreLatestVersion'] = this.coreLatestVersion;
|
|
529
|
+
}
|
|
530
|
+
if (typeof this.plugins !== 'undefined' && this.plugins !== null) {
|
|
531
|
+
toReturn['plugins'] = 'toApiJson' in this.plugins ? this.plugins.toApiJson() : this.plugins;
|
|
532
|
+
}
|
|
533
|
+
if (typeof this.theme !== 'undefined' && this.theme !== null) {
|
|
534
|
+
toReturn['theme'] = 'toApiJson' in this.theme ? this.theme.toApiJson() : this.theme;
|
|
535
|
+
}
|
|
536
|
+
return toReturn;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
class SiteHealthCheckRequest {
|
|
540
|
+
static fromProto(proto) {
|
|
541
|
+
let m = new SiteHealthCheckRequest();
|
|
542
|
+
m = Object.assign(m, proto);
|
|
543
|
+
return m;
|
|
544
|
+
}
|
|
545
|
+
constructor(kwargs) {
|
|
546
|
+
if (!kwargs) {
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
Object.assign(this, kwargs);
|
|
550
|
+
}
|
|
551
|
+
toApiJson() {
|
|
552
|
+
const toReturn = {};
|
|
553
|
+
if (typeof this.siteUrl !== 'undefined') {
|
|
554
|
+
toReturn['siteUrl'] = this.siteUrl;
|
|
555
|
+
}
|
|
556
|
+
return toReturn;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
class SiteHealthCheckResponse {
|
|
560
|
+
static fromProto(proto) {
|
|
561
|
+
let m = new SiteHealthCheckResponse();
|
|
562
|
+
m = Object.assign(m, proto);
|
|
563
|
+
return m;
|
|
564
|
+
}
|
|
565
|
+
constructor(kwargs) {
|
|
566
|
+
if (!kwargs) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
Object.assign(this, kwargs);
|
|
570
|
+
}
|
|
571
|
+
toApiJson() {
|
|
572
|
+
const toReturn = {};
|
|
573
|
+
if (typeof this.healthy !== 'undefined') {
|
|
574
|
+
toReturn['healthy'] = this.healthy;
|
|
575
|
+
}
|
|
576
|
+
if (typeof this.wpVersion !== 'undefined') {
|
|
577
|
+
toReturn['wpVersion'] = this.wpVersion;
|
|
578
|
+
}
|
|
579
|
+
if (typeof this.phpVersion !== 'undefined') {
|
|
580
|
+
toReturn['phpVersion'] = this.phpVersion;
|
|
581
|
+
}
|
|
582
|
+
if (typeof this.pluginVersion !== 'undefined') {
|
|
583
|
+
toReturn['pluginVersion'] = this.pluginVersion;
|
|
584
|
+
}
|
|
585
|
+
if (typeof this.siteId !== 'undefined') {
|
|
586
|
+
toReturn['siteId'] = this.siteId;
|
|
587
|
+
}
|
|
588
|
+
if (typeof this.environment !== 'undefined') {
|
|
589
|
+
toReturn['environment'] = this.environment;
|
|
590
|
+
}
|
|
591
|
+
if (typeof this.checks !== 'undefined') {
|
|
592
|
+
toReturn['checks'] = this.checks;
|
|
593
|
+
}
|
|
594
|
+
return toReturn;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
class SiteOverview {
|
|
598
|
+
static fromProto(proto) {
|
|
599
|
+
let m = new SiteOverview();
|
|
600
|
+
m = Object.assign(m, proto);
|
|
601
|
+
return m;
|
|
602
|
+
}
|
|
603
|
+
constructor(kwargs) {
|
|
604
|
+
if (!kwargs) {
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
Object.assign(this, kwargs);
|
|
608
|
+
}
|
|
609
|
+
toApiJson() {
|
|
610
|
+
const toReturn = {};
|
|
611
|
+
if (typeof this.atomicSiteId !== 'undefined') {
|
|
612
|
+
toReturn['atomicSiteId'] = this.atomicSiteId;
|
|
613
|
+
}
|
|
614
|
+
if (typeof this.domain !== 'undefined') {
|
|
615
|
+
toReturn['domain'] = this.domain;
|
|
616
|
+
}
|
|
617
|
+
if (typeof this.phpVersion !== 'undefined') {
|
|
618
|
+
toReturn['phpVersion'] = this.phpVersion;
|
|
619
|
+
}
|
|
620
|
+
if (typeof this.wpVersion !== 'undefined') {
|
|
621
|
+
toReturn['wpVersion'] = this.wpVersion;
|
|
622
|
+
}
|
|
623
|
+
if (typeof this.wpAdminEmail !== 'undefined') {
|
|
624
|
+
toReturn['wpAdminEmail'] = this.wpAdminEmail;
|
|
625
|
+
}
|
|
626
|
+
if (typeof this.wpAdminUser !== 'undefined') {
|
|
627
|
+
toReturn['wpAdminUser'] = this.wpAdminUser;
|
|
628
|
+
}
|
|
629
|
+
if (typeof this.atomicClientId !== 'undefined') {
|
|
630
|
+
toReturn['atomicClientId'] = this.atomicClientId;
|
|
631
|
+
}
|
|
632
|
+
if (typeof this.geoAffinity !== 'undefined') {
|
|
633
|
+
toReturn['geoAffinity'] = this.geoAffinity;
|
|
634
|
+
}
|
|
635
|
+
if (typeof this.serverPoolId !== 'undefined') {
|
|
636
|
+
toReturn['serverPoolId'] = this.serverPoolId;
|
|
637
|
+
}
|
|
638
|
+
if (typeof this.chrootPath !== 'undefined') {
|
|
639
|
+
toReturn['chrootPath'] = this.chrootPath;
|
|
640
|
+
}
|
|
641
|
+
if (typeof this.chrootSshPath !== 'undefined') {
|
|
642
|
+
toReturn['chrootSshPath'] = this.chrootSshPath;
|
|
643
|
+
}
|
|
644
|
+
if (typeof this.cachePrefix !== 'undefined') {
|
|
645
|
+
toReturn['cachePrefix'] = this.cachePrefix;
|
|
646
|
+
}
|
|
647
|
+
if (typeof this.dbCharset !== 'undefined') {
|
|
648
|
+
toReturn['dbCharset'] = this.dbCharset;
|
|
649
|
+
}
|
|
650
|
+
if (typeof this.dbCollate !== 'undefined') {
|
|
651
|
+
toReturn['dbCollate'] = this.dbCollate;
|
|
652
|
+
}
|
|
653
|
+
if (typeof this.dbPass !== 'undefined') {
|
|
654
|
+
toReturn['dbPass'] = this.dbPass;
|
|
655
|
+
}
|
|
656
|
+
if (typeof this.siteApiKey !== 'undefined') {
|
|
657
|
+
toReturn['siteApiKey'] = this.siteApiKey;
|
|
658
|
+
}
|
|
659
|
+
if (typeof this.staticFile404 !== 'undefined') {
|
|
660
|
+
toReturn['staticFile404'] = this.staticFile404;
|
|
661
|
+
}
|
|
662
|
+
if (typeof this.smtpPass !== 'undefined') {
|
|
663
|
+
toReturn['smtpPass'] = this.smtpPass;
|
|
664
|
+
}
|
|
665
|
+
if (typeof this.wpcomBlogId !== 'undefined') {
|
|
666
|
+
toReturn['wpcomBlogId'] = this.wpcomBlogId;
|
|
667
|
+
}
|
|
668
|
+
return toReturn;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
class ThemeInfo {
|
|
672
|
+
static fromProto(proto) {
|
|
673
|
+
let m = new ThemeInfo();
|
|
674
|
+
m = Object.assign(m, proto);
|
|
675
|
+
return m;
|
|
676
|
+
}
|
|
677
|
+
constructor(kwargs) {
|
|
678
|
+
if (!kwargs) {
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
Object.assign(this, kwargs);
|
|
682
|
+
}
|
|
683
|
+
toApiJson() {
|
|
684
|
+
const toReturn = {};
|
|
685
|
+
if (typeof this.id !== 'undefined') {
|
|
686
|
+
toReturn['id'] = this.id;
|
|
687
|
+
}
|
|
688
|
+
if (typeof this.currentVersion !== 'undefined') {
|
|
689
|
+
toReturn['currentVersion'] = this.currentVersion;
|
|
690
|
+
}
|
|
691
|
+
if (typeof this.latestVersion !== 'undefined') {
|
|
692
|
+
toReturn['latestVersion'] = this.latestVersion;
|
|
693
|
+
}
|
|
694
|
+
if (typeof this.updateAvailable !== 'undefined') {
|
|
695
|
+
toReturn['updateAvailable'] = this.updateAvailable;
|
|
696
|
+
}
|
|
697
|
+
return toReturn;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
// *********************************
|
|
702
|
+
// Code generated by sdkgen
|
|
703
|
+
// DO NOT EDIT!.
|
|
704
|
+
//
|
|
705
|
+
// Objects Index.
|
|
706
|
+
// *********************************
|
|
707
|
+
|
|
708
|
+
const environment = (window ? window['environment'] : 'prod') ?? 'prod';
|
|
709
|
+
const hostMap = {
|
|
710
|
+
'local': 'wp-cloud-manager.vendasta-local.com',
|
|
711
|
+
'test': '',
|
|
712
|
+
'demo': 'wp-cloud-manager-demo.apigateway.co',
|
|
713
|
+
'prod': 'wp-cloud-manager-prod.apigateway.co',
|
|
714
|
+
'production': 'wp-cloud-manager-prod.apigateway.co',
|
|
715
|
+
};
|
|
716
|
+
class HostService {
|
|
717
|
+
get host() {
|
|
718
|
+
return hostMap[environment.toLowerCase()];
|
|
719
|
+
}
|
|
720
|
+
get hostWithScheme() {
|
|
721
|
+
return 'https://' + this.host;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
725
|
+
HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
|
|
726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
|
|
727
|
+
type: Injectable,
|
|
728
|
+
args: [{ providedIn: 'root' }]
|
|
729
|
+
}] });
|
|
730
|
+
|
|
731
|
+
// *********************************
|
|
732
|
+
// Code generated by sdkgen
|
|
733
|
+
// DO NOT EDIT!.
|
|
734
|
+
//
|
|
735
|
+
// API Service.
|
|
736
|
+
// *********************************
|
|
737
|
+
class WPClientManagerApiService {
|
|
738
|
+
constructor() {
|
|
739
|
+
this.hostService = inject(HostService);
|
|
740
|
+
this.http = inject(HttpClient);
|
|
741
|
+
this._host = this.hostService.hostWithScheme;
|
|
742
|
+
}
|
|
743
|
+
apiOptions() {
|
|
744
|
+
return {
|
|
745
|
+
headers: new HttpHeaders({
|
|
746
|
+
'Content-Type': 'application/json'
|
|
747
|
+
}),
|
|
748
|
+
withCredentials: true
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
getSiteDetails(r) {
|
|
752
|
+
const request = (r.toApiJson) ? r : new GetSiteDetailsRequest(r);
|
|
753
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPClientManager/GetSiteDetails", request.toApiJson(), this.apiOptions())
|
|
754
|
+
.pipe(map(resp => GetSiteDetailsResponse.fromProto(resp)));
|
|
755
|
+
}
|
|
756
|
+
getSiteOptions(r) {
|
|
757
|
+
const request = (r.toApiJson) ? r : new GetSiteOptionsRequest(r);
|
|
758
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPClientManager/GetSiteOptions", request.toApiJson(), this.apiOptions())
|
|
759
|
+
.pipe(map(resp => GetSiteOptionsResponse.fromProto(resp)));
|
|
760
|
+
}
|
|
761
|
+
getOneClickLogin(r) {
|
|
762
|
+
const request = (r.toApiJson) ? r : new GetOneClickLoginRequest(r);
|
|
763
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPClientManager/GetOneClickLogin", request.toApiJson(), this.apiOptions())
|
|
764
|
+
.pipe(map(resp => GetOneClickLoginResponse.fromProto(resp)));
|
|
765
|
+
}
|
|
766
|
+
siteHealthCheck(r) {
|
|
767
|
+
const request = (r.toApiJson) ? r : new SiteHealthCheckRequest(r);
|
|
768
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPClientManager/SiteHealthCheck", request.toApiJson(), this.apiOptions())
|
|
769
|
+
.pipe(map(resp => SiteHealthCheckResponse.fromProto(resp)));
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
WPClientManagerApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WPClientManagerApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
773
|
+
WPClientManagerApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WPClientManagerApiService, providedIn: 'root' });
|
|
774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WPClientManagerApiService, decorators: [{
|
|
775
|
+
type: Injectable,
|
|
776
|
+
args: [{ providedIn: 'root' }]
|
|
777
|
+
}] });
|
|
778
|
+
|
|
779
|
+
// *********************************
|
|
780
|
+
// Code generated by sdkgen
|
|
781
|
+
// DO NOT EDIT!.
|
|
782
|
+
//
|
|
783
|
+
// API Service.
|
|
784
|
+
// *********************************
|
|
785
|
+
class WPCloudManagerApiService {
|
|
786
|
+
constructor() {
|
|
787
|
+
this.hostService = inject(HostService);
|
|
788
|
+
this.http = inject(HttpClient);
|
|
789
|
+
this._host = this.hostService.hostWithScheme;
|
|
790
|
+
}
|
|
791
|
+
apiOptions() {
|
|
792
|
+
return {
|
|
793
|
+
headers: new HttpHeaders({
|
|
794
|
+
'Content-Type': 'application/json'
|
|
795
|
+
}),
|
|
796
|
+
withCredentials: true
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
ping(r) {
|
|
800
|
+
const request = (r.toApiJson) ? r : new PingRequest(r);
|
|
801
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPCloudManager/Ping", request.toApiJson(), this.apiOptions())
|
|
802
|
+
.pipe(map(resp => PingResponse.fromProto(resp)));
|
|
803
|
+
}
|
|
804
|
+
getSiteOverview(r) {
|
|
805
|
+
const request = (r.toApiJson) ? r : new GetSiteOverviewRequest(r);
|
|
806
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPCloudManager/GetSiteOverview", request.toApiJson(), this.apiOptions())
|
|
807
|
+
.pipe(map(resp => GetSiteOverviewResponse.fromProto(resp)));
|
|
808
|
+
}
|
|
809
|
+
getAvailablePhpVersions(r) {
|
|
810
|
+
const request = (r.toApiJson) ? r : new GetAvailablePHPVersionsRequest(r);
|
|
811
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPCloudManager/GetAvailablePHPVersions", request.toApiJson(), this.apiOptions())
|
|
812
|
+
.pipe(map(resp => GetAvailablePHPVersionsResponse.fromProto(resp)));
|
|
813
|
+
}
|
|
814
|
+
purgeCache(r) {
|
|
815
|
+
const request = (r.toApiJson) ? r : new PurgeCacheRequest(r);
|
|
816
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPCloudManager/PurgeCache", request.toApiJson(), this.apiOptions())
|
|
817
|
+
.pipe(map(resp => PurgeCacheResponse.fromProto(resp)));
|
|
818
|
+
}
|
|
819
|
+
setCdnStatus(r) {
|
|
820
|
+
const request = (r.toApiJson) ? r : new SetCDNStatusRequest(r);
|
|
821
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPCloudManager/SetCDNStatus", request.toApiJson(), this.apiOptions())
|
|
822
|
+
.pipe(map(resp => SetCDNStatusResponse.fromProto(resp)));
|
|
823
|
+
}
|
|
824
|
+
getCdnStatus(r) {
|
|
825
|
+
const request = (r.toApiJson) ? r : new GetCDNStatusRequest(r);
|
|
826
|
+
return this.http.post(this._host + "/wp_cloud_manager.v1.WPCloudManager/GetCDNStatus", request.toApiJson(), this.apiOptions())
|
|
827
|
+
.pipe(map(resp => GetCDNStatusResponse.fromProto(resp)));
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
WPCloudManagerApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WPCloudManagerApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
831
|
+
WPCloudManagerApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WPCloudManagerApiService, providedIn: 'root' });
|
|
832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WPCloudManagerApiService, decorators: [{
|
|
833
|
+
type: Injectable,
|
|
834
|
+
args: [{ providedIn: 'root' }]
|
|
835
|
+
}] });
|
|
836
|
+
|
|
837
|
+
// *********************************
|
|
838
|
+
// Code generated by sdkgen
|
|
839
|
+
// DO NOT EDIT!.
|
|
840
|
+
//
|
|
841
|
+
// Index.
|
|
842
|
+
// *********************************
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Generated bundle index. Do not edit.
|
|
846
|
+
*/
|
|
847
|
+
|
|
848
|
+
export { Access, GetAvailablePHPVersionsRequest, GetAvailablePHPVersionsResponse, GetCDNStatusRequest, GetCDNStatusResponse, GetOneClickLoginRequest, GetOneClickLoginResponse, GetSiteDetailsRequest, GetSiteDetailsResponse, GetSiteOptionsRequest, GetSiteOptionsResponse, GetSiteOverviewRequest, GetSiteOverviewResponse, HostService, MCPOptions, PHPVersion, PingRequest, PingResponse, PluginInfo, PurgeCacheRequest, PurgeCacheResponse, SetCDNStatusRequest, SetCDNStatusResponse, SiteDetails, SiteHealthCheckRequest, SiteHealthCheckResponse, SiteOverview, ThemeInfo, WPClientManagerApiService, WPCloudManagerApiService };
|
|
849
|
+
//# sourceMappingURL=vendasta-wp-cloud-manager.mjs.map
|