hostinger-api-sdk 1.35.0 → 1.37.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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/api.ts +402 -1
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +303 -1
  7. package/dist/api.js +216 -9
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +303 -1
  15. package/dist/esm/api.js +204 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/AgencyHostingMetricsApi.md +123 -0
  27. package/docs/AgencyHostingV1OrdersDiskUsageMetricsLimitsResource.md +22 -0
  28. package/docs/AgencyHostingV1OrdersDiskUsageMetricsMetricResource.md +24 -0
  29. package/docs/AgencyHostingV1OrdersDiskUsageMetricsMetricsResource.md +22 -0
  30. package/docs/AgencyHostingV1OrdersResourceUsageMetricsLimitsResource.md +24 -0
  31. package/docs/AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md +26 -0
  32. package/docs/AgencyHostingV1OrdersResourceUsageMetricsMetricsResource.md +24 -0
  33. package/docs/AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource.md +24 -0
  34. package/docs/HostingV1DatabasesDatabaseResource.md +4 -0
  35. package/index.ts +1 -1
  36. package/package.json +1 -1
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.39.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.37.0
7
+ * API Version: 1.39.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.39.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.37.0
7
+ * API Version: 1.39.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.39.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.37.0
7
+ * API Version: 1.39.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.35.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.37.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.39.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -250,6 +250,69 @@ export interface AgencyHostingV1OrdersDatacenterResource {
250
250
  */
251
251
  'country': string;
252
252
  }
253
+ /**
254
+ *
255
+ * @export
256
+ * @interface AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
257
+ */
258
+ export interface AgencyHostingV1OrdersDiskUsageMetricsLimitsResource {
259
+ /**
260
+ * Disk usage quota in bytes
261
+ * @type {number}
262
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
263
+ */
264
+ 'disk_bytes': number;
265
+ /**
266
+ * Inodes quota
267
+ * @type {number}
268
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
269
+ */
270
+ 'inodes': number;
271
+ }
272
+ /**
273
+ *
274
+ * @export
275
+ * @interface AgencyHostingV1OrdersDiskUsageMetricsMetricResource
276
+ */
277
+ export interface AgencyHostingV1OrdersDiskUsageMetricsMetricResource {
278
+ /**
279
+ * Disk usage in bytes at this sample
280
+ * @type {number}
281
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricResource
282
+ */
283
+ 'disk_bytes': number;
284
+ /**
285
+ * Number of inodes used at this sample
286
+ * @type {number}
287
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricResource
288
+ */
289
+ 'inodes': number;
290
+ /**
291
+ * Unix timestamp of the sample
292
+ * @type {number}
293
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricResource
294
+ */
295
+ 'timestamp': number;
296
+ }
297
+ /**
298
+ *
299
+ * @export
300
+ * @interface AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
301
+ */
302
+ export interface AgencyHostingV1OrdersDiskUsageMetricsMetricsResource {
303
+ /**
304
+ *
305
+ * @type {AgencyHostingV1OrdersDiskUsageMetricsLimitsResource}
306
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
307
+ */
308
+ 'limits': AgencyHostingV1OrdersDiskUsageMetricsLimitsResource;
309
+ /**
310
+ * Array of [`AgencyHosting.V1.Orders.DiskUsageMetrics.MetricResource`](#model/agencyhostingv1ordersdiskusagemetricsmetricresource)
311
+ * @type {Array<AgencyHostingV1OrdersDiskUsageMetricsMetricResource>}
312
+ * @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
313
+ */
314
+ 'metrics': Array<AgencyHostingV1OrdersDiskUsageMetricsMetricResource>;
315
+ }
253
316
  /**
254
317
  *
255
318
  * @export
@@ -312,6 +375,112 @@ export interface AgencyHostingV1OrdersPlanResource {
312
375
  */
313
376
  'key': string | null;
314
377
  }
