@hostinger/sdk 1.55.0 → 1.57.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 +108 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +66 -1
- package/dist/api.js +72 -2
- 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 +66 -1
- package/dist/esm/api.js +72 -2
- 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/BillingCatalogApi.md +2 -2
- package/docs/DomainsTransferApi.md +56 -0
- package/docs/DomainsV1TransferTransferRequest.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.57.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.57.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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
|
|
@@ -3838,6 +3838,37 @@ export interface DomainsV1TransferClaimRequest {
|
|
|
3838
3838
|
*/
|
|
3839
3839
|
'should_keep_ns': boolean;
|
|
3840
3840
|
}
|
|
3841
|
+
/**
|
|
3842
|
+
*
|
|
3843
|
+
* @export
|
|
3844
|
+
* @interface DomainsV1TransferTransferRequest
|
|
3845
|
+
*/
|
|
3846
|
+
export interface DomainsV1TransferTransferRequest {
|
|
3847
|
+
/**
|
|
3848
|
+
* Domain name
|
|
3849
|
+
* @type {string}
|
|
3850
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3851
|
+
*/
|
|
3852
|
+
'domain': string;
|
|
3853
|
+
/**
|
|
3854
|
+
* Authorization code from the current registrar
|
|
3855
|
+
* @type {string}
|
|
3856
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3857
|
+
*/
|
|
3858
|
+
'auth_code': string;
|
|
3859
|
+
/**
|
|
3860
|
+
*
|
|
3861
|
+
* @type {DomainsV1PortfolioClaimRequestDomainContacts}
|
|
3862
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3863
|
+
*/
|
|
3864
|
+
'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
|
|
3865
|
+
/**
|
|
3866
|
+
* Keep the existing nameservers of the domain
|
|
3867
|
+
* @type {boolean}
|
|
3868
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3869
|
+
*/
|
|
3870
|
+
'should_keep_ns': boolean;
|
|
3871
|
+
}
|
|
3841
3872
|
/**
|
|
3842
3873
|
*
|
|
3843
3874
|
* @export
|
|
@@ -20951,7 +20982,8 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
20951
20982
|
export const GetCatalogItemListV1CategoryEnum = {
|
|
20952
20983
|
Domain: 'DOMAIN',
|
|
20953
20984
|
Vps: 'VPS',
|
|
20954
|
-
Email: 'EMAIL'
|
|
20985
|
+
Email: 'EMAIL',
|
|
20986
|
+
Hosting: 'HOSTING'
|
|
20955
20987
|
} as const;
|
|
20956
20988
|
export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1CategoryEnum[keyof typeof GetCatalogItemListV1CategoryEnum];
|
|
20957
20989
|
|
|
@@ -24718,6 +24750,46 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration?: Con
|
|
|
24718
24750
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24719
24751
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24720
24752
|
|
|
24753
|
+
return {
|
|
24754
|
+
url: toPathString(localVarUrlObj),
|
|
24755
|
+
options: localVarRequestOptions,
|
|
24756
|
+
};
|
|
24757
|
+
},
|
|
24758
|
+
/**
|
|
24759
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
24760
|
+
* @summary Start domain transfer
|
|
24761
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
24762
|
+
* @param {*} [options] Override http request option.
|
|
24763
|
+
* @throws {RequiredError}
|
|
24764
|
+
*/
|
|
24765
|
+
startDomainTransferV1: async (domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24766
|
+
// verify required parameter 'domainsV1TransferTransferRequest' is not null or undefined
|
|
24767
|
+
assertParamExists('startDomainTransferV1', 'domainsV1TransferTransferRequest', domainsV1TransferTransferRequest)
|
|
24768
|
+
const localVarPath = `/api/domains/v1/transfers`;
|
|
24769
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24770
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24771
|
+
let baseOptions;
|
|
24772
|
+
if (configuration) {
|
|
24773
|
+
baseOptions = configuration.baseOptions;
|
|
24774
|
+
}
|
|
24775
|
+
|
|
24776
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
24777
|
+
const localVarHeaderParameter = {} as any;
|
|
24778
|
+
const localVarQueryParameter = {} as any;
|
|
24779
|
+
|
|
24780
|
+
// authentication apiToken required
|
|
24781
|
+
// http bearer authentication required
|
|
24782
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
24783
|
+
|
|
24784
|
+
|
|
24785
|
+
|
|
24786
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24787
|
+
|
|
24788
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24789
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24790
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24791
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferTransferRequest, localVarRequestOptions, configuration)
|
|
24792
|
+
|
|
24721
24793
|
return {
|
|
24722
24794
|
url: toPathString(localVarUrlObj),
|
|
24723
24795
|
options: localVarRequestOptions,
|
|
@@ -24768,6 +24840,18 @@ export const DomainsTransferApiFp = function(configuration?: Configuration) {
|
|
|
24768
24840
|
const localVarOperationServerBasePath = operationServerMap['DomainsTransferApi.getTransferV1']?.[0]?.url;
|
|
24769
24841
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24770
24842
|
},
|
|
24843
|
+
/**
|
|
24844
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
24845
|
+
* @summary Start domain transfer
|
|
24846
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
24847
|
+
* @param {*} [options] Override http request option.
|
|
24848
|
+
* @throws {RequiredError}
|
|
24849
|
+
*/
|
|
24850
|
+
async startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
24851
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startDomainTransferV1(domainsV1TransferTransferRequest, options);
|
|
24852
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsTransferApi.startDomainTransferV1']?.[0]?.url;
|
|
24853
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24854
|
+
},
|
|
24771
24855
|
}
|
|
24772
24856
|
};
|
|
24773
24857
|
|
|
@@ -24807,6 +24891,16 @@ export const DomainsTransferApiFactory = function (configuration?: Configuration
|
|
|
24807
24891
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource> {
|
|
24808
24892
|
return localVarFp.getTransferV1(domain, options).then((request) => request(axios, basePath));
|
|
24809
24893
|
},
|
|
24894
|
+
/**
|
|
24895
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
24896
|
+
* @summary Start domain transfer
|
|
24897
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
24898
|
+
* @param {*} [options] Override http request option.
|
|
24899
|
+
* @throws {RequiredError}
|
|
24900
|
+
*/
|
|
24901
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
24902
|
+
return localVarFp.startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(axios, basePath));
|
|
24903
|
+
},
|
|
24810
24904
|
};
|
|
24811
24905
|
};
|
|
24812
24906
|
|
|
@@ -24851,6 +24945,18 @@ export class DomainsTransferApi extends BaseAPI {
|
|
|
24851
24945
|
public getTransferV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
24852
24946
|
return DomainsTransferApiFp(this.configuration).getTransferV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
24853
24947
|
}
|
|
24948
|
+
|
|
24949
|
+
/**
|
|
24950
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
24951
|
+
* @summary Start domain transfer
|
|
24952
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
24953
|
+
* @param {*} [options] Override http request option.
|
|
24954
|
+
* @throws {RequiredError}
|
|
24955
|
+
* @memberof DomainsTransferApi
|
|
24956
|
+
*/
|
|
24957
|
+
public startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig) {
|
|
24958
|
+
return DomainsTransferApiFp(this.configuration).startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(this.axios, this.basePath));
|
|
24959
|
+
}
|
|
24854
24960
|
}
|
|
24855
24961
|
|
|
24856
24962
|
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.57.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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
|
|
@@ -3746,6 +3746,37 @@ export interface DomainsV1TransferClaimRequest {
|
|
|
3746
3746
|
*/
|
|
3747
3747
|
'should_keep_ns': boolean;
|
|
3748
3748
|
}
|
|
3749
|
+
/**
|
|
3750
|
+
*
|
|
3751
|
+
* @export
|
|
3752
|
+
* @interface DomainsV1TransferTransferRequest
|
|
3753
|
+
*/
|
|
3754
|
+
export interface DomainsV1TransferTransferRequest {
|
|
3755
|
+
/**
|
|
3756
|
+
* Domain name
|
|
3757
|
+
* @type {string}
|
|
3758
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3759
|
+
*/
|
|
3760
|
+
'domain': string;
|
|
3761
|
+
/**
|
|
3762
|
+
* Authorization code from the current registrar
|
|
3763
|
+
* @type {string}
|
|
3764
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3765
|
+
*/
|
|
3766
|
+
'auth_code': string;
|
|
3767
|
+
/**
|
|
3768
|
+
*
|
|
3769
|
+
* @type {DomainsV1PortfolioClaimRequestDomainContacts}
|
|
3770
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3771
|
+
*/
|
|
3772
|
+
'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
|
|
3773
|
+
/**
|
|
3774
|
+
* Keep the existing nameservers of the domain
|
|
3775
|
+
* @type {boolean}
|
|
3776
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3777
|
+
*/
|
|
3778
|
+
'should_keep_ns': boolean;
|
|
3779
|
+
}
|
|
3749
3780
|
/**
|
|
3750
3781
|
*
|
|
3751
3782
|
* @export
|
|
@@ -18625,6 +18656,7 @@ export declare const GetCatalogItemListV1CategoryEnum: {
|
|
|
18625
18656
|
readonly Domain: "DOMAIN";
|
|
18626
18657
|
readonly Vps: "VPS";
|
|
18627
18658
|
readonly Email: "EMAIL";
|
|
18659
|
+
readonly Hosting: "HOSTING";
|
|
18628
18660
|
};
|
|
18629
18661
|
export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1CategoryEnum[keyof typeof GetCatalogItemListV1CategoryEnum];
|
|
18630
18662
|
/**
|
|
@@ -20399,6 +20431,14 @@ export declare const DomainsTransferApiAxiosParamCreator: (configuration?: Confi
|
|
|
20399
20431
|
* @throws {RequiredError}
|
|
20400
20432
|
*/
|
|
20401
20433
|
getTransferV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20434
|
+
/**
|
|
20435
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20436
|
+
* @summary Start domain transfer
|
|
20437
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20438
|
+
* @param {*} [options] Override http request option.
|
|
20439
|
+
* @throws {RequiredError}
|
|
20440
|
+
*/
|
|
20441
|
+
startDomainTransferV1: (domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20402
20442
|
};
|
|
20403
20443
|
/**
|
|
20404
20444
|
* DomainsTransferApi - functional programming interface
|
|
@@ -20428,6 +20468,14 @@ export declare const DomainsTransferApiFp: (configuration?: Configuration) => {
|
|
|
20428
20468
|
* @throws {RequiredError}
|
|
20429
20469
|
*/
|
|
20430
20470
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>>;
|
|
20471
|
+
/**
|
|
20472
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20473
|
+
* @summary Start domain transfer
|
|
20474
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20475
|
+
* @param {*} [options] Override http request option.
|
|
20476
|
+
* @throws {RequiredError}
|
|
20477
|
+
*/
|
|
20478
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
20431
20479
|
};
|
|
20432
20480
|
/**
|
|
20433
20481
|
* DomainsTransferApi - factory interface
|
|
@@ -20457,6 +20505,14 @@ export declare const DomainsTransferApiFactory: (configuration?: Configuration,
|
|
|
20457
20505
|
* @throws {RequiredError}
|
|
20458
20506
|
*/
|
|
20459
20507
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource>;
|
|
20508
|
+
/**
|
|
20509
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20510
|
+
* @summary Start domain transfer
|
|
20511
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20512
|
+
* @param {*} [options] Override http request option.
|
|
20513
|
+
* @throws {RequiredError}
|
|
20514
|
+
*/
|
|
20515
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
20460
20516
|
};
|
|
20461
20517
|
/**
|
|
20462
20518
|
* DomainsTransferApi - object-oriented interface
|
|
@@ -20491,6 +20547,15 @@ export declare class DomainsTransferApi extends BaseAPI {
|
|
|
20491
20547
|
* @memberof DomainsTransferApi
|
|
20492
20548
|
*/
|
|
20493
20549
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1TransferTransferResource, any, {}, any>>;
|
|
20550
|
+
/**
|
|
20551
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20552
|
+
* @summary Start domain transfer
|
|
20553
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20554
|
+
* @param {*} [options] Override http request option.
|
|
20555
|
+
* @throws {RequiredError}
|
|
20556
|
+
* @memberof DomainsTransferApi
|
|
20557
|
+
*/
|
|
20558
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
20494
20559
|
}
|
|
20495
20560
|
/**
|
|
20496
20561
|
* DomainsWHOISApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.57.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -4826,7 +4826,8 @@ exports.BillingCatalogApi = BillingCatalogApi;
|
|
|
4826
4826
|
exports.GetCatalogItemListV1CategoryEnum = {
|
|
4827
4827
|
Domain: 'DOMAIN',
|
|
4828
4828
|
Vps: 'VPS',
|
|
4829
|
-
Email: 'EMAIL'
|
|
4829
|
+
Email: 'EMAIL',
|
|
4830
|
+
Hosting: 'HOSTING'
|
|
4830
4831
|
};
|
|
4831
4832
|
/**
|
|
4832
4833
|
* BillingOrdersApi - axios parameter creator
|
|
@@ -8371,6 +8372,39 @@ const DomainsTransferApiAxiosParamCreator = function (configuration) {
|
|
|
8371
8372
|
options: localVarRequestOptions,
|
|
8372
8373
|
};
|
|
8373
8374
|
}),
|
|
8375
|
+
/**
|
|
8376
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8377
|
+
* @summary Start domain transfer
|
|
8378
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8379
|
+
* @param {*} [options] Override http request option.
|
|
8380
|
+
* @throws {RequiredError}
|
|
8381
|
+
*/
|
|
8382
|
+
startDomainTransferV1: (domainsV1TransferTransferRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferTransferRequest_1, ...args_1], void 0, function* (domainsV1TransferTransferRequest, options = {}) {
|
|
8383
|
+
// verify required parameter 'domainsV1TransferTransferRequest' is not null or undefined
|
|
8384
|
+
(0, common_1.assertParamExists)('startDomainTransferV1', 'domainsV1TransferTransferRequest', domainsV1TransferTransferRequest);
|
|
8385
|
+
const localVarPath = `/api/domains/v1/transfers`;
|
|
8386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8387
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8388
|
+
let baseOptions;
|
|
8389
|
+
if (configuration) {
|
|
8390
|
+
baseOptions = configuration.baseOptions;
|
|
8391
|
+
}
|
|
8392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8393
|
+
const localVarHeaderParameter = {};
|
|
8394
|
+
const localVarQueryParameter = {};
|
|
8395
|
+
// authentication apiToken required
|
|
8396
|
+
// http bearer authentication required
|
|
8397
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8398
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8399
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8401
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8402
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1TransferTransferRequest, localVarRequestOptions, configuration);
|
|
8403
|
+
return {
|
|
8404
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8405
|
+
options: localVarRequestOptions,
|
|
8406
|
+
};
|
|
8407
|
+
}),
|
|
8374
8408
|
};
|
|
8375
8409
|
};
|
|
8376
8410
|
exports.DomainsTransferApiAxiosParamCreator = DomainsTransferApiAxiosParamCreator;
|
|
@@ -8425,6 +8459,21 @@ const DomainsTransferApiFp = function (configuration) {
|
|
|
8425
8459
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8426
8460
|
});
|
|
8427
8461
|
},
|
|
8462
|
+
/**
|
|
8463
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8464
|
+
* @summary Start domain transfer
|
|
8465
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8466
|
+
* @param {*} [options] Override http request option.
|
|
8467
|
+
* @throws {RequiredError}
|
|
8468
|
+
*/
|
|
8469
|
+
startDomainTransferV1(domainsV1TransferTransferRequest, options) {
|
|
8470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8471
|
+
var _a, _b;
|
|
8472
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startDomainTransferV1(domainsV1TransferTransferRequest, options);
|
|
8473
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsTransferApi.startDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
8474
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8475
|
+
});
|
|
8476
|
+
},
|
|
8428
8477
|
};
|
|
8429
8478
|
};
|
|
8430
8479
|
exports.DomainsTransferApiFp = DomainsTransferApiFp;
|
|
@@ -8464,6 +8513,16 @@ const DomainsTransferApiFactory = function (configuration, basePath, axios) {
|
|
|
8464
8513
|
getTransferV1(domain, options) {
|
|
8465
8514
|
return localVarFp.getTransferV1(domain, options).then((request) => request(axios, basePath));
|
|
8466
8515
|
},
|
|
8516
|
+
/**
|
|
8517
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8518
|
+
* @summary Start domain transfer
|
|
8519
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8520
|
+
* @param {*} [options] Override http request option.
|
|
8521
|
+
* @throws {RequiredError}
|
|
8522
|
+
*/
|
|
8523
|
+
startDomainTransferV1(domainsV1TransferTransferRequest, options) {
|
|
8524
|
+
return localVarFp.startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(axios, basePath));
|
|
8525
|
+
},
|
|
8467
8526
|
};
|
|
8468
8527
|
};
|
|
8469
8528
|
exports.DomainsTransferApiFactory = DomainsTransferApiFactory;
|
|
@@ -8506,6 +8565,17 @@ class DomainsTransferApi extends base_1.BaseAPI {
|
|
|
8506
8565
|
getTransferV1(domain, options) {
|
|
8507
8566
|
return (0, exports.DomainsTransferApiFp)(this.configuration).getTransferV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
8508
8567
|
}
|
|
8568
|
+
/**
|
|
8569
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8570
|
+
* @summary Start domain transfer
|
|
8571
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8572
|
+
* @param {*} [options] Override http request option.
|
|
8573
|
+
* @throws {RequiredError}
|
|
8574
|
+
* @memberof DomainsTransferApi
|
|
8575
|
+
*/
|
|
8576
|
+
startDomainTransferV1(domainsV1TransferTransferRequest, options) {
|
|
8577
|
+
return (0, exports.DomainsTransferApiFp)(this.configuration).startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8578
|
+
}
|
|
8509
8579
|
}
|
|
8510
8580
|
exports.DomainsTransferApi = DomainsTransferApi;
|
|
8511
8581
|
/**
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.57.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.57.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.57.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.57.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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
|
|
@@ -3746,6 +3746,37 @@ export interface DomainsV1TransferClaimRequest {
|
|
|
3746
3746
|
*/
|
|
3747
3747
|
'should_keep_ns': boolean;
|
|
3748
3748
|
}
|
|
3749
|
+
/**
|
|
3750
|
+
*
|
|
3751
|
+
* @export
|
|
3752
|
+
* @interface DomainsV1TransferTransferRequest
|
|
3753
|
+
*/
|
|
3754
|
+
export interface DomainsV1TransferTransferRequest {
|
|
3755
|
+
/**
|
|
3756
|
+
* Domain name
|
|
3757
|
+
* @type {string}
|
|
3758
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3759
|
+
*/
|
|
3760
|
+
'domain': string;
|
|
3761
|
+
/**
|
|
3762
|
+
* Authorization code from the current registrar
|
|
3763
|
+
* @type {string}
|
|
3764
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3765
|
+
*/
|
|
3766
|
+
'auth_code': string;
|
|
3767
|
+
/**
|
|
3768
|
+
*
|
|
3769
|
+
* @type {DomainsV1PortfolioClaimRequestDomainContacts}
|
|
3770
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3771
|
+
*/
|
|
3772
|
+
'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
|
|
3773
|
+
/**
|
|
3774
|
+
* Keep the existing nameservers of the domain
|
|
3775
|
+
* @type {boolean}
|
|
3776
|
+
* @memberof DomainsV1TransferTransferRequest
|
|
3777
|
+
*/
|
|
3778
|
+
'should_keep_ns': boolean;
|
|
3779
|
+
}
|
|
3749
3780
|
/**
|
|
3750
3781
|
*
|
|
3751
3782
|
* @export
|
|
@@ -18625,6 +18656,7 @@ export declare const GetCatalogItemListV1CategoryEnum: {
|
|
|
18625
18656
|
readonly Domain: "DOMAIN";
|
|
18626
18657
|
readonly Vps: "VPS";
|
|
18627
18658
|
readonly Email: "EMAIL";
|
|
18659
|
+
readonly Hosting: "HOSTING";
|
|
18628
18660
|
};
|
|
18629
18661
|
export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1CategoryEnum[keyof typeof GetCatalogItemListV1CategoryEnum];
|
|
18630
18662
|
/**
|
|
@@ -20399,6 +20431,14 @@ export declare const DomainsTransferApiAxiosParamCreator: (configuration?: Confi
|
|
|
20399
20431
|
* @throws {RequiredError}
|
|
20400
20432
|
*/
|
|
20401
20433
|
getTransferV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20434
|
+
/**
|
|
20435
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20436
|
+
* @summary Start domain transfer
|
|
20437
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20438
|
+
* @param {*} [options] Override http request option.
|
|
20439
|
+
* @throws {RequiredError}
|
|
20440
|
+
*/
|
|
20441
|
+
startDomainTransferV1: (domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20402
20442
|
};
|
|
20403
20443
|
/**
|
|
20404
20444
|
* DomainsTransferApi - functional programming interface
|
|
@@ -20428,6 +20468,14 @@ export declare const DomainsTransferApiFp: (configuration?: Configuration) => {
|
|
|
20428
20468
|
* @throws {RequiredError}
|
|
20429
20469
|
*/
|
|
20430
20470
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>>;
|
|
20471
|
+
/**
|
|
20472
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20473
|
+
* @summary Start domain transfer
|
|
20474
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20475
|
+
* @param {*} [options] Override http request option.
|
|
20476
|
+
* @throws {RequiredError}
|
|
20477
|
+
*/
|
|
20478
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
20431
20479
|
};
|
|
20432
20480
|
/**
|
|
20433
20481
|
* DomainsTransferApi - factory interface
|
|
@@ -20457,6 +20505,14 @@ export declare const DomainsTransferApiFactory: (configuration?: Configuration,
|
|
|
20457
20505
|
* @throws {RequiredError}
|
|
20458
20506
|
*/
|
|
20459
20507
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource>;
|
|
20508
|
+
/**
|
|
20509
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20510
|
+
* @summary Start domain transfer
|
|
20511
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20512
|
+
* @param {*} [options] Override http request option.
|
|
20513
|
+
* @throws {RequiredError}
|
|
20514
|
+
*/
|
|
20515
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
20460
20516
|
};
|
|
20461
20517
|
/**
|
|
20462
20518
|
* DomainsTransferApi - object-oriented interface
|
|
@@ -20491,6 +20547,15 @@ export declare class DomainsTransferApi extends BaseAPI {
|
|
|
20491
20547
|
* @memberof DomainsTransferApi
|
|
20492
20548
|
*/
|
|
20493
20549
|
getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1TransferTransferResource, any, {}, any>>;
|
|
20550
|
+
/**
|
|
20551
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
20552
|
+
* @summary Start domain transfer
|
|
20553
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
20554
|
+
* @param {*} [options] Override http request option.
|
|
20555
|
+
* @throws {RequiredError}
|
|
20556
|
+
* @memberof DomainsTransferApi
|
|
20557
|
+
*/
|
|
20558
|
+
startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
20494
20559
|
}
|
|
20495
20560
|
/**
|
|
20496
20561
|
* DomainsWHOISApi - axios parameter creator
|
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.57.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
|
|
@@ -4756,7 +4756,8 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
4756
4756
|
export const GetCatalogItemListV1CategoryEnum = {
|
|
4757
4757
|
Domain: 'DOMAIN',
|
|
4758
4758
|
Vps: 'VPS',
|
|
4759
|
-
Email: 'EMAIL'
|
|
4759
|
+
Email: 'EMAIL',
|
|
4760
|
+
Hosting: 'HOSTING'
|
|
4760
4761
|
};
|
|
4761
4762
|
/**
|
|
4762
4763
|
* BillingOrdersApi - axios parameter creator
|
|
@@ -8261,6 +8262,39 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration) {
|
|
|
8261
8262
|
options: localVarRequestOptions,
|
|
8262
8263
|
};
|
|
8263
8264
|
}),
|
|
8265
|
+
/**
|
|
8266
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8267
|
+
* @summary Start domain transfer
|
|
8268
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8269
|
+
* @param {*} [options] Override http request option.
|
|
8270
|
+
* @throws {RequiredError}
|
|
8271
|
+
*/
|
|
8272
|
+
startDomainTransferV1: (domainsV1TransferTransferRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferTransferRequest_1, ...args_1], void 0, function* (domainsV1TransferTransferRequest, options = {}) {
|
|
8273
|
+
// verify required parameter 'domainsV1TransferTransferRequest' is not null or undefined
|
|
8274
|
+
assertParamExists('startDomainTransferV1', 'domainsV1TransferTransferRequest', domainsV1TransferTransferRequest);
|
|
8275
|
+
const localVarPath = `/api/domains/v1/transfers`;
|
|
8276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8277
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8278
|
+
let baseOptions;
|
|
8279
|
+
if (configuration) {
|
|
8280
|
+
baseOptions = configuration.baseOptions;
|
|
8281
|
+
}
|
|
8282
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8283
|
+
const localVarHeaderParameter = {};
|
|
8284
|
+
const localVarQueryParameter = {};
|
|
8285
|
+
// authentication apiToken required
|
|
8286
|
+
// http bearer authentication required
|
|
8287
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8288
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8291
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8292
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferTransferRequest, localVarRequestOptions, configuration);
|
|
8293
|
+
return {
|
|
8294
|
+
url: toPathString(localVarUrlObj),
|
|
8295
|
+
options: localVarRequestOptions,
|
|
8296
|
+
};
|
|
8297
|
+
}),
|
|
8264
8298
|
};
|
|
8265
8299
|
};
|
|
8266
8300
|
/**
|
|
@@ -8314,6 +8348,21 @@ export const DomainsTransferApiFp = function (configuration) {
|
|
|
8314
8348
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8315
8349
|
});
|
|
8316
8350
|
},
|
|
8351
|
+
/**
|
|
8352
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8353
|
+
* @summary Start domain transfer
|
|
8354
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8355
|
+
* @param {*} [options] Override http request option.
|
|
8356
|
+
* @throws {RequiredError}
|
|
8357
|
+
*/
|
|
8358
|
+
startDomainTransferV1(domainsV1TransferTransferRequest, options) {
|
|
8359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8360
|
+
var _a, _b;
|
|
8361
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startDomainTransferV1(domainsV1TransferTransferRequest, options);
|
|
8362
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsTransferApi.startDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
8363
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8364
|
+
});
|
|
8365
|
+
},
|
|
8317
8366
|
};
|
|
8318
8367
|
};
|
|
8319
8368
|
/**
|
|
@@ -8352,6 +8401,16 @@ export const DomainsTransferApiFactory = function (configuration, basePath, axio
|
|
|
8352
8401
|
getTransferV1(domain, options) {
|
|
8353
8402
|
return localVarFp.getTransferV1(domain, options).then((request) => request(axios, basePath));
|
|
8354
8403
|
},
|
|
8404
|
+
/**
|
|
8405
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8406
|
+
* @summary Start domain transfer
|
|
8407
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8408
|
+
* @param {*} [options] Override http request option.
|
|
8409
|
+
* @throws {RequiredError}
|
|
8410
|
+
*/
|
|
8411
|
+
startDomainTransferV1(domainsV1TransferTransferRequest, options) {
|
|
8412
|
+
return localVarFp.startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(axios, basePath));
|
|
8413
|
+
},
|
|
8355
8414
|
};
|
|
8356
8415
|
};
|
|
8357
8416
|
/**
|
|
@@ -8393,6 +8452,17 @@ export class DomainsTransferApi extends BaseAPI {
|
|
|
8393
8452
|
getTransferV1(domain, options) {
|
|
8394
8453
|
return DomainsTransferApiFp(this.configuration).getTransferV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
8395
8454
|
}
|
|
8455
|
+
/**
|
|
8456
|
+
* Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
8457
|
+
* @summary Start domain transfer
|
|
8458
|
+
* @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
|
|
8459
|
+
* @param {*} [options] Override http request option.
|
|
8460
|
+
* @throws {RequiredError}
|
|
8461
|
+
* @memberof DomainsTransferApi
|
|
8462
|
+
*/
|
|
8463
|
+
startDomainTransferV1(domainsV1TransferTransferRequest, options) {
|
|
8464
|
+
return DomainsTransferApiFp(this.configuration).startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8465
|
+
}
|
|
8396
8466
|
}
|
|
8397
8467
|
/**
|
|
8398
8468
|
* DomainsWHOISApi - axios parameter creator
|
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.57.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.57.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.57.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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.57.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.57.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/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.57.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new BillingCatalogApi(configuration);
|
|
24
24
|
|
|
25
|
-
let category: 'DOMAIN' | 'VPS' | 'EMAIL'; //Filter catalog items by category (optional) (default to undefined)
|
|
25
|
+
let category: 'DOMAIN' | 'VPS' | 'EMAIL' | 'HOSTING'; //Filter catalog items by category (optional) (default to undefined)
|
|
26
26
|
let name: string; //Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain (optional) (default to undefined)
|
|
27
27
|
|
|
28
28
|
const { status, data } = await apiInstance.getCatalogItemListV1(
|
|
@@ -35,7 +35,7 @@ const { status, data } = await apiInstance.getCatalogItemListV1(
|
|
|
35
35
|
|
|
36
36
|
|Name | Type | Description | Notes|
|
|
37
37
|
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **category** | [**'DOMAIN' | 'VPS' | 'EMAIL'**]**Array<'DOMAIN' | 'VPS' | 'EMAIL'>** | Filter catalog items by category | (optional) defaults to undefined|
|
|
38
|
+
| **category** | [**'DOMAIN' | 'VPS' | 'EMAIL' | 'HOSTING'**]**Array<'DOMAIN' | 'VPS' | 'EMAIL' | 'HOSTING'>** | Filter catalog items by category | (optional) defaults to undefined|
|
|
39
39
|
| **name** | [**string**] | Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain | (optional) defaults to undefined|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
7
7
|
|[**claimFreeDomainTransferV1**](#claimfreedomaintransferv1) | **POST** /api/domains/v1/transfers/claim | Claim free domain transfer|
|
|
8
8
|
|[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
|
|
9
9
|
|[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
|
|
10
|
+
|[**startDomainTransferV1**](#startdomaintransferv1) | **POST** /api/domains/v1/transfers | Start domain transfer|
|
|
10
11
|
|
|
11
12
|
# **claimFreeDomainTransferV1**
|
|
12
13
|
> DomainsV1TransferTransferResource claimFreeDomainTransferV1(domainsV1TransferClaimRequest)
|
|
@@ -162,3 +163,58 @@ const { status, data } = await apiInstance.getTransferV1(
|
|
|
162
163
|
|
|
163
164
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
164
165
|
|
|
166
|
+
# **startDomainTransferV1**
|
|
167
|
+
> CommonSuccessEmptyResource startDomainTransferV1(domainsV1TransferTransferRequest)
|
|
168
|
+
|
|
169
|
+
Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Use this endpoint to bring domains registered elsewhere into your account.
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
import {
|
|
175
|
+
DomainsTransferApi,
|
|
176
|
+
Configuration,
|
|
177
|
+
DomainsV1TransferTransferRequest
|
|
178
|
+
} from '@hostinger/sdk';
|
|
179
|
+
|
|
180
|
+
const configuration = new Configuration();
|
|
181
|
+
const apiInstance = new DomainsTransferApi(configuration);
|
|
182
|
+
|
|
183
|
+
let domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest; //
|
|
184
|
+
|
|
185
|
+
const { status, data } = await apiInstance.startDomainTransferV1(
|
|
186
|
+
domainsV1TransferTransferRequest
|
|
187
|
+
);
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
|
|
192
|
+
|Name | Type | Description | Notes|
|
|
193
|
+
|------------- | ------------- | ------------- | -------------|
|
|
194
|
+
| **domainsV1TransferTransferRequest** | **DomainsV1TransferTransferRequest**| | |
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
**CommonSuccessEmptyResource**
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
[apiToken](../README.md#apiToken)
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: application/json
|
|
208
|
+
- **Accept**: application/json
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### HTTP response details
|
|
212
|
+
| Status code | Description | Response headers |
|
|
213
|
+
|-------------|-------------|------------------|
|
|
214
|
+
|**200** | Success empty response | - |
|
|
215
|
+
|**422** | Validation error response | - |
|
|
216
|
+
|**401** | Unauthenticated response | - |
|
|
217
|
+
|**500** | Error response | - |
|
|
218
|
+
|
|
219
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
220
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# DomainsV1TransferTransferRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [default to undefined]
|
|
9
|
+
**auth_code** | **string** | Authorization code from the current registrar | [default to undefined]
|
|
10
|
+
**domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
|
|
11
|
+
**should_keep_ns** | **boolean** | Keep the existing nameservers of the domain | [optional] [default to true]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1TransferTransferRequest } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1TransferTransferRequest = {
|
|
19
|
+
domain,
|
|
20
|
+
auth_code,
|
|
21
|
+
domain_contacts,
|
|
22
|
+
should_keep_ns,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.57.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
|