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/api.ts
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
|
|
@@ -2800,6 +2800,103 @@ export const DomainsV1IRTPVerificationResourceStatusEnum = {
|
|
|
2800
2800
|
|
|
2801
2801
|
export type DomainsV1IRTPVerificationResourceStatusEnum = typeof DomainsV1IRTPVerificationResourceStatusEnum[keyof typeof DomainsV1IRTPVerificationResourceStatusEnum];
|
|
2802
2802
|
|
|
2803
|
+
/**
|
|
2804
|
+
*
|
|
2805
|
+
* @export
|
|
2806
|
+
* @interface DomainsV1MoveIncomingUpdateRequest
|
|
2807
|
+
*/
|
|
2808
|
+
export interface DomainsV1MoveIncomingUpdateRequest {
|
|
2809
|
+
/**
|
|
2810
|
+
*
|
|
2811
|
+
* @type {DomainsV1MoveIncomingUpdateRequestDomainContacts}
|
|
2812
|
+
* @memberof DomainsV1MoveIncomingUpdateRequest
|
|
2813
|
+
*/
|
|
2814
|
+
'domain_contacts': DomainsV1MoveIncomingUpdateRequestDomainContacts;
|
|
2815
|
+
}
|
|
2816
|
+
/**
|
|
2817
|
+
* WHOIS profiles of the accepting account. Only the contact types required by the TLD are applied, but all four IDs must be provided.
|
|
2818
|
+
* @export
|
|
2819
|
+
* @interface DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2820
|
+
*/
|
|
2821
|
+
export interface DomainsV1MoveIncomingUpdateRequestDomainContacts {
|
|
2822
|
+
/**
|
|
2823
|
+
* Owner contact WHOIS record ID
|
|
2824
|
+
* @type {number}
|
|
2825
|
+
* @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2826
|
+
*/
|
|
2827
|
+
'owner_id': number;
|
|
2828
|
+
/**
|
|
2829
|
+
* Administrative contact WHOIS record ID
|
|
2830
|
+
* @type {number}
|
|
2831
|
+
* @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2832
|
+
*/
|
|
2833
|
+
'admin_id': number;
|
|
2834
|
+
/**
|
|
2835
|
+
* Billing contact WHOIS record ID
|
|
2836
|
+
* @type {number}
|
|
2837
|
+
* @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2838
|
+
*/
|
|
2839
|
+
'billing_id': number;
|
|
2840
|
+
/**
|
|
2841
|
+
* Technical contact WHOIS record ID
|
|
2842
|
+
* @type {number}
|
|
2843
|
+
* @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
|
|
2844
|
+
*/
|
|
2845
|
+
'tech_id': number;
|
|
2846
|
+
}
|
|
2847
|
+
/**
|
|
2848
|
+
*
|
|
2849
|
+
* @export
|
|
2850
|
+
* @interface DomainsV1MoveMoveResource
|
|
2851
|
+
*/
|
|
2852
|
+
export interface DomainsV1MoveMoveResource {
|
|
2853
|
+
/**
|
|
2854
|
+
* Domain name
|
|
2855
|
+
* @type {string}
|
|
2856
|
+
* @memberof DomainsV1MoveMoveResource
|
|
2857
|
+
*/
|
|
2858
|
+
'domain': string;
|
|
2859
|
+
/**
|
|
2860
|
+
* Status of the move
|
|
2861
|
+
* @type {string}
|
|
2862
|
+
* @memberof DomainsV1MoveMoveResource
|
|
2863
|
+
*/
|
|
2864
|
+
'status': DomainsV1MoveMoveResourceStatusEnum;
|
|
2865
|
+
/**
|
|
2866
|
+
*
|
|
2867
|
+
* @type {string}
|
|
2868
|
+
* @memberof DomainsV1MoveMoveResource
|
|
2869
|
+
*/
|
|
2870
|
+
'created_at': string;
|
|
2871
|
+
/**
|
|
2872
|
+
*
|
|
2873
|
+
* @type {string}
|
|
2874
|
+
* @memberof DomainsV1MoveMoveResource
|
|
2875
|
+
*/
|
|
2876
|
+
'updated_at': string;
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
export const DomainsV1MoveMoveResourceStatusEnum = {
|
|
2880
|
+
Initiated: 'initiated',
|
|
2881
|
+
Activating: 'activating',
|
|
2882
|
+
Completed: 'completed'
|
|
2883
|
+
} as const;
|
|
2884
|
+
|
|
2885
|
+
export type DomainsV1MoveMoveResourceStatusEnum = typeof DomainsV1MoveMoveResourceStatusEnum[keyof typeof DomainsV1MoveMoveResourceStatusEnum];
|
|
2886
|
+
|
|
2887
|
+
/**
|
|
2888
|
+
*
|
|
2889
|
+
* @export
|
|
2890
|
+
* @interface DomainsV1MoveOutgoingStoreRequest
|
|
2891
|
+
*/
|
|
2892
|
+
export interface DomainsV1MoveOutgoingStoreRequest {
|
|
2893
|
+
/**
|
|
2894
|
+
* Email address of the Hostinger account receiving the domain
|
|
2895
|
+
* @type {string}
|
|
2896
|
+
* @memberof DomainsV1MoveOutgoingStoreRequest
|
|
2897
|
+
*/
|
|
2898
|
+
'new_customer_email': string;
|
|
2899
|
+
}
|
|
2803
2900
|
/**
|
|
2804
2901
|
*
|
|
2805
2902
|
* @export
|
|
@@ -15115,6 +15212,633 @@ export class DomainsForwardingApi extends BaseAPI {
|
|
|
15115
15212
|
|
|
15116
15213
|
|
|
15117
15214
|
|
|
15215
|
+
/**
|
|
15216
|
+
* DomainsMoveApi - axios parameter creator
|
|
15217
|
+
* @export
|
|
15218
|
+
*/
|
|
15219
|
+
export const DomainsMoveApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15220
|
+
return {
|
|
15221
|
+
/**
|
|
15222
|
+
* 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.
|
|
15223
|
+
* @summary Accept incoming domain move
|
|
15224
|
+
* @param {string} domain Domain name
|
|
15225
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
15226
|
+
* @param {*} [options] Override http request option.
|
|
15227
|
+
* @throws {RequiredError}
|
|
15228
|
+
*/
|
|
15229
|
+
acceptIncomingDomainMoveV1: async (domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15230
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15231
|
+
assertParamExists('acceptIncomingDomainMoveV1', 'domain', domain)
|
|
15232
|
+
// verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
|
|
15233
|
+
assertParamExists('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest)
|
|
15234
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
15235
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15238
|
+
let baseOptions;
|
|
15239
|
+
if (configuration) {
|
|
15240
|
+
baseOptions = configuration.baseOptions;
|
|
15241
|
+
}
|
|
15242
|
+
|
|
15243
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15244
|
+
const localVarHeaderParameter = {} as any;
|
|
15245
|
+
const localVarQueryParameter = {} as any;
|
|
15246
|
+
|
|
15247
|
+
// authentication apiToken required
|
|
15248
|
+
// http bearer authentication required
|
|
15249
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15250
|
+
|
|
15251
|
+
|
|
15252
|
+
|
|
15253
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15254
|
+
|
|
15255
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15256
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15257
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15258
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration)
|
|
15259
|
+
|
|
15260
|
+
return {
|
|
15261
|
+
url: toPathString(localVarUrlObj),
|
|
15262
|
+
options: localVarRequestOptions,
|
|
15263
|
+
};
|
|
15264
|
+
},
|
|
15265
|
+
/**
|
|
15266
|
+
* 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.
|
|
15267
|
+
* @summary Cancel outgoing domain move
|
|
15268
|
+
* @param {string} domain Domain name
|
|
15269
|
+
* @param {*} [options] Override http request option.
|
|
15270
|
+
* @throws {RequiredError}
|
|
15271
|
+
*/
|
|
15272
|
+
cancelOutgoingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15273
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15274
|
+
assertParamExists('cancelOutgoingDomainMoveV1', 'domain', domain)
|
|
15275
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
15276
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15278
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15279
|
+
let baseOptions;
|
|
15280
|
+
if (configuration) {
|
|
15281
|
+
baseOptions = configuration.baseOptions;
|
|
15282
|
+
}
|
|
15283
|
+
|
|
15284
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
15285
|
+
const localVarHeaderParameter = {} as any;
|
|
15286
|
+
const localVarQueryParameter = {} as any;
|
|
15287
|
+
|
|
15288
|
+
// authentication apiToken required
|
|
15289
|
+
// http bearer authentication required
|
|
15290
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15291
|
+
|
|
15292
|
+
|
|
15293
|
+
|
|
15294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15296
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15297
|
+
|
|
15298
|
+
return {
|
|
15299
|
+
url: toPathString(localVarUrlObj),
|
|
15300
|
+
options: localVarRequestOptions,
|
|
15301
|
+
};
|
|
15302
|
+
},
|
|
15303
|
+
/**
|
|
15304
|
+
* 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.
|
|
15305
|
+
* @summary Get incoming domain move list
|
|
15306
|
+
* @param {*} [options] Override http request option.
|
|
15307
|
+
* @throws {RequiredError}
|
|
15308
|
+
*/
|
|
15309
|
+
getIncomingDomainMoveListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15310
|
+
const localVarPath = `/api/domains/v1/move/incoming`;
|
|
15311
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15312
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15313
|
+
let baseOptions;
|
|
15314
|
+
if (configuration) {
|
|
15315
|
+
baseOptions = configuration.baseOptions;
|
|
15316
|
+
}
|
|
15317
|
+
|
|
15318
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15319
|
+
const localVarHeaderParameter = {} as any;
|
|
15320
|
+
const localVarQueryParameter = {} as any;
|
|
15321
|
+
|
|
15322
|
+
// authentication apiToken required
|
|
15323
|
+
// http bearer authentication required
|
|
15324
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15325
|
+
|
|
15326
|
+
|
|
15327
|
+
|
|
15328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15331
|
+
|
|
15332
|
+
return {
|
|
15333
|
+
url: toPathString(localVarUrlObj),
|
|
15334
|
+
options: localVarRequestOptions,
|
|
15335
|
+
};
|
|
15336
|
+
},
|
|
15337
|
+
/**
|
|
15338
|
+
* 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.
|
|
15339
|
+
* @summary Get incoming domain move
|
|
15340
|
+
* @param {string} domain Domain name
|
|
15341
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
15342
|
+
* @param {*} [options] Override http request option.
|
|
15343
|
+
* @throws {RequiredError}
|
|
15344
|
+
*/
|
|
15345
|
+
getIncomingDomainMoveV1: async (domain: string, forceSync?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15346
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15347
|
+
assertParamExists('getIncomingDomainMoveV1', 'domain', domain)
|
|
15348
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
15349
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15352
|
+
let baseOptions;
|
|
15353
|
+
if (configuration) {
|
|
15354
|
+
baseOptions = configuration.baseOptions;
|
|
15355
|
+
}
|
|
15356
|
+
|
|
15357
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15358
|
+
const localVarHeaderParameter = {} as any;
|
|
15359
|
+
const localVarQueryParameter = {} as any;
|
|
15360
|
+
|
|
15361
|
+
// authentication apiToken required
|
|
15362
|
+
// http bearer authentication required
|
|
15363
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15364
|
+
|
|
15365
|
+
if (forceSync !== undefined) {
|
|
15366
|
+
localVarQueryParameter['force_sync'] = forceSync;
|
|
15367
|
+
}
|
|
15368
|
+
|
|
15369
|
+
|
|
15370
|
+
|
|
15371
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15372
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15373
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15374
|
+
|
|
15375
|
+
return {
|
|
15376
|
+
url: toPathString(localVarUrlObj),
|
|
15377
|
+
options: localVarRequestOptions,
|
|
15378
|
+
};
|
|
15379
|
+
},
|
|
15380
|
+
/**
|
|
15381
|
+
* 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.
|
|
15382
|
+
* @summary Get outgoing domain move list
|
|
15383
|
+
* @param {*} [options] Override http request option.
|
|
15384
|
+
* @throws {RequiredError}
|
|
15385
|
+
*/
|
|
15386
|
+
getOutgoingDomainMoveListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15387
|
+
const localVarPath = `/api/domains/v1/move/outgoing`;
|
|
15388
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15389
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15390
|
+
let baseOptions;
|
|
15391
|
+
if (configuration) {
|
|
15392
|
+
baseOptions = configuration.baseOptions;
|
|
15393
|
+
}
|
|
15394
|
+
|
|
15395
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15396
|
+
const localVarHeaderParameter = {} as any;
|
|
15397
|
+
const localVarQueryParameter = {} as any;
|
|
15398
|
+
|
|
15399
|
+
// authentication apiToken required
|
|
15400
|
+
// http bearer authentication required
|
|
15401
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15402
|
+
|
|
15403
|
+
|
|
15404
|
+
|
|
15405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15407
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15408
|
+
|
|
15409
|
+
return {
|
|
15410
|
+
url: toPathString(localVarUrlObj),
|
|
15411
|
+
options: localVarRequestOptions,
|
|
15412
|
+
};
|
|
15413
|
+
},
|
|
15414
|
+
/**
|
|
15415
|
+
* 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.
|
|
15416
|
+
* @summary Get outgoing domain move
|
|
15417
|
+
* @param {string} domain Domain name
|
|
15418
|
+
* @param {*} [options] Override http request option.
|
|
15419
|
+
* @throws {RequiredError}
|
|
15420
|
+
*/
|
|
15421
|
+
getOutgoingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15422
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15423
|
+
assertParamExists('getOutgoingDomainMoveV1', 'domain', domain)
|
|
15424
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
15425
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15426
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15427
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15428
|
+
let baseOptions;
|
|
15429
|
+
if (configuration) {
|
|
15430
|
+
baseOptions = configuration.baseOptions;
|
|
15431
|
+
}
|
|
15432
|
+
|
|
15433
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15434
|
+
const localVarHeaderParameter = {} as any;
|
|
15435
|
+
const localVarQueryParameter = {} as any;
|
|
15436
|
+
|
|
15437
|
+
// authentication apiToken required
|
|
15438
|
+
// http bearer authentication required
|
|
15439
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15440
|
+
|
|
15441
|
+
|
|
15442
|
+
|
|
15443
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15445
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15446
|
+
|
|
15447
|
+
return {
|
|
15448
|
+
url: toPathString(localVarUrlObj),
|
|
15449
|
+
options: localVarRequestOptions,
|
|
15450
|
+
};
|
|
15451
|
+
},
|
|
15452
|
+
/**
|
|
15453
|
+
* 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.
|
|
15454
|
+
* @summary Reject incoming domain move
|
|
15455
|
+
* @param {string} domain Domain name
|
|
15456
|
+
* @param {*} [options] Override http request option.
|
|
15457
|
+
* @throws {RequiredError}
|
|
15458
|
+
*/
|
|
15459
|
+
rejectIncomingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15460
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15461
|
+
assertParamExists('rejectIncomingDomainMoveV1', 'domain', domain)
|
|
15462
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
15463
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15464
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15465
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15466
|
+
let baseOptions;
|
|
15467
|
+
if (configuration) {
|
|
15468
|
+
baseOptions = configuration.baseOptions;
|
|
15469
|
+
}
|
|
15470
|
+
|
|
15471
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
15472
|
+
const localVarHeaderParameter = {} as any;
|
|
15473
|
+
const localVarQueryParameter = {} as any;
|
|
15474
|
+
|
|
15475
|
+
// authentication apiToken required
|
|
15476
|
+
// http bearer authentication required
|
|
15477
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15478
|
+
|
|
15479
|
+
|
|
15480
|
+
|
|
15481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15483
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15484
|
+
|
|
15485
|
+
return {
|
|
15486
|
+
url: toPathString(localVarUrlObj),
|
|
15487
|
+
options: localVarRequestOptions,
|
|
15488
|
+
};
|
|
15489
|
+
},
|
|
15490
|
+
/**
|
|
15491
|
+
* 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.
|
|
15492
|
+
* @summary Start outgoing domain move
|
|
15493
|
+
* @param {string} domain Domain name
|
|
15494
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
15495
|
+
* @param {*} [options] Override http request option.
|
|
15496
|
+
* @throws {RequiredError}
|
|
15497
|
+
*/
|
|
15498
|
+
startOutgoingDomainMoveV1: async (domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15499
|
+
// verify required parameter 'domain' is not null or undefined
|
|
15500
|
+
assertParamExists('startOutgoingDomainMoveV1', 'domain', domain)
|
|
15501
|
+
// verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
|
|
15502
|
+
assertParamExists('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest)
|
|
15503
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
15504
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
15505
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15506
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15507
|
+
let baseOptions;
|
|
15508
|
+
if (configuration) {
|
|
15509
|
+
baseOptions = configuration.baseOptions;
|
|
15510
|
+
}
|
|
15511
|
+
|
|
15512
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15513
|
+
const localVarHeaderParameter = {} as any;
|
|
15514
|
+
const localVarQueryParameter = {} as any;
|
|
15515
|
+
|
|
15516
|
+
// authentication apiToken required
|
|
15517
|
+
// http bearer authentication required
|
|
15518
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15519
|
+
|
|
15520
|
+
|
|
15521
|
+
|
|
15522
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15523
|
+
|
|
15524
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15526
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15527
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration)
|
|
15528
|
+
|
|
15529
|
+
return {
|
|
15530
|
+
url: toPathString(localVarUrlObj),
|
|
15531
|
+
options: localVarRequestOptions,
|
|
15532
|
+
};
|
|
15533
|
+
},
|
|
15534
|
+
}
|
|
15535
|
+
};
|
|
15536
|
+
|
|
15537
|
+
/**
|
|
15538
|
+
* DomainsMoveApi - functional programming interface
|
|
15539
|
+
* @export
|
|
15540
|
+
*/
|
|
15541
|
+
export const DomainsMoveApiFp = function(configuration?: Configuration) {
|
|
15542
|
+
const localVarAxiosParamCreator = DomainsMoveApiAxiosParamCreator(configuration)
|
|
15543
|
+
return {
|
|
15544
|
+
/**
|
|
15545
|
+
* 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.
|
|
15546
|
+
* @summary Accept incoming domain move
|
|
15547
|
+
* @param {string} domain Domain name
|
|
15548
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
15549
|
+
* @param {*} [options] Override http request option.
|
|
15550
|
+
* @throws {RequiredError}
|
|
15551
|
+
*/
|
|
15552
|
+
async acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
15553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
|
|
15554
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']?.[0]?.url;
|
|
15555
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15556
|
+
},
|
|
15557
|
+
/**
|
|
15558
|
+
* 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.
|
|
15559
|
+
* @summary Cancel outgoing domain move
|
|
15560
|
+
* @param {string} domain Domain name
|
|
15561
|
+
* @param {*} [options] Override http request option.
|
|
15562
|
+
* @throws {RequiredError}
|
|
15563
|
+
*/
|
|
15564
|
+
async cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
15565
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
|
|
15566
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']?.[0]?.url;
|
|
15567
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15568
|
+
},
|
|
15569
|
+
/**
|
|
15570
|
+
* 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.
|
|
15571
|
+
* @summary Get incoming domain move list
|
|
15572
|
+
* @param {*} [options] Override http request option.
|
|
15573
|
+
* @throws {RequiredError}
|
|
15574
|
+
*/
|
|
15575
|
+
async getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1MoveMoveResource>>> {
|
|
15576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
|
|
15577
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']?.[0]?.url;
|
|
15578
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15579
|
+
},
|
|
15580
|
+
/**
|
|
15581
|
+
* 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.
|
|
15582
|
+
* @summary Get incoming domain move
|
|
15583
|
+
* @param {string} domain Domain name
|
|
15584
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
15585
|
+
* @param {*} [options] Override http request option.
|
|
15586
|
+
* @throws {RequiredError}
|
|
15587
|
+
*/
|
|
15588
|
+
async getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1MoveMoveResource>> {
|
|
15589
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
|
|
15590
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']?.[0]?.url;
|
|
15591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15592
|
+
},
|
|
15593
|
+
/**
|
|
15594
|
+
* 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.
|
|
15595
|
+
* @summary Get outgoing domain move list
|
|
15596
|
+
* @param {*} [options] Override http request option.
|
|
15597
|
+
* @throws {RequiredError}
|
|
15598
|
+
*/
|
|
15599
|
+
async getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1MoveMoveResource>>> {
|
|
15600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
|
|
15601
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']?.[0]?.url;
|
|
15602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15603
|
+
},
|
|
15604
|
+
/**
|
|
15605
|
+
* 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.
|
|
15606
|
+
* @summary Get outgoing domain move
|
|
15607
|
+
* @param {string} domain Domain name
|
|
15608
|
+
* @param {*} [options] Override http request option.
|
|
15609
|
+
* @throws {RequiredError}
|
|
15610
|
+
*/
|
|
15611
|
+
async getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1MoveMoveResource>> {
|
|
15612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
|
|
15613
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']?.[0]?.url;
|
|
15614
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15615
|
+
},
|
|
15616
|
+
/**
|
|
15617
|
+
* 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.
|
|
15618
|
+
* @summary Reject incoming domain move
|
|
15619
|
+
* @param {string} domain Domain name
|
|
15620
|
+
* @param {*} [options] Override http request option.
|
|
15621
|
+
* @throws {RequiredError}
|
|
15622
|
+
*/
|
|
15623
|
+
async rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
15624
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
|
|
15625
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']?.[0]?.url;
|
|
15626
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15627
|
+
},
|
|
15628
|
+
/**
|
|
15629
|
+
* 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.
|
|
15630
|
+
* @summary Start outgoing domain move
|
|
15631
|
+
* @param {string} domain Domain name
|
|
15632
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
15633
|
+
* @param {*} [options] Override http request option.
|
|
15634
|
+
* @throws {RequiredError}
|
|
15635
|
+
*/
|
|
15636
|
+
async startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
15637
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
|
|
15638
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']?.[0]?.url;
|
|
15639
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15640
|
+
},
|
|
15641
|
+
}
|
|
15642
|
+
};
|
|
15643
|
+
|
|
15644
|
+
/**
|
|
15645
|
+
* DomainsMoveApi - factory interface
|
|
15646
|
+
* @export
|
|
15647
|
+
*/
|
|
15648
|
+
export const DomainsMoveApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
15649
|
+
const localVarFp = DomainsMoveApiFp(configuration)
|
|
15650
|
+
return {
|
|
15651
|
+
/**
|
|
15652
|
+
* 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.
|
|
15653
|
+
* @summary Accept incoming domain move
|
|
15654
|
+
* @param {string} domain Domain name
|
|
15655
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
15656
|
+
* @param {*} [options] Override http request option.
|
|
15657
|
+
* @throws {RequiredError}
|
|
15658
|
+
*/
|
|
15659
|
+
acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
15660
|
+
return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
|
|
15661
|
+
},
|
|
15662
|
+
/**
|
|
15663
|
+
* 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.
|
|
15664
|
+
* @summary Cancel outgoing domain move
|
|
15665
|
+
* @param {string} domain Domain name
|
|
15666
|
+
* @param {*} [options] Override http request option.
|
|
15667
|
+
* @throws {RequiredError}
|
|
15668
|
+
*/
|
|
15669
|
+
cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
15670
|
+
return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
15671
|
+
},
|
|
15672
|
+
/**
|
|
15673
|
+
* 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.
|
|
15674
|
+
* @summary Get incoming domain move list
|
|
15675
|
+
* @param {*} [options] Override http request option.
|
|
15676
|
+
* @throws {RequiredError}
|
|
15677
|
+
*/
|
|
15678
|
+
getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1MoveMoveResource>> {
|
|
15679
|
+
return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
|
|
15680
|
+
},
|
|
15681
|
+
/**
|
|
15682
|
+
* 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.
|
|
15683
|
+
* @summary Get incoming domain move
|
|
15684
|
+
* @param {string} domain Domain name
|
|
15685
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
15686
|
+
* @param {*} [options] Override http request option.
|
|
15687
|
+
* @throws {RequiredError}
|
|
15688
|
+
*/
|
|
15689
|
+
getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1MoveMoveResource> {
|
|
15690
|
+
return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
|
|
15691
|
+
},
|
|
15692
|
+
/**
|
|
15693
|
+
* 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.
|
|
15694
|
+
* @summary Get outgoing domain move list
|
|
15695
|
+
* @param {*} [options] Override http request option.
|
|
15696
|
+
* @throws {RequiredError}
|
|
15697
|
+
*/
|
|
15698
|
+
getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1MoveMoveResource>> {
|
|
15699
|
+
return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
|
|
15700
|
+
},
|
|
15701
|
+
/**
|
|
15702
|
+
* 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.
|
|
15703
|
+
* @summary Get outgoing domain move
|
|
15704
|
+
* @param {string} domain Domain name
|
|
15705
|
+
* @param {*} [options] Override http request option.
|
|
15706
|
+
* @throws {RequiredError}
|
|
15707
|
+
*/
|
|
15708
|
+
getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1MoveMoveResource> {
|
|
15709
|
+
return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
15710
|
+
},
|
|
15711
|
+
/**
|
|
15712
|
+
* 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.
|
|
15713
|
+
* @summary Reject incoming domain move
|
|
15714
|
+
* @param {string} domain Domain name
|
|
15715
|
+
* @param {*} [options] Override http request option.
|
|
15716
|
+
* @throws {RequiredError}
|
|
15717
|
+
*/
|
|
15718
|
+
rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
15719
|
+
return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
15720
|
+
},
|
|
15721
|
+
/**
|
|
15722
|
+
* 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.
|
|
15723
|
+
* @summary Start outgoing domain move
|
|
15724
|
+
* @param {string} domain Domain name
|
|
15725
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
15726
|
+
* @param {*} [options] Override http request option.
|
|
15727
|
+
* @throws {RequiredError}
|
|
15728
|
+
*/
|
|
15729
|
+
startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
15730
|
+
return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
|
|
15731
|
+
},
|
|
15732
|
+
};
|
|
15733
|
+
};
|
|
15734
|
+
|
|
15735
|
+
/**
|
|
15736
|
+
* DomainsMoveApi - object-oriented interface
|
|
15737
|
+
* @export
|
|
15738
|
+
* @class DomainsMoveApi
|
|
15739
|
+
* @extends {BaseAPI}
|
|
15740
|
+
*/
|
|
15741
|
+
export class DomainsMoveApi extends BaseAPI {
|
|
15742
|
+
/**
|
|
15743
|
+
* 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.
|
|
15744
|
+
* @summary Accept incoming domain move
|
|
15745
|
+
* @param {string} domain Domain name
|
|
15746
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
15747
|
+
* @param {*} [options] Override http request option.
|
|
15748
|
+
* @throws {RequiredError}
|
|
15749
|
+
* @memberof DomainsMoveApi
|
|
15750
|
+
*/
|
|
15751
|
+
public acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
15752
|
+
return DomainsMoveApiFp(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15753
|
+
}
|
|
15754
|
+
|
|
15755
|
+
/**
|
|
15756
|
+
* 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.
|
|
15757
|
+
* @summary Cancel outgoing domain move
|
|
15758
|
+
* @param {string} domain Domain name
|
|
15759
|
+
* @param {*} [options] Override http request option.
|
|
15760
|
+
* @throws {RequiredError}
|
|
15761
|
+
* @memberof DomainsMoveApi
|
|
15762
|
+
*/
|
|
15763
|
+
public cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
15764
|
+
return DomainsMoveApiFp(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
15765
|
+
}
|
|
15766
|
+
|
|
15767
|
+
/**
|
|
15768
|
+
* 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.
|
|
15769
|
+
* @summary Get incoming domain move list
|
|
15770
|
+
* @param {*} [options] Override http request option.
|
|
15771
|
+
* @throws {RequiredError}
|
|
15772
|
+
* @memberof DomainsMoveApi
|
|
15773
|
+
*/
|
|
15774
|
+
public getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig) {
|
|
15775
|
+
return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
|
|
15776
|
+
}
|
|
15777
|
+
|
|
15778
|
+
/**
|
|
15779
|
+
* 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.
|
|
15780
|
+
* @summary Get incoming domain move
|
|
15781
|
+
* @param {string} domain Domain name
|
|
15782
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
15783
|
+
* @param {*} [options] Override http request option.
|
|
15784
|
+
* @throws {RequiredError}
|
|
15785
|
+
* @memberof DomainsMoveApi
|
|
15786
|
+
*/
|
|
15787
|
+
public getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig) {
|
|
15788
|
+
return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
|
|
15789
|
+
}
|
|
15790
|
+
|
|
15791
|
+
/**
|
|
15792
|
+
* 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.
|
|
15793
|
+
* @summary Get outgoing domain move list
|
|
15794
|
+
* @param {*} [options] Override http request option.
|
|
15795
|
+
* @throws {RequiredError}
|
|
15796
|
+
* @memberof DomainsMoveApi
|
|
15797
|
+
*/
|
|
15798
|
+
public getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig) {
|
|
15799
|
+
return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
|
|
15800
|
+
}
|
|
15801
|
+
|
|
15802
|
+
/**
|
|
15803
|
+
* 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.
|
|
15804
|
+
* @summary Get outgoing domain move
|
|
15805
|
+
* @param {string} domain Domain name
|
|
15806
|
+
* @param {*} [options] Override http request option.
|
|
15807
|
+
* @throws {RequiredError}
|
|
15808
|
+
* @memberof DomainsMoveApi
|
|
15809
|
+
*/
|
|
15810
|
+
public getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
15811
|
+
return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
15812
|
+
}
|
|
15813
|
+
|
|
15814
|
+
/**
|
|
15815
|
+
* 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.
|
|
15816
|
+
* @summary Reject incoming domain move
|
|
15817
|
+
* @param {string} domain Domain name
|
|
15818
|
+
* @param {*} [options] Override http request option.
|
|
15819
|
+
* @throws {RequiredError}
|
|
15820
|
+
* @memberof DomainsMoveApi
|
|
15821
|
+
*/
|
|
15822
|
+
public rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
15823
|
+
return DomainsMoveApiFp(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
15824
|
+
}
|
|
15825
|
+
|
|
15826
|
+
/**
|
|
15827
|
+
* 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.
|
|
15828
|
+
* @summary Start outgoing domain move
|
|
15829
|
+
* @param {string} domain Domain name
|
|
15830
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
15831
|
+
* @param {*} [options] Override http request option.
|
|
15832
|
+
* @throws {RequiredError}
|
|
15833
|
+
* @memberof DomainsMoveApi
|
|
15834
|
+
*/
|
|
15835
|
+
public startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig) {
|
|
15836
|
+
return DomainsMoveApiFp(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15837
|
+
}
|
|
15838
|
+
}
|
|
15839
|
+
|
|
15840
|
+
|
|
15841
|
+
|
|
15118
15842
|
/**
|
|
15119
15843
|
* DomainsPortfolioApi - axios parameter creator
|
|
15120
15844
|
* @export
|