378
+ /**
379
+ *
380
+ * @export
381
+ * @interface AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
382
+ */
383
+ export interface AgencyHostingV1OrdersResourceUsageMetricsLimitsResource {
384
+ /**
385
+ * Memory usage quota in bytes
386
+ * @type {number}
387
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
388
+ */
389
+ 'memory_bytes': number;
390
+ /**
391
+ * CPU usage quota in percent
392
+ * @type {number}
393
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
394
+ */
395
+ 'cpu_percent': number;
396
+ /**
397
+ * Process usage quota
398
+ * @type {number}
399
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
400
+ */
401
+ 'processes': number;
402
+ }
403
+ /**
404
+ *
405
+ * @export
406
+ * @interface AgencyHostingV1OrdersResourceUsageMetricsMetricResource
407
+ */
408
+ export interface AgencyHostingV1OrdersResourceUsageMetricsMetricResource {
409
+ /**
410
+ * CPU usage percentage at this sample
411
+ * @type {number}
412
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
413
+ */
414
+ 'cpu_percent': number;
415
+ /**
416
+ * Memory usage in bytes at this sample
417
+ * @type {number}
418
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
419
+ */
420
+ 'memory_bytes': number;
421
+ /**
422
+ * Number of processes at this sample
423
+ * @type {number}
424
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
425
+ */
426
+ 'processes': number;
427
+ /**
428
+ * Unix timestamp of the sample
429
+ * @type {number}
430
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
431
+ */
432
+ 'timestamp': number;
433
+ }
434
+ /**
435
+ *
436
+ * @export
437
+ * @interface AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
438
+ */
439
+ export interface AgencyHostingV1OrdersResourceUsageMetricsMetricsResource {
440
+ /**
441
+ *
442
+ * @type {AgencyHostingV1OrdersResourceUsageMetricsLimitsResource}
443
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
444
+ */
445
+ 'limits': AgencyHostingV1OrdersResourceUsageMetricsLimitsResource;
446
+ /**
447
+ * Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource`](#model/agencyhostingv1ordersresourceusagemetricsmetricresource)
448
+ * @type {Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>}
449
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
450
+ */
451
+ 'metrics': Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>;
452
+ /**
453
+ * Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.WebsiteResource`](#model/agencyhostingv1ordersresourceusagemetricswebsiteresource)
454
+ * @type {Array<AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource>}
455
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
456
+ */
457
+ 'websites': Array<AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource>;
458
+ }
459
+ /**
460
+ *
461
+ * @export
462
+ * @interface AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
463
+ */
464
+ export interface AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource {
465
+ /**
466
+ * Website UID
467
+ * @type {string}
468
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
469
+ */
470
+ 'uid': string;
471
+ /**
472
+ * Domains associated with the website
473
+ * @type {Array<string>}
474
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
475
+ */
476
+ 'domains': Array<string>;
477
+ /**
478
+ * Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource`](#model/agencyhostingv1ordersresourceusagemetricsmetricresource)
479
+ * @type {Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>}
480
+ * @memberof AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
481
+ */
482
+ 'metrics': Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>;
483
+ }
315
484
  /**
316
485
  *
317
486
  * @export
@@ -4628,6 +4797,18 @@ export interface HostingV1DatabasesDatabaseResource {
4628
4797
  * @memberof HostingV1DatabasesDatabaseResource
4629
4798
  */
4630
4799
  'max_size_mb': number;
4800
+ /**
4801
+ * MySQL hostname for remote connections. Same value as hPanel Remote MySQL. Identical for every database on this account. Not the database user grant host.
4802
+ * @type {string}
4803
+ * @memberof HostingV1DatabasesDatabaseResource
4804
+ */
4805
+ 'host': string;
4806
+ /**
4807
+ * MySQL port for remote connections. Always 3306.
4808
+ * @type {number}
4809
+ * @memberof HostingV1DatabasesDatabaseResource
4810
+ */
4811
+ 'port': number;
4631
4812
  }
4632
4813
  /**
4633
4814
  *
@@ -13509,6 +13690,127 @@ export declare class AgencyHostingFilesApi extends BaseAPI {
13509
13690
  */
13510
13691
  importWebsiteFromArchiveV1(websiteUid: string, agencyHostingV1FilesImportArchiveRequest: AgencyHostingV1FilesImportArchiveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13511
13692
  }
