@newfold/huapi-js 2.1348.0 → 2.1354.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/orval.config.js +4 -0
- package/package.json +1 -1
- package/src/index.d.ts +95 -1
- package/src/index.js +71 -1
- package/src/index.msw.d.ts +7 -1
- package/src/index.msw.js +277 -241
- package/src/index.schemas.d.ts +150 -122
package/src/index.msw.js
CHANGED
|
@@ -4,7 +4,7 @@ import { __awaiter } from "tslib";
|
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Hosting UAPI
|
|
6
6
|
* Hosting UAPI is an API to expose Hosting, Addons, and Site functionality to a customer-facing Front End such as (Account Manager).
|
|
7
|
-
* OpenAPI spec version: 1.
|
|
7
|
+
* OpenAPI spec version: 1.1354.0
|
|
8
8
|
*/
|
|
9
9
|
import { faker } from '@faker-js/faker';
|
|
10
10
|
import { HttpResponse, delay, http } from 'msw';
|
|
@@ -174,6 +174,9 @@ export const getSitesDnsResponseMock = (overrideResponse = {}) => (Object.assign
|
|
|
174
174
|
export const getSitesDomainResponseMock = (overrideResponse = {}) => (Object.assign({ a_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), connected: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), detected: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, undefined]), is_internal: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), nameserver_match: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), wanted: faker.helpers.arrayElement([{ a: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]), ns: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker.word.sample())), undefined]) }, undefined]) }, overrideResponse));
|
|
175
175
|
export const getSitesDomainUrlResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]) }, overrideResponse));
|
|
176
176
|
export const getSitesDomainsCreateResponseMock = (overrideResponse = {}) => (Object.assign({ id: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]), status: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
177
|
+
export const getErrorPagesFetchResponseMock = (overrideResponse = {}) => (Object.assign({ error_page: faker.helpers.arrayElement([faker.word.sample(), undefined]), html_content: faker.helpers.arrayElement([faker.word.sample(), undefined]) }, overrideResponse));
|
|
178
|
+
export const getErrorPagesAddResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
179
|
+
export const getErrorPagesDeleteResponseMock = (overrideResponse = {}) => (Object.assign({}, overrideResponse));
|
|
177
180
|
export const getSiteIpaddressListResponseMock = () => (Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ beginning_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), ending_ip: faker.helpers.arrayElement([faker.word.sample(), undefined]), server_setting: faker.helpers.arrayElement([faker.word.sample(), undefined]) })));
|
|
178
181
|
export const getSiteIpaddressResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
179
182
|
export const getAddSiteIpaddressResponseMock = (overrideResponse = {}) => (Object.assign({ success: faker.helpers.arrayElement([faker.number.int({ min: undefined, max: undefined }), undefined]) }, overrideResponse));
|
|
@@ -270,7 +273,7 @@ export const getSitesListV3ResponseMock = (overrideResponse = {}) => (Object.ass
|
|
|
270
273
|
export const getSshKeyListV4ResponseMock = (overrideResponse = {}) => (Object.assign({ rows: faker.helpers.arrayElement([Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ authorize: faker.helpers.arrayElement([faker.datatype.boolean(), undefined]), created_at: faker.helpers.arrayElement([faker.word.sample(), undefined]), name: faker.helpers.arrayElement([faker.word.sample(), undefined]), type: faker.helpers.arrayElement([faker.word.sample(), undefined]) })), undefined]) }, overrideResponse));
|
|
271
274
|
export const getAccountEventListMockHandler = (overrideResponse) => {
|
|
272
275
|
return http.get('*/v1/account/events', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
273
|
-
yield delay(
|
|
276
|
+
yield delay(0);
|
|
274
277
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
275
278
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
276
279
|
: getAccountEventListResponseMock()), { status: 200,
|
|
@@ -280,7 +283,7 @@ export const getAccountEventListMockHandler = (overrideResponse) => {
|
|
|
280
283
|
};
|
|
281
284
|
export const getAccountHostingListMockHandler = (overrideResponse) => {
|
|
282
285
|
return http.get('*/v1/account/hosting', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
283
|
-
yield delay(
|
|
286
|
+
yield delay(0);
|
|
284
287
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
285
288
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
286
289
|
: getAccountHostingListResponseMock()), { status: 200,
|
|
@@ -290,7 +293,7 @@ export const getAccountHostingListMockHandler = (overrideResponse) => {
|
|
|
290
293
|
};
|
|
291
294
|
export const getAccountPublicKeysMockHandler = (overrideResponse) => {
|
|
292
295
|
return http.get('*/v1/account/public-keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
293
|
-
yield delay(
|
|
296
|
+
yield delay(0);
|
|
294
297
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
295
298
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
296
299
|
: getAccountPublicKeysResponseMock()), { status: 200,
|
|
@@ -300,7 +303,7 @@ export const getAccountPublicKeysMockHandler = (overrideResponse) => {
|
|
|
300
303
|
};
|
|
301
304
|
export const getAccountPublicKeyCreateMockHandler = (overrideResponse) => {
|
|
302
305
|
return http.post('*/v1/account/public-keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
303
|
-
yield delay(
|
|
306
|
+
yield delay(0);
|
|
304
307
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
305
308
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
306
309
|
: getAccountPublicKeyCreateResponseMock()), { status: 200,
|
|
@@ -310,7 +313,7 @@ export const getAccountPublicKeyCreateMockHandler = (overrideResponse) => {
|
|
|
310
313
|
};
|
|
311
314
|
export const getAccountPublicKeyMockHandler = (overrideResponse) => {
|
|
312
315
|
return http.get('*/v1/account/public-keys/:publicKeyId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
313
|
-
yield delay(
|
|
316
|
+
yield delay(0);
|
|
314
317
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
315
318
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
316
319
|
: getAccountPublicKeyResponseMock()), { status: 200,
|
|
@@ -320,7 +323,7 @@ export const getAccountPublicKeyMockHandler = (overrideResponse) => {
|
|
|
320
323
|
};
|
|
321
324
|
export const getAccountPublicKeyToggleMockHandler = (overrideResponse) => {
|
|
322
325
|
return http.post('*/v1/account/public-keys/:publicKeyId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
323
|
-
yield delay(
|
|
326
|
+
yield delay(0);
|
|
324
327
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
325
328
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
326
329
|
: getAccountPublicKeyToggleResponseMock()), { status: 200,
|
|
@@ -330,7 +333,7 @@ export const getAccountPublicKeyToggleMockHandler = (overrideResponse) => {
|
|
|
330
333
|
};
|
|
331
334
|
export const getAccountPublicKeyDeleteMockHandler = (overrideResponse) => {
|
|
332
335
|
return http.delete('*/v1/account/public-keys/:publicKeyId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
333
|
-
yield delay(
|
|
336
|
+
yield delay(0);
|
|
334
337
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
335
338
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
336
339
|
: getAccountPublicKeyDeleteResponseMock()), { status: 200,
|
|
@@ -340,7 +343,7 @@ export const getAccountPublicKeyDeleteMockHandler = (overrideResponse) => {
|
|
|
340
343
|
};
|
|
341
344
|
export const getCodeguardBackupListMockHandler = (overrideResponse) => {
|
|
342
345
|
return http.get('*/v1/addons/codeguard/:addonId/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
343
|
-
yield delay(
|
|
346
|
+
yield delay(0);
|
|
344
347
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
345
348
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
346
349
|
: getCodeguardBackupListResponseMock()), { status: 200,
|
|
@@ -350,7 +353,7 @@ export const getCodeguardBackupListMockHandler = (overrideResponse) => {
|
|
|
350
353
|
};
|
|
351
354
|
export const getCodeguardBackupCreateMockHandler = (overrideResponse) => {
|
|
352
355
|
return http.post('*/v1/addons/codeguard/:addonId/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
353
|
-
yield delay(
|
|
356
|
+
yield delay(0);
|
|
354
357
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
355
358
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
356
359
|
: getCodeguardBackupCreateResponseMock()), { status: 200,
|
|
@@ -360,7 +363,7 @@ export const getCodeguardBackupCreateMockHandler = (overrideResponse) => {
|
|
|
360
363
|
};
|
|
361
364
|
export const getCodeguardBackupDownloadMockHandler = (overrideResponse) => {
|
|
362
365
|
return http.post('*/v1/addons/codeguard/:addonId/backups/download', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
363
|
-
yield delay(
|
|
366
|
+
yield delay(0);
|
|
364
367
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
365
368
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
366
369
|
: getCodeguardBackupDownloadResponseMock()), { status: 200,
|
|
@@ -370,7 +373,7 @@ export const getCodeguardBackupDownloadMockHandler = (overrideResponse) => {
|
|
|
370
373
|
};
|
|
371
374
|
export const getCodeguardBackupRestoreMockHandler = (overrideResponse) => {
|
|
372
375
|
return http.post('*/v1/addons/codeguard/:addonId/backups/restore', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
373
|
-
yield delay(
|
|
376
|
+
yield delay(0);
|
|
374
377
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
375
378
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
376
379
|
: getCodeguardBackupRestoreResponseMock()), { status: 200,
|
|
@@ -380,7 +383,7 @@ export const getCodeguardBackupRestoreMockHandler = (overrideResponse) => {
|
|
|
380
383
|
};
|
|
381
384
|
export const getCodeguardDatabaseListMockHandler = (overrideResponse) => {
|
|
382
385
|
return http.get('*/v1/addons/codeguard/:addonId/databases', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
383
|
-
yield delay(
|
|
386
|
+
yield delay(0);
|
|
384
387
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
385
388
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
386
389
|
: getCodeguardDatabaseListResponseMock()), { status: 200,
|
|
@@ -390,7 +393,7 @@ export const getCodeguardDatabaseListMockHandler = (overrideResponse) => {
|
|
|
390
393
|
};
|
|
391
394
|
export const getCodeguardDatabaseBackupListMockHandler = (overrideResponse) => {
|
|
392
395
|
return http.get('*/v1/addons/codeguard/:addonId/databases/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
393
|
-
yield delay(
|
|
396
|
+
yield delay(0);
|
|
394
397
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
395
398
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
396
399
|
: getCodeguardDatabaseBackupListResponseMock()), { status: 200,
|
|
@@ -400,7 +403,7 @@ export const getCodeguardDatabaseBackupListMockHandler = (overrideResponse) => {
|
|
|
400
403
|
};
|
|
401
404
|
export const getCodeguardDatabaseBackupCreateMockHandler = (overrideResponse) => {
|
|
402
405
|
return http.post('*/v1/addons/codeguard/:addonId/databases/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
403
|
-
yield delay(
|
|
406
|
+
yield delay(0);
|
|
404
407
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
405
408
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
406
409
|
: getCodeguardDatabaseBackupCreateResponseMock()), { status: 200,
|
|
@@ -410,7 +413,7 @@ export const getCodeguardDatabaseBackupCreateMockHandler = (overrideResponse) =>
|
|
|
410
413
|
};
|
|
411
414
|
export const getCodeguardDatabaseBackupRestoreMockHandler = (overrideResponse) => {
|
|
412
415
|
return http.post('*/v1/addons/codeguard/:addonId/databases/backups/restore', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
413
|
-
yield delay(
|
|
416
|
+
yield delay(0);
|
|
414
417
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
415
418
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
416
419
|
: getCodeguardDatabaseBackupRestoreResponseMock()), { status: 200,
|
|
@@ -420,7 +423,7 @@ export const getCodeguardDatabaseBackupRestoreMockHandler = (overrideResponse) =
|
|
|
420
423
|
};
|
|
421
424
|
export const getCodeguardLoginLinkMockHandler = (overrideResponse) => {
|
|
422
425
|
return http.get('*/v1/addons/codeguard/:addonId/login', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
423
|
-
yield delay(
|
|
426
|
+
yield delay(0);
|
|
424
427
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
425
428
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
426
429
|
: getCodeguardLoginLinkResponseMock()), { status: 200,
|
|
@@ -430,7 +433,7 @@ export const getCodeguardLoginLinkMockHandler = (overrideResponse) => {
|
|
|
430
433
|
};
|
|
431
434
|
export const getCodeguardPlanInfoMockHandler = (overrideResponse) => {
|
|
432
435
|
return http.get('*/v1/addons/codeguard/:addonId/plan', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
433
|
-
yield delay(
|
|
436
|
+
yield delay(0);
|
|
434
437
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
435
438
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
436
439
|
: getCodeguardPlanInfoResponseMock()), { status: 200,
|
|
@@ -440,7 +443,7 @@ export const getCodeguardPlanInfoMockHandler = (overrideResponse) => {
|
|
|
440
443
|
};
|
|
441
444
|
export const getCodeguardWebsiteListMockHandler = (overrideResponse) => {
|
|
442
445
|
return http.get('*/v1/addons/codeguard/:addonId/websites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
443
|
-
yield delay(
|
|
446
|
+
yield delay(0);
|
|
444
447
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
445
448
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
446
449
|
: getCodeguardWebsiteListResponseMock()), { status: 200,
|
|
@@ -450,7 +453,7 @@ export const getCodeguardWebsiteListMockHandler = (overrideResponse) => {
|
|
|
450
453
|
};
|
|
451
454
|
export const getCodeguardWebsiteBackupListMockHandler = (overrideResponse) => {
|
|
452
455
|
return http.get('*/v1/addons/codeguard/:addonId/websites/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
453
|
-
yield delay(
|
|
456
|
+
yield delay(0);
|
|
454
457
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
455
458
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
456
459
|
: getCodeguardWebsiteBackupListResponseMock()), { status: 200,
|
|
@@ -460,7 +463,7 @@ export const getCodeguardWebsiteBackupListMockHandler = (overrideResponse) => {
|
|
|
460
463
|
};
|
|
461
464
|
export const getCodeguardWebsiteBackupCreateMockHandler = (overrideResponse) => {
|
|
462
465
|
return http.post('*/v1/addons/codeguard/:addonId/websites/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
463
|
-
yield delay(
|
|
466
|
+
yield delay(0);
|
|
464
467
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
465
468
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
466
469
|
: getCodeguardWebsiteBackupCreateResponseMock()), { status: 200,
|
|
@@ -470,7 +473,7 @@ export const getCodeguardWebsiteBackupCreateMockHandler = (overrideResponse) =>
|
|
|
470
473
|
};
|
|
471
474
|
export const getCodeguardWebsiteBackupRestoreMockHandler = (overrideResponse) => {
|
|
472
475
|
return http.post('*/v1/addons/codeguard/:addonId/websites/backups/restore', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
473
|
-
yield delay(
|
|
476
|
+
yield delay(0);
|
|
474
477
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
475
478
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
476
479
|
: getCodeguardWebsiteBackupRestoreResponseMock()), { status: 200,
|
|
@@ -480,7 +483,7 @@ export const getCodeguardWebsiteBackupRestoreMockHandler = (overrideResponse) =>
|
|
|
480
483
|
};
|
|
481
484
|
export const getAddonsSitelockSsoMockHandler = (overrideResponse) => {
|
|
482
485
|
return http.get('*/v1/addons/sitelock/:addonId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
483
|
-
yield delay(
|
|
486
|
+
yield delay(0);
|
|
484
487
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
485
488
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
486
489
|
: getAddonsSitelockSsoResponseMock()), { status: 200,
|
|
@@ -490,7 +493,7 @@ export const getAddonsSitelockSsoMockHandler = (overrideResponse) => {
|
|
|
490
493
|
};
|
|
491
494
|
export const getBackupInitiateMockHandler = (overrideResponse) => {
|
|
492
495
|
return http.post('*/v1/addons/:addonId/backup', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
493
|
-
yield delay(
|
|
496
|
+
yield delay(0);
|
|
494
497
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
495
498
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
496
499
|
: getBackupInitiateResponseMock()), { status: 200,
|
|
@@ -500,7 +503,7 @@ export const getBackupInitiateMockHandler = (overrideResponse) => {
|
|
|
500
503
|
};
|
|
501
504
|
export const getBackupStatusMockHandler = (overrideResponse) => {
|
|
502
505
|
return http.get('*/v1/addons/:addonId/backup', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
503
|
-
yield delay(
|
|
506
|
+
yield delay(0);
|
|
504
507
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
505
508
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
506
509
|
: getBackupStatusResponseMock()), { status: 200,
|
|
@@ -510,7 +513,7 @@ export const getBackupStatusMockHandler = (overrideResponse) => {
|
|
|
510
513
|
};
|
|
511
514
|
export const getBackupListMockHandler = (overrideResponse) => {
|
|
512
515
|
return http.get('*/v1/addons/:addonId/backup/list', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
513
|
-
yield delay(
|
|
516
|
+
yield delay(0);
|
|
514
517
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
515
518
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
516
519
|
: getBackupListResponseMock()), { status: 200,
|
|
@@ -520,7 +523,7 @@ export const getBackupListMockHandler = (overrideResponse) => {
|
|
|
520
523
|
};
|
|
521
524
|
export const getAddonsCloudflareMockHandler = (overrideResponse) => {
|
|
522
525
|
return http.delete('*/v1/addons/:addonId/cloudflare', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
523
|
-
yield delay(
|
|
526
|
+
yield delay(0);
|
|
524
527
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
525
528
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
526
529
|
: getAddonsCloudflareResponseMock()), { status: 200,
|
|
@@ -530,7 +533,7 @@ export const getAddonsCloudflareMockHandler = (overrideResponse) => {
|
|
|
530
533
|
};
|
|
531
534
|
export const getAddonsInfoMockHandler = (overrideResponse) => {
|
|
532
535
|
return http.get('*/v1/addons/:addonId/info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
533
|
-
yield delay(
|
|
536
|
+
yield delay(0);
|
|
534
537
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
535
538
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
536
539
|
: getAddonsInfoResponseMock()), { status: 200,
|
|
@@ -540,7 +543,7 @@ export const getAddonsInfoMockHandler = (overrideResponse) => {
|
|
|
540
543
|
};
|
|
541
544
|
export const getAddonsJetpackValidateMockHandler = (overrideResponse) => {
|
|
542
545
|
return http.post('*/v1/addons/:addonId/jetpack/validate', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
543
|
-
yield delay(
|
|
546
|
+
yield delay(0);
|
|
544
547
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
545
548
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
546
549
|
: getAddonsJetpackValidateResponseMock()), { status: 200,
|
|
@@ -550,7 +553,7 @@ export const getAddonsJetpackValidateMockHandler = (overrideResponse) => {
|
|
|
550
553
|
};
|
|
551
554
|
export const getAddonsSpamexpertsSsoMockHandler = (overrideResponse) => {
|
|
552
555
|
return http.get('*/v1/addons/:addonId/spamexperts/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
553
|
-
yield delay(
|
|
556
|
+
yield delay(0);
|
|
554
557
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
555
558
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
556
559
|
: getAddonsSpamexpertsSsoResponseMock()), { status: 200,
|
|
@@ -560,7 +563,7 @@ export const getAddonsSpamexpertsSsoMockHandler = (overrideResponse) => {
|
|
|
560
563
|
};
|
|
561
564
|
export const getWebzaiSsoMockHandler = (overrideResponse) => {
|
|
562
565
|
return http.get('*/v1/addons/:addonId/webzai/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
563
|
-
yield delay(
|
|
566
|
+
yield delay(0);
|
|
564
567
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
565
568
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
566
569
|
: getWebzaiSsoResponseMock()), { status: 200,
|
|
@@ -570,7 +573,7 @@ export const getWebzaiSsoMockHandler = (overrideResponse) => {
|
|
|
570
573
|
};
|
|
571
574
|
export const getWeeblySsoMockHandler = (overrideResponse) => {
|
|
572
575
|
return http.get('*/v1/addons/:addonId/weebly/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
573
|
-
yield delay(
|
|
576
|
+
yield delay(0);
|
|
574
577
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
575
578
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
576
579
|
: getWeeblySsoResponseMock()), { status: 200,
|
|
@@ -580,7 +583,7 @@ export const getWeeblySsoMockHandler = (overrideResponse) => {
|
|
|
580
583
|
};
|
|
581
584
|
export const getDomainInfoMockHandler = (overrideResponse) => {
|
|
582
585
|
return http.get('*/v1/domains/:domainId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
583
|
-
yield delay(
|
|
586
|
+
yield delay(0);
|
|
584
587
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
585
588
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
586
589
|
: getDomainInfoResponseMock()), { status: 200,
|
|
@@ -590,7 +593,7 @@ export const getDomainInfoMockHandler = (overrideResponse) => {
|
|
|
590
593
|
};
|
|
591
594
|
export const getDomainCertsMockHandler = (overrideResponse) => {
|
|
592
595
|
return http.get('*/v1/domains/:domainId/certs', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
593
|
-
yield delay(
|
|
596
|
+
yield delay(0);
|
|
594
597
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
595
598
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
596
599
|
: getDomainCertsResponseMock()), { status: 200,
|
|
@@ -600,7 +603,7 @@ export const getDomainCertsMockHandler = (overrideResponse) => {
|
|
|
600
603
|
};
|
|
601
604
|
export const getDomainCertInstallMockHandler = (overrideResponse) => {
|
|
602
605
|
return http.post('*/v1/domains/:domainId/certs', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
603
|
-
yield delay(
|
|
606
|
+
yield delay(0);
|
|
604
607
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
605
608
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
606
609
|
: getDomainCertInstallResponseMock()), { status: 200,
|
|
@@ -610,7 +613,7 @@ export const getDomainCertInstallMockHandler = (overrideResponse) => {
|
|
|
610
613
|
};
|
|
611
614
|
export const getDomainCertUpdateMockHandler = (overrideResponse) => {
|
|
612
615
|
return http.put('*/v1/domains/:domainId/certs', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
613
|
-
yield delay(
|
|
616
|
+
yield delay(0);
|
|
614
617
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
615
618
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
616
619
|
: getDomainCertUpdateResponseMock()), { status: 200,
|
|
@@ -620,7 +623,7 @@ export const getDomainCertUpdateMockHandler = (overrideResponse) => {
|
|
|
620
623
|
};
|
|
621
624
|
export const getDomainCertUninstallMockHandler = (overrideResponse) => {
|
|
622
625
|
return http.delete('*/v1/domains/:domainId/certs', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
623
|
-
yield delay(
|
|
626
|
+
yield delay(0);
|
|
624
627
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
625
628
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
626
629
|
: getDomainCertUninstallResponseMock()), { status: 200,
|
|
@@ -630,7 +633,7 @@ export const getDomainCertUninstallMockHandler = (overrideResponse) => {
|
|
|
630
633
|
};
|
|
631
634
|
export const getDomainDnseditorMockHandler = (overrideResponse) => {
|
|
632
635
|
return http.delete('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
633
|
-
yield delay(
|
|
636
|
+
yield delay(0);
|
|
634
637
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
635
638
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
636
639
|
: getDomainDnseditorResponseMock()), { status: 200,
|
|
@@ -640,7 +643,7 @@ export const getDomainDnseditorMockHandler = (overrideResponse) => {
|
|
|
640
643
|
};
|
|
641
644
|
export const getDomainDnseditorListMockHandler = (overrideResponse) => {
|
|
642
645
|
return http.get('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
643
|
-
yield delay(
|
|
646
|
+
yield delay(0);
|
|
644
647
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
645
648
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
646
649
|
: getDomainDnseditorListResponseMock()), { status: 200,
|
|
@@ -650,7 +653,7 @@ export const getDomainDnseditorListMockHandler = (overrideResponse) => {
|
|
|
650
653
|
};
|
|
651
654
|
export const getDomainDnseditorAddMockHandler = (overrideResponse) => {
|
|
652
655
|
return http.post('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
653
|
-
yield delay(
|
|
656
|
+
yield delay(0);
|
|
654
657
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
655
658
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
656
659
|
: getDomainDnseditorAddResponseMock()), { status: 200,
|
|
@@ -660,7 +663,7 @@ export const getDomainDnseditorAddMockHandler = (overrideResponse) => {
|
|
|
660
663
|
};
|
|
661
664
|
export const getDomainDnseditorEditMockHandler = (overrideResponse) => {
|
|
662
665
|
return http.put('*/v1/domains/:domainId/dns-editor', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
663
|
-
yield delay(
|
|
666
|
+
yield delay(0);
|
|
664
667
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
665
668
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
666
669
|
: getDomainDnseditorEditResponseMock()), { status: 200,
|
|
@@ -670,7 +673,7 @@ export const getDomainDnseditorEditMockHandler = (overrideResponse) => {
|
|
|
670
673
|
};
|
|
671
674
|
export const getDomainDnszoneResetMockHandler = (overrideResponse) => {
|
|
672
675
|
return http.get('*/v1/domains/:domainId/dns-zone-reset', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
673
|
-
yield delay(
|
|
676
|
+
yield delay(0);
|
|
674
677
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
675
678
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
676
679
|
: getDomainDnszoneResetResponseMock()), { status: 200,
|
|
@@ -680,7 +683,7 @@ export const getDomainDnszoneResetMockHandler = (overrideResponse) => {
|
|
|
680
683
|
};
|
|
681
684
|
export const getAccessLogsMockHandler = (overrideResponse) => {
|
|
682
685
|
return http.get('*/v1/domains/:domainId/logs/access', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
683
|
-
yield delay(
|
|
686
|
+
yield delay(0);
|
|
684
687
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
685
688
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
686
689
|
: getAccessLogsResponseMock()), { status: 200,
|
|
@@ -690,7 +693,7 @@ export const getAccessLogsMockHandler = (overrideResponse) => {
|
|
|
690
693
|
};
|
|
691
694
|
export const getDomainUnassignMockHandler = (overrideResponse) => {
|
|
692
695
|
return http.post('*/v1/domains/:domainId/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
693
|
-
yield delay(
|
|
696
|
+
yield delay(0);
|
|
694
697
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
695
698
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
696
699
|
: getDomainUnassignResponseMock()), { status: 200,
|
|
@@ -700,7 +703,7 @@ export const getDomainUnassignMockHandler = (overrideResponse) => {
|
|
|
700
703
|
};
|
|
701
704
|
export const getDomainZoneeditorUrlMockHandler = (overrideResponse) => {
|
|
702
705
|
return http.get('*/v1/domains/:domainId/zoneeditor-url', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
703
|
-
yield delay(
|
|
706
|
+
yield delay(0);
|
|
704
707
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
705
708
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
706
709
|
: getDomainZoneeditorUrlResponseMock()), { status: 200,
|
|
@@ -710,7 +713,7 @@ export const getDomainZoneeditorUrlMockHandler = (overrideResponse) => {
|
|
|
710
713
|
};
|
|
711
714
|
export const getHostingAccountMockHandler = (overrideResponse) => {
|
|
712
715
|
return http.get('*/v1/hosting/:hostingId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
713
|
-
yield delay(
|
|
716
|
+
yield delay(0);
|
|
714
717
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
715
718
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
716
719
|
: getHostingAccountResponseMock()), { status: 200,
|
|
@@ -720,7 +723,7 @@ export const getHostingAccountMockHandler = (overrideResponse) => {
|
|
|
720
723
|
};
|
|
721
724
|
export const getActivityLogMockHandler = (overrideResponse) => {
|
|
722
725
|
return http.get('*/v1/hosting/:hostingId/activity-log', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
723
|
-
yield delay(
|
|
726
|
+
yield delay(0);
|
|
724
727
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
725
728
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
726
729
|
: getActivityLogResponseMock()), { status: 200,
|
|
@@ -730,7 +733,7 @@ export const getActivityLogMockHandler = (overrideResponse) => {
|
|
|
730
733
|
};
|
|
731
734
|
export const getHostingAddonsMockHandler = (overrideResponse) => {
|
|
732
735
|
return http.get('*/v1/hosting/:hostingId/addons', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
733
|
-
yield delay(
|
|
736
|
+
yield delay(0);
|
|
734
737
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
735
738
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
736
739
|
: getHostingAddonsResponseMock()), { status: 200,
|
|
@@ -740,7 +743,7 @@ export const getHostingAddonsMockHandler = (overrideResponse) => {
|
|
|
740
743
|
};
|
|
741
744
|
export const getHostingAdvancedDnsMockHandler = (overrideResponse) => {
|
|
742
745
|
return http.get('*/v1/hosting/:hostingId/advanced/dns', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
743
|
-
yield delay(
|
|
746
|
+
yield delay(0);
|
|
744
747
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
745
748
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
746
749
|
: getHostingAdvancedDnsResponseMock()), { status: 200,
|
|
@@ -750,7 +753,7 @@ export const getHostingAdvancedDnsMockHandler = (overrideResponse) => {
|
|
|
750
753
|
};
|
|
751
754
|
export const getHostingAdvancedDnsUpdateMockHandler = (overrideResponse) => {
|
|
752
755
|
return http.post('*/v1/hosting/:hostingId/advanced/dns', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
753
|
-
yield delay(
|
|
756
|
+
yield delay(0);
|
|
754
757
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
755
758
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
756
759
|
: getHostingAdvancedDnsUpdateResponseMock()), { status: 200,
|
|
@@ -760,7 +763,7 @@ export const getHostingAdvancedDnsUpdateMockHandler = (overrideResponse) => {
|
|
|
760
763
|
};
|
|
761
764
|
export const getHostingAdvancedDomainServicesCheckMockHandler = (overrideResponse) => {
|
|
762
765
|
return http.get('*/v1/hosting/:hostingId/advanced/domain/services', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
763
|
-
yield delay(
|
|
766
|
+
yield delay(0);
|
|
764
767
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
765
768
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
766
769
|
: getHostingAdvancedDomainServicesCheckResponseMock()), { status: 200,
|
|
@@ -770,7 +773,7 @@ export const getHostingAdvancedDomainServicesCheckMockHandler = (overrideRespons
|
|
|
770
773
|
};
|
|
771
774
|
export const getHostingAdvancedDomainServicesMockHandler = (overrideResponse) => {
|
|
772
775
|
return http.post('*/v1/hosting/:hostingId/advanced/domain/services', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
773
|
-
yield delay(
|
|
776
|
+
yield delay(0);
|
|
774
777
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
775
778
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
776
779
|
: getHostingAdvancedDomainServicesResponseMock()), { status: 200,
|
|
@@ -780,7 +783,7 @@ export const getHostingAdvancedDomainServicesMockHandler = (overrideResponse) =>
|
|
|
780
783
|
};
|
|
781
784
|
export const getHostingAdvancedServerMockHandler = (overrideResponse) => {
|
|
782
785
|
return http.get('*/v1/hosting/:hostingId/advanced/server', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
783
|
-
yield delay(
|
|
786
|
+
yield delay(0);
|
|
784
787
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
785
788
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
786
789
|
: getHostingAdvancedServerResponseMock()), { status: 200,
|
|
@@ -790,7 +793,7 @@ export const getHostingAdvancedServerMockHandler = (overrideResponse) => {
|
|
|
790
793
|
};
|
|
791
794
|
export const getHostingAdvancedServerStatusMockHandler = (overrideResponse) => {
|
|
792
795
|
return http.put('*/v1/hosting/:hostingId/advanced/server', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
793
|
-
yield delay(
|
|
796
|
+
yield delay(0);
|
|
794
797
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
795
798
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
796
799
|
: getHostingAdvancedServerStatusResponseMock()), { status: 200,
|
|
@@ -800,7 +803,7 @@ export const getHostingAdvancedServerStatusMockHandler = (overrideResponse) => {
|
|
|
800
803
|
};
|
|
801
804
|
export const getHostingAdvancedPasswordMockHandler = (overrideResponse) => {
|
|
802
805
|
return http.put('*/v1/hosting/:hostingId/advanced/server/password', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
803
|
-
yield delay(
|
|
806
|
+
yield delay(0);
|
|
804
807
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
805
808
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
806
809
|
: getHostingAdvancedPasswordResponseMock()), { status: 200,
|
|
@@ -810,7 +813,7 @@ export const getHostingAdvancedPasswordMockHandler = (overrideResponse) => {
|
|
|
810
813
|
};
|
|
811
814
|
export const getHostingAdvancedSsoWhmMockHandler = (overrideResponse) => {
|
|
812
815
|
return http.get('*/v1/hosting/:hostingId/advanced/sso_whm', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
813
|
-
yield delay(
|
|
816
|
+
yield delay(0);
|
|
814
817
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
815
818
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
816
819
|
: getHostingAdvancedSsoWhmResponseMock()), { status: 200,
|
|
@@ -820,7 +823,7 @@ export const getHostingAdvancedSsoWhmMockHandler = (overrideResponse) => {
|
|
|
820
823
|
};
|
|
821
824
|
export const getHostingAdvancedSystemConsoleMockHandler = (overrideResponse) => {
|
|
822
825
|
return http.get('*/v1/hosting/:hostingId/advanced/system-console', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
823
|
-
yield delay(
|
|
826
|
+
yield delay(0);
|
|
824
827
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
825
828
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
826
829
|
: getHostingAdvancedSystemConsoleResponseMock()), { status: 200,
|
|
@@ -830,7 +833,7 @@ export const getHostingAdvancedSystemConsoleMockHandler = (overrideResponse) =>
|
|
|
830
833
|
};
|
|
831
834
|
export const getHostingCapabilitiesMockHandler = (overrideResponse) => {
|
|
832
835
|
return http.get('*/v1/hosting/:hostingId/capabilities', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
833
|
-
yield delay(
|
|
836
|
+
yield delay(0);
|
|
834
837
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
835
838
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
836
839
|
: getHostingCapabilitiesResponseMock()), { status: 200,
|
|
@@ -840,7 +843,7 @@ export const getHostingCapabilitiesMockHandler = (overrideResponse) => {
|
|
|
840
843
|
};
|
|
841
844
|
export const getAddonCloudflareMockHandler = (overrideResponse) => {
|
|
842
845
|
return http.post('*/v1/hosting/:hostingId/cloudflare', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
843
|
-
yield delay(
|
|
846
|
+
yield delay(0);
|
|
844
847
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
845
848
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
846
849
|
: getAddonCloudflareResponseMock()), { status: 200,
|
|
@@ -850,7 +853,7 @@ export const getAddonCloudflareMockHandler = (overrideResponse) => {
|
|
|
850
853
|
};
|
|
851
854
|
export const getListCronsMockHandler = (overrideResponse) => {
|
|
852
855
|
return http.get('*/v1/hosting/:hostingId/crontab', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
853
|
-
yield delay(
|
|
856
|
+
yield delay(0);
|
|
854
857
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
855
858
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
856
859
|
: getListCronsResponseMock()), { status: 200,
|
|
@@ -860,7 +863,7 @@ export const getListCronsMockHandler = (overrideResponse) => {
|
|
|
860
863
|
};
|
|
861
864
|
export const getAddCronMockHandler = (overrideResponse) => {
|
|
862
865
|
return http.post('*/v1/hosting/:hostingId/crontab', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
863
|
-
yield delay(
|
|
866
|
+
yield delay(0);
|
|
864
867
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
865
868
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
866
869
|
: getAddCronResponseMock()), { status: 200,
|
|
@@ -870,7 +873,7 @@ export const getAddCronMockHandler = (overrideResponse) => {
|
|
|
870
873
|
};
|
|
871
874
|
export const getUpdateCronMockHandler = (overrideResponse) => {
|
|
872
875
|
return http.put('*/v1/hosting/:hostingId/crontab', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
873
|
-
yield delay(
|
|
876
|
+
yield delay(0);
|
|
874
877
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
875
878
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
876
879
|
: getUpdateCronResponseMock()), { status: 200,
|
|
@@ -880,7 +883,7 @@ export const getUpdateCronMockHandler = (overrideResponse) => {
|
|
|
880
883
|
};
|
|
881
884
|
export const getCronMockHandler = (overrideResponse) => {
|
|
882
885
|
return http.delete('*/v1/hosting/:hostingId/crontab', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
883
|
-
yield delay(
|
|
886
|
+
yield delay(0);
|
|
884
887
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
885
888
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
886
889
|
: getCronResponseMock()), { status: 200,
|
|
@@ -890,7 +893,7 @@ export const getCronMockHandler = (overrideResponse) => {
|
|
|
890
893
|
};
|
|
891
894
|
export const getCronLastRunMockHandler = (overrideResponse) => {
|
|
892
895
|
return http.get('*/v1/hosting/:hostingId/crontab/last-run', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
893
|
-
yield delay(
|
|
896
|
+
yield delay(0);
|
|
894
897
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
895
898
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
896
899
|
: getCronLastRunResponseMock()), { status: 200,
|
|
@@ -900,7 +903,7 @@ export const getCronLastRunMockHandler = (overrideResponse) => {
|
|
|
900
903
|
};
|
|
901
904
|
export const getDbAddMockHandler = (overrideResponse) => {
|
|
902
905
|
return http.post('*/v1/hosting/:hostingId/db', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
903
|
-
yield delay(
|
|
906
|
+
yield delay(0);
|
|
904
907
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
905
908
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
906
909
|
: getDbAddResponseMock()), { status: 200,
|
|
@@ -910,7 +913,7 @@ export const getDbAddMockHandler = (overrideResponse) => {
|
|
|
910
913
|
};
|
|
911
914
|
export const getDbMockHandler = (overrideResponse) => {
|
|
912
915
|
return http.delete('*/v1/hosting/:hostingId/db', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
913
|
-
yield delay(
|
|
916
|
+
yield delay(0);
|
|
914
917
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
915
918
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
916
919
|
: getDbResponseMock()), { status: 200,
|
|
@@ -920,7 +923,7 @@ export const getDbMockHandler = (overrideResponse) => {
|
|
|
920
923
|
};
|
|
921
924
|
export const getDbListMockHandler = (overrideResponse) => {
|
|
922
925
|
return http.get('*/v1/hosting/:hostingId/db', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
923
|
-
yield delay(
|
|
926
|
+
yield delay(0);
|
|
924
927
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
925
928
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
926
929
|
: getDbListResponseMock()), { status: 200,
|
|
@@ -930,7 +933,7 @@ export const getDbListMockHandler = (overrideResponse) => {
|
|
|
930
933
|
};
|
|
931
934
|
export const getHostingDbAuthorizedHostsMockHandler = (overrideResponse) => {
|
|
932
935
|
return http.get('*/v1/hosting/:hostingId/db/authorized-hosts', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
933
|
-
yield delay(
|
|
936
|
+
yield delay(0);
|
|
934
937
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
935
938
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
936
939
|
: getHostingDbAuthorizedHostsResponseMock()), { status: 200,
|
|
@@ -940,7 +943,7 @@ export const getHostingDbAuthorizedHostsMockHandler = (overrideResponse) => {
|
|
|
940
943
|
};
|
|
941
944
|
export const getHostingDbAuthorizedHostsAddMockHandler = (overrideResponse) => {
|
|
942
945
|
return http.post('*/v1/hosting/:hostingId/db/authorized-hosts', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
943
|
-
yield delay(
|
|
946
|
+
yield delay(0);
|
|
944
947
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
945
948
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
946
949
|
: getHostingDbAuthorizedHostsAddResponseMock()), { status: 200,
|
|
@@ -950,7 +953,7 @@ export const getHostingDbAuthorizedHostsAddMockHandler = (overrideResponse) => {
|
|
|
950
953
|
};
|
|
951
954
|
export const getHostingDbAuthorizedHostsUpdateMockHandler = (overrideResponse) => {
|
|
952
955
|
return http.put('*/v1/hosting/:hostingId/db/authorized-hosts', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
953
|
-
yield delay(
|
|
956
|
+
yield delay(0);
|
|
954
957
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
955
958
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
956
959
|
: getHostingDbAuthorizedHostsUpdateResponseMock()), { status: 200,
|
|
@@ -960,7 +963,7 @@ export const getHostingDbAuthorizedHostsUpdateMockHandler = (overrideResponse) =
|
|
|
960
963
|
};
|
|
961
964
|
export const getHostingDbAuthorizedHostsDeleteMockHandler = (overrideResponse) => {
|
|
962
965
|
return http.delete('*/v1/hosting/:hostingId/db/authorized-hosts', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
963
|
-
yield delay(
|
|
966
|
+
yield delay(0);
|
|
964
967
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
965
968
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
966
969
|
: getHostingDbAuthorizedHostsDeleteResponseMock()), { status: 200,
|
|
@@ -970,7 +973,7 @@ export const getHostingDbAuthorizedHostsDeleteMockHandler = (overrideResponse) =
|
|
|
970
973
|
};
|
|
971
974
|
export const getDbCheckDatabaseMockHandler = (overrideResponse) => {
|
|
972
975
|
return http.post('*/v1/hosting/:hostingId/db/check', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
973
|
-
yield delay(
|
|
976
|
+
yield delay(0);
|
|
974
977
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
975
978
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
976
979
|
: getDbCheckDatabaseResponseMock()), { status: 200,
|
|
@@ -980,7 +983,7 @@ export const getDbCheckDatabaseMockHandler = (overrideResponse) => {
|
|
|
980
983
|
};
|
|
981
984
|
export const getRepairDatabaseMockHandler = (overrideResponse) => {
|
|
982
985
|
return http.post('*/v1/hosting/:hostingId/db/repair', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
983
|
-
yield delay(
|
|
986
|
+
yield delay(0);
|
|
984
987
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
985
988
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
986
989
|
: getRepairDatabaseResponseMock()), { status: 200,
|
|
@@ -990,7 +993,7 @@ export const getRepairDatabaseMockHandler = (overrideResponse) => {
|
|
|
990
993
|
};
|
|
991
994
|
export const getDbUsageMockHandler = (overrideResponse) => {
|
|
992
995
|
return http.get('*/v1/hosting/:hostingId/db/usage', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
993
|
-
yield delay(
|
|
996
|
+
yield delay(0);
|
|
994
997
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
995
998
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
996
999
|
: getDbUsageResponseMock()), { status: 200,
|
|
@@ -1000,7 +1003,7 @@ export const getDbUsageMockHandler = (overrideResponse) => {
|
|
|
1000
1003
|
};
|
|
1001
1004
|
export const getDbUserPasswordSetMockHandler = (overrideResponse) => {
|
|
1002
1005
|
return http.post('*/v1/hosting/:hostingId/db/user/password', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1003
|
-
yield delay(
|
|
1006
|
+
yield delay(0);
|
|
1004
1007
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1005
1008
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1006
1009
|
: getDbUserPasswordSetResponseMock()), { status: 200,
|
|
@@ -1010,7 +1013,7 @@ export const getDbUserPasswordSetMockHandler = (overrideResponse) => {
|
|
|
1010
1013
|
};
|
|
1011
1014
|
export const getDbUserPrivsGetMockHandler = (overrideResponse) => {
|
|
1012
1015
|
return http.get('*/v1/hosting/:hostingId/db/user/privileges', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1013
|
-
yield delay(
|
|
1016
|
+
yield delay(0);
|
|
1014
1017
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1015
1018
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1016
1019
|
: getDbUserPrivsGetResponseMock()), { status: 200,
|
|
@@ -1020,7 +1023,7 @@ export const getDbUserPrivsGetMockHandler = (overrideResponse) => {
|
|
|
1020
1023
|
};
|
|
1021
1024
|
export const getDbUserPrivsSetMockHandler = (overrideResponse) => {
|
|
1022
1025
|
return http.post('*/v1/hosting/:hostingId/db/user/privileges', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1023
|
-
yield delay(
|
|
1026
|
+
yield delay(0);
|
|
1024
1027
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1025
1028
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1026
1029
|
: getDbUserPrivsSetResponseMock()), { status: 200,
|
|
@@ -1030,7 +1033,7 @@ export const getDbUserPrivsSetMockHandler = (overrideResponse) => {
|
|
|
1030
1033
|
};
|
|
1031
1034
|
export const getDbUserAddMockHandler = (overrideResponse) => {
|
|
1032
1035
|
return http.post('*/v1/hosting/:hostingId/db/users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1033
|
-
yield delay(
|
|
1036
|
+
yield delay(0);
|
|
1034
1037
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1035
1038
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1036
1039
|
: getDbUserAddResponseMock()), { status: 200,
|
|
@@ -1040,7 +1043,7 @@ export const getDbUserAddMockHandler = (overrideResponse) => {
|
|
|
1040
1043
|
};
|
|
1041
1044
|
export const getDbUserDeleteMockHandler = (overrideResponse) => {
|
|
1042
1045
|
return http.delete('*/v1/hosting/:hostingId/db/users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1043
|
-
yield delay(
|
|
1046
|
+
yield delay(0);
|
|
1044
1047
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1045
1048
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1046
1049
|
: getDbUserDeleteResponseMock()), { status: 200,
|
|
@@ -1050,7 +1053,7 @@ export const getDbUserDeleteMockHandler = (overrideResponse) => {
|
|
|
1050
1053
|
};
|
|
1051
1054
|
export const getDbUserListMockHandler = (overrideResponse) => {
|
|
1052
1055
|
return http.get('*/v1/hosting/:hostingId/db/users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1053
|
-
yield delay(
|
|
1056
|
+
yield delay(0);
|
|
1054
1057
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1055
1058
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1056
1059
|
: getDbUserListResponseMock()), { status: 200,
|
|
@@ -1060,7 +1063,7 @@ export const getDbUserListMockHandler = (overrideResponse) => {
|
|
|
1060
1063
|
};
|
|
1061
1064
|
export const getDbUserRenameMockHandler = (overrideResponse) => {
|
|
1062
1065
|
return http.put('*/v1/hosting/:hostingId/db/users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1063
|
-
yield delay(
|
|
1066
|
+
yield delay(0);
|
|
1064
1067
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1065
1068
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1066
1069
|
: getDbUserRenameResponseMock()), { status: 200,
|
|
@@ -1070,7 +1073,7 @@ export const getDbUserRenameMockHandler = (overrideResponse) => {
|
|
|
1070
1073
|
};
|
|
1071
1074
|
export const getDbMultipleUserDatabaseMockHandler = (overrideResponse) => {
|
|
1072
1075
|
return http.delete('*/v1/hosting/:hostingId/db/users/bulk', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1073
|
-
yield delay(
|
|
1076
|
+
yield delay(0);
|
|
1074
1077
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1075
1078
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1076
1079
|
: getDbMultipleUserDatabaseResponseMock()), { status: 200,
|
|
@@ -1080,7 +1083,7 @@ export const getDbMultipleUserDatabaseMockHandler = (overrideResponse) => {
|
|
|
1080
1083
|
};
|
|
1081
1084
|
export const getDirectoryPrivacyMockHandler = (overrideResponse) => {
|
|
1082
1085
|
return http.get('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1083
|
-
yield delay(
|
|
1086
|
+
yield delay(0);
|
|
1084
1087
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1085
1088
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1086
1089
|
: getDirectoryPrivacyResponseMock()), { status: 200,
|
|
@@ -1090,7 +1093,7 @@ export const getDirectoryPrivacyMockHandler = (overrideResponse) => {
|
|
|
1090
1093
|
};
|
|
1091
1094
|
export const getAddPrivacyMockHandler = (overrideResponse) => {
|
|
1092
1095
|
return http.post('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1093
|
-
yield delay(
|
|
1096
|
+
yield delay(0);
|
|
1094
1097
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1095
1098
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1096
1099
|
: getAddPrivacyResponseMock()), { status: 200,
|
|
@@ -1100,7 +1103,7 @@ export const getAddPrivacyMockHandler = (overrideResponse) => {
|
|
|
1100
1103
|
};
|
|
1101
1104
|
export const getPrivacyMockHandler = (overrideResponse) => {
|
|
1102
1105
|
return http.delete('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1103
|
-
yield delay(
|
|
1106
|
+
yield delay(0);
|
|
1104
1107
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1105
1108
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1106
1109
|
: getPrivacyResponseMock()), { status: 200,
|
|
@@ -1110,7 +1113,7 @@ export const getPrivacyMockHandler = (overrideResponse) => {
|
|
|
1110
1113
|
};
|
|
1111
1114
|
export const getEditPrivacyMockHandler = (overrideResponse) => {
|
|
1112
1115
|
return http.put('*/v1/hosting/:hostingId/directoryprivacy', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1113
|
-
yield delay(
|
|
1116
|
+
yield delay(0);
|
|
1114
1117
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1115
1118
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1116
1119
|
: getEditPrivacyResponseMock()), { status: 200,
|
|
@@ -1120,7 +1123,7 @@ export const getEditPrivacyMockHandler = (overrideResponse) => {
|
|
|
1120
1123
|
};
|
|
1121
1124
|
export const getPrivacyUserMockHandler = (overrideResponse) => {
|
|
1122
1125
|
return http.delete('*/v1/hosting/:hostingId/directoryprivacy/user', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1123
|
-
yield delay(
|
|
1126
|
+
yield delay(0);
|
|
1124
1127
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1125
1128
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1126
1129
|
: getPrivacyUserResponseMock()), { status: 200,
|
|
@@ -1130,7 +1133,7 @@ export const getPrivacyUserMockHandler = (overrideResponse) => {
|
|
|
1130
1133
|
};
|
|
1131
1134
|
export const getHostingDomainAssignMockHandler = (overrideResponse) => {
|
|
1132
1135
|
return http.post('*/v1/hosting/:hostingId/domain/assign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1133
|
-
yield delay(
|
|
1136
|
+
yield delay(0);
|
|
1134
1137
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1135
1138
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1136
1139
|
: getHostingDomainAssignResponseMock()), { status: 200,
|
|
@@ -1140,7 +1143,7 @@ export const getHostingDomainAssignMockHandler = (overrideResponse) => {
|
|
|
1140
1143
|
};
|
|
1141
1144
|
export const getHostingDomainAvailabilityMockHandler = (overrideResponse) => {
|
|
1142
1145
|
return http.get('*/v1/hosting/:hostingId/domain/availability', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1143
|
-
yield delay(
|
|
1146
|
+
yield delay(0);
|
|
1144
1147
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1145
1148
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1146
1149
|
: getHostingDomainAvailabilityResponseMock()), { status: 200,
|
|
@@ -1150,7 +1153,7 @@ export const getHostingDomainAvailabilityMockHandler = (overrideResponse) => {
|
|
|
1150
1153
|
};
|
|
1151
1154
|
export const getDomainsMockHandler = (overrideResponse) => {
|
|
1152
1155
|
return http.get('*/v1/hosting/:hostingId/domains', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1153
|
-
yield delay(
|
|
1156
|
+
yield delay(0);
|
|
1154
1157
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1155
1158
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1156
1159
|
: getDomainsResponseMock()), { status: 200,
|
|
@@ -1160,7 +1163,7 @@ export const getDomainsMockHandler = (overrideResponse) => {
|
|
|
1160
1163
|
};
|
|
1161
1164
|
export const getDomainDnsExportMockHandler = (overrideResponse) => {
|
|
1162
1165
|
return http.get('*/v1/hosting/:hostingId/domains/dns/export', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1163
|
-
yield delay(
|
|
1166
|
+
yield delay(0);
|
|
1164
1167
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1165
1168
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1166
1169
|
: getDomainDnsExportResponseMock()), { status: 200,
|
|
@@ -1170,7 +1173,7 @@ export const getDomainDnsExportMockHandler = (overrideResponse) => {
|
|
|
1170
1173
|
};
|
|
1171
1174
|
export const getDomainDnsImportMockHandler = (overrideResponse) => {
|
|
1172
1175
|
return http.post('*/v1/hosting/:hostingId/domains/dns/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1173
|
-
yield delay(
|
|
1176
|
+
yield delay(0);
|
|
1174
1177
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1175
1178
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1176
1179
|
: getDomainDnsImportResponseMock()), { status: 200,
|
|
@@ -1180,7 +1183,7 @@ export const getDomainDnsImportMockHandler = (overrideResponse) => {
|
|
|
1180
1183
|
};
|
|
1181
1184
|
export const getHostingDomainsUnassignMockHandler = (overrideResponse) => {
|
|
1182
1185
|
return http.post('*/v1/hosting/:hostingId/domains/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1183
|
-
yield delay(
|
|
1186
|
+
yield delay(0);
|
|
1184
1187
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1185
1188
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1186
1189
|
: getHostingDomainsUnassignResponseMock()), { status: 200,
|
|
@@ -1190,7 +1193,7 @@ export const getHostingDomainsUnassignMockHandler = (overrideResponse) => {
|
|
|
1190
1193
|
};
|
|
1191
1194
|
export const getHostingEcommerceInfoMockHandler = (overrideResponse) => {
|
|
1192
1195
|
return http.get('*/v1/hosting/:hostingId/ecommerce', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1193
|
-
yield delay(
|
|
1196
|
+
yield delay(0);
|
|
1194
1197
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1195
1198
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1196
1199
|
: getHostingEcommerceInfoResponseMock()), { status: 200,
|
|
@@ -1200,7 +1203,7 @@ export const getHostingEcommerceInfoMockHandler = (overrideResponse) => {
|
|
|
1200
1203
|
};
|
|
1201
1204
|
export const getHostingEmailAddMockHandler = (overrideResponse) => {
|
|
1202
1205
|
return http.post('*/v1/hosting/:hostingId/emails', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1203
|
-
yield delay(
|
|
1206
|
+
yield delay(0);
|
|
1204
1207
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1205
1208
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1206
1209
|
: getHostingEmailAddResponseMock()), { status: 200,
|
|
@@ -1210,7 +1213,7 @@ export const getHostingEmailAddMockHandler = (overrideResponse) => {
|
|
|
1210
1213
|
};
|
|
1211
1214
|
export const getHostingEmailDeleteMockHandler = (overrideResponse) => {
|
|
1212
1215
|
return http.delete('*/v1/hosting/:hostingId/emails', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1213
|
-
yield delay(
|
|
1216
|
+
yield delay(0);
|
|
1214
1217
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1215
1218
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1216
1219
|
: getHostingEmailDeleteResponseMock()), { status: 200,
|
|
@@ -1220,7 +1223,7 @@ export const getHostingEmailDeleteMockHandler = (overrideResponse) => {
|
|
|
1220
1223
|
};
|
|
1221
1224
|
export const getHostingEmailListMockHandler = (overrideResponse) => {
|
|
1222
1225
|
return http.get('*/v1/hosting/:hostingId/emails', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1223
|
-
yield delay(
|
|
1226
|
+
yield delay(0);
|
|
1224
1227
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1225
1228
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1226
1229
|
: getHostingEmailListResponseMock()), { status: 200,
|
|
@@ -1230,7 +1233,7 @@ export const getHostingEmailListMockHandler = (overrideResponse) => {
|
|
|
1230
1233
|
};
|
|
1231
1234
|
export const getHostingEmailUpdateMockHandler = (overrideResponse) => {
|
|
1232
1235
|
return http.put('*/v1/hosting/:hostingId/emails', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1233
|
-
yield delay(
|
|
1236
|
+
yield delay(0);
|
|
1234
1237
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1235
1238
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1236
1239
|
: getHostingEmailUpdateResponseMock()), { status: 200,
|
|
@@ -1240,7 +1243,7 @@ export const getHostingEmailUpdateMockHandler = (overrideResponse) => {
|
|
|
1240
1243
|
};
|
|
1241
1244
|
export const getHostingEmailForwardersListMockHandler = (overrideResponse) => {
|
|
1242
1245
|
return http.get('*/v1/hosting/:hostingId/emails/forwarders', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1243
|
-
yield delay(
|
|
1246
|
+
yield delay(0);
|
|
1244
1247
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1245
1248
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1246
1249
|
: getHostingEmailForwardersListResponseMock()), { status: 200,
|
|
@@ -1250,7 +1253,7 @@ export const getHostingEmailForwardersListMockHandler = (overrideResponse) => {
|
|
|
1250
1253
|
};
|
|
1251
1254
|
export const getHostingEmailForwarderAddMockHandler = (overrideResponse) => {
|
|
1252
1255
|
return http.post('*/v1/hosting/:hostingId/emails/forwarders', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1253
|
-
yield delay(
|
|
1256
|
+
yield delay(0);
|
|
1254
1257
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1255
1258
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1256
1259
|
: getHostingEmailForwarderAddResponseMock()), { status: 200,
|
|
@@ -1260,7 +1263,7 @@ export const getHostingEmailForwarderAddMockHandler = (overrideResponse) => {
|
|
|
1260
1263
|
};
|
|
1261
1264
|
export const getHostingEmailForwarderDeleteMockHandler = (overrideResponse) => {
|
|
1262
1265
|
return http.delete('*/v1/hosting/:hostingId/emails/forwarders', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1263
|
-
yield delay(
|
|
1266
|
+
yield delay(0);
|
|
1264
1267
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1265
1268
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1266
1269
|
: getHostingEmailForwarderDeleteResponseMock()), { status: 200,
|
|
@@ -1270,7 +1273,7 @@ export const getHostingEmailForwarderDeleteMockHandler = (overrideResponse) => {
|
|
|
1270
1273
|
};
|
|
1271
1274
|
export const getHostingEmailSuspendMockHandler = (overrideResponse) => {
|
|
1272
1275
|
return http.post('*/v1/hosting/:hostingId/emails/suspend', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1273
|
-
yield delay(
|
|
1276
|
+
yield delay(0);
|
|
1274
1277
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1275
1278
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1276
1279
|
: getHostingEmailSuspendResponseMock()), { status: 200,
|
|
@@ -1280,7 +1283,7 @@ export const getHostingEmailSuspendMockHandler = (overrideResponse) => {
|
|
|
1280
1283
|
};
|
|
1281
1284
|
export const getListFilesMockHandler = (overrideResponse) => {
|
|
1282
1285
|
return http.get('*/v1/hosting/:hostingId/files', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1283
|
-
yield delay(
|
|
1286
|
+
yield delay(0);
|
|
1284
1287
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1285
1288
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1286
1289
|
: getListFilesResponseMock()), { status: 200,
|
|
@@ -1290,7 +1293,7 @@ export const getListFilesMockHandler = (overrideResponse) => {
|
|
|
1290
1293
|
};
|
|
1291
1294
|
export const getHostingFixownershipMockHandler = (overrideResponse) => {
|
|
1292
1295
|
return http.post('*/v1/hosting/:hostingId/fixownership', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1293
|
-
yield delay(
|
|
1296
|
+
yield delay(0);
|
|
1294
1297
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1295
1298
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1296
1299
|
: getHostingFixownershipResponseMock()), { status: 200,
|
|
@@ -1300,7 +1303,7 @@ export const getHostingFixownershipMockHandler = (overrideResponse) => {
|
|
|
1300
1303
|
};
|
|
1301
1304
|
export const getHostingFtpListMockHandler = (overrideResponse) => {
|
|
1302
1305
|
return http.get('*/v1/hosting/:hostingId/ftp', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1303
|
-
yield delay(
|
|
1306
|
+
yield delay(0);
|
|
1304
1307
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1305
1308
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1306
1309
|
: getHostingFtpListResponseMock()), { status: 200,
|
|
@@ -1310,7 +1313,7 @@ export const getHostingFtpListMockHandler = (overrideResponse) => {
|
|
|
1310
1313
|
};
|
|
1311
1314
|
export const getHostingFtpAddMockHandler = (overrideResponse) => {
|
|
1312
1315
|
return http.post('*/v1/hosting/:hostingId/ftp', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1313
|
-
yield delay(
|
|
1316
|
+
yield delay(0);
|
|
1314
1317
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1315
1318
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1316
1319
|
: getHostingFtpAddResponseMock()), { status: 200,
|
|
@@ -1320,7 +1323,7 @@ export const getHostingFtpAddMockHandler = (overrideResponse) => {
|
|
|
1320
1323
|
};
|
|
1321
1324
|
export const getHostingFtpUpdateMockHandler = (overrideResponse) => {
|
|
1322
1325
|
return http.put('*/v1/hosting/:hostingId/ftp', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1323
|
-
yield delay(
|
|
1326
|
+
yield delay(0);
|
|
1324
1327
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1325
1328
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1326
1329
|
: getHostingFtpUpdateResponseMock()), { status: 200,
|
|
@@ -1330,7 +1333,7 @@ export const getHostingFtpUpdateMockHandler = (overrideResponse) => {
|
|
|
1330
1333
|
};
|
|
1331
1334
|
export const getHostingFtpMockHandler = (overrideResponse) => {
|
|
1332
1335
|
return http.delete('*/v1/hosting/:hostingId/ftp', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1333
|
-
yield delay(
|
|
1336
|
+
yield delay(0);
|
|
1334
1337
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1335
1338
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1336
1339
|
: getHostingFtpResponseMock()), { status: 200,
|
|
@@ -1340,7 +1343,7 @@ export const getHostingFtpMockHandler = (overrideResponse) => {
|
|
|
1340
1343
|
};
|
|
1341
1344
|
export const getHotlinkconfigDetailsMockHandler = (overrideResponse) => {
|
|
1342
1345
|
return http.get('*/v1/hosting/:hostingId/hotlinkconfig', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1343
|
-
yield delay(
|
|
1346
|
+
yield delay(0);
|
|
1344
1347
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1345
1348
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1346
1349
|
: getHotlinkconfigDetailsResponseMock()), { status: 200,
|
|
@@ -1350,7 +1353,7 @@ export const getHotlinkconfigDetailsMockHandler = (overrideResponse) => {
|
|
|
1350
1353
|
};
|
|
1351
1354
|
export const getHotlinkconfigAddMockHandler = (overrideResponse) => {
|
|
1352
1355
|
return http.post('*/v1/hosting/:hostingId/hotlinkconfig', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1353
|
-
yield delay(
|
|
1356
|
+
yield delay(0);
|
|
1354
1357
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1355
1358
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1356
1359
|
: getHotlinkconfigAddResponseMock()), { status: 200,
|
|
@@ -1360,7 +1363,7 @@ export const getHotlinkconfigAddMockHandler = (overrideResponse) => {
|
|
|
1360
1363
|
};
|
|
1361
1364
|
export const getHotlinkconfigDeleteMockHandler = (overrideResponse) => {
|
|
1362
1365
|
return http.delete('*/v1/hosting/:hostingId/hotlinkconfig', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1363
|
-
yield delay(
|
|
1366
|
+
yield delay(0);
|
|
1364
1367
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1365
1368
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1366
1369
|
: getHotlinkconfigDeleteResponseMock()), { status: 200,
|
|
@@ -1370,7 +1373,7 @@ export const getHotlinkconfigDeleteMockHandler = (overrideResponse) => {
|
|
|
1370
1373
|
};
|
|
1371
1374
|
export const getListIndexMockHandler = (overrideResponse) => {
|
|
1372
1375
|
return http.get('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1373
|
-
yield delay(
|
|
1376
|
+
yield delay(0);
|
|
1374
1377
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1375
1378
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1376
1379
|
: getListIndexResponseMock()), { status: 200,
|
|
@@ -1380,7 +1383,7 @@ export const getListIndexMockHandler = (overrideResponse) => {
|
|
|
1380
1383
|
};
|
|
1381
1384
|
export const getAddIndexMockHandler = (overrideResponse) => {
|
|
1382
1385
|
return http.post('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1383
|
-
yield delay(
|
|
1386
|
+
yield delay(0);
|
|
1384
1387
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1385
1388
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1386
1389
|
: getAddIndexResponseMock()), { status: 200,
|
|
@@ -1390,7 +1393,7 @@ export const getAddIndexMockHandler = (overrideResponse) => {
|
|
|
1390
1393
|
};
|
|
1391
1394
|
export const getIndexMockHandler = (overrideResponse) => {
|
|
1392
1395
|
return http.delete('*/v1/hosting/:hostingId/index', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1393
|
-
yield delay(
|
|
1396
|
+
yield delay(0);
|
|
1394
1397
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1395
1398
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1396
1399
|
: getIndexResponseMock()), { status: 200,
|
|
@@ -1400,7 +1403,7 @@ export const getIndexMockHandler = (overrideResponse) => {
|
|
|
1400
1403
|
};
|
|
1401
1404
|
export const getHostingInfoMockHandler = (overrideResponse) => {
|
|
1402
1405
|
return http.get('*/v1/hosting/:hostingId/info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1403
|
-
yield delay(
|
|
1406
|
+
yield delay(0);
|
|
1404
1407
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1405
1408
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1406
1409
|
: getHostingInfoResponseMock()), { status: 200,
|
|
@@ -1410,7 +1413,7 @@ export const getHostingInfoMockHandler = (overrideResponse) => {
|
|
|
1410
1413
|
};
|
|
1411
1414
|
export const getHostingInfoDiskUsageMockHandler = (overrideResponse) => {
|
|
1412
1415
|
return http.get('*/v1/hosting/:hostingId/info/diskusage', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1413
|
-
yield delay(
|
|
1416
|
+
yield delay(0);
|
|
1414
1417
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1415
1418
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1416
1419
|
: getHostingInfoDiskUsageResponseMock()), { status: 200,
|
|
@@ -1420,7 +1423,7 @@ export const getHostingInfoDiskUsageMockHandler = (overrideResponse) => {
|
|
|
1420
1423
|
};
|
|
1421
1424
|
export const getHostingLeadMockHandler = (overrideResponse) => {
|
|
1422
1425
|
return http.post('*/v1/hosting/:hostingId/lead', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1423
|
-
yield delay(
|
|
1426
|
+
yield delay(0);
|
|
1424
1427
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1425
1428
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1426
1429
|
: getHostingLeadResponseMock()), { status: 200,
|
|
@@ -1430,7 +1433,7 @@ export const getHostingLeadMockHandler = (overrideResponse) => {
|
|
|
1430
1433
|
};
|
|
1431
1434
|
export const getHostingMigrationStatusMockHandler = (overrideResponse) => {
|
|
1432
1435
|
return http.get('*/v1/hosting/:hostingId/migrations', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1433
|
-
yield delay(
|
|
1436
|
+
yield delay(0);
|
|
1434
1437
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1435
1438
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1436
1439
|
: getHostingMigrationStatusResponseMock()), { status: 200,
|
|
@@ -1440,7 +1443,7 @@ export const getHostingMigrationStatusMockHandler = (overrideResponse) => {
|
|
|
1440
1443
|
};
|
|
1441
1444
|
export const getHostingMigrationsMockHandler = (overrideResponse) => {
|
|
1442
1445
|
return http.post('*/v1/hosting/:hostingId/migrations', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1443
|
-
yield delay(
|
|
1446
|
+
yield delay(0);
|
|
1444
1447
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1445
1448
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1446
1449
|
: getHostingMigrationsResponseMock()), { status: 200,
|
|
@@ -1450,7 +1453,7 @@ export const getHostingMigrationsMockHandler = (overrideResponse) => {
|
|
|
1450
1453
|
};
|
|
1451
1454
|
export const getHostingMigrationsCheckMockHandler = (overrideResponse) => {
|
|
1452
1455
|
return http.get('*/v1/hosting/:hostingId/migrations/check', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1453
|
-
yield delay(
|
|
1456
|
+
yield delay(0);
|
|
1454
1457
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1455
1458
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1456
1459
|
: getHostingMigrationsCheckResponseMock()), { status: 200,
|
|
@@ -1460,7 +1463,7 @@ export const getHostingMigrationsCheckMockHandler = (overrideResponse) => {
|
|
|
1460
1463
|
};
|
|
1461
1464
|
export const getHostingMigrationsEventMockHandler = (overrideResponse) => {
|
|
1462
1465
|
return http.post('*/v1/hosting/:hostingId/migrations/event', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1463
|
-
yield delay(
|
|
1466
|
+
yield delay(0);
|
|
1464
1467
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1465
1468
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1466
1469
|
: getHostingMigrationsEventResponseMock()), { status: 200,
|
|
@@ -1470,7 +1473,7 @@ export const getHostingMigrationsEventMockHandler = (overrideResponse) => {
|
|
|
1470
1473
|
};
|
|
1471
1474
|
export const getHostingMigrationInfoMockHandler = (overrideResponse) => {
|
|
1472
1475
|
return http.get('*/v1/hosting/:hostingId/migrations/info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1473
|
-
yield delay(
|
|
1476
|
+
yield delay(0);
|
|
1474
1477
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1475
1478
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1476
1479
|
: getHostingMigrationInfoResponseMock()), { status: 200,
|
|
@@ -1480,7 +1483,7 @@ export const getHostingMigrationInfoMockHandler = (overrideResponse) => {
|
|
|
1480
1483
|
};
|
|
1481
1484
|
export const getHostingMigrationSiteScanStatusMockHandler = (overrideResponse) => {
|
|
1482
1485
|
return http.get('*/v1/hosting/:hostingId/migrations/site-scan', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1483
|
-
yield delay(
|
|
1486
|
+
yield delay(0);
|
|
1484
1487
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1485
1488
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1486
1489
|
: getHostingMigrationSiteScanStatusResponseMock()), { status: 200,
|
|
@@ -1490,7 +1493,7 @@ export const getHostingMigrationSiteScanStatusMockHandler = (overrideResponse) =
|
|
|
1490
1493
|
};
|
|
1491
1494
|
export const getHostingNameserversMockHandler = (overrideResponse) => {
|
|
1492
1495
|
return http.get('*/v1/hosting/:hostingId/nameservers', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1493
|
-
yield delay(
|
|
1496
|
+
yield delay(0);
|
|
1494
1497
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1495
1498
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1496
1499
|
: getHostingNameserversResponseMock()), { status: 200,
|
|
@@ -1500,7 +1503,7 @@ export const getHostingNameserversMockHandler = (overrideResponse) => {
|
|
|
1500
1503
|
};
|
|
1501
1504
|
export const getHostingOnboardingDataMockHandler = (overrideResponse) => {
|
|
1502
1505
|
return http.get('*/v1/hosting/:hostingId/onboarding', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1503
|
-
yield delay(
|
|
1506
|
+
yield delay(0);
|
|
1504
1507
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1505
1508
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1506
1509
|
: getHostingOnboardingDataResponseMock()), { status: 200,
|
|
@@ -1510,7 +1513,7 @@ export const getHostingOnboardingDataMockHandler = (overrideResponse) => {
|
|
|
1510
1513
|
};
|
|
1511
1514
|
export const getHostingOnboardingDataUpdateMockHandler = (overrideResponse) => {
|
|
1512
1515
|
return http.put('*/v1/hosting/:hostingId/onboarding', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1513
|
-
yield delay(
|
|
1516
|
+
yield delay(0);
|
|
1514
1517
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1515
1518
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1516
1519
|
: getHostingOnboardingDataUpdateResponseMock()), { status: 200,
|
|
@@ -1520,7 +1523,7 @@ export const getHostingOnboardingDataUpdateMockHandler = (overrideResponse) => {
|
|
|
1520
1523
|
};
|
|
1521
1524
|
export const getPasswordGenerateMockHandler = (overrideResponse) => {
|
|
1522
1525
|
return http.get('*/v1/hosting/:hostingId/password/generate', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1523
|
-
yield delay(
|
|
1526
|
+
yield delay(0);
|
|
1524
1527
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1525
1528
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1526
1529
|
: getPasswordGenerateResponseMock()), { status: 200,
|
|
@@ -1530,7 +1533,7 @@ export const getPasswordGenerateMockHandler = (overrideResponse) => {
|
|
|
1530
1533
|
};
|
|
1531
1534
|
export const getPasswordScoreMockHandler = (overrideResponse) => {
|
|
1532
1535
|
return http.get('*/v1/hosting/:hostingId/password/score', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1533
|
-
yield delay(
|
|
1536
|
+
yield delay(0);
|
|
1534
1537
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1535
1538
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1536
1539
|
: getPasswordScoreResponseMock()), { status: 200,
|
|
@@ -1540,7 +1543,7 @@ export const getPasswordScoreMockHandler = (overrideResponse) => {
|
|
|
1540
1543
|
};
|
|
1541
1544
|
export const getPhpErrorsMockHandler = (overrideResponse) => {
|
|
1542
1545
|
return http.get('*/v1/hosting/:hostingId/php-errors', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1543
|
-
yield delay(
|
|
1546
|
+
yield delay(0);
|
|
1544
1547
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1545
1548
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1546
1549
|
: getPhpErrorsResponseMock()), { status: 200,
|
|
@@ -1550,7 +1553,7 @@ export const getPhpErrorsMockHandler = (overrideResponse) => {
|
|
|
1550
1553
|
};
|
|
1551
1554
|
export const getProductLicenseDetailsMockHandler = (overrideResponse) => {
|
|
1552
1555
|
return http.get('*/v1/hosting/:hostingId/product/license-details', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1553
|
-
yield delay(
|
|
1556
|
+
yield delay(0);
|
|
1554
1557
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1555
1558
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1556
1559
|
: getProductLicenseDetailsResponseMock()), { status: 200,
|
|
@@ -1560,7 +1563,7 @@ export const getProductLicenseDetailsMockHandler = (overrideResponse) => {
|
|
|
1560
1563
|
};
|
|
1561
1564
|
export const getHostingRedirectsMockHandler = (overrideResponse) => {
|
|
1562
1565
|
return http.get('*/v1/hosting/:hostingId/redirects', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1563
|
-
yield delay(
|
|
1566
|
+
yield delay(0);
|
|
1564
1567
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1565
1568
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1566
1569
|
: getHostingRedirectsResponseMock()), { status: 200,
|
|
@@ -1570,7 +1573,7 @@ export const getHostingRedirectsMockHandler = (overrideResponse) => {
|
|
|
1570
1573
|
};
|
|
1571
1574
|
export const getHostingRedirectMockHandler = (overrideResponse) => {
|
|
1572
1575
|
return http.delete('*/v1/hosting/:hostingId/redirects', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1573
|
-
yield delay(
|
|
1576
|
+
yield delay(0);
|
|
1574
1577
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1575
1578
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1576
1579
|
: getHostingRedirectResponseMock()), { status: 200,
|
|
@@ -1580,7 +1583,7 @@ export const getHostingRedirectMockHandler = (overrideResponse) => {
|
|
|
1580
1583
|
};
|
|
1581
1584
|
export const getAddHostingRedirectsMockHandler = (overrideResponse) => {
|
|
1582
1585
|
return http.post('*/v1/hosting/:hostingId/redirects', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1583
|
-
yield delay(
|
|
1586
|
+
yield delay(0);
|
|
1584
1587
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1585
1588
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1586
1589
|
: getAddHostingRedirectsResponseMock()), { status: 200,
|
|
@@ -1590,7 +1593,7 @@ export const getAddHostingRedirectsMockHandler = (overrideResponse) => {
|
|
|
1590
1593
|
};
|
|
1591
1594
|
export const getHostingResellerSsoWhmMockHandler = (overrideResponse) => {
|
|
1592
1595
|
return http.get('*/v1/hosting/:hostingId/reseller/sso/whm', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1593
|
-
yield delay(
|
|
1596
|
+
yield delay(0);
|
|
1594
1597
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1595
1598
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1596
1599
|
: getHostingResellerSsoWhmResponseMock()), { status: 200,
|
|
@@ -1600,7 +1603,7 @@ export const getHostingResellerSsoWhmMockHandler = (overrideResponse) => {
|
|
|
1600
1603
|
};
|
|
1601
1604
|
export const getHostingServerHitsMockHandler = (overrideResponse) => {
|
|
1602
1605
|
return http.get('*/v1/hosting/:hostingId/server-hits', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1603
|
-
yield delay(
|
|
1606
|
+
yield delay(0);
|
|
1604
1607
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1605
1608
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1606
1609
|
: getHostingServerHitsResponseMock()), { status: 200,
|
|
@@ -1610,7 +1613,7 @@ export const getHostingServerHitsMockHandler = (overrideResponse) => {
|
|
|
1610
1613
|
};
|
|
1611
1614
|
export const getHostingShellToggleMockHandler = (overrideResponse) => {
|
|
1612
1615
|
return http.put('*/v1/hosting/:hostingId/shell', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1613
|
-
yield delay(
|
|
1616
|
+
yield delay(0);
|
|
1614
1617
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1615
1618
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1616
1619
|
: getHostingShellToggleResponseMock()), { status: 200,
|
|
@@ -1620,7 +1623,7 @@ export const getHostingShellToggleMockHandler = (overrideResponse) => {
|
|
|
1620
1623
|
};
|
|
1621
1624
|
export const getHostingShellInfoMockHandler = (overrideResponse) => {
|
|
1622
1625
|
return http.get('*/v1/hosting/:hostingId/shell', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1623
|
-
yield delay(
|
|
1626
|
+
yield delay(0);
|
|
1624
1627
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1625
1628
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1626
1629
|
: getHostingShellInfoResponseMock()), { status: 200,
|
|
@@ -1630,7 +1633,7 @@ export const getHostingShellInfoMockHandler = (overrideResponse) => {
|
|
|
1630
1633
|
};
|
|
1631
1634
|
export const getHostingSiteAddMockHandler = (overrideResponse) => {
|
|
1632
1635
|
return http.post('*/v1/hosting/:hostingId/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1633
|
-
yield delay(
|
|
1636
|
+
yield delay(0);
|
|
1634
1637
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1635
1638
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1636
1639
|
: getHostingSiteAddResponseMock()), { status: 200,
|
|
@@ -1640,7 +1643,7 @@ export const getHostingSiteAddMockHandler = (overrideResponse) => {
|
|
|
1640
1643
|
};
|
|
1641
1644
|
export const getSitesBatchMockHandler = (overrideResponse) => {
|
|
1642
1645
|
return http.put('*/v1/hosting/:hostingId/sites/batch', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1643
|
-
yield delay(
|
|
1646
|
+
yield delay(0);
|
|
1644
1647
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1645
1648
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1646
1649
|
: getSitesBatchResponseMock()), { status: 200,
|
|
@@ -1650,7 +1653,7 @@ export const getSitesBatchMockHandler = (overrideResponse) => {
|
|
|
1650
1653
|
};
|
|
1651
1654
|
export const getHostingSshInfoMockHandler = (overrideResponse) => {
|
|
1652
1655
|
return http.get('*/v1/hosting/:hostingId/ssh', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1653
|
-
yield delay(
|
|
1656
|
+
yield delay(0);
|
|
1654
1657
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1655
1658
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1656
1659
|
: getHostingSshInfoResponseMock()), { status: 200,
|
|
@@ -1660,7 +1663,7 @@ export const getHostingSshInfoMockHandler = (overrideResponse) => {
|
|
|
1660
1663
|
};
|
|
1661
1664
|
export const getSshKeyFetchMockHandler = (overrideResponse) => {
|
|
1662
1665
|
return http.get('*/v1/hosting/:hostingId/ssh/fetch', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1663
|
-
yield delay(
|
|
1666
|
+
yield delay(0);
|
|
1664
1667
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1665
1668
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1666
1669
|
: getSshKeyFetchResponseMock()), { status: 200,
|
|
@@ -1670,7 +1673,7 @@ export const getSshKeyFetchMockHandler = (overrideResponse) => {
|
|
|
1670
1673
|
};
|
|
1671
1674
|
export const getSshKeyImportMockHandler = (overrideResponse) => {
|
|
1672
1675
|
return http.post('*/v1/hosting/:hostingId/ssh/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1673
|
-
yield delay(
|
|
1676
|
+
yield delay(0);
|
|
1674
1677
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1675
1678
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1676
1679
|
: getSshKeyImportResponseMock()), { status: 200,
|
|
@@ -1680,7 +1683,7 @@ export const getSshKeyImportMockHandler = (overrideResponse) => {
|
|
|
1680
1683
|
};
|
|
1681
1684
|
export const getSshKeyListMockHandler = (overrideResponse) => {
|
|
1682
1685
|
return http.get('*/v1/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1683
|
-
yield delay(
|
|
1686
|
+
yield delay(0);
|
|
1684
1687
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1685
1688
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1686
1689
|
: getSshKeyListResponseMock()), { status: 200,
|
|
@@ -1690,7 +1693,7 @@ export const getSshKeyListMockHandler = (overrideResponse) => {
|
|
|
1690
1693
|
};
|
|
1691
1694
|
export const getSshKeyMockHandler = (overrideResponse) => {
|
|
1692
1695
|
return http.delete('*/v1/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1693
|
-
yield delay(
|
|
1696
|
+
yield delay(0);
|
|
1694
1697
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1695
1698
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1696
1699
|
: getSshKeyResponseMock()), { status: 200,
|
|
@@ -1700,7 +1703,7 @@ export const getSshKeyMockHandler = (overrideResponse) => {
|
|
|
1700
1703
|
};
|
|
1701
1704
|
export const getSshKeyGenerateMockHandler = (overrideResponse) => {
|
|
1702
1705
|
return http.post('*/v1/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1703
|
-
yield delay(
|
|
1706
|
+
yield delay(0);
|
|
1704
1707
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1705
1708
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1706
1709
|
: getSshKeyGenerateResponseMock()), { status: 200,
|
|
@@ -1710,7 +1713,7 @@ export const getSshKeyGenerateMockHandler = (overrideResponse) => {
|
|
|
1710
1713
|
};
|
|
1711
1714
|
export const getSsoMockHandler = (overrideResponse) => {
|
|
1712
1715
|
return http.get('*/v1/hosting/:hostingId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1713
|
-
yield delay(
|
|
1716
|
+
yield delay(0);
|
|
1714
1717
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1715
1718
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1716
1719
|
: getSsoResponseMock()), { status: 200,
|
|
@@ -1720,7 +1723,7 @@ export const getSsoMockHandler = (overrideResponse) => {
|
|
|
1720
1723
|
};
|
|
1721
1724
|
export const getHostingVisitorsMockHandler = (overrideResponse) => {
|
|
1722
1725
|
return http.get('*/v1/hosting/:hostingId/visitors', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1723
|
-
yield delay(
|
|
1726
|
+
yield delay(0);
|
|
1724
1727
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1725
1728
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1726
1729
|
: getHostingVisitorsResponseMock()), { status: 200,
|
|
@@ -1730,7 +1733,7 @@ export const getHostingVisitorsMockHandler = (overrideResponse) => {
|
|
|
1730
1733
|
};
|
|
1731
1734
|
export const getSitesInfoMockHandler = (overrideResponse) => {
|
|
1732
1735
|
return http.get('*/v1/sites/:siteId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1733
|
-
yield delay(
|
|
1736
|
+
yield delay(0);
|
|
1734
1737
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1735
1738
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1736
1739
|
: getSitesInfoResponseMock()), { status: 200,
|
|
@@ -1740,7 +1743,7 @@ export const getSitesInfoMockHandler = (overrideResponse) => {
|
|
|
1740
1743
|
};
|
|
1741
1744
|
export const getSiteUpdateMockHandler = (overrideResponse) => {
|
|
1742
1745
|
return http.put('*/v1/sites/:siteId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1743
|
-
yield delay(
|
|
1746
|
+
yield delay(0);
|
|
1744
1747
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1745
1748
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1746
1749
|
: getSiteUpdateResponseMock()), { status: 200,
|
|
@@ -1750,7 +1753,7 @@ export const getSiteUpdateMockHandler = (overrideResponse) => {
|
|
|
1750
1753
|
};
|
|
1751
1754
|
export const getSiteMockHandler = (overrideResponse) => {
|
|
1752
1755
|
return http.delete('*/v1/sites/:siteId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1753
|
-
yield delay(
|
|
1756
|
+
yield delay(0);
|
|
1754
1757
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1755
1758
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1756
1759
|
: getSiteResponseMock()), { status: 200,
|
|
@@ -1760,7 +1763,7 @@ export const getSiteMockHandler = (overrideResponse) => {
|
|
|
1760
1763
|
};
|
|
1761
1764
|
export const getSitesAutoupdatesInfoMockHandler = (overrideResponse) => {
|
|
1762
1765
|
return http.get('*/v1/sites/:siteId/autoupdates', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1763
|
-
yield delay(
|
|
1766
|
+
yield delay(0);
|
|
1764
1767
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1765
1768
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1766
1769
|
: getSitesAutoupdatesInfoResponseMock()), { status: 200,
|
|
@@ -1770,7 +1773,7 @@ export const getSitesAutoupdatesInfoMockHandler = (overrideResponse) => {
|
|
|
1770
1773
|
};
|
|
1771
1774
|
export const getSitesAutoupdatesUpdateMockHandler = (overrideResponse) => {
|
|
1772
1775
|
return http.put('*/v1/sites/:siteId/autoupdates', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1773
|
-
yield delay(
|
|
1776
|
+
yield delay(0);
|
|
1774
1777
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1775
1778
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1776
1779
|
: getSitesAutoupdatesUpdateResponseMock()), { status: 200,
|
|
@@ -1780,7 +1783,7 @@ export const getSitesAutoupdatesUpdateMockHandler = (overrideResponse) => {
|
|
|
1780
1783
|
};
|
|
1781
1784
|
export const getSitesBackupsMockHandler = (overrideResponse) => {
|
|
1782
1785
|
return http.get('*/v1/sites/:siteId/backups', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1783
|
-
yield delay(
|
|
1786
|
+
yield delay(0);
|
|
1784
1787
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1785
1788
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1786
1789
|
: getSitesBackupsResponseMock()), { status: 200,
|
|
@@ -1790,7 +1793,7 @@ export const getSitesBackupsMockHandler = (overrideResponse) => {
|
|
|
1790
1793
|
};
|
|
1791
1794
|
export const getSitesHasBackupsMockHandler = (overrideResponse) => {
|
|
1792
1795
|
return http.get('*/v1/sites/:siteId/backups/check', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1793
|
-
yield delay(
|
|
1796
|
+
yield delay(0);
|
|
1794
1797
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1795
1798
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1796
1799
|
: getSitesHasBackupsResponseMock()), { status: 200,
|
|
@@ -1800,7 +1803,7 @@ export const getSitesHasBackupsMockHandler = (overrideResponse) => {
|
|
|
1800
1803
|
};
|
|
1801
1804
|
export const getSitesBackupsCodeguardMockHandler = (overrideResponse) => {
|
|
1802
1805
|
return http.post('*/v1/sites/:siteId/backups/codeguard', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1803
|
-
yield delay(
|
|
1806
|
+
yield delay(0);
|
|
1804
1807
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1805
1808
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1806
1809
|
: getSitesBackupsCodeguardResponseMock()), { status: 200,
|
|
@@ -1810,7 +1813,7 @@ export const getSitesBackupsCodeguardMockHandler = (overrideResponse) => {
|
|
|
1810
1813
|
};
|
|
1811
1814
|
export const getSitesBackupsDetailsMockHandler = (overrideResponse) => {
|
|
1812
1815
|
return http.get('*/v1/sites/:siteId/backups/details', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1813
|
-
yield delay(
|
|
1816
|
+
yield delay(0);
|
|
1814
1817
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1815
1818
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1816
1819
|
: getSitesBackupsDetailsResponseMock()), { status: 200,
|
|
@@ -1820,7 +1823,7 @@ export const getSitesBackupsDetailsMockHandler = (overrideResponse) => {
|
|
|
1820
1823
|
};
|
|
1821
1824
|
export const getJetpackBackupStatusMockHandler = (overrideResponse) => {
|
|
1822
1825
|
return http.get('*/v1/sites/:siteId/backups/jetpack', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1823
|
-
yield delay(
|
|
1826
|
+
yield delay(0);
|
|
1824
1827
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1825
1828
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1826
1829
|
: getJetpackBackupStatusResponseMock()), { status: 200,
|
|
@@ -1830,7 +1833,7 @@ export const getJetpackBackupStatusMockHandler = (overrideResponse) => {
|
|
|
1830
1833
|
};
|
|
1831
1834
|
export const getBackupsJetpackBackupMockHandler = (overrideResponse) => {
|
|
1832
1835
|
return http.put('*/v1/sites/:siteId/backups/jetpack', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1833
|
-
yield delay(
|
|
1836
|
+
yield delay(0);
|
|
1834
1837
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1835
1838
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1836
1839
|
: getBackupsJetpackBackupResponseMock()), { status: 200,
|
|
@@ -1840,7 +1843,7 @@ export const getBackupsJetpackBackupMockHandler = (overrideResponse) => {
|
|
|
1840
1843
|
};
|
|
1841
1844
|
export const getSiteAddonCloudflareMockHandler = (overrideResponse) => {
|
|
1842
1845
|
return http.post('*/v1/sites/:siteId/cloudflare', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1843
|
-
yield delay(
|
|
1846
|
+
yield delay(0);
|
|
1844
1847
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1845
1848
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1846
1849
|
: getSiteAddonCloudflareResponseMock()), { status: 200,
|
|
@@ -1850,7 +1853,7 @@ export const getSiteAddonCloudflareMockHandler = (overrideResponse) => {
|
|
|
1850
1853
|
};
|
|
1851
1854
|
export const getSitesDatabaseInfoMockHandler = (overrideResponse) => {
|
|
1852
1855
|
return http.get('*/v1/sites/:siteId/database', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1853
|
-
yield delay(
|
|
1856
|
+
yield delay(0);
|
|
1854
1857
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1855
1858
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1856
1859
|
: getSitesDatabaseInfoResponseMock()), { status: 200,
|
|
@@ -1860,7 +1863,7 @@ export const getSitesDatabaseInfoMockHandler = (overrideResponse) => {
|
|
|
1860
1863
|
};
|
|
1861
1864
|
export const getSitesDatabasePasswordsyncMockHandler = (overrideResponse) => {
|
|
1862
1865
|
return http.post('*/v1/sites/:siteId/database/password-sync', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1863
|
-
yield delay(
|
|
1866
|
+
yield delay(0);
|
|
1864
1867
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1865
1868
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1866
1869
|
: getSitesDatabasePasswordsyncResponseMock()), { status: 200,
|
|
@@ -1870,7 +1873,7 @@ export const getSitesDatabasePasswordsyncMockHandler = (overrideResponse) => {
|
|
|
1870
1873
|
};
|
|
1871
1874
|
export const getSitesDnsMockHandler = (overrideResponse) => {
|
|
1872
1875
|
return http.get('*/v1/sites/:siteId/dns', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1873
|
-
yield delay(
|
|
1876
|
+
yield delay(0);
|
|
1874
1877
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1875
1878
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1876
1879
|
: getSitesDnsResponseMock()), { status: 200,
|
|
@@ -1880,7 +1883,7 @@ export const getSitesDnsMockHandler = (overrideResponse) => {
|
|
|
1880
1883
|
};
|
|
1881
1884
|
export const getSitesDomainMockHandler = (overrideResponse) => {
|
|
1882
1885
|
return http.get('*/v1/sites/:siteId/domain', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1883
|
-
yield delay(
|
|
1886
|
+
yield delay(0);
|
|
1884
1887
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1885
1888
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1886
1889
|
: getSitesDomainResponseMock()), { status: 200,
|
|
@@ -1890,7 +1893,7 @@ export const getSitesDomainMockHandler = (overrideResponse) => {
|
|
|
1890
1893
|
};
|
|
1891
1894
|
export const getSitesDomainUrlMockHandler = (overrideResponse) => {
|
|
1892
1895
|
return http.post('*/v1/sites/:siteId/domain', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1893
|
-
yield delay(
|
|
1896
|
+
yield delay(0);
|
|
1894
1897
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1895
1898
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1896
1899
|
: getSitesDomainUrlResponseMock()), { status: 200,
|
|
@@ -1900,7 +1903,7 @@ export const getSitesDomainUrlMockHandler = (overrideResponse) => {
|
|
|
1900
1903
|
};
|
|
1901
1904
|
export const getSitesDomainsCreateMockHandler = (overrideResponse) => {
|
|
1902
1905
|
return http.post('*/v1/sites/:siteId/domains', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1903
|
-
yield delay(
|
|
1906
|
+
yield delay(0);
|
|
1904
1907
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1905
1908
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1906
1909
|
: getSitesDomainsCreateResponseMock()), { status: 200,
|
|
@@ -1908,9 +1911,39 @@ export const getSitesDomainsCreateMockHandler = (overrideResponse) => {
|
|
|
1908
1911
|
});
|
|
1909
1912
|
}));
|
|
1910
1913
|
};
|
|
1914
|
+
export const getErrorPagesFetchMockHandler = (overrideResponse) => {
|
|
1915
|
+
return http.get('*/v1/sites/:siteId/error-pages', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1916
|
+
yield delay(0);
|
|
1917
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1918
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1919
|
+
: getErrorPagesFetchResponseMock()), { status: 200,
|
|
1920
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1921
|
+
});
|
|
1922
|
+
}));
|
|
1923
|
+
};
|
|
1924
|
+
export const getErrorPagesAddMockHandler = (overrideResponse) => {
|
|
1925
|
+
return http.post('*/v1/sites/:siteId/error-pages', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1926
|
+
yield delay(0);
|
|
1927
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1928
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1929
|
+
: getErrorPagesAddResponseMock()), { status: 200,
|
|
1930
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1931
|
+
});
|
|
1932
|
+
}));
|
|
1933
|
+
};
|
|
1934
|
+
export const getErrorPagesDeleteMockHandler = (overrideResponse) => {
|
|
1935
|
+
return http.delete('*/v1/sites/:siteId/error-pages', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1936
|
+
yield delay(0);
|
|
1937
|
+
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1938
|
+
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1939
|
+
: getErrorPagesDeleteResponseMock()), { status: 200,
|
|
1940
|
+
headers: { 'Content-Type': 'application/json' }
|
|
1941
|
+
});
|
|
1942
|
+
}));
|
|
1943
|
+
};
|
|
1911
1944
|
export const getSiteIpaddressListMockHandler = (overrideResponse) => {
|
|
1912
1945
|
return http.get('*/v1/sites/:siteId/ipblocker', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1913
|
-
yield delay(
|
|
1946
|
+
yield delay(0);
|
|
1914
1947
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1915
1948
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1916
1949
|
: getSiteIpaddressListResponseMock()), { status: 200,
|
|
@@ -1920,7 +1953,7 @@ export const getSiteIpaddressListMockHandler = (overrideResponse) => {
|
|
|
1920
1953
|
};
|
|
1921
1954
|
export const getSiteIpaddressMockHandler = (overrideResponse) => {
|
|
1922
1955
|
return http.delete('*/v1/sites/:siteId/ipblocker', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1923
|
-
yield delay(
|
|
1956
|
+
yield delay(0);
|
|
1924
1957
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1925
1958
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1926
1959
|
: getSiteIpaddressResponseMock()), { status: 200,
|
|
@@ -1930,7 +1963,7 @@ export const getSiteIpaddressMockHandler = (overrideResponse) => {
|
|
|
1930
1963
|
};
|
|
1931
1964
|
export const getAddSiteIpaddressMockHandler = (overrideResponse) => {
|
|
1932
1965
|
return http.post('*/v1/sites/:siteId/ipblocker', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1933
|
-
yield delay(
|
|
1966
|
+
yield delay(0);
|
|
1934
1967
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1935
1968
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1936
1969
|
: getAddSiteIpaddressResponseMock()), { status: 200,
|
|
@@ -1940,7 +1973,7 @@ export const getAddSiteIpaddressMockHandler = (overrideResponse) => {
|
|
|
1940
1973
|
};
|
|
1941
1974
|
export const getSitesAccessLogsMockHandler = (overrideResponse) => {
|
|
1942
1975
|
return http.get('*/v1/sites/:siteId/logs/access', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1943
|
-
yield delay(
|
|
1976
|
+
yield delay(0);
|
|
1944
1977
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1945
1978
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1946
1979
|
: getSitesAccessLogsResponseMock()), { status: 200,
|
|
@@ -1950,7 +1983,7 @@ export const getSitesAccessLogsMockHandler = (overrideResponse) => {
|
|
|
1950
1983
|
};
|
|
1951
1984
|
export const getSitesAccessLogsDownloadMockHandler = (overrideResponse) => {
|
|
1952
1985
|
return http.get('*/v1/sites/:siteId/logs/access/download', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1953
|
-
yield delay(
|
|
1986
|
+
yield delay(0);
|
|
1954
1987
|
if (typeof overrideResponse === 'function') {
|
|
1955
1988
|
yield overrideResponse(info);
|
|
1956
1989
|
}
|
|
@@ -1960,7 +1993,7 @@ export const getSitesAccessLogsDownloadMockHandler = (overrideResponse) => {
|
|
|
1960
1993
|
};
|
|
1961
1994
|
export const getSitesErrorLogsMockHandler = (overrideResponse) => {
|
|
1962
1995
|
return http.get('*/v1/sites/:siteId/logs/error', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1963
|
-
yield delay(
|
|
1996
|
+
yield delay(0);
|
|
1964
1997
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1965
1998
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1966
1999
|
: getSitesErrorLogsResponseMock()), { status: 200,
|
|
@@ -1970,7 +2003,7 @@ export const getSitesErrorLogsMockHandler = (overrideResponse) => {
|
|
|
1970
2003
|
};
|
|
1971
2004
|
export const getSitesErrorLogsDownloadMockHandler = (overrideResponse) => {
|
|
1972
2005
|
return http.get('*/v1/sites/:siteId/logs/error/download', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1973
|
-
yield delay(
|
|
2006
|
+
yield delay(0);
|
|
1974
2007
|
if (typeof overrideResponse === 'function') {
|
|
1975
2008
|
yield overrideResponse(info);
|
|
1976
2009
|
}
|
|
@@ -1980,7 +2013,7 @@ export const getSitesErrorLogsDownloadMockHandler = (overrideResponse) => {
|
|
|
1980
2013
|
};
|
|
1981
2014
|
export const getSiteMalwareStatusMockHandler = (overrideResponse) => {
|
|
1982
2015
|
return http.get('*/v1/sites/:siteId/malware-status', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1983
|
-
yield delay(
|
|
2016
|
+
yield delay(0);
|
|
1984
2017
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1985
2018
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1986
2019
|
: getSiteMalwareStatusResponseMock()), { status: 200,
|
|
@@ -1990,7 +2023,7 @@ export const getSiteMalwareStatusMockHandler = (overrideResponse) => {
|
|
|
1990
2023
|
};
|
|
1991
2024
|
export const getSitesMetricsDimensionAveragedMockHandler = (overrideResponse) => {
|
|
1992
2025
|
return http.get('*/v1/sites/:siteId/metrics/dimension/:dimension/averaged', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1993
|
-
yield delay(
|
|
2026
|
+
yield delay(0);
|
|
1994
2027
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
1995
2028
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
1996
2029
|
: getSitesMetricsDimensionAveragedResponseMock()), { status: 200,
|
|
@@ -2000,7 +2033,7 @@ export const getSitesMetricsDimensionAveragedMockHandler = (overrideResponse) =>
|
|
|
2000
2033
|
};
|
|
2001
2034
|
export const getSitesMetricDimensionsMockHandler = (overrideResponse) => {
|
|
2002
2035
|
return http.get('*/v1/sites/:siteId/metrics/:metric/dimensions', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2003
|
-
yield delay(
|
|
2036
|
+
yield delay(0);
|
|
2004
2037
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2005
2038
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2006
2039
|
: getSitesMetricDimensionsResponseMock()), { status: 200,
|
|
@@ -2010,7 +2043,7 @@ export const getSitesMetricDimensionsMockHandler = (overrideResponse) => {
|
|
|
2010
2043
|
};
|
|
2011
2044
|
export const getSitePendingDomainDeleteMockHandler = (overrideResponse) => {
|
|
2012
2045
|
return http.delete('*/v1/sites/:siteId/pending-domain', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2013
|
-
yield delay(
|
|
2046
|
+
yield delay(0);
|
|
2014
2047
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2015
2048
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2016
2049
|
: getSitePendingDomainDeleteResponseMock()), { status: 200,
|
|
@@ -2020,7 +2053,7 @@ export const getSitePendingDomainDeleteMockHandler = (overrideResponse) => {
|
|
|
2020
2053
|
};
|
|
2021
2054
|
export const getSitesPerformanceCachepurgeMockHandler = (overrideResponse) => {
|
|
2022
2055
|
return http.post('*/v1/sites/:siteId/performance/cachepurge', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2023
|
-
yield delay(
|
|
2056
|
+
yield delay(0);
|
|
2024
2057
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2025
2058
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2026
2059
|
: getSitesPerformanceCachepurgeResponseMock()), { status: 200,
|
|
@@ -2030,7 +2063,7 @@ export const getSitesPerformanceCachepurgeMockHandler = (overrideResponse) => {
|
|
|
2030
2063
|
};
|
|
2031
2064
|
export const getSitesPerformanceEdgecacheMockHandler = (overrideResponse) => {
|
|
2032
2065
|
return http.put('*/v1/sites/:siteId/performance/edge_cache', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2033
|
-
yield delay(
|
|
2066
|
+
yield delay(0);
|
|
2034
2067
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2035
2068
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2036
2069
|
: getSitesPerformanceEdgecacheResponseMock()), { status: 200,
|
|
@@ -2040,7 +2073,7 @@ export const getSitesPerformanceEdgecacheMockHandler = (overrideResponse) => {
|
|
|
2040
2073
|
};
|
|
2041
2074
|
export const getSitesPerformanceEnduranceCacheLevelStatusMockHandler = (overrideResponse) => {
|
|
2042
2075
|
return http.get('*/v1/sites/:siteId/performance/endurance_cache_level', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2043
|
-
yield delay(
|
|
2076
|
+
yield delay(0);
|
|
2044
2077
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2045
2078
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2046
2079
|
: getSitesPerformanceEnduranceCacheLevelStatusResponseMock()), { status: 200,
|
|
@@ -2050,7 +2083,7 @@ export const getSitesPerformanceEnduranceCacheLevelStatusMockHandler = (override
|
|
|
2050
2083
|
};
|
|
2051
2084
|
export const getSitesPerformanceEnduranceCacheLevelMockHandler = (overrideResponse) => {
|
|
2052
2085
|
return http.post('*/v1/sites/:siteId/performance/endurance_cache_level', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2053
|
-
yield delay(
|
|
2086
|
+
yield delay(0);
|
|
2054
2087
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2055
2088
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2056
2089
|
: getSitesPerformanceEnduranceCacheLevelResponseMock()), { status: 200,
|
|
@@ -2060,7 +2093,7 @@ export const getSitesPerformanceEnduranceCacheLevelMockHandler = (overrideRespon
|
|
|
2060
2093
|
};
|
|
2061
2094
|
export const getSitesPerformanceEndurancePageCacheMockHandler = (overrideResponse) => {
|
|
2062
2095
|
return http.put('*/v1/sites/:siteId/performance/endurance_page_cache', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2063
|
-
yield delay(
|
|
2096
|
+
yield delay(0);
|
|
2064
2097
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2065
2098
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2066
2099
|
: getSitesPerformanceEndurancePageCacheResponseMock()), { status: 200,
|
|
@@ -2070,7 +2103,7 @@ export const getSitesPerformanceEndurancePageCacheMockHandler = (overrideRespons
|
|
|
2070
2103
|
};
|
|
2071
2104
|
export const getCreatePhpInfoMockHandler = (overrideResponse) => {
|
|
2072
2105
|
return http.post('*/v1/sites/:siteId/php-info', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2073
|
-
yield delay(
|
|
2106
|
+
yield delay(0);
|
|
2074
2107
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2075
2108
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2076
2109
|
: getCreatePhpInfoResponseMock()), { status: 200,
|
|
@@ -2080,7 +2113,7 @@ export const getCreatePhpInfoMockHandler = (overrideResponse) => {
|
|
|
2080
2113
|
};
|
|
2081
2114
|
export const getSitePluginsMockHandler = (overrideResponse) => {
|
|
2082
2115
|
return http.get('*/v1/sites/:siteId/plugins', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2083
|
-
yield delay(
|
|
2116
|
+
yield delay(0);
|
|
2084
2117
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2085
2118
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2086
2119
|
: getSitePluginsResponseMock()), { status: 200,
|
|
@@ -2090,7 +2123,7 @@ export const getSitePluginsMockHandler = (overrideResponse) => {
|
|
|
2090
2123
|
};
|
|
2091
2124
|
export const getSitePluginUpdateMockHandler = (overrideResponse) => {
|
|
2092
2125
|
return http.put('*/v1/sites/:siteId/plugins', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2093
|
-
yield delay(
|
|
2126
|
+
yield delay(0);
|
|
2094
2127
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2095
2128
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2096
2129
|
: getSitePluginUpdateResponseMock()), { status: 200,
|
|
@@ -2100,7 +2133,7 @@ export const getSitePluginUpdateMockHandler = (overrideResponse) => {
|
|
|
2100
2133
|
};
|
|
2101
2134
|
export const getSitePluginsAutoupdateMockHandler = (overrideResponse) => {
|
|
2102
2135
|
return http.post('*/v1/sites/:siteId/plugins/autoupdate', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2103
|
-
yield delay(
|
|
2136
|
+
yield delay(0);
|
|
2104
2137
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2105
2138
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2106
2139
|
: getSitePluginsAutoupdateResponseMock()), { status: 200,
|
|
@@ -2110,7 +2143,7 @@ export const getSitePluginsAutoupdateMockHandler = (overrideResponse) => {
|
|
|
2110
2143
|
};
|
|
2111
2144
|
export const getSitePluginsToggleMockHandler = (overrideResponse) => {
|
|
2112
2145
|
return http.post('*/v1/sites/:siteId/plugins/toggle', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2113
|
-
yield delay(
|
|
2146
|
+
yield delay(0);
|
|
2114
2147
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2115
2148
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2116
2149
|
: getSitePluginsToggleResponseMock()), { status: 200,
|
|
@@ -2120,7 +2153,7 @@ export const getSitePluginsToggleMockHandler = (overrideResponse) => {
|
|
|
2120
2153
|
};
|
|
2121
2154
|
export const getSitePluginsUpdateMockHandler = (overrideResponse) => {
|
|
2122
2155
|
return http.post('*/v1/sites/:siteId/plugins/update', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2123
|
-
yield delay(
|
|
2156
|
+
yield delay(0);
|
|
2124
2157
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2125
2158
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2126
2159
|
: getSitePluginsUpdateResponseMock()), { status: 200,
|
|
@@ -2130,7 +2163,7 @@ export const getSitePluginsUpdateMockHandler = (overrideResponse) => {
|
|
|
2130
2163
|
};
|
|
2131
2164
|
export const getSiteQualityMetricsMockHandler = (overrideResponse) => {
|
|
2132
2165
|
return http.get('*/v1/sites/:siteId/quality-metrics', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2133
|
-
yield delay(
|
|
2166
|
+
yield delay(0);
|
|
2134
2167
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2135
2168
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2136
2169
|
: getSiteQualityMetricsResponseMock()), { status: 200,
|
|
@@ -2140,7 +2173,7 @@ export const getSiteQualityMetricsMockHandler = (overrideResponse) => {
|
|
|
2140
2173
|
};
|
|
2141
2174
|
export const getResetSiteMockHandler = (overrideResponse) => {
|
|
2142
2175
|
return http.post('*/v1/sites/:siteId/reset', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2143
|
-
yield delay(
|
|
2176
|
+
yield delay(0);
|
|
2144
2177
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2145
2178
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2146
2179
|
: getResetSiteResponseMock()), { status: 200,
|
|
@@ -2150,7 +2183,7 @@ export const getResetSiteMockHandler = (overrideResponse) => {
|
|
|
2150
2183
|
};
|
|
2151
2184
|
export const getSitesSecurityBundleMockHandler = (overrideResponse) => {
|
|
2152
2185
|
return http.get('*/v1/sites/:siteId/security/bundle', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2153
|
-
yield delay(
|
|
2186
|
+
yield delay(0);
|
|
2154
2187
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2155
2188
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2156
2189
|
: getSitesSecurityBundleResponseMock()), { status: 200,
|
|
@@ -2160,7 +2193,7 @@ export const getSitesSecurityBundleMockHandler = (overrideResponse) => {
|
|
|
2160
2193
|
};
|
|
2161
2194
|
export const getSitesSecurityCheckCoreMockHandler = (overrideResponse) => {
|
|
2162
2195
|
return http.get('*/v1/sites/:siteId/security/core/check', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2163
|
-
yield delay(
|
|
2196
|
+
yield delay(0);
|
|
2164
2197
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2165
2198
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2166
2199
|
: getSitesSecurityCheckCoreResponseMock()), { status: 200,
|
|
@@ -2170,7 +2203,7 @@ export const getSitesSecurityCheckCoreMockHandler = (overrideResponse) => {
|
|
|
2170
2203
|
};
|
|
2171
2204
|
export const getSitesSecurityResetCoreFilesMockHandler = (overrideResponse) => {
|
|
2172
2205
|
return http.post('*/v1/sites/:siteId/security/core/reset', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2173
|
-
yield delay(
|
|
2206
|
+
yield delay(0);
|
|
2174
2207
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2175
2208
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2176
2209
|
: getSitesSecurityResetCoreFilesResponseMock()), { status: 200,
|
|
@@ -2180,7 +2213,7 @@ export const getSitesSecurityResetCoreFilesMockHandler = (overrideResponse) => {
|
|
|
2180
2213
|
};
|
|
2181
2214
|
export const getSitesSecurityHttpsRedirectionStatusMockHandler = (overrideResponse) => {
|
|
2182
2215
|
return http.get('*/v1/sites/:siteId/security/https', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2183
|
-
yield delay(
|
|
2216
|
+
yield delay(0);
|
|
2184
2217
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2185
2218
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2186
2219
|
: getSitesSecurityHttpsRedirectionStatusResponseMock()), { status: 200,
|
|
@@ -2190,7 +2223,7 @@ export const getSitesSecurityHttpsRedirectionStatusMockHandler = (overrideRespon
|
|
|
2190
2223
|
};
|
|
2191
2224
|
export const getSitesSecurityHttpsEnableDisableSslMockHandler = (overrideResponse) => {
|
|
2192
2225
|
return http.post('*/v1/sites/:siteId/security/https', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2193
|
-
yield delay(
|
|
2226
|
+
yield delay(0);
|
|
2194
2227
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2195
2228
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2196
2229
|
: getSitesSecurityHttpsEnableDisableSslResponseMock()), { status: 200,
|
|
@@ -2200,7 +2233,7 @@ export const getSitesSecurityHttpsEnableDisableSslMockHandler = (overrideRespons
|
|
|
2200
2233
|
};
|
|
2201
2234
|
export const getSitesSecuritySitelockMockHandler = (overrideResponse) => {
|
|
2202
2235
|
return http.get('*/v1/sites/:siteId/security/sitelock', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2203
|
-
yield delay(
|
|
2236
|
+
yield delay(0);
|
|
2204
2237
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2205
2238
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2206
2239
|
: getSitesSecuritySitelockResponseMock()), { status: 200,
|
|
@@ -2210,7 +2243,7 @@ export const getSitesSecuritySitelockMockHandler = (overrideResponse) => {
|
|
|
2210
2243
|
};
|
|
2211
2244
|
export const getSitesSecuritySslAcmeMockHandler = (overrideResponse) => {
|
|
2212
2245
|
return http.post('*/v1/sites/:siteId/security/ssl/acme', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2213
|
-
yield delay(
|
|
2246
|
+
yield delay(0);
|
|
2214
2247
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2215
2248
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2216
2249
|
: getSitesSecuritySslAcmeResponseMock()), { status: 200,
|
|
@@ -2220,7 +2253,7 @@ export const getSitesSecuritySslAcmeMockHandler = (overrideResponse) => {
|
|
|
2220
2253
|
};
|
|
2221
2254
|
export const getSitesSecuritySslStatusMockHandler = (overrideResponse) => {
|
|
2222
2255
|
return http.get('*/v1/sites/:siteId/security/ssl/status', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2223
|
-
yield delay(
|
|
2256
|
+
yield delay(0);
|
|
2224
2257
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2225
2258
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2226
2259
|
: getSitesSecuritySslStatusResponseMock()), { status: 200,
|
|
@@ -2230,7 +2263,7 @@ export const getSitesSecuritySslStatusMockHandler = (overrideResponse) => {
|
|
|
2230
2263
|
};
|
|
2231
2264
|
export const getSitesSettingsComingSoonMockHandler = (overrideResponse) => {
|
|
2232
2265
|
return http.get('*/v1/sites/:siteId/settings/coming-soon', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2233
|
-
yield delay(
|
|
2266
|
+
yield delay(0);
|
|
2234
2267
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2235
2268
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2236
2269
|
: getSitesSettingsComingSoonResponseMock()), { status: 200,
|
|
@@ -2240,7 +2273,7 @@ export const getSitesSettingsComingSoonMockHandler = (overrideResponse) => {
|
|
|
2240
2273
|
};
|
|
2241
2274
|
export const getSitesSettingsComingSoonToggleMockHandler = (overrideResponse) => {
|
|
2242
2275
|
return http.post('*/v1/sites/:siteId/settings/coming-soon', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2243
|
-
yield delay(
|
|
2276
|
+
yield delay(0);
|
|
2244
2277
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2245
2278
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2246
2279
|
: getSitesSettingsComingSoonToggleResponseMock()), { status: 200,
|
|
@@ -2250,7 +2283,7 @@ export const getSitesSettingsComingSoonToggleMockHandler = (overrideResponse) =>
|
|
|
2250
2283
|
};
|
|
2251
2284
|
export const getSitesSettingsDebugMockHandler = (overrideResponse) => {
|
|
2252
2285
|
return http.get('*/v1/sites/:siteId/settings/debug', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2253
|
-
yield delay(
|
|
2286
|
+
yield delay(0);
|
|
2254
2287
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2255
2288
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2256
2289
|
: getSitesSettingsDebugResponseMock()), { status: 200,
|
|
@@ -2260,7 +2293,7 @@ export const getSitesSettingsDebugMockHandler = (overrideResponse) => {
|
|
|
2260
2293
|
};
|
|
2261
2294
|
export const getSitesSettingsDebugToggleMockHandler = (overrideResponse) => {
|
|
2262
2295
|
return http.post('*/v1/sites/:siteId/settings/debug', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2263
|
-
yield delay(
|
|
2296
|
+
yield delay(0);
|
|
2264
2297
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2265
2298
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2266
2299
|
: getSitesSettingsDebugToggleResponseMock()), { status: 200,
|
|
@@ -2270,7 +2303,7 @@ export const getSitesSettingsDebugToggleMockHandler = (overrideResponse) => {
|
|
|
2270
2303
|
};
|
|
2271
2304
|
export const getSitesSettingsPhpVersionUpdateMockHandler = (overrideResponse) => {
|
|
2272
2305
|
return http.post('*/v1/sites/:siteId/settings/php-version', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2273
|
-
yield delay(
|
|
2306
|
+
yield delay(0);
|
|
2274
2307
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2275
2308
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2276
2309
|
: getSitesSettingsPhpVersionUpdateResponseMock()), { status: 200,
|
|
@@ -2280,7 +2313,7 @@ export const getSitesSettingsPhpVersionUpdateMockHandler = (overrideResponse) =>
|
|
|
2280
2313
|
};
|
|
2281
2314
|
export const getSitesSettingsPhpVersionsMockHandler = (overrideResponse) => {
|
|
2282
2315
|
return http.get('*/v1/sites/:siteId/settings/php-versions', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2283
|
-
yield delay(
|
|
2316
|
+
yield delay(0);
|
|
2284
2317
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2285
2318
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2286
2319
|
: getSitesSettingsPhpVersionsResponseMock()), { status: 200,
|
|
@@ -2290,7 +2323,7 @@ export const getSitesSettingsPhpVersionsMockHandler = (overrideResponse) => {
|
|
|
2290
2323
|
};
|
|
2291
2324
|
export const getSitesSshUserListMockHandler = (overrideResponse) => {
|
|
2292
2325
|
return http.get('*/v1/sites/:siteId/ssh-users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2293
|
-
yield delay(
|
|
2326
|
+
yield delay(0);
|
|
2294
2327
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2295
2328
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2296
2329
|
: getSitesSshUserListResponseMock()), { status: 200,
|
|
@@ -2300,7 +2333,7 @@ export const getSitesSshUserListMockHandler = (overrideResponse) => {
|
|
|
2300
2333
|
};
|
|
2301
2334
|
export const getSitesSshUserCreateMockHandler = (overrideResponse) => {
|
|
2302
2335
|
return http.post('*/v1/sites/:siteId/ssh-users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2303
|
-
yield delay(
|
|
2336
|
+
yield delay(0);
|
|
2304
2337
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2305
2338
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2306
2339
|
: getSitesSshUserCreateResponseMock()), { status: 200,
|
|
@@ -2310,7 +2343,7 @@ export const getSitesSshUserCreateMockHandler = (overrideResponse) => {
|
|
|
2310
2343
|
};
|
|
2311
2344
|
export const getSitesSshUserDeleteMockHandler = (overrideResponse) => {
|
|
2312
2345
|
return http.delete('*/v1/sites/:siteId/ssh-users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2313
|
-
yield delay(
|
|
2346
|
+
yield delay(0);
|
|
2314
2347
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2315
2348
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2316
2349
|
: getSitesSshUserDeleteResponseMock()), { status: 200,
|
|
@@ -2320,7 +2353,7 @@ export const getSitesSshUserDeleteMockHandler = (overrideResponse) => {
|
|
|
2320
2353
|
};
|
|
2321
2354
|
export const getSitesSshUserUpdateMockHandler = (overrideResponse) => {
|
|
2322
2355
|
return http.put('*/v1/sites/:siteId/ssh-users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2323
|
-
yield delay(
|
|
2356
|
+
yield delay(0);
|
|
2324
2357
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2325
2358
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2326
2359
|
: getSitesSshUserUpdateResponseMock()), { status: 200,
|
|
@@ -2330,7 +2363,7 @@ export const getSitesSshUserUpdateMockHandler = (overrideResponse) => {
|
|
|
2330
2363
|
};
|
|
2331
2364
|
export const getSitesSslMockHandler = (overrideResponse) => {
|
|
2332
2365
|
return http.get('*/v1/sites/:siteId/ssl', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2333
|
-
yield delay(
|
|
2366
|
+
yield delay(0);
|
|
2334
2367
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2335
2368
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2336
2369
|
: getSitesSslResponseMock()), { status: 200,
|
|
@@ -2340,7 +2373,7 @@ export const getSitesSslMockHandler = (overrideResponse) => {
|
|
|
2340
2373
|
};
|
|
2341
2374
|
export const getSitesSsoMockHandler = (overrideResponse) => {
|
|
2342
2375
|
return http.get('*/v1/sites/:siteId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2343
|
-
yield delay(
|
|
2376
|
+
yield delay(0);
|
|
2344
2377
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2345
2378
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2346
2379
|
: getSitesSsoResponseMock()), { status: 200,
|
|
@@ -2350,7 +2383,7 @@ export const getSitesSsoMockHandler = (overrideResponse) => {
|
|
|
2350
2383
|
};
|
|
2351
2384
|
export const getStagingSitePromoteMockHandler = (overrideResponse) => {
|
|
2352
2385
|
return http.post('*/v1/sites/:siteId/staging', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2353
|
-
yield delay(
|
|
2386
|
+
yield delay(0);
|
|
2354
2387
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2355
2388
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2356
2389
|
: getStagingSitePromoteResponseMock()), { status: 200,
|
|
@@ -2360,7 +2393,7 @@ export const getStagingSitePromoteMockHandler = (overrideResponse) => {
|
|
|
2360
2393
|
};
|
|
2361
2394
|
export const getSiteStatusMockHandler = (overrideResponse) => {
|
|
2362
2395
|
return http.get('*/v1/sites/:siteId/status', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2363
|
-
yield delay(
|
|
2396
|
+
yield delay(0);
|
|
2364
2397
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2365
2398
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2366
2399
|
: getSiteStatusResponseMock()), { status: 200,
|
|
@@ -2370,7 +2403,7 @@ export const getSiteStatusMockHandler = (overrideResponse) => {
|
|
|
2370
2403
|
};
|
|
2371
2404
|
export const getSiteUsersMockHandler = (overrideResponse) => {
|
|
2372
2405
|
return http.get('*/v1/sites/:siteId/users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2373
|
-
yield delay(
|
|
2406
|
+
yield delay(0);
|
|
2374
2407
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2375
2408
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2376
2409
|
: getSiteUsersResponseMock()), { status: 200,
|
|
@@ -2380,7 +2413,7 @@ export const getSiteUsersMockHandler = (overrideResponse) => {
|
|
|
2380
2413
|
};
|
|
2381
2414
|
export const getSitesVersionMockHandler = (overrideResponse) => {
|
|
2382
2415
|
return http.get('*/v1/sites/:siteId/version', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2383
|
-
yield delay(
|
|
2416
|
+
yield delay(0);
|
|
2384
2417
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2385
2418
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2386
2419
|
: getSitesVersionResponseMock()), { status: 200,
|
|
@@ -2390,7 +2423,7 @@ export const getSitesVersionMockHandler = (overrideResponse) => {
|
|
|
2390
2423
|
};
|
|
2391
2424
|
export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
|
|
2392
2425
|
return http.post('*/v1/sites/:siteId/wpsolution', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2393
|
-
yield delay(
|
|
2426
|
+
yield delay(0);
|
|
2394
2427
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2395
2428
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2396
2429
|
: getSiteAddonWpsolutionResponseMock()), { status: 200,
|
|
@@ -2400,7 +2433,7 @@ export const getSiteAddonWpsolutionMockHandler = (overrideResponse) => {
|
|
|
2400
2433
|
};
|
|
2401
2434
|
export const getAddonsSitelockSsoV2MockHandler = (overrideResponse) => {
|
|
2402
2435
|
return http.get('*/v2/addons/sitelock/:addonId/sso', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2403
|
-
yield delay(
|
|
2436
|
+
yield delay(0);
|
|
2404
2437
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2405
2438
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2406
2439
|
: getAddonsSitelockSsoV2ResponseMock()), { status: 200,
|
|
@@ -2410,7 +2443,7 @@ export const getAddonsSitelockSsoV2MockHandler = (overrideResponse) => {
|
|
|
2410
2443
|
};
|
|
2411
2444
|
export const getBackupCreateV2MockHandler = (overrideResponse) => {
|
|
2412
2445
|
return http.post('*/v2/addons/:addonId/backup/create', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2413
|
-
yield delay(
|
|
2446
|
+
yield delay(0);
|
|
2414
2447
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2415
2448
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2416
2449
|
: getBackupCreateV2ResponseMock()), { status: 200,
|
|
@@ -2420,7 +2453,7 @@ export const getBackupCreateV2MockHandler = (overrideResponse) => {
|
|
|
2420
2453
|
};
|
|
2421
2454
|
export const getBackupDownloadV2MockHandler = (overrideResponse) => {
|
|
2422
2455
|
return http.post('*/v2/addons/:addonId/backup/download', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2423
|
-
yield delay(
|
|
2456
|
+
yield delay(0);
|
|
2424
2457
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2425
2458
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2426
2459
|
: getBackupDownloadV2ResponseMock()), { status: 200,
|
|
@@ -2430,7 +2463,7 @@ export const getBackupDownloadV2MockHandler = (overrideResponse) => {
|
|
|
2430
2463
|
};
|
|
2431
2464
|
export const getBackupListV2MockHandler = (overrideResponse) => {
|
|
2432
2465
|
return http.get('*/v2/addons/:addonId/backup/list', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2433
|
-
yield delay(
|
|
2466
|
+
yield delay(0);
|
|
2434
2467
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2435
2468
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2436
2469
|
: getBackupListV2ResponseMock()), { status: 200,
|
|
@@ -2440,7 +2473,7 @@ export const getBackupListV2MockHandler = (overrideResponse) => {
|
|
|
2440
2473
|
};
|
|
2441
2474
|
export const getBackupRestoreV2MockHandler = (overrideResponse) => {
|
|
2442
2475
|
return http.post('*/v2/addons/:addonId/backup/restore', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2443
|
-
yield delay(
|
|
2476
|
+
yield delay(0);
|
|
2444
2477
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2445
2478
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2446
2479
|
: getBackupRestoreV2ResponseMock()), { status: 200,
|
|
@@ -2450,7 +2483,7 @@ export const getBackupRestoreV2MockHandler = (overrideResponse) => {
|
|
|
2450
2483
|
};
|
|
2451
2484
|
export const getBackupStatusV2MockHandler = (overrideResponse) => {
|
|
2452
2485
|
return http.get('*/v2/addons/:addonId/backup/status', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2453
|
-
yield delay(
|
|
2486
|
+
yield delay(0);
|
|
2454
2487
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2455
2488
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2456
2489
|
: getBackupStatusV2ResponseMock()), { status: 200,
|
|
@@ -2460,7 +2493,7 @@ export const getBackupStatusV2MockHandler = (overrideResponse) => {
|
|
|
2460
2493
|
};
|
|
2461
2494
|
export const getDbListV2MockHandler = (overrideResponse) => {
|
|
2462
2495
|
return http.get('*/v2/hosting/:hostingId/db', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2463
|
-
yield delay(
|
|
2496
|
+
yield delay(0);
|
|
2464
2497
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2465
2498
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2466
2499
|
: getDbListV2ResponseMock()), { status: 200,
|
|
@@ -2470,7 +2503,7 @@ export const getDbListV2MockHandler = (overrideResponse) => {
|
|
|
2470
2503
|
};
|
|
2471
2504
|
export const getHostingDomainsUnassignV2MockHandler = (overrideResponse) => {
|
|
2472
2505
|
return http.post('*/v2/hosting/:hostingId/domains/unassign', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2473
|
-
yield delay(
|
|
2506
|
+
yield delay(0);
|
|
2474
2507
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2475
2508
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2476
2509
|
: getHostingDomainsUnassignV2ResponseMock()), { status: 200,
|
|
@@ -2480,7 +2513,7 @@ export const getHostingDomainsUnassignV2MockHandler = (overrideResponse) => {
|
|
|
2480
2513
|
};
|
|
2481
2514
|
export const getListFilesV2MockHandler = (overrideResponse) => {
|
|
2482
2515
|
return http.get('*/v2/hosting/:hostingId/files', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2483
|
-
yield delay(
|
|
2516
|
+
yield delay(0);
|
|
2484
2517
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2485
2518
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2486
2519
|
: getListFilesV2ResponseMock()), { status: 200,
|
|
@@ -2490,7 +2523,7 @@ export const getListFilesV2MockHandler = (overrideResponse) => {
|
|
|
2490
2523
|
};
|
|
2491
2524
|
export const getHostingNameserversV2MockHandler = (overrideResponse) => {
|
|
2492
2525
|
return http.get('*/v2/hosting/:hostingId/nameservers', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2493
|
-
yield delay(
|
|
2526
|
+
yield delay(0);
|
|
2494
2527
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2495
2528
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2496
2529
|
: getHostingNameserversV2ResponseMock()), { status: 200,
|
|
@@ -2500,7 +2533,7 @@ export const getHostingNameserversV2MockHandler = (overrideResponse) => {
|
|
|
2500
2533
|
};
|
|
2501
2534
|
export const getHostingRedirectsV2MockHandler = (overrideResponse) => {
|
|
2502
2535
|
return http.get('*/v2/hosting/:hostingId/redirects', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2503
|
-
yield delay(
|
|
2536
|
+
yield delay(0);
|
|
2504
2537
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2505
2538
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2506
2539
|
: getHostingRedirectsV2ResponseMock()), { status: 200,
|
|
@@ -2510,7 +2543,7 @@ export const getHostingRedirectsV2MockHandler = (overrideResponse) => {
|
|
|
2510
2543
|
};
|
|
2511
2544
|
export const getHostingSitesV2MockHandler = (overrideResponse) => {
|
|
2512
2545
|
return http.get('*/v2/hosting/:hostingId/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2513
|
-
yield delay(
|
|
2546
|
+
yield delay(0);
|
|
2514
2547
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2515
2548
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2516
2549
|
: getHostingSitesV2ResponseMock()), { status: 200,
|
|
@@ -2520,7 +2553,7 @@ export const getHostingSitesV2MockHandler = (overrideResponse) => {
|
|
|
2520
2553
|
};
|
|
2521
2554
|
export const getHostingSiteAddV2MockHandler = (overrideResponse) => {
|
|
2522
2555
|
return http.post('*/v2/hosting/:hostingId/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2523
|
-
yield delay(
|
|
2556
|
+
yield delay(0);
|
|
2524
2557
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2525
2558
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2526
2559
|
: getHostingSiteAddV2ResponseMock()), { status: 200,
|
|
@@ -2530,7 +2563,7 @@ export const getHostingSiteAddV2MockHandler = (overrideResponse) => {
|
|
|
2530
2563
|
};
|
|
2531
2564
|
export const getSshKeyImportV2MockHandler = (overrideResponse) => {
|
|
2532
2565
|
return http.post('*/v2/hosting/:hostingId/ssh/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2533
|
-
yield delay(
|
|
2566
|
+
yield delay(0);
|
|
2534
2567
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2535
2568
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2536
2569
|
: getSshKeyImportV2ResponseMock()), { status: 200,
|
|
@@ -2540,7 +2573,7 @@ export const getSshKeyImportV2MockHandler = (overrideResponse) => {
|
|
|
2540
2573
|
};
|
|
2541
2574
|
export const getSshKeyListV2MockHandler = (overrideResponse) => {
|
|
2542
2575
|
return http.get('*/v2/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2543
|
-
yield delay(
|
|
2576
|
+
yield delay(0);
|
|
2544
2577
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2545
2578
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2546
2579
|
: getSshKeyListV2ResponseMock()), { status: 200,
|
|
@@ -2550,7 +2583,7 @@ export const getSshKeyListV2MockHandler = (overrideResponse) => {
|
|
|
2550
2583
|
};
|
|
2551
2584
|
export const getSshKeyV2MockHandler = (overrideResponse) => {
|
|
2552
2585
|
return http.delete('*/v2/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2553
|
-
yield delay(
|
|
2586
|
+
yield delay(0);
|
|
2554
2587
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2555
2588
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2556
2589
|
: getSshKeyV2ResponseMock()), { status: 200,
|
|
@@ -2560,7 +2593,7 @@ export const getSshKeyV2MockHandler = (overrideResponse) => {
|
|
|
2560
2593
|
};
|
|
2561
2594
|
export const getSitesListV2MockHandler = (overrideResponse) => {
|
|
2562
2595
|
return http.get('*/v2/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2563
|
-
yield delay(
|
|
2596
|
+
yield delay(0);
|
|
2564
2597
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2565
2598
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2566
2599
|
: getSitesListV2ResponseMock()), { status: 200,
|
|
@@ -2570,7 +2603,7 @@ export const getSitesListV2MockHandler = (overrideResponse) => {
|
|
|
2570
2603
|
};
|
|
2571
2604
|
export const getSitesInfoV2MockHandler = (overrideResponse) => {
|
|
2572
2605
|
return http.get('*/v2/sites/:siteId', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2573
|
-
yield delay(
|
|
2606
|
+
yield delay(0);
|
|
2574
2607
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2575
2608
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2576
2609
|
: getSitesInfoV2ResponseMock()), { status: 200,
|
|
@@ -2580,7 +2613,7 @@ export const getSitesInfoV2MockHandler = (overrideResponse) => {
|
|
|
2580
2613
|
};
|
|
2581
2614
|
export const getSitesDomainsV2MockHandler = (overrideResponse) => {
|
|
2582
2615
|
return http.get('*/v2/sites/:siteId/domains', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2583
|
-
yield delay(
|
|
2616
|
+
yield delay(0);
|
|
2584
2617
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2585
2618
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2586
2619
|
: getSitesDomainsV2ResponseMock()), { status: 200,
|
|
@@ -2590,7 +2623,7 @@ export const getSitesDomainsV2MockHandler = (overrideResponse) => {
|
|
|
2590
2623
|
};
|
|
2591
2624
|
export const getSiteMalwareStatusV2MockHandler = (overrideResponse) => {
|
|
2592
2625
|
return http.get('*/v2/sites/:siteId/malware-status', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2593
|
-
yield delay(
|
|
2626
|
+
yield delay(0);
|
|
2594
2627
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2595
2628
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2596
2629
|
: getSiteMalwareStatusV2ResponseMock()), { status: 200,
|
|
@@ -2600,7 +2633,7 @@ export const getSiteMalwareStatusV2MockHandler = (overrideResponse) => {
|
|
|
2600
2633
|
};
|
|
2601
2634
|
export const getSitesSecuritySitelockV2MockHandler = (overrideResponse) => {
|
|
2602
2635
|
return http.get('*/v2/sites/:siteId/security/sitelock', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2603
|
-
yield delay(
|
|
2636
|
+
yield delay(0);
|
|
2604
2637
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2605
2638
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2606
2639
|
: getSitesSecuritySitelockV2ResponseMock()), { status: 200,
|
|
@@ -2610,7 +2643,7 @@ export const getSitesSecuritySitelockV2MockHandler = (overrideResponse) => {
|
|
|
2610
2643
|
};
|
|
2611
2644
|
export const getSitesSshUserListV2MockHandler = (overrideResponse) => {
|
|
2612
2645
|
return http.get('*/v2/sites/:siteId/ssh-users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2613
|
-
yield delay(
|
|
2646
|
+
yield delay(0);
|
|
2614
2647
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2615
2648
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2616
2649
|
: getSitesSshUserListV2ResponseMock()), { status: 200,
|
|
@@ -2620,7 +2653,7 @@ export const getSitesSshUserListV2MockHandler = (overrideResponse) => {
|
|
|
2620
2653
|
};
|
|
2621
2654
|
export const getSiteUsersV2MockHandler = (overrideResponse) => {
|
|
2622
2655
|
return http.get('*/v2/sites/:siteId/users', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2623
|
-
yield delay(
|
|
2656
|
+
yield delay(0);
|
|
2624
2657
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2625
2658
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2626
2659
|
: getSiteUsersV2ResponseMock()), { status: 200,
|
|
@@ -2630,7 +2663,7 @@ export const getSiteUsersV2MockHandler = (overrideResponse) => {
|
|
|
2630
2663
|
};
|
|
2631
2664
|
export const getSshKeyImportV3MockHandler = (overrideResponse) => {
|
|
2632
2665
|
return http.post('*/v3/hosting/:hostingId/ssh/import', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2633
|
-
yield delay(
|
|
2666
|
+
yield delay(0);
|
|
2634
2667
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2635
2668
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2636
2669
|
: getSshKeyImportV3ResponseMock()), { status: 200,
|
|
@@ -2640,7 +2673,7 @@ export const getSshKeyImportV3MockHandler = (overrideResponse) => {
|
|
|
2640
2673
|
};
|
|
2641
2674
|
export const getSshKeyListV3MockHandler = (overrideResponse) => {
|
|
2642
2675
|
return http.get('*/v3/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2643
|
-
yield delay(
|
|
2676
|
+
yield delay(0);
|
|
2644
2677
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2645
2678
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2646
2679
|
: getSshKeyListV3ResponseMock()), { status: 200,
|
|
@@ -2650,7 +2683,7 @@ export const getSshKeyListV3MockHandler = (overrideResponse) => {
|
|
|
2650
2683
|
};
|
|
2651
2684
|
export const getSitesListV3MockHandler = (overrideResponse) => {
|
|
2652
2685
|
return http.get('*/v3/sites', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2653
|
-
yield delay(
|
|
2686
|
+
yield delay(0);
|
|
2654
2687
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2655
2688
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2656
2689
|
: getSitesListV3ResponseMock()), { status: 200,
|
|
@@ -2660,7 +2693,7 @@ export const getSitesListV3MockHandler = (overrideResponse) => {
|
|
|
2660
2693
|
};
|
|
2661
2694
|
export const getSshKeyListV4MockHandler = (overrideResponse) => {
|
|
2662
2695
|
return http.get('*/v4/hosting/:hostingId/ssh/keys', (info) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2663
|
-
yield delay(
|
|
2696
|
+
yield delay(0);
|
|
2664
2697
|
return new HttpResponse(JSON.stringify(overrideResponse !== undefined
|
|
2665
2698
|
? (typeof overrideResponse === "function" ? yield overrideResponse(info) : overrideResponse)
|
|
2666
2699
|
: getSshKeyListV4ResponseMock()), { status: 200,
|
|
@@ -2833,6 +2866,9 @@ export const getHostingUAPIMock = () => [
|
|
|
2833
2866
|
getSitesDomainMockHandler(),
|
|
2834
2867
|
getSitesDomainUrlMockHandler(),
|
|
2835
2868
|
getSitesDomainsCreateMockHandler(),
|
|
2869
|
+
getErrorPagesFetchMockHandler(),
|
|
2870
|
+
getErrorPagesAddMockHandler(),
|
|
2871
|
+
getErrorPagesDeleteMockHandler(),
|
|
2836
2872
|
getSiteIpaddressListMockHandler(),
|
|
2837
2873
|
getSiteIpaddressMockHandler(),
|
|
2838
2874
|
getAddSiteIpaddressMockHandler(),
|