hostinger-api-sdk 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +725 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +389 -1
- package/dist/api.js +605 -9
- 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 +389 -1
- package/dist/esm/api.js +593 -1
- 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/DomainsMoveApi.md +438 -0
- package/docs/DomainsV1MoveIncomingUpdateRequest.md +20 -0
- package/docs/DomainsV1MoveIncomingUpdateRequestDomainContacts.md +27 -0
- package/docs/DomainsV1MoveMoveResource.md +26 -0
- package/docs/DomainsV1MoveOutgoingStoreRequest.md +20 -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: 1.
|
|
6
|
+
* API Version: 1.26.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -152,6 +152,11 @@ export const DomainsV1IRTPVerificationResourceStatusEnum = {
|
|
|
152
152
|
Completed: 'completed',
|
|
153
153
|
Canceled: 'canceled'
|
|
154
154
|
};
|
|
155
|
+
export const DomainsV1MoveMoveResourceStatusEnum = {
|
|
156
|
+
Initiated: 'initiated',
|
|
157
|
+
Activating: 'activating',
|
|
158
|
+
Completed: 'completed'
|
|
159
|
+
};
|
|
155
160
|
export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
|
|
156
161
|
Owner: 'owner',
|
|
157
162
|
Admin: 'admin',
|
|
@@ -4708,6 +4713,593 @@ export class DomainsForwardingApi extends BaseAPI {
|
|
|
4708
4713
|
return DomainsForwardingApiFp(this.configuration).updateDomainForwardingV1(domain, domainsV1ForwardingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4709
4714
|
}
|
|
4710
4715
|
}
|
|
4716
|
+
/**
|
|
4717
|
+
* DomainsMoveApi - axios parameter creator
|
|
4718
|
+
* @export
|
|
4719
|
+
*/
|
|
4720
|
+
export const DomainsMoveApiAxiosParamCreator = function (configuration) {
|
|
4721
|
+
return {
|
|
4722
|
+
/**
|
|
4723
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
4724
|
+
* @summary Accept incoming domain move
|
|
4725
|
+
* @param {string} domain Domain name
|
|
4726
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
4727
|
+
* @param {*} [options] Override http request option.
|
|
4728
|
+
* @throws {RequiredError}
|
|
4729
|
+
*/
|
|
4730
|
+
acceptIncomingDomainMoveV1: (domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveIncomingUpdateRequest, options = {}) {
|
|
4731
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4732
|
+
assertParamExists('acceptIncomingDomainMoveV1', 'domain', domain);
|
|
4733
|
+
// verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
|
|
4734
|
+
assertParamExists('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest);
|
|
4735
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
4736
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4739
|
+
let baseOptions;
|
|
4740
|
+
if (configuration) {
|
|
4741
|
+
baseOptions = configuration.baseOptions;
|
|
4742
|
+
}
|
|
4743
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4744
|
+
const localVarHeaderParameter = {};
|
|
4745
|
+
const localVarQueryParameter = {};
|
|
4746
|
+
// authentication apiToken required
|
|
4747
|
+
// http bearer authentication required
|
|
4748
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4749
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4752
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration);
|
|
4754
|
+
return {
|
|
4755
|
+
url: toPathString(localVarUrlObj),
|
|
4756
|
+
options: localVarRequestOptions,
|
|
4757
|
+
};
|
|
4758
|
+
}),
|
|
4759
|
+
/**
|
|
4760
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
4761
|
+
* @summary Cancel outgoing domain move
|
|
4762
|
+
* @param {string} domain Domain name
|
|
4763
|
+
* @param {*} [options] Override http request option.
|
|
4764
|
+
* @throws {RequiredError}
|
|
4765
|
+
*/
|
|
4766
|
+
cancelOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4767
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4768
|
+
assertParamExists('cancelOutgoingDomainMoveV1', 'domain', domain);
|
|
4769
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
4770
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4772
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4773
|
+
let baseOptions;
|
|
4774
|
+
if (configuration) {
|
|
4775
|
+
baseOptions = configuration.baseOptions;
|
|
4776
|
+
}
|
|
4777
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4778
|
+
const localVarHeaderParameter = {};
|
|
4779
|
+
const localVarQueryParameter = {};
|
|
4780
|
+
// authentication apiToken required
|
|
4781
|
+
// http bearer authentication required
|
|
4782
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4783
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4785
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4786
|
+
return {
|
|
4787
|
+
url: toPathString(localVarUrlObj),
|
|
4788
|
+
options: localVarRequestOptions,
|
|
4789
|
+
};
|
|
4790
|
+
}),
|
|
4791
|
+
/**
|
|
4792
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
4793
|
+
* @summary Get incoming domain move list
|
|
4794
|
+
* @param {*} [options] Override http request option.
|
|
4795
|
+
* @throws {RequiredError}
|
|
4796
|
+
*/
|
|
4797
|
+
getIncomingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4798
|
+
const localVarPath = `/api/domains/v1/move/incoming`;
|
|
4799
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4800
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4801
|
+
let baseOptions;
|
|
4802
|
+
if (configuration) {
|
|
4803
|
+
baseOptions = configuration.baseOptions;
|
|
4804
|
+
}
|
|
4805
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4806
|
+
const localVarHeaderParameter = {};
|
|
4807
|
+
const localVarQueryParameter = {};
|
|
4808
|
+
// authentication apiToken required
|
|
4809
|
+
// http bearer authentication required
|
|
4810
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4811
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4813
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4814
|
+
return {
|
|
4815
|
+
url: toPathString(localVarUrlObj),
|
|
4816
|
+
options: localVarRequestOptions,
|
|
4817
|
+
};
|
|
4818
|
+
}),
|
|
4819
|
+
/**
|
|
4820
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
4821
|
+
* @summary Get incoming domain move
|
|
4822
|
+
* @param {string} domain Domain name
|
|
4823
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
4824
|
+
* @param {*} [options] Override http request option.
|
|
4825
|
+
* @throws {RequiredError}
|
|
4826
|
+
*/
|
|
4827
|
+
getIncomingDomainMoveV1: (domain_1, forceSync_1, ...args_1) => __awaiter(this, [domain_1, forceSync_1, ...args_1], void 0, function* (domain, forceSync, options = {}) {
|
|
4828
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4829
|
+
assertParamExists('getIncomingDomainMoveV1', 'domain', domain);
|
|
4830
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
4831
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4832
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4833
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4834
|
+
let baseOptions;
|
|
4835
|
+
if (configuration) {
|
|
4836
|
+
baseOptions = configuration.baseOptions;
|
|
4837
|
+
}
|
|
4838
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4839
|
+
const localVarHeaderParameter = {};
|
|
4840
|
+
const localVarQueryParameter = {};
|
|
4841
|
+
// authentication apiToken required
|
|
4842
|
+
// http bearer authentication required
|
|
4843
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4844
|
+
if (forceSync !== undefined) {
|
|
4845
|
+
localVarQueryParameter['force_sync'] = forceSync;
|
|
4846
|
+
}
|
|
4847
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4848
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4849
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4850
|
+
return {
|
|
4851
|
+
url: toPathString(localVarUrlObj),
|
|
4852
|
+
options: localVarRequestOptions,
|
|
4853
|
+
};
|
|
4854
|
+
}),
|
|
4855
|
+
/**
|
|
4856
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
4857
|
+
* @summary Get outgoing domain move list
|
|
4858
|
+
* @param {*} [options] Override http request option.
|
|
4859
|
+
* @throws {RequiredError}
|
|
4860
|
+
*/
|
|
4861
|
+
getOutgoingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4862
|
+
const localVarPath = `/api/domains/v1/move/outgoing`;
|
|
4863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4865
|
+
let baseOptions;
|
|
4866
|
+
if (configuration) {
|
|
4867
|
+
baseOptions = configuration.baseOptions;
|
|
4868
|
+
}
|
|
4869
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4870
|
+
const localVarHeaderParameter = {};
|
|
4871
|
+
const localVarQueryParameter = {};
|
|
4872
|
+
// authentication apiToken required
|
|
4873
|
+
// http bearer authentication required
|
|
4874
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4875
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4877
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4878
|
+
return {
|
|
4879
|
+
url: toPathString(localVarUrlObj),
|
|
4880
|
+
options: localVarRequestOptions,
|
|
4881
|
+
};
|
|
4882
|
+
}),
|
|
4883
|
+
/**
|
|
4884
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
4885
|
+
* @summary Get outgoing domain move
|
|
4886
|
+
* @param {string} domain Domain name
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
*/
|
|
4890
|
+
getOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4891
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4892
|
+
assertParamExists('getOutgoingDomainMoveV1', 'domain', domain);
|
|
4893
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
4894
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4896
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4897
|
+
let baseOptions;
|
|
4898
|
+
if (configuration) {
|
|
4899
|
+
baseOptions = configuration.baseOptions;
|
|
4900
|
+
}
|
|
4901
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4902
|
+
const localVarHeaderParameter = {};
|
|
4903
|
+
const localVarQueryParameter = {};
|
|
4904
|
+
// authentication apiToken required
|
|
4905
|
+
// http bearer authentication required
|
|
4906
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4907
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4909
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4910
|
+
return {
|
|
4911
|
+
url: toPathString(localVarUrlObj),
|
|
4912
|
+
options: localVarRequestOptions,
|
|
4913
|
+
};
|
|
4914
|
+
}),
|
|
4915
|
+
/**
|
|
4916
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
4917
|
+
* @summary Reject incoming domain move
|
|
4918
|
+
* @param {string} domain Domain name
|
|
4919
|
+
* @param {*} [options] Override http request option.
|
|
4920
|
+
* @throws {RequiredError}
|
|
4921
|
+
*/
|
|
4922
|
+
rejectIncomingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4923
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4924
|
+
assertParamExists('rejectIncomingDomainMoveV1', 'domain', domain);
|
|
4925
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
4926
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4927
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4928
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4929
|
+
let baseOptions;
|
|
4930
|
+
if (configuration) {
|
|
4931
|
+
baseOptions = configuration.baseOptions;
|
|
4932
|
+
}
|
|
4933
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4934
|
+
const localVarHeaderParameter = {};
|
|
4935
|
+
const localVarQueryParameter = {};
|
|
4936
|
+
// authentication apiToken required
|
|
4937
|
+
// http bearer authentication required
|
|
4938
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4939
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4940
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4941
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4942
|
+
return {
|
|
4943
|
+
url: toPathString(localVarUrlObj),
|
|
4944
|
+
options: localVarRequestOptions,
|
|
4945
|
+
};
|
|
4946
|
+
}),
|
|
4947
|
+
/**
|
|
4948
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
4949
|
+
* @summary Start outgoing domain move
|
|
4950
|
+
* @param {string} domain Domain name
|
|
4951
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
4952
|
+
* @param {*} [options] Override http request option.
|
|
4953
|
+
* @throws {RequiredError}
|
|
4954
|
+
*/
|
|
4955
|
+
startOutgoingDomainMoveV1: (domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveOutgoingStoreRequest, options = {}) {
|
|
4956
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4957
|
+
assertParamExists('startOutgoingDomainMoveV1', 'domain', domain);
|
|
4958
|
+
// verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
|
|
4959
|
+
assertParamExists('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest);
|
|
4960
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
4961
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4962
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4963
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4964
|
+
let baseOptions;
|
|
4965
|
+
if (configuration) {
|
|
4966
|
+
baseOptions = configuration.baseOptions;
|
|
4967
|
+
}
|
|
4968
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4969
|
+
const localVarHeaderParameter = {};
|
|
4970
|
+
const localVarQueryParameter = {};
|
|
4971
|
+
// authentication apiToken required
|
|
4972
|
+
// http bearer authentication required
|
|
4973
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4974
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4975
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4976
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4977
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4978
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration);
|
|
4979
|
+
return {
|
|
4980
|
+
url: toPathString(localVarUrlObj),
|
|
4981
|
+
options: localVarRequestOptions,
|
|
4982
|
+
};
|
|
4983
|
+
}),
|
|
4984
|
+
};
|
|
4985
|
+
};
|
|
4986
|
+
/**
|
|
4987
|
+
* DomainsMoveApi - functional programming interface
|
|
4988
|
+
* @export
|
|
4989
|
+
*/
|
|
4990
|
+
export const DomainsMoveApiFp = function (configuration) {
|
|
4991
|
+
const localVarAxiosParamCreator = DomainsMoveApiAxiosParamCreator(configuration);
|
|
4992
|
+
return {
|
|
4993
|
+
/**
|
|
4994
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
4995
|
+
* @summary Accept incoming domain move
|
|
4996
|
+
* @param {string} domain Domain name
|
|
4997
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
4998
|
+
* @param {*} [options] Override http request option.
|
|
4999
|
+
* @throws {RequiredError}
|
|
5000
|
+
*/
|
|
5001
|
+
acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
|
|
5002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5003
|
+
var _a, _b;
|
|
5004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
|
|
5005
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5006
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5007
|
+
});
|
|
5008
|
+
},
|
|
5009
|
+
/**
|
|
5010
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
5011
|
+
* @summary Cancel outgoing domain move
|
|
5012
|
+
* @param {string} domain Domain name
|
|
5013
|
+
* @param {*} [options] Override http request option.
|
|
5014
|
+
* @throws {RequiredError}
|
|
5015
|
+
*/
|
|
5016
|
+
cancelOutgoingDomainMoveV1(domain, options) {
|
|
5017
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5018
|
+
var _a, _b;
|
|
5019
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
|
|
5020
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5021
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5022
|
+
});
|
|
5023
|
+
},
|
|
5024
|
+
/**
|
|
5025
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
5026
|
+
* @summary Get incoming domain move list
|
|
5027
|
+
* @param {*} [options] Override http request option.
|
|
5028
|
+
* @throws {RequiredError}
|
|
5029
|
+
*/
|
|
5030
|
+
getIncomingDomainMoveListV1(options) {
|
|
5031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5032
|
+
var _a, _b;
|
|
5033
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
|
|
5034
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5036
|
+
});
|
|
5037
|
+
},
|
|
5038
|
+
/**
|
|
5039
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
5040
|
+
* @summary Get incoming domain move
|
|
5041
|
+
* @param {string} domain Domain name
|
|
5042
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
5043
|
+
* @param {*} [options] Override http request option.
|
|
5044
|
+
* @throws {RequiredError}
|
|
5045
|
+
*/
|
|
5046
|
+
getIncomingDomainMoveV1(domain, forceSync, options) {
|
|
5047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5048
|
+
var _a, _b;
|
|
5049
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
|
|
5050
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5051
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5052
|
+
});
|
|
5053
|
+
},
|
|
5054
|
+
/**
|
|
5055
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
5056
|
+
* @summary Get outgoing domain move list
|
|
5057
|
+
* @param {*} [options] Override http request option.
|
|
5058
|
+
* @throws {RequiredError}
|
|
5059
|
+
*/
|
|
5060
|
+
getOutgoingDomainMoveListV1(options) {
|
|
5061
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5062
|
+
var _a, _b;
|
|
5063
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
|
|
5064
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5065
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5066
|
+
});
|
|
5067
|
+
},
|
|
5068
|
+
/**
|
|
5069
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
5070
|
+
* @summary Get outgoing domain move
|
|
5071
|
+
* @param {string} domain Domain name
|
|
5072
|
+
* @param {*} [options] Override http request option.
|
|
5073
|
+
* @throws {RequiredError}
|
|
5074
|
+
*/
|
|
5075
|
+
getOutgoingDomainMoveV1(domain, options) {
|
|
5076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5077
|
+
var _a, _b;
|
|
5078
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
|
|
5079
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5080
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5081
|
+
});
|
|
5082
|
+
},
|
|
5083
|
+
/**
|
|
5084
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
5085
|
+
* @summary Reject incoming domain move
|
|
5086
|
+
* @param {string} domain Domain name
|
|
5087
|
+
* @param {*} [options] Override http request option.
|
|
5088
|
+
* @throws {RequiredError}
|
|
5089
|
+
*/
|
|
5090
|
+
rejectIncomingDomainMoveV1(domain, options) {
|
|
5091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5092
|
+
var _a, _b;
|
|
5093
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
|
|
5094
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5095
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5096
|
+
});
|
|
5097
|
+
},
|
|
5098
|
+
/**
|
|
5099
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
5100
|
+
* @summary Start outgoing domain move
|
|
5101
|
+
* @param {string} domain Domain name
|
|
5102
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
5103
|
+
* @param {*} [options] Override http request option.
|
|
5104
|
+
* @throws {RequiredError}
|
|
5105
|
+
*/
|
|
5106
|
+
startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
|
|
5107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5108
|
+
var _a, _b;
|
|
5109
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
|
|
5110
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5111
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5112
|
+
});
|
|
5113
|
+
},
|
|
5114
|
+
};
|
|
5115
|
+
};
|
|
5116
|
+
/**
|
|
5117
|
+
* DomainsMoveApi - factory interface
|
|
5118
|
+
* @export
|
|
5119
|
+
*/
|
|
5120
|
+
export const DomainsMoveApiFactory = function (configuration, basePath, axios) {
|
|
5121
|
+
const localVarFp = DomainsMoveApiFp(configuration);
|
|
5122
|
+
return {
|
|
5123
|
+
/**
|
|
5124
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
5125
|
+
* @summary Accept incoming domain move
|
|
5126
|
+
* @param {string} domain Domain name
|
|
5127
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
5128
|
+
* @param {*} [options] Override http request option.
|
|
5129
|
+
* @throws {RequiredError}
|
|
5130
|
+
*/
|
|
5131
|
+
acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
|
|
5132
|
+
return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
|
|
5133
|
+
},
|
|
5134
|
+
/**
|
|
5135
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
5136
|
+
* @summary Cancel outgoing domain move
|
|
5137
|
+
* @param {string} domain Domain name
|
|
5138
|
+
* @param {*} [options] Override http request option.
|
|
5139
|
+
* @throws {RequiredError}
|
|
5140
|
+
*/
|
|
5141
|
+
cancelOutgoingDomainMoveV1(domain, options) {
|
|
5142
|
+
return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
5143
|
+
},
|
|
5144
|
+
/**
|
|
5145
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
5146
|
+
* @summary Get incoming domain move list
|
|
5147
|
+
* @param {*} [options] Override http request option.
|
|
5148
|
+
* @throws {RequiredError}
|
|
5149
|
+
*/
|
|
5150
|
+
getIncomingDomainMoveListV1(options) {
|
|
5151
|
+
return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
|
|
5152
|
+
},
|
|
5153
|
+
/**
|
|
5154
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
5155
|
+
* @summary Get incoming domain move
|
|
5156
|
+
* @param {string} domain Domain name
|
|
5157
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
5158
|
+
* @param {*} [options] Override http request option.
|
|
5159
|
+
* @throws {RequiredError}
|
|
5160
|
+
*/
|
|
5161
|
+
getIncomingDomainMoveV1(domain, forceSync, options) {
|
|
5162
|
+
return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
|
|
5163
|
+
},
|
|
5164
|
+
/**
|
|
5165
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
5166
|
+
* @summary Get outgoing domain move list
|
|
5167
|
+
* @param {*} [options] Override http request option.
|
|
5168
|
+
* @throws {RequiredError}
|
|
5169
|
+
*/
|
|
5170
|
+
getOutgoingDomainMoveListV1(options) {
|
|
5171
|
+
return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
|
|
5172
|
+
},
|
|
5173
|
+
/**
|
|
5174
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
5175
|
+
* @summary Get outgoing domain move
|
|
5176
|
+
* @param {string} domain Domain name
|
|
5177
|
+
* @param {*} [options] Override http request option.
|
|
5178
|
+
* @throws {RequiredError}
|
|
5179
|
+
*/
|
|
5180
|
+
getOutgoingDomainMoveV1(domain, options) {
|
|
5181
|
+
return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
5182
|
+
},
|
|
5183
|
+
/**
|
|
5184
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
5185
|
+
* @summary Reject incoming domain move
|
|
5186
|
+
* @param {string} domain Domain name
|
|
5187
|
+
* @param {*} [options] Override http request option.
|
|
5188
|
+
* @throws {RequiredError}
|
|
5189
|
+
*/
|
|
5190
|
+
rejectIncomingDomainMoveV1(domain, options) {
|
|
5191
|
+
return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
5192
|
+
},
|
|
5193
|
+
/**
|
|
5194
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
5195
|
+
* @summary Start outgoing domain move
|
|
5196
|
+
* @param {string} domain Domain name
|
|
5197
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
5198
|
+
* @param {*} [options] Override http request option.
|
|
5199
|
+
* @throws {RequiredError}
|
|
5200
|
+
*/
|
|
5201
|
+
startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
|
|
5202
|
+
return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
|
|
5203
|
+
},
|
|
5204
|
+
};
|
|
5205
|
+
};
|
|
5206
|
+
/**
|
|
5207
|
+
* DomainsMoveApi - object-oriented interface
|
|
5208
|
+
* @export
|
|
5209
|
+
* @class DomainsMoveApi
|
|
5210
|
+
* @extends {BaseAPI}
|
|
5211
|
+
*/
|
|
5212
|
+
export class DomainsMoveApi extends BaseAPI {
|
|
5213
|
+
/**
|
|
5214
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
5215
|
+
* @summary Accept incoming domain move
|
|
5216
|
+
* @param {string} domain Domain name
|
|
5217
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
5218
|
+
* @param {*} [options] Override http request option.
|
|
5219
|
+
* @throws {RequiredError}
|
|
5220
|
+
* @memberof DomainsMoveApi
|
|
5221
|
+
*/
|
|
5222
|
+
acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
|
|
5223
|
+
return DomainsMoveApiFp(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5224
|
+
}
|
|
5225
|
+
/**
|
|
5226
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
5227
|
+
* @summary Cancel outgoing domain move
|
|
5228
|
+
* @param {string} domain Domain name
|
|
5229
|
+
* @param {*} [options] Override http request option.
|
|
5230
|
+
* @throws {RequiredError}
|
|
5231
|
+
* @memberof DomainsMoveApi
|
|
5232
|
+
*/
|
|
5233
|
+
cancelOutgoingDomainMoveV1(domain, options) {
|
|
5234
|
+
return DomainsMoveApiFp(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5235
|
+
}
|
|
5236
|
+
/**
|
|
5237
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
5238
|
+
* @summary Get incoming domain move list
|
|
5239
|
+
* @param {*} [options] Override http request option.
|
|
5240
|
+
* @throws {RequiredError}
|
|
5241
|
+
* @memberof DomainsMoveApi
|
|
5242
|
+
*/
|
|
5243
|
+
getIncomingDomainMoveListV1(options) {
|
|
5244
|
+
return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
|
|
5245
|
+
}
|
|
5246
|
+
/**
|
|
5247
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
5248
|
+
* @summary Get incoming domain move
|
|
5249
|
+
* @param {string} domain Domain name
|
|
5250
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
5251
|
+
* @param {*} [options] Override http request option.
|
|
5252
|
+
* @throws {RequiredError}
|
|
5253
|
+
* @memberof DomainsMoveApi
|
|
5254
|
+
*/
|
|
5255
|
+
getIncomingDomainMoveV1(domain, forceSync, options) {
|
|
5256
|
+
return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
|
|
5257
|
+
}
|
|
5258
|
+
/**
|
|
5259
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
5260
|
+
* @summary Get outgoing domain move list
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
* @memberof DomainsMoveApi
|
|
5264
|
+
*/
|
|
5265
|
+
getOutgoingDomainMoveListV1(options) {
|
|
5266
|
+
return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
|
|
5267
|
+
}
|
|
5268
|
+
/**
|
|
5269
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
5270
|
+
* @summary Get outgoing domain move
|
|
5271
|
+
* @param {string} domain Domain name
|
|
5272
|
+
* @param {*} [options] Override http request option.
|
|
5273
|
+
* @throws {RequiredError}
|
|
5274
|
+
* @memberof DomainsMoveApi
|
|
5275
|
+
*/
|
|
5276
|
+
getOutgoingDomainMoveV1(domain, options) {
|
|
5277
|
+
return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5278
|
+
}
|
|
5279
|
+
/**
|
|
5280
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
5281
|
+
* @summary Reject incoming domain move
|
|
5282
|
+
* @param {string} domain Domain name
|
|
5283
|
+
* @param {*} [options] Override http request option.
|
|
5284
|
+
* @throws {RequiredError}
|
|
5285
|
+
* @memberof DomainsMoveApi
|
|
5286
|
+
*/
|
|
5287
|
+
rejectIncomingDomainMoveV1(domain, options) {
|
|
5288
|
+
return DomainsMoveApiFp(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5289
|
+
}
|
|
5290
|
+
/**
|
|
5291
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
5292
|
+
* @summary Start outgoing domain move
|
|
5293
|
+
* @param {string} domain Domain name
|
|
5294
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
5295
|
+
* @param {*} [options] Override http request option.
|
|
5296
|
+
* @throws {RequiredError}
|
|
5297
|
+
* @memberof DomainsMoveApi
|
|
5298
|
+
*/
|
|
5299
|
+
startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
|
|
5300
|
+
return DomainsMoveApiFp(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5301
|
+
}
|
|
5302
|
+
}
|
|
4711
5303
|
/**
|
|
4712
5304
|
* DomainsPortfolioApi - axios parameter creator
|
|
4713
5305
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.26.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.26.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.26.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|