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/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
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
|
|
@@ -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',
|
|
@@ -2807,6 +2822,327 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
2807
2822
|
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
2808
2823
|
}
|
|
2809
2824
|
}
|
|
2825
|
+
/**
|
|
2826
|
+
* ReachContactsApi - axios parameter creator
|
|
2827
|
+
* @export
|
|
2828
|
+
*/
|
|
2829
|
+
export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
2830
|
+
return {
|
|
2831
|
+
/**
|
|
2832
|
+
* 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.
|
|
2833
|
+
* @summary Create a new contact
|
|
2834
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
2835
|
+
* @param {*} [options] Override http request option.
|
|
2836
|
+
* @throws {RequiredError}
|
|
2837
|
+
*/
|
|
2838
|
+
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
2839
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
2840
|
+
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
2841
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
2842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2844
|
+
let baseOptions;
|
|
2845
|
+
if (configuration) {
|
|
2846
|
+
baseOptions = configuration.baseOptions;
|
|
2847
|
+
}
|
|
2848
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2849
|
+
const localVarHeaderParameter = {};
|
|
2850
|
+
const localVarQueryParameter = {};
|
|
2851
|
+
// authentication apiToken required
|
|
2852
|
+
// http bearer authentication required
|
|
2853
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2854
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2857
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
2859
|
+
return {
|
|
2860
|
+
url: toPathString(localVarUrlObj),
|
|
2861
|
+
options: localVarRequestOptions,
|
|
2862
|
+
};
|
|
2863
|
+
}),
|
|
2864
|
+
/**
|
|
2865
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
2866
|
+
* @summary Delete a contact
|
|
2867
|
+
* @param {string} uuid UUID of the contact to delete
|
|
2868
|
+
* @param {*} [options] Override http request option.
|
|
2869
|
+
* @throws {RequiredError}
|
|
2870
|
+
*/
|
|
2871
|
+
deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
2872
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
2873
|
+
assertParamExists('deleteAContactV1', 'uuid', uuid);
|
|
2874
|
+
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
2875
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
2876
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2877
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2878
|
+
let baseOptions;
|
|
2879
|
+
if (configuration) {
|
|
2880
|
+
baseOptions = configuration.baseOptions;
|
|
2881
|
+
}
|
|
2882
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2883
|
+
const localVarHeaderParameter = {};
|
|
2884
|
+
const localVarQueryParameter = {};
|
|
2885
|
+
// authentication apiToken required
|
|
2886
|
+
// http bearer authentication required
|
|
2887
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2888
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2889
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2890
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2891
|
+
return {
|
|
2892
|
+
url: toPathString(localVarUrlObj),
|
|
2893
|
+
options: localVarRequestOptions,
|
|
2894
|
+
};
|
|
2895
|
+
}),
|
|
2896
|
+
/**
|
|
2897
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
2898
|
+
* @summary List contact groups
|
|
2899
|
+
* @param {*} [options] Override http request option.
|
|
2900
|
+
* @throws {RequiredError}
|
|
2901
|
+
*/
|
|
2902
|
+
listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2903
|
+
const localVarPath = `/api/reach/v1/contacts/groups`;
|
|
2904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2905
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2906
|
+
let baseOptions;
|
|
2907
|
+
if (configuration) {
|
|
2908
|
+
baseOptions = configuration.baseOptions;
|
|
2909
|
+
}
|
|
2910
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2911
|
+
const localVarHeaderParameter = {};
|
|
2912
|
+
const localVarQueryParameter = {};
|
|
2913
|
+
// authentication apiToken required
|
|
2914
|
+
// http bearer authentication required
|
|
2915
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2916
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2918
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2919
|
+
return {
|
|
2920
|
+
url: toPathString(localVarUrlObj),
|
|
2921
|
+
options: localVarRequestOptions,
|
|
2922
|
+
};
|
|
2923
|
+
}),
|
|
2924
|
+
/**
|
|
2925
|
+
* 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.
|
|
2926
|
+
* @summary List contacts
|
|
2927
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
2928
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
2929
|
+
* @param {number} [page] Page number
|
|
2930
|
+
* @param {*} [options] Override http request option.
|
|
2931
|
+
* @throws {RequiredError}
|
|
2932
|
+
*/
|
|
2933
|
+
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 = {}) {
|
|
2934
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
2935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2936
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2937
|
+
let baseOptions;
|
|
2938
|
+
if (configuration) {
|
|
2939
|
+
baseOptions = configuration.baseOptions;
|
|
2940
|
+
}
|
|
2941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2942
|
+
const localVarHeaderParameter = {};
|
|
2943
|
+
const localVarQueryParameter = {};
|
|
2944
|
+
// authentication apiToken required
|
|
2945
|
+
// http bearer authentication required
|
|
2946
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2947
|
+
if (groupUuid !== undefined) {
|
|
2948
|
+
localVarQueryParameter['group_uuid'] = groupUuid;
|
|
2949
|
+
}
|
|
2950
|
+
if (subscriptionStatus !== undefined) {
|
|
2951
|
+
localVarQueryParameter['subscription_status'] = subscriptionStatus;
|
|
2952
|
+
}
|
|
2953
|
+
if (page !== undefined) {
|
|
2954
|
+
localVarQueryParameter['page'] = page;
|
|
2955
|
+
}
|
|
2956
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2958
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2959
|
+
return {
|
|
2960
|
+
url: toPathString(localVarUrlObj),
|
|
2961
|
+
options: localVarRequestOptions,
|
|
2962
|
+
};
|
|
2963
|
+
}),
|
|
2964
|
+
};
|
|
2965
|
+
};
|
|
2966
|
+
/**
|
|
2967
|
+
* ReachContactsApi - functional programming interface
|
|
2968
|
+
* @export
|
|
2969
|
+
*/
|
|
2970
|
+
export const ReachContactsApiFp = function (configuration) {
|
|
2971
|
+
const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration);
|
|
2972
|
+
return {
|
|
2973
|
+
/**
|
|
2974
|
+
* 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.
|
|
2975
|
+
* @summary Create a new contact
|
|
2976
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
*/
|
|
2980
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
2981
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2982
|
+
var _a, _b;
|
|
2983
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
|
|
2984
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2985
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2986
|
+
});
|
|
2987
|
+
},
|
|
2988
|
+
/**
|
|
2989
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
2990
|
+
* @summary Delete a contact
|
|
2991
|
+
* @param {string} uuid UUID of the contact to delete
|
|
2992
|
+
* @param {*} [options] Override http request option.
|
|
2993
|
+
* @throws {RequiredError}
|
|
2994
|
+
*/
|
|
2995
|
+
deleteAContactV1(uuid, options) {
|
|
2996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2997
|
+
var _a, _b;
|
|
2998
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
|
|
2999
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3000
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3001
|
+
});
|
|
3002
|
+
},
|
|
3003
|
+
/**
|
|
3004
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
3005
|
+
* @summary List contact groups
|
|
3006
|
+
* @param {*} [options] Override http request option.
|
|
3007
|
+
* @throws {RequiredError}
|
|
3008
|
+
*/
|
|
3009
|
+
listContactGroupsV1(options) {
|
|
3010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3011
|
+
var _a, _b;
|
|
3012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
|
|
3013
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3014
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3015
|
+
});
|
|
3016
|
+
},
|
|
3017
|
+
/**
|
|
3018
|
+
* 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.
|
|
3019
|
+
* @summary List contacts
|
|
3020
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3021
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3022
|
+
* @param {number} [page] Page number
|
|
3023
|
+
* @param {*} [options] Override http request option.
|
|
3024
|
+
* @throws {RequiredError}
|
|
3025
|
+
*/
|
|
3026
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
3027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3028
|
+
var _a, _b;
|
|
3029
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
|
|
3030
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3031
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3032
|
+
});
|
|
3033
|
+
},
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
/**
|
|
3037
|
+
* ReachContactsApi - factory interface
|
|
3038
|
+
* @export
|
|
3039
|
+
*/
|
|
3040
|
+
export const ReachContactsApiFactory = function (configuration, basePath, axios) {
|
|
3041
|
+
const localVarFp = ReachContactsApiFp(configuration);
|
|
3042
|
+
return {
|
|
3043
|
+
/**
|
|
3044
|
+
* 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.
|
|
3045
|
+
* @summary Create a new contact
|
|
3046
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
3047
|
+
* @param {*} [options] Override http request option.
|
|
3048
|
+
* @throws {RequiredError}
|
|
3049
|
+
*/
|
|
3050
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
3051
|
+
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
3052
|
+
},
|
|
3053
|
+
/**
|
|
3054
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
3055
|
+
* @summary Delete a contact
|
|
3056
|
+
* @param {string} uuid UUID of the contact to delete
|
|
3057
|
+
* @param {*} [options] Override http request option.
|
|
3058
|
+
* @throws {RequiredError}
|
|
3059
|
+
*/
|
|
3060
|
+
deleteAContactV1(uuid, options) {
|
|
3061
|
+
return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
|
|
3062
|
+
},
|
|
3063
|
+
/**
|
|
3064
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
3065
|
+
* @summary List contact groups
|
|
3066
|
+
* @param {*} [options] Override http request option.
|
|
3067
|
+
* @throws {RequiredError}
|
|
3068
|
+
*/
|
|
3069
|
+
listContactGroupsV1(options) {
|
|
3070
|
+
return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
|
|
3071
|
+
},
|
|
3072
|
+
/**
|
|
3073
|
+
* 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.
|
|
3074
|
+
* @summary List contacts
|
|
3075
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3076
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3077
|
+
* @param {number} [page] Page number
|
|
3078
|
+
* @param {*} [options] Override http request option.
|
|
3079
|
+
* @throws {RequiredError}
|
|
3080
|
+
*/
|
|
3081
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
3082
|
+
return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
|
|
3083
|
+
},
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
/**
|
|
3087
|
+
* ReachContactsApi - object-oriented interface
|
|
3088
|
+
* @export
|
|
3089
|
+
* @class ReachContactsApi
|
|
3090
|
+
* @extends {BaseAPI}
|
|
3091
|
+
*/
|
|
3092
|
+
export class ReachContactsApi extends BaseAPI {
|
|
3093
|
+
/**
|
|
3094
|
+
* 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.
|
|
3095
|
+
* @summary Create a new contact
|
|
3096
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
3097
|
+
* @param {*} [options] Override http request option.
|
|
3098
|
+
* @throws {RequiredError}
|
|
3099
|
+
* @memberof ReachContactsApi
|
|
3100
|
+
*/
|
|
3101
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
3102
|
+
return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3103
|
+
}
|
|
3104
|
+
/**
|
|
3105
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
3106
|
+
* @summary Delete a contact
|
|
3107
|
+
* @param {string} uuid UUID of the contact to delete
|
|
3108
|
+
* @param {*} [options] Override http request option.
|
|
3109
|
+
* @throws {RequiredError}
|
|
3110
|
+
* @memberof ReachContactsApi
|
|
3111
|
+
*/
|
|
3112
|
+
deleteAContactV1(uuid, options) {
|
|
3113
|
+
return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
3114
|
+
}
|
|
3115
|
+
/**
|
|
3116
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
3117
|
+
* @summary List contact groups
|
|
3118
|
+
* @param {*} [options] Override http request option.
|
|
3119
|
+
* @throws {RequiredError}
|
|
3120
|
+
* @memberof ReachContactsApi
|
|
3121
|
+
*/
|
|
3122
|
+
listContactGroupsV1(options) {
|
|
3123
|
+
return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
|
|
3124
|
+
}
|
|
3125
|
+
/**
|
|
3126
|
+
* 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.
|
|
3127
|
+
* @summary List contacts
|
|
3128
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3129
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3130
|
+
* @param {number} [page] Page number
|
|
3131
|
+
* @param {*} [options] Override http request option.
|
|
3132
|
+
* @throws {RequiredError}
|
|
3133
|
+
* @memberof ReachContactsApi
|
|
3134
|
+
*/
|
|
3135
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
3136
|
+
return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
/**
|
|
3140
|
+
* @export
|
|
3141
|
+
*/
|
|
3142
|
+
export const ListContactsV1SubscriptionStatusEnum = {
|
|
3143
|
+
Subscribed: 'subscribed',
|
|
3144
|
+
Unsubscribed: 'unsubscribed'
|
|
3145
|
+
};
|
|
2810
3146
|
/**
|
|
2811
3147
|
* VPSActionsApi - axios parameter creator
|
|
2812
3148
|
* @export
|
|
@@ -3277,7 +3613,7 @@ export class VPSDataCentersApi extends BaseAPI {
|
|
|
3277
3613
|
export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
3278
3614
|
return {
|
|
3279
3615
|
/**
|
|
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,
|
|
3616
|
+
* 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
3617
|
* @summary Create new project
|
|
3282
3618
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3283
3619
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3422,7 +3758,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3422
3758
|
};
|
|
3423
3759
|
}),
|
|
3424
3760
|
/**
|
|
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
|
|
3761
|
+
* 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
3762
|
* @summary Get project list
|
|
3427
3763
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3428
3764
|
* @param {*} [options] Override http request option.
|
|
@@ -3643,7 +3979,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
3643
3979
|
const localVarAxiosParamCreator = VPSDockerManagerApiAxiosParamCreator(configuration);
|
|
3644
3980
|
return {
|
|
3645
3981
|
/**
|
|
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,
|
|
3982
|
+
* 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
3983
|
* @summary Create new project
|
|
3648
3984
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3649
3985
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3707,7 +4043,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
3707
4043
|
});
|
|
3708
4044
|
},
|
|
3709
4045
|
/**
|
|
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
|
|
4046
|
+
* 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
4047
|
* @summary Get project list
|
|
3712
4048
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3713
4049
|
* @param {*} [options] Override http request option.
|
|
@@ -3811,7 +4147,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
3811
4147
|
const localVarFp = VPSDockerManagerApiFp(configuration);
|
|
3812
4148
|
return {
|
|
3813
4149
|
/**
|
|
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,
|
|
4150
|
+
* 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
4151
|
* @summary Create new project
|
|
3816
4152
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3817
4153
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3855,7 +4191,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
3855
4191
|
return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
3856
4192
|
},
|
|
3857
4193
|
/**
|
|
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
|
|
4194
|
+
* 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
4195
|
* @summary Get project list
|
|
3860
4196
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3861
4197
|
* @param {*} [options] Override http request option.
|
|
@@ -3929,7 +4265,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
3929
4265
|
*/
|
|
3930
4266
|
export class VPSDockerManagerApi extends BaseAPI {
|
|
3931
4267
|
/**
|
|
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,
|
|
4268
|
+
* 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
4269
|
* @summary Create new project
|
|
3934
4270
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3935
4271
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3977,7 +4313,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
3977
4313
|
return VPSDockerManagerApiFp(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
3978
4314
|
}
|
|
3979
4315
|
/**
|
|
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
|
|
4316
|
+
* 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
4317
|
* @summary Get project list
|
|
3982
4318
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3983
4319
|
* @param {*} [options] Override http request option.
|
package/dist/esm/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/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
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
|
package/dist/esm/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/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
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
|
|
@@ -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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.
|
|
16
|
+
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) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.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/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
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
|
package/dist/index.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/index.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
|