hostinger-api-sdk 0.0.13 → 0.0.17

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 (43) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  2. package/CODEOWNERS +1 -1
  3. package/README.md +2 -2
  4. package/api.ts +701 -9
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +2 -2
  8. package/dist/api.d.ts +535 -103
  9. package/dist/api.js +488 -12
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +2 -2
  16. package/dist/esm/api.d.ts +535 -103
  17. package/dist/esm/api.js +481 -9
  18. package/dist/esm/base.d.ts +1 -1
  19. package/dist/esm/base.js +1 -1
  20. package/dist/esm/common.d.ts +1 -1
  21. package/dist/esm/common.js +1 -1
  22. package/dist/esm/configuration.d.ts +1 -1
  23. package/dist/esm/configuration.js +2 -2
  24. package/dist/esm/index.d.ts +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1 -1
  28. package/docs/BillingSubscriptionsApi.md +108 -0
  29. package/docs/ReachContactsApi.md +224 -0
  30. package/docs/ReachListContactsV1200Response.md +22 -0
  31. package/docs/ReachV1ContactsContactResource.md +34 -0
  32. package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
  33. package/docs/ReachV1ContactsStoreRequest.md +28 -0
  34. package/docs/VPSDockerManagerApi.md +2 -2
  35. package/docs/VPSV1BackupBackupResource.md +4 -0
  36. package/docs/VPSV1DockerManagerContainerResource.md +2 -0
  37. package/docs/VPSV1DockerManagerContentResource.md +2 -0
  38. package/docs/VPSV1DockerManagerProjectResource.md +2 -0
  39. package/docs/VPSV1SnapshotSnapshotResource.md +2 -0
  40. package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +2 -0
  41. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +2 -0
  42. package/index.ts +1 -1
  43. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.0.97
6
+ * API Version: 0.1.16
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
@@ -134,6 +134,15 @@ export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
134
134
  Individual: 'individual',
135
135
  Organization: 'organization'
136
136
  };
137
+ export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
138
+ Subscribed: 'subscribed',
139
+ Unsubscribed: 'unsubscribed'
140
+ };
141
+ export const ReachV1ContactsContactResourceSourceEnum = {
142
+ Sync: 'sync',
143
+ Import: 'import',
144
+ Manual: 'manual'
145
+ };
137
146
  export const VPSV1ActionActionResourceStateEnum = {
138
147
  Success: 'success',
139
148
  Error: 'error',
@@ -160,6 +169,12 @@ export const VPSV1DockerManagerContainerResourceStateEnum = {
160
169
  Dead: 'dead',
161
170
  Stopping: 'stopping'
162
171
  };
172
+ export const VPSV1DockerManagerContainerResourceHealthEnum = {
173
+ Starting: 'starting',
174
+ Healthy: 'healthy',
175
+ Unhealthy: 'unhealthy',
176
+ Empty: ''
177
+ };
163
178
  export const VPSV1DockerManagerProjectResourceStateEnum = {
164
179
  Running: 'running',
165
180
  Stopped: 'stopped',
@@ -724,6 +739,70 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration)
724
739
  options: localVarRequestOptions,
725
740
  };
726
741
  }),
