hostinger-api-sdk 0.0.13 → 0.0.15

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 (41) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  2. package/README.md +2 -2
  3. package/api.ts +557 -9
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +469 -103
  8. package/dist/api.js +352 -12
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +469 -103
  16. package/dist/esm/api.js +345 -9
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ReachContactsApi.md +224 -0
  28. package/docs/ReachListContactsV1200Response.md +22 -0
  29. package/docs/ReachV1ContactsContactResource.md +34 -0
  30. package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
  31. package/docs/ReachV1ContactsStoreRequest.md +28 -0
  32. package/docs/VPSDockerManagerApi.md +2 -2
  33. package/docs/VPSV1BackupBackupResource.md +4 -0
  34. package/docs/VPSV1DockerManagerContainerResource.md +2 -0
  35. package/docs/VPSV1DockerManagerContentResource.md +2 -0
  36. package/docs/VPSV1DockerManagerProjectResource.md +2 -0
  37. package/docs/VPSV1SnapshotSnapshotResource.md +2 -0
  38. package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +2 -0
  39. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +2 -0
  40. package/index.ts +1 -1
  41. package/package.json +1 -1
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.0.97
6
+ * API Version: 0.1.7
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
@@ -1480,6 +1480,151 @@ export interface InlineObject2Errors {
1480
1480
  */
1481
1481
  'field_2': Array<any>;
1482
1482
  }
1483
+ /**
1484
+ *
1485
+ * @export
1486
+ * @interface ReachListContactsV1200Response
1487
+ */
1488
+ export interface ReachListContactsV1200Response {
1489
+ /**
1490
+ * Array of [`Reach.V1.Contacts.ContactResource`](#model/reachv1contactscontactresource)
1491
+ * @type {Array<ReachV1ContactsContactResource>}
1492
+ * @memberof ReachListContactsV1200Response
1493
+ */
1494
+ 'data': Array<ReachV1ContactsContactResource>;
1495
+ /**
1496
+ *
1497
+ * @type {CommonSchemaPaginationMetaSchema}
1498
+ * @memberof ReachListContactsV1200Response
1499
+ */
1500
+ 'meta': CommonSchemaPaginationMetaSchema;
1501
+ }
1502
+ /**
1503
+ *
1504
+ * @export
1505
+ * @interface ReachV1ContactsContactResource
1506
+ */
1507
+ export interface ReachV1ContactsContactResource {
1508
+ /**
1509
+ *
1510
+ * @type {string}
1511
+ * @memberof ReachV1ContactsContactResource
1512
+ */
1513
+ 'uuid': string;
1514
+ /**
1515
+ *
1516
+ * @type {string}
1517
+ * @memberof ReachV1ContactsContactResource
1518
+ */
1519
+ 'name': string;
1520
+ /**
1521
+ *
1522
+ * @type {string}
1523
+ * @memberof ReachV1ContactsContactResource
1524
+ */
1525
+ 'surname': string;
1526
+ /**
1527
+ *
1528
+ * @type {string}
1529
+ * @memberof ReachV1ContactsContactResource
1530
+ */
1531
+ 'email': string;
1532
+ /**
1533
+ *
1534
+ * @type {string}
1535
+ * @memberof ReachV1ContactsContactResource
1536
+ */
1537
+ 'subscription_status': ReachV1ContactsContactResourceSubscriptionStatusEnum;
1538
+ /**
1539
+ *
1540
+ * @type {string}
1541
+ * @memberof ReachV1ContactsContactResource
1542
+ */
1543
+ 'subscribed_at': string;
1544
+ /**
1545
+ *
1546
+ * @type {string}
1547
+ * @memberof ReachV1ContactsContactResource
1548
+ */
1549
+ 'source': ReachV1ContactsContactResourceSourceEnum | null;
1550
+ /**
1551
+ *
1552
+ * @type {string}
1553
+ * @memberof ReachV1ContactsContactResource
1554
+ */
1555
+ 'note': string | null;
1556
+ }
1557
+
1558
+ export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
1559
+ Subscribed: 'subscribed',
1560
+ Unsubscribed: 'unsubscribed'
1561
+ } as const;
1562
+
1563
+ export type ReachV1ContactsContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsContactResourceSubscriptionStatusEnum];
1564
+ export const ReachV1ContactsContactResourceSourceEnum = {
1565
+ Sync: 'sync',
1566
+ Import: 'import',
1567
+ Manual: 'manual'
1568
+ } as const;
1569
+
1570
+ export type ReachV1ContactsContactResourceSourceEnum = typeof ReachV1ContactsContactResourceSourceEnum[keyof typeof ReachV1ContactsContactResourceSourceEnum];
1571
+
1572
+ /**
1573
+ *
1574
+ * @export
1575
+ * @interface ReachV1ContactsGroupsContactGroupResource
1576
+ */
1577
+ export interface ReachV1ContactsGroupsContactGroupResource {
1578
+ /**
1579
+ *
1580
+ * @type {string}
1581
+ * @memberof ReachV1ContactsGroupsContactGroupResource
1582
+ */
1583
+ 'uuid': string;
1584
+ /**
1585
+ *
1586
+ * @type {string}
1587
+ * @memberof ReachV1ContactsGroupsContactGroupResource
1588
+ */
1589
+ 'title': string;
1590
+ }
1591
+ /**
1592
+ *
1593
+ * @export
1594
+ * @interface ReachV1ContactsStoreRequest
1595
+ */
1596
+ export interface ReachV1ContactsStoreRequest {
1597
+ /**
1598
+ *
1599
+ * @type {string}
1600
+ * @memberof ReachV1ContactsStoreRequest
1601
+ */
1602
+ 'email': string;
1603
+ /**
1604
+ *
1605
+ * @type {string}
1606
+ * @memberof ReachV1ContactsStoreRequest
1607
+ */
1608
+ 'name': string | null;
1609
+ /**
1610
+ *
1611
+ * @type {string}
1612
+ * @memberof ReachV1ContactsStoreRequest
1613
+ */
1614
+ 'surname': string | null;
1615
+ /**
1616
+ *
1617
+ * @type {Array<string>}
1618
+ * @memberof ReachV1ContactsStoreRequest
1619
+ */
1620
+ 'group_uuids': Array<string> | null;
1621
+ /**
1622
+ *
1623
+ * @type {string}
1624
+ * @memberof ReachV1ContactsStoreRequest
1625
+ */
1626
+ 'note': string | null;
1627
+ }
1483
1628
  /**
1484
1629
  *
1485
1630
  * @export
@@ -1635,6 +1780,18 @@ export interface VPSV1BackupBackupResource {
1635
1780
  * @memberof VPSV1BackupBackupResource
1636
1781
  */
