hostinger-api-sdk 1.25.0 → 1.26.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 +275 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +190 -32
- package/dist/api.js +157 -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 +190 -32
- package/dist/esm/api.js +149 -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/DomainsPortfolioApi.md +56 -0
- package/docs/DomainsTransferApi.md +56 -0
- package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
- package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
- package/docs/DomainsV1PortfolioClaimResource.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
- package/docs/DomainsV1TransferClaimRequest.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@1.
|
|
1
|
+
## hostinger-api-sdk@1.26.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-api-sdk@1.
|
|
8
|
+
npm install hostinger-api-sdk@1.26.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.27.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
|
|
@@ -2913,77 +2913,141 @@ export interface DomainsV1PortfolioAuthCodeAuthCodeResource {
|
|
|
2913
2913
|
/**
|
|
2914
2914
|
*
|
|
2915
2915
|
* @export
|
|
2916
|
-
* @interface
|
|
2916
|
+
* @interface DomainsV1PortfolioClaimRequest
|
|
2917
2917
|
*/
|
|
2918
|
-
export interface
|
|
2918
|
+
export interface DomainsV1PortfolioClaimRequest {
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Domain name
|
|
2921
2921
|
* @type {string}
|
|
2922
|
-
* @memberof
|
|
2922
|
+
* @memberof DomainsV1PortfolioClaimRequest
|
|
2923
2923
|
*/
|
|
2924
2924
|
'domain': string;
|
|
2925
|
-
/**
|
|
2926
|
-
* Catalog price item ID
|
|
2927
|
-
* @type {string}
|
|
2928
|
-
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
2929
|
-
*/
|
|
2930
|
-
'item_id': string;
|
|
2931
|
-
/**
|
|
2932
|
-
* Payment method ID, default will be used if not provided
|
|
2933
|
-
* @type {number}
|
|
2934
|
-
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
2935
|
-
*/
|
|
2936
|
-
'payment_method_id': number;
|
|
2937
2925
|
/**
|
|
2938
2926
|
*
|
|
2939
|
-
* @type {
|
|
2940
|
-
* @memberof
|
|
2927
|
+
* @type {DomainsV1PortfolioClaimRequestDomainContacts}
|
|
2928
|
+
* @memberof DomainsV1PortfolioClaimRequest
|
|
2941
2929
|
*/
|
|
2942
|
-
'domain_contacts':
|
|
2930
|
+
'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
|
|
2943
2931
|
/**
|
|
2944
2932
|
* Additional registration data, possible values depends on TLD
|
|
2945
2933
|
* @type {object}
|
|
2946
|
-
* @memberof
|
|
2934
|
+
* @memberof DomainsV1PortfolioClaimRequest
|
|
2947
2935
|
*/
|
|
2948
2936
|
'additional_details': object;
|
|
2949
|
-
/**
|
|
2950
|
-
* Discount coupon codes
|
|
2951
|
-
* @type {Array<any>}
|
|
2952
|
-
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
2953
|
-
*/
|
|
2954
|
-
'coupons': Array<any>;
|
|
2955
2937
|
}
|
|
2956
2938
|
/**
|
|
2957
2939
|
* Domain contact information
|
|
2958
2940
|
* @export
|
|
2959
|
-
* @interface
|
|
2941
|
+
* @interface DomainsV1PortfolioClaimRequestDomainContacts
|
|
2960
2942
|
*/
|
|
2961
|
-
export interface
|
|
2943
|
+
export interface DomainsV1PortfolioClaimRequestDomainContacts {
|
|
2962
2944
|
/**
|
|
2963
2945
|
* Owner contact WHOIS record ID
|
|
2964
2946
|
* @type {number}
|
|
2965
|
-
* @memberof
|
|
2947
|
+
* @memberof DomainsV1PortfolioClaimRequestDomainContacts
|
|
2966
2948
|
*/
|
|
2967
2949
|
'owner_id': number;
|
|
2968
2950
|
/**
|
|
2969
2951
|
* Administrative contact WHOIS record ID
|
|
2970
2952
|
* @type {number}
|
|
2971
|
-
* @memberof
|
|
2953
|
+
* @memberof DomainsV1PortfolioClaimRequestDomainContacts
|
|
2972
2954
|
*/
|
|
2973
2955
|
'admin_id': number;
|
|
2974
2956
|
/**
|
|
2975
2957
|
* Billing contact WHOIS record ID
|
|
2976
2958
|
* @type {number}
|
|
2977
|
-
* @memberof
|
|
2959
|
+
* @memberof DomainsV1PortfolioClaimRequestDomainContacts
|
|
2978
2960
|
*/
|
|
2979
2961
|
'billing_id': number;
|
|
2980
2962
|
/**
|
|
2981
2963
|
* Technical contact WHOIS record ID
|
|
2982
2964
|
* @type {number}
|
|
2983
|
-
* @memberof
|
|
2965
|
+
* @memberof DomainsV1PortfolioClaimRequestDomainContacts
|
|
2984
2966
|
*/
|
|
2985
2967
|
'tech_id': number;
|
|
2986
2968
|
}
|
|
2969
|
+
/**
|
|
2970
|
+
*
|
|
2971
|
+
* @export
|
|
2972
|
+
* @interface DomainsV1PortfolioClaimResource
|
|
2973
|
+
*/
|
|
2974
|
+
export interface DomainsV1PortfolioClaimResource {
|
|
2975
|
+
/**
|
|
2976
|
+
* Domain name
|
|
2977
|
+
* @type {string}
|
|
2978
|
+
* @memberof DomainsV1PortfolioClaimResource
|
|
2979
|
+
*/
|
|
2980
|
+
'domain': string | null;
|
|
2981
|
+
/**
|
|
2982
|
+
* Domain status
|
|
2983
|
+
* @type {string}
|
|
2984
|
+
* @memberof DomainsV1PortfolioClaimResource
|
|
2985
|
+
*/
|
|
2986
|
+
'status': DomainsV1PortfolioClaimResourceStatusEnum | null;
|
|
2987
|
+
/**
|
|
2988
|
+
*
|
|
2989
|
+
* @type {string}
|
|
2990
|
+
* @memberof DomainsV1PortfolioClaimResource
|
|
2991
|
+
*/
|
|
2992
|
+
'created_at': string | null;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
export const DomainsV1PortfolioClaimResourceStatusEnum = {
|
|
2996
|
+
Active: 'active',
|
|
2997
|
+
PendingSetup: 'pending_setup',
|
|
2998
|
+
Expired: 'expired',
|
|
2999
|
+
Requested: 'requested',
|
|
3000
|
+
PendingVerification: 'pending_verification',
|
|
3001
|
+
Deleted: 'deleted',
|
|
3002
|
+
Suspended: 'suspended',
|
|
3003
|
+
Failed: 'failed'
|
|
3004
|
+
} as const;
|
|
3005
|
+
|
|
3006
|
+
export type DomainsV1PortfolioClaimResourceStatusEnum = typeof DomainsV1PortfolioClaimResourceStatusEnum[keyof typeof DomainsV1PortfolioClaimResourceStatusEnum];
|
|
3007
|
+
|
|
3008
|
+
/**
|
|
3009
|
+
*
|
|
3010
|
+
* @export
|
|
3011
|
+
* @interface DomainsV1PortfolioPurchaseRequest
|
|
3012
|
+
*/
|
|
3013
|
+
export interface DomainsV1PortfolioPurchaseRequest {
|
|
3014
|
+
/**
|
|
3015
|
+
* Domain name
|
|
3016
|
+
* @type {string}
|
|
3017
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
3018
|
+
*/
|
|
3019
|
+
'domain': string;
|
|
3020
|
+
/**
|
|
3021
|
+
* Catalog price item ID
|
|
3022
|
+
* @type {string}
|
|
3023
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
3024
|
+
*/
|
|
3025
|
+
'item_id': string;
|
|
3026
|
+
/**
|
|
3027
|
+
* Payment method ID, default will be used if not provided
|
|
3028
|
+
* @type {number}
|
|
3029
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
3030
|
+
*/
|
|
3031
|
+
'payment_method_id': number;
|
|
3032
|
+
/**
|
|
3033
|
+
*
|
|
3034
|
+
* @type {DomainsV1PortfolioClaimRequestDomainContacts}
|
|
3035
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
3036
|
+
*/
|
|
3037
|
+
'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
|
|
3038
|
+
/**
|
|
3039
|
+
* Additional registration data, possible values depends on TLD
|
|
3040
|
+
* @type {object}
|
|
3041
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
3042
|
+
*/
|
|
3043
|
+
'additional_details': object;
|
|
3044
|
+
/**
|
|
3045
|
+
* Discount coupon codes
|
|
3046
|
+
* @type {Array<any>}
|
|
3047
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
3048
|
+
*/
|
|
3049
|
+
'coupons': Array<any>;
|
|
3050
|
+
}
|
|
2987
3051
|
/**
|
|
2988
3052
|
*
|
|
2989
3053
|
* @export
|
|
@@ -3040,6 +3104,37 @@ export interface DomainsV1PortfolioUpdateNameserversRequest {
|
|
|
3040
3104
|
*/
|
|
3041
3105
|
'ns4': string;
|
|
3042
3106
|
}
|
|
3107
|
+
/**
|
|
3108
|
+
*
|
|
3109
|
+
* @export
|
|
3110
|
+
* @interface DomainsV1TransferClaimRequest
|
|
3111
|
+
*/
|
|
3112
|
+
export interface DomainsV1TransferClaimRequest {
|
|
3113
|
+
/**
|
|
3114
|
+
* Domain name
|
|
3115
|
+
* @type {string}
|
|
3116
|
+
* @memberof DomainsV1TransferClaimRequest
|
|
3117
|
+
*/
|
|
3118
|
+
'domain': string;
|
|
3119
|
+
/**
|
|
3120
|
+
* Authorization code from the current registrar
|
|
3121
|
+
* @type {string}
|
|
3122
|
+
* @memberof DomainsV1TransferClaimRequest
|
|
3123
|
+
*/
|
|
3124
|
+
'auth_code': string;
|
|
3125
|
+
/**
|
|
3126
|
+
*
|
|
3127
|
+
* @type {DomainsV1PortfolioClaimRequestDomainContacts}
|
|
3128
|
+
* @memberof DomainsV1TransferClaimRequest
|
|
3129
|
+
*/
|
|
3130
|
+
'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
|
|
3131
|
+
/**
|
|
3132
|
+
* Keep the existing nameservers of the domain
|
|
3133
|
+
* @type {boolean}
|
|
3134
|
+
* @memberof DomainsV1TransferClaimRequest
|
|
3135
|
+
*/
|
|
3136
|
+
'should_keep_ns': boolean;
|
|
3137
|
+
}
|
|
3043
3138
|
/**
|
|
3044
3139
|
*
|
|
3045
3140
|
* @export
|
|
@@ -15845,6 +15940,46 @@ export class DomainsMoveApi extends BaseAPI {
|
|
|
15845
15940
|
*/
|
|
15846
15941
|
export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15847
15942
|
return {
|
|
15943
|
+
/**
|
|
15944
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
15945
|
+
* @summary Claim free domain
|
|
15946
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
15947
|
+
* @param {*} [options] Override http request option.
|
|
15948
|
+
* @throws {RequiredError}
|
|
15949
|
+
*/
|
|
15950
|
+
claimFreeDomainV1: async (domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15951
|
+
// verify required parameter 'domainsV1PortfolioClaimRequest' is not null or undefined
|
|
15952
|
+
assertParamExists('claimFreeDomainV1', 'domainsV1PortfolioClaimRequest', domainsV1PortfolioClaimRequest)
|
|
15953
|
+
const localVarPath = `/api/domains/v1/portfolio/claim`;
|
|
15954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15955
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15956
|
+
let baseOptions;
|
|
15957
|
+
if (configuration) {
|
|
15958
|
+
baseOptions = configuration.baseOptions;
|
|
15959
|
+
}
|
|
15960
|
+
|
|
15961
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15962
|
+
const localVarHeaderParameter = {} as any;
|
|
15963
|
+
const localVarQueryParameter = {} as any;
|
|
15964
|
+
|
|
15965
|
+
// authentication apiToken required
|
|
15966
|
+
// http bearer authentication required
|
|
15967
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15968
|
+
|
|
15969
|
+
|
|
15970
|
+
|
|
15971
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15972
|
+
|
|
15973
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15974
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15975
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15976
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioClaimRequest, localVarRequestOptions, configuration)
|
|
15977
|
+
|
|
15978
|
+
return {
|
|
15979
|
+
url: toPathString(localVarUrlObj),
|
|
15980
|
+
options: localVarRequestOptions,
|
|
15981
|
+
};
|
|
15982
|
+
},
|
|
15848
15983
|
/**
|
|
15849
15984
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
15850
15985
|
* @summary Disable domain lock
|
|
@@ -16239,6 +16374,18 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
16239
16374
|
export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
|
|
16240
16375
|
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration)
|
|
16241
16376
|
return {
|
|
16377
|
+
/**
|
|
16378
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
16379
|
+
* @summary Claim free domain
|
|
16380
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
16381
|
+
* @param {*} [options] Override http request option.
|
|
16382
|
+
* @throws {RequiredError}
|
|
16383
|
+
*/
|
|
16384
|
+
async claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioClaimResource>> {
|
|
16385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options);
|
|
16386
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.claimFreeDomainV1']?.[0]?.url;
|
|
16387
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16388
|
+
},
|
|
16242
16389
|
/**
|
|
16243
16390
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
16244
16391
|
* @summary Disable domain lock
|
|
@@ -16369,6 +16516,16 @@ export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
|
|
|
16369
16516
|
export const DomainsPortfolioApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16370
16517
|
const localVarFp = DomainsPortfolioApiFp(configuration)
|
|
16371
16518
|
return {
|
|
16519
|
+
/**
|
|
16520
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
16521
|
+
* @summary Claim free domain
|
|
16522
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
16523
|
+
* @param {*} [options] Override http request option.
|
|
16524
|
+
* @throws {RequiredError}
|
|
16525
|
+
*/
|
|
16526
|
+
claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioClaimResource> {
|
|
16527
|
+
return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
|
|
16528
|
+
},
|
|
16372
16529
|
/**
|
|
16373
16530
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
16374
16531
|
* @summary Disable domain lock
|
|
@@ -16479,6 +16636,18 @@ export const DomainsPortfolioApiFactory = function (configuration?: Configuratio
|
|
|
16479
16636
|
* @extends {BaseAPI}
|
|
16480
16637
|
*/
|
|
16481
16638
|
export class DomainsPortfolioApi extends BaseAPI {
|
|
16639
|
+
/**
|
|
16640
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
16641
|
+
* @summary Claim free domain
|
|
16642
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
16643
|
+
* @param {*} [options] Override http request option.
|
|
16644
|
+
* @throws {RequiredError}
|
|
16645
|
+
* @memberof DomainsPortfolioApi
|
|
16646
|
+
*/
|
|
16647
|
+
public claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig) {
|
|
16648
|
+
return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16649
|
+
}
|
|
16650
|
+
|
|
16482
16651
|
/**
|
|
16483
16652
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
16484
16653
|
* @summary Disable domain lock
|
|
@@ -16608,6 +16777,46 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
16608
16777
|
*/
|
|
16609
16778
|
export const DomainsTransferApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
16610
16779
|
return {
|
|
16780
|
+
/**
|
|
16781
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
16782
|
+
* @summary Claim free domain transfer
|
|
16783
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
16784
|
+
* @param {*} [options] Override http request option.
|
|
16785
|
+
* @throws {RequiredError}
|
|
16786
|
+
*/
|
|
16787
|
+
claimFreeDomainTransferV1: async (domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16788
|
+
// verify required parameter 'domainsV1TransferClaimRequest' is not null or undefined
|
|
16789
|
+
assertParamExists('claimFreeDomainTransferV1', 'domainsV1TransferClaimRequest', domainsV1TransferClaimRequest)
|
|
16790
|
+
const localVarPath = `/api/domains/v1/transfers/claim`;
|
|
16791
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16792
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16793
|
+
let baseOptions;
|
|
16794
|
+
if (configuration) {
|
|
16795
|
+
baseOptions = configuration.baseOptions;
|
|
16796
|
+
}
|
|
16797
|
+
|
|
16798
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16799
|
+
const localVarHeaderParameter = {} as any;
|
|
16800
|
+
const localVarQueryParameter = {} as any;
|
|
16801
|
+
|
|
16802
|
+
// authentication apiToken required
|
|
16803
|
+
// http bearer authentication required
|
|
16804
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16805
|
+
|
|
16806
|
+
|
|
16807
|
+
|
|
16808
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16809
|
+
|
|
16810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16812
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16813
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferClaimRequest, localVarRequestOptions, configuration)
|
|
16814
|
+
|
|
16815
|
+
return {
|
|
16816
|
+
url: toPathString(localVarUrlObj),
|
|
16817
|
+
options: localVarRequestOptions,
|
|
16818
|
+
};
|
|
16819
|
+
},
|
|
16611
16820
|
/**
|
|
16612
16821
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
16613
16822
|
* @summary Get transfer list
|
|
@@ -16690,6 +16899,18 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration?: Con
|
|
|
16690
16899
|
export const DomainsTransferApiFp = function(configuration?: Configuration) {
|
|
16691
16900
|
const localVarAxiosParamCreator = DomainsTransferApiAxiosParamCreator(configuration)
|
|
16692
16901
|
return {
|
|
16902
|
+
/**
|
|
16903
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
16904
|
+
* @summary Claim free domain transfer
|
|
16905
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
16906
|
+
* @param {*} [options] Override http request option.
|
|
16907
|
+
* @throws {RequiredError}
|
|
16908
|
+
*/
|
|
16909
|
+
async claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>> {
|
|
16910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options);
|
|
16911
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsTransferApi.claimFreeDomainTransferV1']?.[0]?.url;
|
|
16912
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16913
|
+
},
|
|
16693
16914
|
/**
|
|
16694
16915
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
16695
16916
|
* @summary Get transfer list
|
|
@@ -16723,6 +16944,16 @@ export const DomainsTransferApiFp = function(configuration?: Configuration) {
|
|
|
16723
16944
|
export const DomainsTransferApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16724
16945
|
const localVarFp = DomainsTransferApiFp(configuration)
|
|
16725
16946
|
return {
|
|
16947
|
+
/**
|
|
16948
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
16949
|
+
* @summary Claim free domain transfer
|
|
16950
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
16951
|
+
* @param {*} [options] Override http request option.
|
|
16952
|
+
* @throws {RequiredError}
|
|
16953
|
+
*/
|
|
16954
|
+
claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource> {
|
|
16955
|
+
return localVarFp.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(axios, basePath));
|
|
16956
|
+
},
|
|
16726
16957
|
/**
|
|
16727
16958
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
16728
16959
|
* @summary Get transfer list
|
|
@@ -16752,6 +16983,18 @@ export const DomainsTransferApiFactory = function (configuration?: Configuration
|
|
|
16752
16983
|
* @extends {BaseAPI}
|
|
16753
16984
|
*/
|
|
16754
16985
|
export class DomainsTransferApi extends BaseAPI {
|
|
16986
|
+
/**
|
|
16987
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
16988
|
+
* @summary Claim free domain transfer
|
|
16989
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
16990
|
+
* @param {*} [options] Override http request option.
|
|
16991
|
+
* @throws {RequiredError}
|
|
16992
|
+
* @memberof DomainsTransferApi
|
|
16993
|
+
*/
|
|
16994
|
+
public claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig) {
|
|
16995
|
+
return DomainsTransferApiFp(this.configuration).claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16996
|
+
}
|
|
16997
|
+
|
|
16755
16998
|
/**
|
|
16756
16999
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
16757
17000
|
* @summary Get transfer list
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.27.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.27.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.27.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.26.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|