742
+ /**
743
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
744
+ * @summary Disable auto-renewal
745
+ * @param {string} subscriptionId Subscription ID
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ disableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
750
+ // verify required parameter 'subscriptionId' is not null or undefined
751
+ assertParamExists('disableAutoRenewalV1', 'subscriptionId', subscriptionId);
752
+ const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
753
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
754
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
755
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
756
+ let baseOptions;
757
+ if (configuration) {
758
+ baseOptions = configuration.baseOptions;
759
+ }
760
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
761
+ const localVarHeaderParameter = {};
762
+ const localVarQueryParameter = {};
763
+ // authentication apiToken required
764
+ // http bearer authentication required
765
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
769
+ return {
770
+ url: toPathString(localVarUrlObj),
771
+ options: localVarRequestOptions,
772
+ };
773
+ }),
774
+ /**
775
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
776
+ * @summary Enable auto-renewal
777
+ * @param {string} subscriptionId Subscription ID
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ enableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
782
+ // verify required parameter 'subscriptionId' is not null or undefined
783
+ assertParamExists('enableAutoRenewalV1', 'subscriptionId', subscriptionId);
784
+ const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
785
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
786
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
787
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
788
+ let baseOptions;
789
+ if (configuration) {
790
+ baseOptions = configuration.baseOptions;
791
+ }
792
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
793
+ const localVarHeaderParameter = {};
794
+ const localVarQueryParameter = {};
795
+ // authentication apiToken required
796
+ // http bearer authentication required
797
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
798
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
799
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
800
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
801
+ return {
802
+ url: toPathString(localVarUrlObj),
803
+ options: localVarRequestOptions,
804
+ };
805
+ }),
727
806
  /**
728
807
  * Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
729
808
  * @summary Get subscription list
@@ -777,6 +856,36 @@ export const BillingSubscriptionsApiFp = function (configuration) {
777
856
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
778
857
  });
779
858
  },
859
+ /**
860
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
861
+ * @summary Disable auto-renewal
862
+ * @param {string} subscriptionId Subscription ID
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ disableAutoRenewalV1(subscriptionId, options) {
867
+ return __awaiter(this, void 0, void 0, function* () {
868
+ var _a, _b;
869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
870
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
871
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
872
+ });
873
+ },
874
+ /**
875
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
876
+ * @summary Enable auto-renewal
877
+ * @param {string} subscriptionId Subscription ID
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ enableAutoRenewalV1(subscriptionId, options) {
882
+ return __awaiter(this, void 0, void 0, function* () {
883
+ var _a, _b;
884
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
885
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
886
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
887
+ });
888
+ },
780
889
  /**
781
890
  * Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
782
891
  * @summary Get subscription list
@@ -811,6 +920,26 @@ export const BillingSubscriptionsApiFactory = function (configuration, basePath,
811
920
  cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
812
921
  return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
813
922
  },
923
+ /**
924
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
925
+ * @summary Disable auto-renewal
926
+ * @param {string} subscriptionId Subscription ID
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
930
+ disableAutoRenewalV1(subscriptionId, options) {
931
+ return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
932
+ },
933
+ /**
934
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
935
+ * @summary Enable auto-renewal
936
+ * @param {string} subscriptionId Subscription ID
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ enableAutoRenewalV1(subscriptionId, options) {
941
+ return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
942
+ },
814
943
  /**
815
944
  * Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
816
945
  * @summary Get subscription list
@@ -841,6 +970,28 @@ export class BillingSubscriptionsApi extends BaseAPI {
841
970
  cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
842
971
  return BillingSubscriptionsApiFp(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
843
972
  }
973
+ /**
974
+ * Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
975
+ * @summary Disable auto-renewal
976
+ * @param {string} subscriptionId Subscription ID
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ * @memberof BillingSubscriptionsApi
980
+ */
981
+ disableAutoRenewalV1(subscriptionId, options) {
982
+ return BillingSubscriptionsApiFp(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
983
+ }
984
+ /**
985
+ * Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
986
+ * @summary Enable auto-renewal
987
+ * @param {string} subscriptionId Subscription ID
988
+ * @param {*} [options] Override http request option.
989
+ * @throws {RequiredError}
990
+ * @memberof BillingSubscriptionsApi
991
+ */
992
+ enableAutoRenewalV1(subscriptionId, options) {
993
+ return BillingSubscriptionsApiFp(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
994
+ }
844
995
  /**
845
996
  * Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
846
997
  * @summary Get subscription list
@@ -2807,6 +2958,327 @@ export class DomainsWHOISApi extends BaseAPI {
2807
2958
  return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
2808
2959
  }
2809
2960
  }
2961
+ /**
2962
+ * ReachContactsApi - axios parameter creator
2963
+ * @export
2964
+ */
2965
+ export const ReachContactsApiAxiosParamCreator = function (configuration) {
2966
+ return {
2967
+ /**
2968
+ * 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.
2969
+ * @summary Create a new contact
2970
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
2971
+ * @param {*} [options] Override http request option.
2972
+ * @throws {RequiredError}
2973
+ */
2974
+ createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
2975
+ // verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
2976
+ assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
2977
+ const localVarPath = `/api/reach/v1/contacts`;
2978
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2979
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2980
+ let baseOptions;
2981
+ if (configuration) {
2982
+ baseOptions = configuration.baseOptions;
2983
+ }
2984
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2985
+ const localVarHeaderParameter = {};
2986
+ const localVarQueryParameter = {};
2987
+ // authentication apiToken required
2988
+ // http bearer authentication required
2989
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2990
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2993
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2994
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
2995
+ return {
2996
+ url: toPathString(localVarUrlObj),
2997
+ options: localVarRequestOptions,
2998
+ };
2999
+ }),
3000
+ /**
3001
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3002
+ * @summary Delete a contact
3003
+ * @param {string} uuid UUID of the contact to delete
3004
+ * @param {*} [options] Override http request option.
3005
+ * @throws {RequiredError}
3006
+ */
3007
+ deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
3008
+ // verify required parameter 'uuid' is not null or undefined
3009
+ assertParamExists('deleteAContactV1', 'uuid', uuid);
3010
+ const localVarPath = `/api/reach/v1/contacts/{uuid}`
3011
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
3012
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3013
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3014
+ let baseOptions;
3015
+ if (configuration) {
3016
+ baseOptions = configuration.baseOptions;
3017
+ }
3018
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3019
+ const localVarHeaderParameter = {};
3020
+ const localVarQueryParameter = {};
3021
+ // authentication apiToken required
3022
+ // http bearer authentication required
3023
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3024
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3025
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3026
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3027
+ return {
3028
+ url: toPathString(localVarUrlObj),
3029
+ options: localVarRequestOptions,
3030
+ };
3031
+ }),
3032
+ /**
3033
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3034
+ * @summary List contact groups
3035
+ * @param {*} [options] Override http request option.
3036
+ * @throws {RequiredError}
3037
+ */
3038
+ listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3039
+ const localVarPath = `/api/reach/v1/contacts/groups`;
3040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3042
+ let baseOptions;
3043
+ if (configuration) {
3044
+ baseOptions = configuration.baseOptions;
3045
+ }
3046
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3047
+ const localVarHeaderParameter = {};
3048
+ const localVarQueryParameter = {};
3049
+ // authentication apiToken required
3050
+ // http bearer authentication required
3051
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3052
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3053
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3054
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3055
+ return {
3056
+ url: toPathString(localVarUrlObj),
3057
+ options: localVarRequestOptions,
3058
+ };
3059
+ }),
3060
+ /**
3061
+ * 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.
3062
+ * @summary List contacts
3063
+ * @param {string} [groupUuid] Filter contacts by group UUID
3064
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3065
+ * @param {number} [page] Page number
3066
+ * @param {*} [options] Override http request option.
3067
+ * @throws {RequiredError}
3068
+ */
3069
+ listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
3070
+ const localVarPath = `/api/reach/v1/contacts`;
3071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3073
+ let baseOptions;
3074
+ if (configuration) {
3075
+ baseOptions = configuration.baseOptions;
3076
+ }
3077
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3078
+ const localVarHeaderParameter = {};
3079
+ const localVarQueryParameter = {};
3080
+ // authentication apiToken required
3081
+ // http bearer authentication required
3082
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3083
+ if (groupUuid !== undefined) {
3084
+ localVarQueryParameter['group_uuid'] = groupUuid;
3085
+ }
3086
+ if (subscriptionStatus !== undefined) {
3087
+ localVarQueryParameter['subscription_status'] = subscriptionStatus;
3088
+ }
3089
+ if (page !== undefined) {
3090
+ localVarQueryParameter['page'] = page;
3091
+ }
3092
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3094
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3095
+ return {
3096
+ url: toPathString(localVarUrlObj),
3097
+ options: localVarRequestOptions,
3098
+ };
3099
+ }),
3100
+ };
3101
+ };
3102
+ /**
3103
+ * ReachContactsApi - functional programming interface
3104
+ * @export
3105
+ */
3106
+ export const ReachContactsApiFp = function (configuration) {
3107
+ const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration);
3108
+ return {
3109
+ /**
3110
+ * 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.
3111
+ * @summary Create a new contact
3112
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
3113
+ * @param {*} [options] Override http request option.
3114
+ * @throws {RequiredError}
3115
+ */
3116
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
3117
+ return __awaiter(this, void 0, void 0, function* () {
3118
+ var _a, _b;
3119
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
3120
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3121
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3122
+ });
3123
+ },
3124
+ /**
3125
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3126
+ * @summary Delete a contact
3127
+ * @param {string} uuid UUID of the contact to delete
3128
+ * @param {*} [options] Override http request option.
3129
+ * @throws {RequiredError}
3130
+ */
3131
+ deleteAContactV1(uuid, options) {
3132
+ return __awaiter(this, void 0, void 0, function* () {
3133
+ var _a, _b;
3134
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
3135
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3136
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3137
+ });
3138
+ },
3139
+ /**
3140
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3141
+ * @summary List contact groups
3142
+ * @param {*} [options] Override http request option.
3143
+ * @throws {RequiredError}
3144
+ */
3145
+ listContactGroupsV1(options) {
3146
+ return __awaiter(this, void 0, void 0, function* () {
3147
+ var _a, _b;
3148
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
3149
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3151
+ });
3152
+ },
3153
+ /**
3154
+ * 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.
3155
+ * @summary List contacts
3156
+ * @param {string} [groupUuid] Filter contacts by group UUID
3157
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3158
+ * @param {number} [page] Page number
3159
+ * @param {*} [options] Override http request option.
3160
+ * @throws {RequiredError}
3161
+ */
3162
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
3163
+ return __awaiter(this, void 0, void 0, function* () {
3164
+ var _a, _b;
3165
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
3166
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
3167
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3168
+ });
3169
+ },
3170
+ };
3171
+ };
3172
+ /**
3173
+ * ReachContactsApi - factory interface
3174
+ * @export
3175
+ */
3176
+ export const ReachContactsApiFactory = function (configuration, basePath, axios) {
3177
+ const localVarFp = ReachContactsApiFp(configuration);
3178
+ return {
3179
+ /**
3180
+ * 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.
3181
+ * @summary Create a new contact
3182
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
3183
+ * @param {*} [options] Override http request option.
3184
+ * @throws {RequiredError}
3185
+ */
3186
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
3187
+ return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
3188
+ },
3189
+ /**
3190
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3191
+ * @summary Delete a contact
3192
+ * @param {string} uuid UUID of the contact to delete
3193
+ * @param {*} [options] Override http request option.
3194
+ * @throws {RequiredError}
3195
+ */
3196
+ deleteAContactV1(uuid, options) {
3197
+ return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
3198
+ },
3199
+ /**
3200
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3201
+ * @summary List contact groups
3202
+ * @param {*} [options] Override http request option.
3203
+ * @throws {RequiredError}
3204
+ */
3205
+ listContactGroupsV1(options) {
3206
+ return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
3207
+ },
3208
+ /**
3209
+ * 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.
3210
+ * @summary List contacts
3211
+ * @param {string} [groupUuid] Filter contacts by group UUID
3212
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3213
+ * @param {number} [page] Page number
3214
+ * @param {*} [options] Override http request option.
3215
+ * @throws {RequiredError}
3216
+ */
3217
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
3218
+ return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
3219
+ },
3220
+ };
3221
+ };
3222
+ /**
3223
+ * ReachContactsApi - object-oriented interface
3224
+ * @export
3225
+ * @class ReachContactsApi
3226
+ * @extends {BaseAPI}
3227
+ */
3228
+ export class ReachContactsApi extends BaseAPI {
3229
+ /**
3230
+ * 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.
3231
+ * @summary Create a new contact
3232
+ * @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
3233
+ * @param {*} [options] Override http request option.
3234
+ * @throws {RequiredError}
3235
+ * @memberof ReachContactsApi
3236
+ */
3237
+ createANewContactV1(reachV1ContactsStoreRequest, options) {
3238
+ return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
3239
+ }
3240
+ /**
3241
+ * Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
3242
+ * @summary Delete a contact
3243
+ * @param {string} uuid UUID of the contact to delete
3244
+ * @param {*} [options] Override http request option.
3245
+ * @throws {RequiredError}
3246
+ * @memberof ReachContactsApi
3247
+ */
3248
+ deleteAContactV1(uuid, options) {
3249
+ return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
3250
+ }
3251
+ /**
3252
+ * Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
3253
+ * @summary List contact groups
3254
+ * @param {*} [options] Override http request option.
3255
+ * @throws {RequiredError}
3256
+ * @memberof ReachContactsApi
3257
+ */
3258
+ listContactGroupsV1(options) {
3259
+ return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
3260
+ }
3261
+ /**
3262
+ * 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.
3263
+ * @summary List contacts
3264
+ * @param {string} [groupUuid] Filter contacts by group UUID
3265
+ * @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
3266
+ * @param {number} [page] Page number
3267
+ * @param {*} [options] Override http request option.
3268
+ * @throws {RequiredError}
3269
+ * @memberof ReachContactsApi
3270
+ */
3271
+ listContactsV1(groupUuid, subscriptionStatus, page, options) {
3272
+ return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
3273
+ }
3274
+ }
3275
+ /**
3276
+ * @export
3277
+ */
3278
+ export const ListContactsV1SubscriptionStatusEnum = {
3279
+ Subscribed: 'subscribed',
3280
+ Unsubscribed: 'unsubscribed'
3281
+ };
2810
3282
  /**
2811
3283
  * VPSActionsApi - axios parameter creator
2812
3284
  * @export
@@ -3277,7 +3749,7 @@ export class VPSDataCentersApi extends BaseAPI {
3277
3749
  export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3278
3750
  return {
3279
3751
  /**
3280
- * 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.
3752
+ * 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.
3281
3753
  * @summary Create new project
3282
3754
  * @param {number} virtualMachineId Virtual Machine ID
3283
3755
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -3422,7 +3894,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
3422
3894
  };
3423
3895
  }),
3424
3896
  /**
3425
- * 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.
3897
+ * 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.
3426
3898
  * @summary Get project list
3427
3899
  * @param {number} virtualMachineId Virtual Machine ID
3428
3900
  * @param {*} [options] Override http request option.
@@ -3643,7 +4115,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
3643
4115
  const localVarAxiosParamCreator = VPSDockerManagerApiAxiosParamCreator(configuration);
3644
4116
  return {
3645
4117
  /**
3646
- * 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.
4118
+ * 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.
3647
4119
  * @summary Create new project
3648
4120
  * @param {number} virtualMachineId Virtual Machine ID
3649
4121
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -3707,7 +4179,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
3707
4179
  });
3708
4180
  },
3709
4181
  /**
3710
- * 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.
4182
+ * 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.
3711
4183
  * @summary Get project list
3712
4184
  * @param {number} virtualMachineId Virtual Machine ID
3713
4185
  * @param {*} [options] Override http request option.
@@ -3811,7 +4283,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
3811
4283
  const localVarFp = VPSDockerManagerApiFp(configuration);
3812
4284
  return {
3813
4285
  /**
3814
- * 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.
4286
+ * 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.
3815
4287
  * @summary Create new project
3816
4288
  * @param {number} virtualMachineId Virtual Machine ID
3817
4289
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -3855,7 +4327,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
3855
4327
  return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
3856
4328
  },
3857
4329
  /**
3858
- * 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.
4330
+ * 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.
3859
4331
  * @summary Get project list
3860
4332
  * @param {number} virtualMachineId Virtual Machine ID
3861
4333
  * @param {*} [options] Override http request option.
@@ -3929,7 +4401,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
3929
4401
  */
3930
4402
  export class VPSDockerManagerApi extends BaseAPI {
3931
4403
  /**
3932
- * 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.
4404
+ * 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.
3933
4405
  * @summary Create new project
3934
4406
  * @param {number} virtualMachineId Virtual Machine ID
3935
4407
  * @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
@@ -3977,7 +4449,7 @@ export class VPSDockerManagerApi extends BaseAPI {
3977
4449
  return VPSDockerManagerApiFp(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
3978
4450
  }
3979
4451
  /**
3980
- * 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.
4452
+ * 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.
3981
4453
  * @summary Get project list
3982
4454
  * @param {number} virtualMachineId Virtual Machine ID
3983
4455
  * @param {*} [options] Override http request option.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.97
4
+ * API Version: 0.1.16
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: 0.0.97
6
+ * API Version: 0.1.16
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: 0.0.97
4
+ * API Version: 0.1.16
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: 0.0.97
6
+ * API Version: 0.1.16
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: 0.0.97
4
+ * API Version: 0.1.16
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