1637
1782
  'id': number;
1783
+ /**
1784
+ * Backup size in kilobytes
1785
+ * @type {number}
1786
+ * @memberof VPSV1BackupBackupResource
1787
+ */
1788
+ 'size': number;
1789
+ /**
1790
+ * Estimated backup restore time in seconds
1791
+ * @type {number}
1792
+ * @memberof VPSV1BackupBackupResource
1793
+ */
1794
+ 'restore_time': number;
1638
1795
  /**
1639
1796
  * Location of the backup
1640
1797
  * @type {string}
@@ -1804,6 +1961,12 @@ export interface VPSV1DockerManagerContainerResource {
1804
1961
  * @memberof VPSV1DockerManagerContainerResource
1805
1962
  */
1806
1963
  'state': VPSV1DockerManagerContainerResourceStateEnum;
1964
+ /**
1965
+ * Container health status
1966
+ * @type {string}
1967
+ * @memberof VPSV1DockerManagerContainerResource
1968
+ */
1969
+ 'health': VPSV1DockerManagerContainerResourceHealthEnum;
1807
1970
  /**
1808
1971
  * Array of [`VPS.V1.DockerManager.ContainerPortResource`](#model/vpsv1dockermanagercontainerportresource)
1809
1972
  * @type {Array<VPSV1DockerManagerContainerPortResource>}
@@ -1829,6 +1992,14 @@ export const VPSV1DockerManagerContainerResourceStateEnum = {
1829
1992
  } as const;
1830
1993
 
1831
1994
  export type VPSV1DockerManagerContainerResourceStateEnum = typeof VPSV1DockerManagerContainerResourceStateEnum[keyof typeof VPSV1DockerManagerContainerResourceStateEnum];
1995
+ export const VPSV1DockerManagerContainerResourceHealthEnum = {
1996
+ Starting: 'starting',
1997
+ Healthy: 'healthy',
1998
+ Unhealthy: 'unhealthy',
1999
+ Empty: ''
2000
+ } as const;
2001
+
2002
+ export type VPSV1DockerManagerContainerResourceHealthEnum = typeof VPSV1DockerManagerContainerResourceHealthEnum[keyof typeof VPSV1DockerManagerContainerResourceHealthEnum];
1832
2003
 
1833
2004
  /**
1834
2005
  *
@@ -1885,6 +2056,12 @@ export interface VPSV1DockerManagerContentResource {
1885
2056
  * @memberof VPSV1DockerManagerContentResource
1886
2057
  */