13693
+ /**
13694
+ * AgencyHostingMetricsApi - axios parameter creator
13695
+ * @export
13696
+ */
13697
+ export declare const AgencyHostingMetricsApiAxiosParamCreator: (configuration?: Configuration) => {
13698
+ /**
13699
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
13700
+ * @summary List Agency Plan order disk usage metrics
13701
+ * @param {number} orderId Agency Plan order ID
13702
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
13703
+ * @param {*} [options] Override http request option.
13704
+ * @throws {RequiredError}
13705
+ */
13706
+ listAgencyPlanOrderDiskUsageMetricsV1: (orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13707
+ /**
13708
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
13709
+ * @summary List order resource usage metrics
13710
+ * @param {number} orderId Agency Plan order ID
13711
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
13712
+ * @param {*} [options] Override http request option.
13713
+ * @throws {RequiredError}
13714
+ */
13715
+ listOrderResourceUsageMetricsV1: (orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13716
+ };
13717
+ /**
13718
+ * AgencyHostingMetricsApi - functional programming interface
13719
+ * @export
13720
+ */
13721
+ export declare const AgencyHostingMetricsApiFp: (configuration?: Configuration) => {
13722
+ /**
13723
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
13724
+ * @summary List Agency Plan order disk usage metrics
13725
+ * @param {number} orderId Agency Plan order ID
13726
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
13727
+ * @param {*} [options] Override http request option.
13728
+ * @throws {RequiredError}
13729
+ */
13730
+ listAgencyPlanOrderDiskUsageMetricsV1(orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgencyHostingV1OrdersDiskUsageMetricsMetricsResource>>;
13731
+ /**
13732
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
13733
+ * @summary List order resource usage metrics
13734
+ * @param {number} orderId Agency Plan order ID
13735
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
13736
+ * @param {*} [options] Override http request option.
13737
+ * @throws {RequiredError}
13738
+ */
13739
+ listOrderResourceUsageMetricsV1(orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgencyHostingV1OrdersResourceUsageMetricsMetricsResource>>;
13740
+ };
13741
+ /**
13742
+ * AgencyHostingMetricsApi - factory interface
13743
+ * @export
13744
+ */
13745
+ export declare const AgencyHostingMetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13746
+ /**
13747
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
13748
+ * @summary List Agency Plan order disk usage metrics
13749
+ * @param {number} orderId Agency Plan order ID
13750
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
13751
+ * @param {*} [options] Override http request option.
13752
+ * @throws {RequiredError}
13753
+ */
13754
+ listAgencyPlanOrderDiskUsageMetricsV1(orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig): AxiosPromise<AgencyHostingV1OrdersDiskUsageMetricsMetricsResource>;
13755
+ /**
13756
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
13757
+ * @summary List order resource usage metrics
13758
+ * @param {number} orderId Agency Plan order ID
13759
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
13760
+ * @param {*} [options] Override http request option.
13761
+ * @throws {RequiredError}
13762
+ */
13763
+ listOrderResourceUsageMetricsV1(orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig): AxiosPromise<AgencyHostingV1OrdersResourceUsageMetricsMetricsResource>;
13764
+ };
13765
+ /**
13766
+ * AgencyHostingMetricsApi - object-oriented interface
13767
+ * @export
13768
+ * @class AgencyHostingMetricsApi
13769
+ * @extends {BaseAPI}
13770
+ */
13771
+ export declare class AgencyHostingMetricsApi extends BaseAPI {
13772
+ /**
13773
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
13774
+ * @summary List Agency Plan order disk usage metrics
13775
+ * @param {number} orderId Agency Plan order ID
13776
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
13777
+ * @param {*} [options] Override http request option.
13778
+ * @throws {RequiredError}
13779
+ * @memberof AgencyHostingMetricsApi
13780
+ */
13781
+ listAgencyPlanOrderDiskUsageMetricsV1(orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1OrdersDiskUsageMetricsMetricsResource, any, {}, any>>;
13782
+ /**
13783
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
13784
+ * @summary List order resource usage metrics
13785
+ * @param {number} orderId Agency Plan order ID
13786
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
13787
+ * @param {*} [options] Override http request option.
13788
+ * @throws {RequiredError}
13789
+ * @memberof AgencyHostingMetricsApi
13790
+ */
13791
+ listOrderResourceUsageMetricsV1(orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1OrdersResourceUsageMetricsMetricsResource, any, {}, any>>;
13792
+ }
13793
+ /**
13794
+ * @export
13795
+ */
13796
+ export declare const ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum: {
13797
+ readonly NUMBER_1: 1;
13798
+ readonly NUMBER_7: 7;
13799
+ readonly NUMBER_14: 14;
13800
+ readonly NUMBER_30: 30;
13801
+ };
13802
+ export type ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = typeof ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum[keyof typeof ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum];
13803
+ /**
13804
+ * @export
13805
+ */
13806
+ export declare const ListOrderResourceUsageMetricsV1TimeFrameHoursEnum: {
13807
+ readonly NUMBER_1: 1;
13808
+ readonly NUMBER_24: 24;
13809
+ readonly NUMBER_168: 168;
13810
+ readonly NUMBER_336: 336;
13811
+ readonly NUMBER_720: 720;
13812
+ };
13813
+ export type ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = typeof ListOrderResourceUsageMetricsV1TimeFrameHoursEnum[keyof typeof ListOrderResourceUsageMetricsV1TimeFrameHoursEnum];
13512
13814
  /**
13513
13815
  * AgencyHostingOrdersApi - axios parameter creator
13514
13816
  * @export
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.37.0
6
+ * API Version: 1.39.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -2170,6 +2170,209 @@ export class AgencyHostingFilesApi extends BaseAPI {
2170
2170
  return AgencyHostingFilesApiFp(this.configuration).importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options).then((request) => request(this.axios, this.basePath));
2171
2171
  }
2172
2172
  }
2173
+ /**
2174
+ * AgencyHostingMetricsApi - axios parameter creator
2175
+ * @export
2176
+ */
2177
+ export const AgencyHostingMetricsApiAxiosParamCreator = function (configuration) {
2178
+ return {
2179
+ /**
2180
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
2181
+ * @summary List Agency Plan order disk usage metrics
2182
+ * @param {number} orderId Agency Plan order ID
2183
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ */
2187
+ listAgencyPlanOrderDiskUsageMetricsV1: (orderId_1, timeFrameDays_1, ...args_1) => __awaiter(this, [orderId_1, timeFrameDays_1, ...args_1], void 0, function* (orderId, timeFrameDays, options = {}) {
2188
+ // verify required parameter 'orderId' is not null or undefined
2189
+ assertParamExists('listAgencyPlanOrderDiskUsageMetricsV1', 'orderId', orderId);
2190
+ const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/disk-usage-metrics`
2191
+ .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
2192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2194
+ let baseOptions;
2195
+ if (configuration) {
2196
+ baseOptions = configuration.baseOptions;
2197
+ }
2198
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2199
+ const localVarHeaderParameter = {};
2200
+ const localVarQueryParameter = {};
2201
+ // authentication apiToken required
2202
+ // http bearer authentication required
2203
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2204
+ if (timeFrameDays !== undefined) {
2205
+ localVarQueryParameter['time_frame_days'] = timeFrameDays;
2206
+ }
2207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2209
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2210
+ return {
2211
+ url: toPathString(localVarUrlObj),
2212
+ options: localVarRequestOptions,
2213
+ };
2214
+ }),
2215
+ /**
2216
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
2217
+ * @summary List order resource usage metrics
2218
+ * @param {number} orderId Agency Plan order ID
2219
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
2220
+ * @param {*} [options] Override http request option.
2221
+ * @throws {RequiredError}
2222
+ */
2223
+ listOrderResourceUsageMetricsV1: (orderId_1, timeFrameHours_1, ...args_1) => __awaiter(this, [orderId_1, timeFrameHours_1, ...args_1], void 0, function* (orderId, timeFrameHours, options = {}) {
2224
+ // verify required parameter 'orderId' is not null or undefined
2225
+ assertParamExists('listOrderResourceUsageMetricsV1', 'orderId', orderId);
2226
+ const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/resource-usage-metrics`
2227
+ .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
2228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2230
+ let baseOptions;
2231
+ if (configuration) {
2232
+ baseOptions = configuration.baseOptions;
2233
+ }
2234
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2235
+ const localVarHeaderParameter = {};
2236
+ const localVarQueryParameter = {};
2237
+ // authentication apiToken required
2238
+ // http bearer authentication required
2239
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2240
+ if (timeFrameHours !== undefined) {
2241
+ localVarQueryParameter['time_frame_hours'] = timeFrameHours;
2242
+ }
2243
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2245
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2246
+ return {
2247
+ url: toPathString(localVarUrlObj),
2248
+ options: localVarRequestOptions,
2249
+ };
2250
+ }),
2251
+ };
2252
+ };
2253
+ /**
2254
+ * AgencyHostingMetricsApi - functional programming interface
2255
+ * @export
2256
+ */
2257
+ export const AgencyHostingMetricsApiFp = function (configuration) {
2258
+ const localVarAxiosParamCreator = AgencyHostingMetricsApiAxiosParamCreator(configuration);
2259
+ return {
2260
+ /**
2261
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
2262
+ * @summary List Agency Plan order disk usage metrics
2263
+ * @param {number} orderId Agency Plan order ID
2264
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
2265
+ * @param {*} [options] Override http request option.
2266
+ * @throws {RequiredError}
2267
+ */
2268
+ listAgencyPlanOrderDiskUsageMetricsV1(orderId, timeFrameDays, options) {
2269
+ return __awaiter(this, void 0, void 0, function* () {
2270
+ var _a, _b;
2271
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAgencyPlanOrderDiskUsageMetricsV1(orderId, timeFrameDays, options);
2272
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingMetricsApi.listAgencyPlanOrderDiskUsageMetricsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
2273
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2274
+ });
2275
+ },
2276
+ /**
2277
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
2278
+ * @summary List order resource usage metrics
2279
+ * @param {number} orderId Agency Plan order ID
2280
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
2281
+ * @param {*} [options] Override http request option.
2282
+ * @throws {RequiredError}
2283
+ */
2284
+ listOrderResourceUsageMetricsV1(orderId, timeFrameHours, options) {
2285
+ return __awaiter(this, void 0, void 0, function* () {
2286
+ var _a, _b;
2287
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrderResourceUsageMetricsV1(orderId, timeFrameHours, options);
2288
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgencyHostingMetricsApi.listOrderResourceUsageMetricsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
2289
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2290
+ });
2291
+ },
2292
+ };
2293
+ };
2294
+ /**
2295
+ * AgencyHostingMetricsApi - factory interface
2296
+ * @export
2297
+ */
2298
+ export const AgencyHostingMetricsApiFactory = function (configuration, basePath, axios) {
2299
+ const localVarFp = AgencyHostingMetricsApiFp(configuration);
2300
+ return {
2301
+ /**
2302
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
2303
+ * @summary List Agency Plan order disk usage metrics
2304
+ * @param {number} orderId Agency Plan order ID
2305
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
2306
+ * @param {*} [options] Override http request option.
2307
+ * @throws {RequiredError}
2308
+ */
2309
+ listAgencyPlanOrderDiskUsageMetricsV1(orderId, timeFrameDays, options) {
2310
+ return localVarFp.listAgencyPlanOrderDiskUsageMetricsV1(orderId, timeFrameDays, options).then((request) => request(axios, basePath));
2311
+ },
2312
+ /**
2313
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
2314
+ * @summary List order resource usage metrics
2315
+ * @param {number} orderId Agency Plan order ID
2316
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
2317
+ * @param {*} [options] Override http request option.
2318
+ * @throws {RequiredError}
2319
+ */
2320
+ listOrderResourceUsageMetricsV1(orderId, timeFrameHours, options) {
2321
+ return localVarFp.listOrderResourceUsageMetricsV1(orderId, timeFrameHours, options).then((request) => request(axios, basePath));
2322
+ },
2323
+ };
2324
+ };
2325
+ /**
2326
+ * AgencyHostingMetricsApi - object-oriented interface
2327
+ * @export
2328
+ * @class AgencyHostingMetricsApi
2329
+ * @extends {BaseAPI}
2330
+ */
2331
+ export class AgencyHostingMetricsApi extends BaseAPI {
2332
+ /**
2333
+ * Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
2334
+ * @summary List Agency Plan order disk usage metrics
2335
+ * @param {number} orderId Agency Plan order ID
2336
+ * @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
2337
+ * @param {*} [options] Override http request option.
2338
+ * @throws {RequiredError}
2339
+ * @memberof AgencyHostingMetricsApi
2340
+ */
2341
+ listAgencyPlanOrderDiskUsageMetricsV1(orderId, timeFrameDays, options) {
2342
+ return AgencyHostingMetricsApiFp(this.configuration).listAgencyPlanOrderDiskUsageMetricsV1(orderId, timeFrameDays, options).then((request) => request(this.axios, this.basePath));
2343
+ }
2344
+ /**
2345
+ * Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
2346
+ * @summary List order resource usage metrics
2347
+ * @param {number} orderId Agency Plan order ID
2348
+ * @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
2349
+ * @param {*} [options] Override http request option.
2350
+ * @throws {RequiredError}
2351
+ * @memberof AgencyHostingMetricsApi
2352
+ */
2353
+ listOrderResourceUsageMetricsV1(orderId, timeFrameHours, options) {
2354
+ return AgencyHostingMetricsApiFp(this.configuration).listOrderResourceUsageMetricsV1(orderId, timeFrameHours, options).then((request) => request(this.axios, this.basePath));
2355
+ }
2356
+ }
2357
+ /**
2358
+ * @export
2359
+ */
2360
+ export const ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = {
2361
+ NUMBER_1: 1,
2362
+ NUMBER_7: 7,
2363
+ NUMBER_14: 14,
2364
+ NUMBER_30: 30
2365
+ };
2366
+ /**
2367
+ * @export
2368
+ */
2369
+ export const ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = {
2370
+ NUMBER_1: 1,
2371
+ NUMBER_24: 24,
2372
+ NUMBER_168: 168,
2373
+ NUMBER_336: 336,
2374
+ NUMBER_720: 720
2375
+ };
2173
2376
  /**
2174
2377
  * AgencyHostingOrdersApi - axios parameter creator
2175
2378
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.39.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.37.0
6
+ * API Version: 1.39.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.37.0
4
+ * API Version: 1.39.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.37.0
6
+ * API Version: 1.39.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api