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.
- package/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- package/README.md +2 -2
- package/api.ts +557 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +469 -103
- package/dist/api.js +352 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +469 -103
- package/dist/esm/api.js +345 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ReachContactsApi.md +224 -0
- package/docs/ReachListContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsContactResource.md +34 -0
- package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
- package/docs/ReachV1ContactsStoreRequest.md +28 -0
- package/docs/VPSDockerManagerApi.md +2 -2
- package/docs/VPSV1BackupBackupResource.md +4 -0
- package/docs/VPSV1DockerManagerContainerResource.md +2 -0
- package/docs/VPSV1DockerManagerContentResource.md +2 -0
- package/docs/VPSV1DockerManagerProjectResource.md +2 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +2 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +2 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.
|
|
7
|
+
* API Version: 0.1.7
|
|
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
|
|
@@ -19,9 +19,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = void 0;
|
|
22
|
+
exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
|
|
23
|
+
exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = void 0;
|
|
24
|
+
exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = void 0;
|
|
25
25
|
const axios_1 = require("axios");
|
|
26
26
|
// Some imports not used depending on template conditions
|
|
27
27
|
// @ts-ignore
|
|
@@ -139,6 +139,15 @@ exports.DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
|
139
139
|
Individual: 'individual',
|
|
140
140
|
Organization: 'organization'
|
|
141
141
|
};
|
|
142
|
+
exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
143
|
+
Subscribed: 'subscribed',
|
|
144
|
+
Unsubscribed: 'unsubscribed'
|
|
145
|
+
};
|
|
146
|
+
exports.ReachV1ContactsContactResourceSourceEnum = {
|
|
147
|
+
Sync: 'sync',
|
|
148
|
+
Import: 'import',
|
|
149
|
+
Manual: 'manual'
|
|
150
|
+
};
|
|
142
151
|
exports.VPSV1ActionActionResourceStateEnum = {
|
|
143
152
|
Success: 'success',
|
|
144
153
|
Error: 'error',
|
|
@@ -165,6 +174,12 @@ exports.VPSV1DockerManagerContainerResourceStateEnum = {
|
|
|
165
174
|
Dead: 'dead',
|
|
166
175
|
Stopping: 'stopping'
|
|
167
176
|
};
|
|
177
|
+
exports.VPSV1DockerManagerContainerResourceHealthEnum = {
|
|
178
|
+
Starting: 'starting',
|
|
179
|
+
Healthy: 'healthy',
|
|
180
|
+
Unhealthy: 'unhealthy',
|
|
181
|
+
Empty: ''
|
|
182
|
+
};
|
|
168
183
|
exports.VPSV1DockerManagerProjectResourceStateEnum = {
|
|
169
184
|
Running: 'running',
|
|
170
185
|
Stopped: 'stopped',
|
|
@@ -2852,6 +2867,331 @@ class DomainsWHOISApi extends base_1.BaseAPI {
|
|
|
2852
2867
|
}
|
|
2853
2868
|
}
|
|
2854
2869
|
exports.DomainsWHOISApi = DomainsWHOISApi;
|
|
2870
|
+
/**
|
|
2871
|
+
* ReachContactsApi - axios parameter creator
|
|
2872
|
+
* @export
|
|
2873
|
+
*/
|
|
2874
|
+
const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
2875
|
+
return {
|
|
2876
|
+
/**
|
|
2877
|
+
* 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.
|
|
2878
|
+
* @summary Create a new contact
|
|
2879
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
2880
|
+
* @param {*} [options] Override http request option.
|
|
2881
|
+
* @throws {RequiredError}
|
|
2882
|
+
*/
|
|
2883
|
+
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
2884
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
2885
|
+
(0, common_1.assertParamExists)('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
2886
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
2887
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2888
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2889
|
+
let baseOptions;
|
|
2890
|
+
if (configuration) {
|
|
2891
|
+
baseOptions = configuration.baseOptions;
|
|
2892
|
+
}
|
|
2893
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2894
|
+
const localVarHeaderParameter = {};
|
|
2895
|
+
const localVarQueryParameter = {};
|
|
2896
|
+
// authentication apiToken required
|
|
2897
|
+
// http bearer authentication required
|
|
2898
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2899
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2902
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2903
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
2904
|
+
return {
|
|
2905
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2906
|
+
options: localVarRequestOptions,
|
|
2907
|
+
};
|
|
2908
|
+
}),
|
|
2909
|
+
/**
|
|
2910
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
2911
|
+
* @summary Delete a contact
|
|
2912
|
+
* @param {string} uuid UUID of the contact to delete
|
|
2913
|
+
* @param {*} [options] Override http request option.
|
|
2914
|
+
* @throws {RequiredError}
|
|
2915
|
+
*/
|
|
2916
|
+
deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
2917
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
2918
|
+
(0, common_1.assertParamExists)('deleteAContactV1', 'uuid', uuid);
|
|
2919
|
+
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
2920
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
2921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2922
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2923
|
+
let baseOptions;
|
|
2924
|
+
if (configuration) {
|
|
2925
|
+
baseOptions = configuration.baseOptions;
|
|
2926
|
+
}
|
|
2927
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2928
|
+
const localVarHeaderParameter = {};
|
|
2929
|
+
const localVarQueryParameter = {};
|
|
2930
|
+
// authentication apiToken required
|
|
2931
|
+
// http bearer authentication required
|
|
2932
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2933
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2935
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2936
|
+
return {
|
|
2937
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2938
|
+
options: localVarRequestOptions,
|
|
2939
|
+
};
|
|
2940
|
+
}),
|
|
2941
|
+
/**
|
|
2942
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
2943
|
+
* @summary List contact groups
|
|
2944
|
+
* @param {*} [options] Override http request option.
|
|
2945
|
+
* @throws {RequiredError}
|
|
2946
|
+
*/
|
|
2947
|
+
listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2948
|
+
const localVarPath = `/api/reach/v1/contacts/groups`;
|
|
2949
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2950
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2951
|
+
let baseOptions;
|
|
2952
|
+
if (configuration) {
|
|
2953
|
+
baseOptions = configuration.baseOptions;
|
|
2954
|
+
}
|
|
2955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2956
|
+
const localVarHeaderParameter = {};
|
|
2957
|
+
const localVarQueryParameter = {};
|
|
2958
|
+
// authentication apiToken required
|
|
2959
|
+
// http bearer authentication required
|
|
2960
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2961
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2962
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2963
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2964
|
+
return {
|
|
2965
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2966
|
+
options: localVarRequestOptions,
|
|
2967
|
+
};
|
|
2968
|
+
}),
|
|
2969
|
+
/**
|
|
2970
|
+
* 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.
|
|
2971
|
+
* @summary List contacts
|
|
2972
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
2973
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
2974
|
+
* @param {number} [page] Page number
|
|
2975
|
+
* @param {*} [options] Override http request option.
|
|
2976
|
+
* @throws {RequiredError}
|
|
2977
|
+
*/
|
|
2978
|
+
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 = {}) {
|
|
2979
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
2980
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2981
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2982
|
+
let baseOptions;
|
|
2983
|
+
if (configuration) {
|
|
2984
|
+
baseOptions = configuration.baseOptions;
|
|
2985
|
+
}
|
|
2986
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2987
|
+
const localVarHeaderParameter = {};
|
|
2988
|
+
const localVarQueryParameter = {};
|
|
2989
|
+
// authentication apiToken required
|
|
2990
|
+
// http bearer authentication required
|
|
2991
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2992
|
+
if (groupUuid !== undefined) {
|
|
2993
|
+
localVarQueryParameter['group_uuid'] = groupUuid;
|
|
2994
|
+
}
|
|
2995
|
+
if (subscriptionStatus !== undefined) {
|
|
2996
|
+
localVarQueryParameter['subscription_status'] = subscriptionStatus;
|
|
2997
|
+
}
|
|
2998
|
+
if (page !== undefined) {
|
|
2999
|
+
localVarQueryParameter['page'] = page;
|
|
3000
|
+
}
|
|
3001
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3003
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3004
|
+
return {
|
|
3005
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3006
|
+
options: localVarRequestOptions,
|
|
3007
|
+
};
|
|
3008
|
+
}),
|
|
3009
|
+
};
|
|
3010
|
+
};
|
|
3011
|
+
exports.ReachContactsApiAxiosParamCreator = ReachContactsApiAxiosParamCreator;
|
|
3012
|
+
/**
|
|
3013
|
+
* ReachContactsApi - functional programming interface
|
|
3014
|
+
* @export
|
|
3015
|
+
*/
|
|
3016
|
+
const ReachContactsApiFp = function (configuration) {
|
|
3017
|
+
const localVarAxiosParamCreator = (0, exports.ReachContactsApiAxiosParamCreator)(configuration);
|
|
3018
|
+
return {
|
|
3019
|
+
/**
|
|
3020
|
+
* 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.
|
|
3021
|
+
* @summary Create a new contact
|
|
3022
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
3023
|
+
* @param {*} [options] Override http request option.
|
|
3024
|
+
* @throws {RequiredError}
|
|
3025
|
+
*/
|
|
3026
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
3027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3028
|
+
var _a, _b;
|
|
3029
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
|
|
3030
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3031
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3032
|
+
});
|
|
3033
|
+
},
|
|
3034
|
+
/**
|
|
3035
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
3036
|
+
* @summary Delete a contact
|
|
3037
|
+
* @param {string} uuid UUID of the contact to delete
|
|
3038
|
+
* @param {*} [options] Override http request option.
|
|
3039
|
+
* @throws {RequiredError}
|
|
3040
|
+
*/
|
|
3041
|
+
deleteAContactV1(uuid, options) {
|
|
3042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3043
|
+
var _a, _b;
|
|
3044
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
|
|
3045
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3046
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3047
|
+
});
|
|
3048
|
+
},
|
|
3049
|
+
/**
|
|
3050
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
3051
|
+
* @summary List contact groups
|
|
3052
|
+
* @param {*} [options] Override http request option.
|
|
3053
|
+
* @throws {RequiredError}
|
|
3054
|
+
*/
|
|
3055
|
+
listContactGroupsV1(options) {
|
|
3056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3057
|
+
var _a, _b;
|
|
3058
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
|
|
3059
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3060
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3061
|
+
});
|
|
3062
|
+
},
|
|
3063
|
+
/**
|
|
3064
|
+
* 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.
|
|
3065
|
+
* @summary List contacts
|
|
3066
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3067
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3068
|
+
* @param {number} [page] Page number
|
|
3069
|
+
* @param {*} [options] Override http request option.
|
|
3070
|
+
* @throws {RequiredError}
|
|
3071
|
+
*/
|
|
3072
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
3073
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3074
|
+
var _a, _b;
|
|
3075
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
|
|
3076
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3077
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3078
|
+
});
|
|
3079
|
+
},
|
|
3080
|
+
};
|
|
3081
|
+
};
|
|
3082
|
+
exports.ReachContactsApiFp = ReachContactsApiFp;
|
|
3083
|
+
/**
|
|
3084
|
+
* ReachContactsApi - factory interface
|
|
3085
|
+
* @export
|
|
3086
|
+
*/
|
|
3087
|
+
const ReachContactsApiFactory = function (configuration, basePath, axios) {
|
|
3088
|
+
const localVarFp = (0, exports.ReachContactsApiFp)(configuration);
|
|
3089
|
+
return {
|
|
3090
|
+
/**
|
|
3091
|
+
* 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.
|
|
3092
|
+
* @summary Create a new contact
|
|
3093
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
3094
|
+
* @param {*} [options] Override http request option.
|
|
3095
|
+
* @throws {RequiredError}
|
|
3096
|
+
*/
|
|
3097
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
3098
|
+
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
3099
|
+
},
|
|
3100
|
+
/**
|
|
3101
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
3102
|
+
* @summary Delete a contact
|
|
3103
|
+
* @param {string} uuid UUID of the contact to delete
|
|
3104
|
+
* @param {*} [options] Override http request option.
|
|
3105
|
+
* @throws {RequiredError}
|
|
3106
|
+
*/
|
|
3107
|
+
deleteAContactV1(uuid, options) {
|
|
3108
|
+
return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
|
|
3109
|
+
},
|
|
3110
|
+
/**
|
|
3111
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
3112
|
+
* @summary List contact groups
|
|
3113
|
+
* @param {*} [options] Override http request option.
|
|
3114
|
+
* @throws {RequiredError}
|
|
3115
|
+
*/
|
|
3116
|
+
listContactGroupsV1(options) {
|
|
3117
|
+
return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
|
|
3118
|
+
},
|
|
3119
|
+
/**
|
|
3120
|
+
* 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.
|
|
3121
|
+
* @summary List contacts
|
|
3122
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3123
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3124
|
+
* @param {number} [page] Page number
|
|
3125
|
+
* @param {*} [options] Override http request option.
|
|
3126
|
+
* @throws {RequiredError}
|
|
3127
|
+
*/
|
|
3128
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
3129
|
+
return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
|
|
3130
|
+
},
|
|
3131
|
+
};
|
|
3132
|
+
};
|
|
3133
|
+
exports.ReachContactsApiFactory = ReachContactsApiFactory;
|
|
3134
|
+
/**
|
|
3135
|
+
* ReachContactsApi - object-oriented interface
|
|
3136
|
+
* @export
|
|
3137
|
+
* @class ReachContactsApi
|
|
3138
|
+
* @extends {BaseAPI}
|
|
3139
|
+
*/
|
|
3140
|
+
class ReachContactsApi extends base_1.BaseAPI {
|
|
3141
|
+
/**
|
|
3142
|
+
* 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.
|
|
3143
|
+
* @summary Create a new contact
|
|
3144
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
3145
|
+
* @param {*} [options] Override http request option.
|
|
3146
|
+
* @throws {RequiredError}
|
|
3147
|
+
* @memberof ReachContactsApi
|
|
3148
|
+
*/
|
|
3149
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
3150
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3151
|
+
}
|
|
3152
|
+
/**
|
|
3153
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
3154
|
+
* @summary Delete a contact
|
|
3155
|
+
* @param {string} uuid UUID of the contact to delete
|
|
3156
|
+
* @param {*} [options] Override http request option.
|
|
3157
|
+
* @throws {RequiredError}
|
|
3158
|
+
* @memberof ReachContactsApi
|
|
3159
|
+
*/
|
|
3160
|
+
deleteAContactV1(uuid, options) {
|
|
3161
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
3162
|
+
}
|
|
3163
|
+
/**
|
|
3164
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
3165
|
+
* @summary List contact groups
|
|
3166
|
+
* @param {*} [options] Override http request option.
|
|
3167
|
+
* @throws {RequiredError}
|
|
3168
|
+
* @memberof ReachContactsApi
|
|
3169
|
+
*/
|
|
3170
|
+
listContactGroupsV1(options) {
|
|
3171
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
|
|
3172
|
+
}
|
|
3173
|
+
/**
|
|
3174
|
+
* 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.
|
|
3175
|
+
* @summary List contacts
|
|
3176
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3177
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3178
|
+
* @param {number} [page] Page number
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
* @memberof ReachContactsApi
|
|
3182
|
+
*/
|
|
3183
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
3184
|
+
return (0, exports.ReachContactsApiFp)(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
exports.ReachContactsApi = ReachContactsApi;
|
|
3188
|
+
/**
|
|
3189
|
+
* @export
|
|
3190
|
+
*/
|
|
3191
|
+
exports.ListContactsV1SubscriptionStatusEnum = {
|
|
3192
|
+
Subscribed: 'subscribed',
|
|
3193
|
+
Unsubscribed: 'unsubscribed'
|
|
3194
|
+
};
|
|
2855
3195
|
/**
|
|
2856
3196
|
* VPSActionsApi - axios parameter creator
|
|
2857
3197
|
* @export
|
|
@@ -3334,7 +3674,7 @@ exports.VPSDataCentersApi = VPSDataCentersApi;
|
|
|
3334
3674
|
const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
3335
3675
|
return {
|
|
3336
3676
|
/**
|
|
3337
|
-
* 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,
|
|
3677
|
+
* 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.
|
|
3338
3678
|
* @summary Create new project
|
|
3339
3679
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3340
3680
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3479,7 +3819,7 @@ const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3479
3819
|
};
|
|
3480
3820
|
}),
|
|
3481
3821
|
/**
|
|
3482
|
-
* 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
|
|
3822
|
+
* 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.
|
|
3483
3823
|
* @summary Get project list
|
|
3484
3824
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3485
3825
|
* @param {*} [options] Override http request option.
|
|
@@ -3701,7 +4041,7 @@ const VPSDockerManagerApiFp = function (configuration) {
|
|
|
3701
4041
|
const localVarAxiosParamCreator = (0, exports.VPSDockerManagerApiAxiosParamCreator)(configuration);
|
|
3702
4042
|
return {
|
|
3703
4043
|
/**
|
|
3704
|
-
* 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,
|
|
4044
|
+
* 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.
|
|
3705
4045
|
* @summary Create new project
|
|
3706
4046
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3707
4047
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3765,7 +4105,7 @@ const VPSDockerManagerApiFp = function (configuration) {
|
|
|
3765
4105
|
});
|
|
3766
4106
|
},
|
|
3767
4107
|
/**
|
|
3768
|
-
* 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
|
|
4108
|
+
* 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.
|
|
3769
4109
|
* @summary Get project list
|
|
3770
4110
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3771
4111
|
* @param {*} [options] Override http request option.
|
|
@@ -3870,7 +4210,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
3870
4210
|
const localVarFp = (0, exports.VPSDockerManagerApiFp)(configuration);
|
|
3871
4211
|
return {
|
|
3872
4212
|
/**
|
|
3873
|
-
* 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,
|
|
4213
|
+
* 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.
|
|
3874
4214
|
* @summary Create new project
|
|
3875
4215
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3876
4216
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3914,7 +4254,7 @@ const VPSDockerManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
3914
4254
|
return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
3915
4255
|
},
|
|
3916
4256
|
/**
|
|
3917
|
-
* 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
|
|
4257
|
+
* 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.
|
|
3918
4258
|
* @summary Get project list
|
|
3919
4259
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3920
4260
|
* @param {*} [options] Override http request option.
|
|
@@ -3989,7 +4329,7 @@ exports.VPSDockerManagerApiFactory = VPSDockerManagerApiFactory;
|
|
|
3989
4329
|
*/
|
|
3990
4330
|
class VPSDockerManagerApi extends base_1.BaseAPI {
|
|
3991
4331
|
/**
|
|
3992
|
-
* 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,
|
|
4332
|
+
* 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.
|
|
3993
4333
|
* @summary Create new project
|
|
3994
4334
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3995
4335
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4037,7 +4377,7 @@ class VPSDockerManagerApi extends base_1.BaseAPI {
|
|
|
4037
4377
|
return (0, exports.VPSDockerManagerApiFp)(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4038
4378
|
}
|
|
4039
4379
|
/**
|
|
4040
|
-
* 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
|
|
4380
|
+
* 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.
|
|
4041
4381
|
* @summary Get project list
|
|
4042
4382
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4043
4383
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.1.7
|
|
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: 0.
|
|
7
|
+
* API Version: 0.1.7
|
|
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: 0.
|
|
4
|
+
* API Version: 0.1.7
|
|
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: 0.
|
|
7
|
+
* API Version: 0.1.7
|
|
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/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.1.7
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.
|
|
7
|
+
* API Version: 0.1.7
|
|
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/0.0.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.15" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|