1887
2058
  'content': string;
2059
+ /**
2060
+ * Project environment variables
2061
+ * @type {string}
2062
+ * @memberof VPSV1DockerManagerContentResource
2063
+ */
2064
+ 'environment': string | null;
1888
2065
  }
1889
2066
  /**
1890
2067
  *
@@ -1954,6 +2131,12 @@ export interface VPSV1DockerManagerProjectResource {
1954
2131
  * @memberof VPSV1DockerManagerProjectResource
1955
2132
  */
1956
2133
  'path': string;
2134
+ /**
2135
+ * Array of [`VPS.V1.DockerManager.ContainerResource`](#model/vpsv1dockermanagercontainerresource)
2136
+ * @type {Array<VPSV1DockerManagerContainerResource>}
2137
+ * @memberof VPSV1DockerManagerProjectResource
2138
+ */
2139
+ 'containers': Array<VPSV1DockerManagerContainerResource>;
1957
2140
  }
1958
2141
 
1959
2142
  export const VPSV1DockerManagerProjectResourceStateEnum = {
@@ -2401,6 +2584,12 @@ export interface VPSV1SnapshotSnapshotResource {
2401
2584
  * @memberof VPSV1SnapshotSnapshotResource
2402
2585
  */
2403
2586
  'id': number;
2587
+ /**
2588
+ * Estimated snapshot restore time in seconds
2589
+ * @type {number}
2590
+ * @memberof VPSV1SnapshotSnapshotResource
2591
+ */
2592
+ 'restore_time': number;
2404
2593
  /**
2405
2594
  *
2406
2595
  * @type {string}
@@ -2463,6 +2652,12 @@ export interface VPSV1VirtualMachineDockerManagerUpRequest {
2463
2652
  * @memberof VPSV1VirtualMachineDockerManagerUpRequest
2464
2653
  */
2465
2654
  'content': string;
2655
+ /**
2656
+ * Project environment variables
2657
+ * @type {string}
2658
+ * @memberof VPSV1VirtualMachineDockerManagerUpRequest
2659
+ */
2660
+ 'environment': string | null;
2466
2661
  }
2467
2662
  /**
2468
2663
  *
@@ -2745,6 +2940,12 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
2745
2940
  * @memberof VPSV1VirtualMachineVirtualMachineResource
2746
2941
  */
2747
2942
  'subscription_id': string | null;
2943
+ /**
2944
+ * Data center ID
2945
+ * @type {number}
2946
+ * @memberof VPSV1VirtualMachineVirtualMachineResource
2947
+ */
2948
+ 'data_center_id': number | null;
2748
2949
  /**
2749
2950
  * VPS plan name
2750
2951
  * @type {string}
@@ -5632,6 +5833,353 @@ export class DomainsWHOISApi extends BaseAPI {
5632
5833
 
5633
5834
 
5634
5835
 
5836
+ /**
5837
+ * ReachContactsApi - axios parameter creator
5838
+ * @export
5839
+ */
5840
+ export const ReachContactsApiAxiosParamCreator = function (configuration?: Configuration) {
5841
+ return {
5842
+ /**
5843
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
5844
+ * @summary Create a new contact
5845
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
5846
+ * @param {*} [options] Override http request option.
5847
+ * @throws {RequiredError}
5848
+ */
5849
+ createANewContactV1: async (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5850
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
5851
+ assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
5852
+ const localVarPath = `/api/reach/v1/contacts`;
5853
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5854
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5855
+ let baseOptions;
5856
+ if (configuration) {
5857
+ baseOptions = configuration.baseOptions;
5858
+ }
5859
+
5860
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5861
+ const localVarHeaderParameter = {} as any;
5862
+ const localVarQueryParameter = {} as any;
5863
+
5864
+ // authentication apiToken required
5865
+ // http bearer authentication required
5866
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5867
+
5868
+
5869
+
5870
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5871
+
5872
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5873
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5874
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5875
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
5876
+
5877
+ return {
5878
+ url: toPathString(localVarUrlObj),
5879
+ options: localVarRequestOptions,
5880
+ };
5881
+ },
5882
+ /**
5883
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
5884
+ * @summary Delete a contact
5885
+ * @param {string} uuid UUID of the contact to delete
5886
+ * @param {*} [options] Override http request option.
5887
+ * @throws {RequiredError}
5888
+ */
5889
+ deleteAContactV1: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5890
+ // verify required parameter 'uuid' is not null or undefined
5891
+ assertParamExists('deleteAContactV1', 'uuid', uuid)
5892
+ const localVarPath = `/api/reach/v1/contacts/{uuid}`
5893
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
5894
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5895
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5896
+ let baseOptions;
5897
+ if (configuration) {
5898
+ baseOptions = configuration.baseOptions;
5899
+ }
5900
+
5901
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
5902
+ const localVarHeaderParameter = {} as any;
5903
+ const localVarQueryParameter = {} as any;
5904
+
5905
+ // authentication apiToken required
5906
+ // http bearer authentication required
5907
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5908
+
5909
+
5910
+
5911
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5912
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5913
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5914
+
5915
+ return {
5916
+ url: toPathString(localVarUrlObj),
5917
+ options: localVarRequestOptions,
5918
+ };
5919
+ },
5920
+ /**
5921
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
5922
+ * @summary List contact groups
5923
+ * @param {*} [options] Override http request option.
5924
+ * @throws {RequiredError}
5925
+ */
5926
+ listContactGroupsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5927
+ const localVarPath = `/api/reach/v1/contacts/groups`;
5928
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5929
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5930
+ let baseOptions;
5931
+ if (configuration) {
5932
+ baseOptions = configuration.baseOptions;
5933
+ }
5934
+
5935
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5936
+ const localVarHeaderParameter = {} as any;
5937
+ const localVarQueryParameter = {} as any;
5938
+
5939
+ // authentication apiToken required
5940
+ // http bearer authentication required
5941
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5942
+
5943
+
5944
+
5945
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5946
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5947
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5948
+
5949
+ return {
5950
+ url: toPathString(localVarUrlObj),
5951
+ options: localVarRequestOptions,
5952
+ };
5953
+ },
5954
+ /**
5955
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
5956
+ * @summary List contacts
5957
+ * @param {string} [groupUuid] Filter contacts by group UUID
5958
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
5959
+ * @param {number} [page] Page number
5960
+ * @param {*} [options] Override http request option.
5961
+ * @throws {RequiredError}
5962
+ */
5963
+ listContactsV1: async (groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5964
+ const localVarPath = `/api/reach/v1/contacts`;
5965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5967
+ let baseOptions;
5968
+ if (configuration) {
5969
+ baseOptions = configuration.baseOptions;
5970
+ }
5971
+
5972
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5973
+ const localVarHeaderParameter = {} as any;
5974
+ const localVarQueryParameter = {} as any;
5975
+
5976
+ // authentication apiToken required
5977
+ // http bearer authentication required
5978
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5979
+
5980
+ if (groupUuid !== undefined) {
5981
+ localVarQueryParameter['group_uuid'] = groupUuid;
5982
+ }
5983
+
5984
+ if (subscriptionStatus !== undefined) {
5985
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
5986
+ }
5987
+
5988
+ if (page !== undefined) {
5989
+ localVarQueryParameter['page'] = page;
5990
+ }
5991
+
5992
+
5993
+
5994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5996
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5997
+
5998
+ return {
5999
+ url: toPathString(localVarUrlObj),
6000
+ options: localVarRequestOptions,
6001
+ };
6002
+ },
6003
+ }
6004
+ };
6005
+
6006
+ /**
6007
+ * ReachContactsApi - functional programming interface
6008
+ * @export
6009
+ */
6010
+ export const ReachContactsApiFp = function(configuration?: Configuration) {
6011
+ const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration)
6012
+ return {
6013
+ /**
6014
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
6015
+ * @summary Create a new contact
6016
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
6017
+ * @param {*} [options] Override http request option.
6018
+ * @throws {RequiredError}
6019
+ */
6020
+ async createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsContactResource>> {
6021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
6022
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createANewContactV1']?.[0]?.url;
6023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6024
+ },
6025
+ /**
6026
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
6027
+ * @summary Delete a contact
6028
+ * @param {string} uuid UUID of the contact to delete
6029
+ * @param {*} [options] Override http request option.
6030
+ * @throws {RequiredError}
6031
+ */
6032
+ async deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
6033
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAContactV1(uuid, options);
6034
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAContactV1']?.[0]?.url;
6035
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6036
+ },
6037
+ /**
6038
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
6039
+ * @summary List contact groups
6040
+ * @param {*} [options] Override http request option.
6041
+ * @throws {RequiredError}
6042
+ */
6043
+ async listContactGroupsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>>> {
6044
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContactGroupsV1(options);
6045
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactGroupsV1']?.[0]?.url;
6046
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6047
+ },
6048
+ /**
6049
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
6050
+ * @summary List contacts
6051
+ * @param {string} [groupUuid] Filter contacts by group UUID
6052
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
6053
+ * @param {number} [page] Page number
6054
+ * @param {*} [options] Override http request option.
6055
+ * @throws {RequiredError}
6056
+ */
6057
+ async listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListContactsV1200Response>> {
6058
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
6059
+ const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactsV1']?.[0]?.url;
6060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6061
+ },
6062
+ }
6063
+ };
6064
+
6065
+ /**
6066
+ * ReachContactsApi - factory interface
6067
+ * @export
6068
+ */
6069
+ export const ReachContactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6070
+ const localVarFp = ReachContactsApiFp(configuration)
6071
+ return {
6072
+ /**
6073
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
6074
+ * @summary Create a new contact
6075
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
6076
+ * @param {*} [options] Override http request option.
6077
+ * @throws {RequiredError}
6078
+ */
6079
+ createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsContactResource> {
6080
+ return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
6081
+ },
6082
+ /**
6083
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
6084
+ * @summary Delete a contact
6085
+ * @param {string} uuid UUID of the contact to delete
6086
+ * @param {*} [options] Override http request option.
6087
+ * @throws {RequiredError}
6088
+ */
6089
+ deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
6090
+ return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
6091
+ },
6092
+ /**
6093
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
6094
+ * @summary List contact groups
6095
+ * @param {*} [options] Override http request option.
6096
+ * @throws {RequiredError}
6097
+ */
6098
+ listContactGroupsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>> {
6099
+ return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
6100
+ },
6101
+ /**
6102
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
6103
+ * @summary List contacts
6104
+ * @param {string} [groupUuid] Filter contacts by group UUID
6105
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
6106
+ * @param {number} [page] Page number
6107
+ * @param {*} [options] Override http request option.
6108
+ * @throws {RequiredError}
6109
+ */
6110
+ listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListContactsV1200Response> {
6111
+ return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
6112
+ },
6113
+ };
6114
+ };
6115
+
6116
+ /**
6117
+ * ReachContactsApi - object-oriented interface
6118
+ * @export
6119
+ * @class ReachContactsApi
6120
+ * @extends {BaseAPI}
6121
+ */
6122
+ export class ReachContactsApi extends BaseAPI {
6123
+ /**
6124
+ * Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
6125
+ * @summary Create a new contact
6126
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
6127
+ * @param {*} [options] Override http request option.
6128
+ * @throws {RequiredError}
6129
+ * @memberof ReachContactsApi
6130
+ */
6131
+ public createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) {
6132
+ return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
6133
+ }
6134
+
6135
+ /**
6136
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
6137
+ * @summary Delete a contact
6138
+ * @param {string} uuid UUID of the contact to delete
6139
+ * @param {*} [options] Override http request option.
6140
+ * @throws {RequiredError}
6141
+ * @memberof ReachContactsApi
6142
+ */
6143
+ public deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig) {
6144
+ return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
6145
+ }
6146
+
6147
+ /**
6148
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
6149
+ * @summary List contact groups
6150
+ * @param {*} [options] Override http request option.
6151
+ * @throws {RequiredError}
6152
+ * @memberof ReachContactsApi
6153
+ */
6154
+ public listContactGroupsV1(options?: RawAxiosRequestConfig) {
6155
+ return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
6156
+ }
6157
+
6158
+ /**
6159
+ * Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
6160
+ * @summary List contacts
6161
+ * @param {string} [groupUuid] Filter contacts by group UUID
6162
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
6163
+ * @param {number} [page] Page number
6164
+ * @param {*} [options] Override http request option.
6165
+ * @throws {RequiredError}
6166
+ * @memberof ReachContactsApi
6167
+ */
6168
+ public listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig) {
6169
+ return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
6170
+ }
6171
+ }
6172
+
6173
+ /**
6174
+ * @export
6175
+ */
6176
+ export const ListContactsV1SubscriptionStatusEnum = {
6177
+ Subscribed: 'subscribed',
6178
+ Unsubscribed: 'unsubscribed'
6179
+ } as const;
6180
+ export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1SubscriptionStatusEnum[keyof typeof ListContactsV1SubscriptionStatusEnum];
6181
+
6182
+
5635
6183
  /**
5636
6184
  * VPSActionsApi - axios parameter creator
5637
6185
  * @export
@@ -6139,7 +6687,7 @@ export class VPSDataCentersApi extends BaseAPI {
6139
6687
  export const VPSDockerManagerApiAxiosParamCreator = function (configuration?: Configuration) {
6140
6688
  return {
6141
6689
  /**
6142
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project already exists, it will be replaced.
6690
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
6143
6691
  * @summary Create new project
6144
6692
  * @param {number} virtualMachineId Virtual Machine ID
6145
6693
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -6309,7 +6857,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration?: Co
6309
6857
  };
6310
6858
  },
6311
6859
  /**
6312
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, and file path. Use this to get an overview of all Docker projects on your VPS instance.
6860
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
6313
6861
  * @summary Get project list
6314
6862
  * @param {number} virtualMachineId Virtual Machine ID
6315
6863
  * @param {*} [options] Override http request option.
@@ -6567,7 +7115,7 @@ export const VPSDockerManagerApiFp = function(configuration?: Configuration) {
6567
7115
  const localVarAxiosParamCreator = VPSDockerManagerApiAxiosParamCreator(configuration)
6568
7116
  return {
6569
7117
  /**
6570
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project already exists, it will be replaced.
7118
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
6571
7119
  * @summary Create new project
6572
7120
  * @param {number} virtualMachineId Virtual Machine ID
6573
7121
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -6619,7 +7167,7 @@ export const VPSDockerManagerApiFp = function(configuration?: Configuration) {
6619
7167
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6620
7168
  },
6621
7169
  /**
6622
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, and file path. Use this to get an overview of all Docker projects on your VPS instance.
7170
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
6623
7171
  * @summary Get project list
6624
7172
  * @param {number} virtualMachineId Virtual Machine ID
6625
7173
  * @param {*} [options] Override http request option.
@@ -6706,7 +7254,7 @@ export const VPSDockerManagerApiFactory = function (configuration?: Configuratio
6706
7254
  const localVarFp = VPSDockerManagerApiFp(configuration)
6707
7255
  return {
6708
7256
  /**
6709
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project already exists, it will be replaced.
7257
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
6710
7258
  * @summary Create new project
6711
7259
  * @param {number} virtualMachineId Virtual Machine ID
6712
7260
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -6750,7 +7298,7 @@ export const VPSDockerManagerApiFactory = function (configuration?: Configuratio
6750
7298
  return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
6751
7299
  },
6752
7300
  /**
6753
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, and file path. Use this to get an overview of all Docker projects on your VPS instance.
7301
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
6754
7302
  * @summary Get project list
6755
7303
  * @param {number} virtualMachineId Virtual Machine ID
6756
7304
  * @param {*} [options] Override http request option.
@@ -6825,7 +7373,7 @@ export const VPSDockerManagerApiFactory = function (configuration?: Configuratio
6825
7373
  */
6826
7374
  export class VPSDockerManagerApi extends BaseAPI {
6827
7375
  /**
6828
- * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project already exists, it will be replaced.
7376
+ * Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
6829
7377
  * @summary Create new project
6830
7378
  * @param {number} virtualMachineId Virtual Machine ID
6831
7379
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -6877,7 +7425,7 @@ export class VPSDockerManagerApi extends BaseAPI {
6877
7425
  }
6878
7426
 
6879
7427
  /**
6880
- * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, and file path. Use this to get an overview of all Docker projects on your VPS instance.
7428
+ * Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
6881
7429
  * @summary Get project list
6882
7430
  * @param {number} virtualMachineId Virtual Machine ID
6883
7431
  * @param {*} [options] Override http request option.