hostinger-api-sdk 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/{publish-release.yaml → build-release.yaml} +24 -3
- package/README.md +2 -2
- package/api.ts +382 -12
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +245 -13
- package/dist/api.js +256 -4
- 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 +245 -13
- package/dist/esm/api.js +254 -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/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.16
|
|
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
|
|
@@ -56,7 +56,31 @@ export const BillingV1SubscriptionSubscriptionResourceStatusEnum = {
|
|
|
56
56
|
InTrial: 'in_trial',
|
|
57
57
|
Future: 'future'
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = {
|
|
60
|
+
A: 'A',
|
|
61
|
+
Aaaa: 'AAAA',
|
|
62
|
+
Cname: 'CNAME',
|
|
63
|
+
Alias: 'ALIAS',
|
|
64
|
+
Mx: 'MX',
|
|
65
|
+
Txt: 'TXT',
|
|
66
|
+
Ns: 'NS',
|
|
67
|
+
Soa: 'SOA',
|
|
68
|
+
Srv: 'SRV',
|
|
69
|
+
Caa: 'CAA'
|
|
70
|
+
};
|
|
71
|
+
export const DNSV1ZoneRecordResourceTypeEnum = {
|
|
72
|
+
A: 'A',
|
|
73
|
+
Aaaa: 'AAAA',
|
|
74
|
+
Cname: 'CNAME',
|
|
75
|
+
Alias: 'ALIAS',
|
|
76
|
+
Mx: 'MX',
|
|
77
|
+
Txt: 'TXT',
|
|
78
|
+
Ns: 'NS',
|
|
79
|
+
Soa: 'SOA',
|
|
80
|
+
Srv: 'SRV',
|
|
81
|
+
Caa: 'CAA'
|
|
82
|
+
};
|
|
83
|
+
export const DNSV1ZoneUpdateRequestZoneInnerTypeEnum = {
|
|
60
84
|
A: 'A',
|
|
61
85
|
Aaaa: 'AAAA',
|
|
62
86
|
Cname: 'CNAME',
|
|
@@ -990,6 +1014,43 @@ export class DNSSnapshotApi extends BaseAPI {
|
|
|
990
1014
|
*/
|
|
991
1015
|
export const DNSZoneApiAxiosParamCreator = function (configuration) {
|
|
992
1016
|
return {
|
|
1017
|
+
/**
|
|
1018
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
1019
|
+
* @summary Delete zone records
|
|
1020
|
+
* @param {string} domain Domain name
|
|
1021
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
1022
|
+
* @param {*} [options] Override http request option.
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
deleteZoneRecordsV1: (domain_1, dNSV1ZoneDestroyRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneDestroyRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneDestroyRequest, options = {}) {
|
|
1026
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1027
|
+
assertParamExists('deleteZoneRecordsV1', 'domain', domain);
|
|
1028
|
+
// verify required parameter 'dNSV1ZoneDestroyRequest' is not null or undefined
|
|
1029
|
+
assertParamExists('deleteZoneRecordsV1', 'dNSV1ZoneDestroyRequest', dNSV1ZoneDestroyRequest);
|
|
1030
|
+
const localVarPath = `/api/dns/v1/zones/{domain}`
|
|
1031
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1032
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1033
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1034
|
+
let baseOptions;
|
|
1035
|
+
if (configuration) {
|
|
1036
|
+
baseOptions = configuration.baseOptions;
|
|
1037
|
+
}
|
|
1038
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1039
|
+
const localVarHeaderParameter = {};
|
|
1040
|
+
const localVarQueryParameter = {};
|
|
1041
|
+
// authentication apiToken required
|
|
1042
|
+
// http bearer authentication required
|
|
1043
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1044
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1045
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1046
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1047
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1048
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneDestroyRequest, localVarRequestOptions, configuration);
|
|
1049
|
+
return {
|
|
1050
|
+
url: toPathString(localVarUrlObj),
|
|
1051
|
+
options: localVarRequestOptions,
|
|
1052
|
+
};
|
|
1053
|
+
}),
|
|
993
1054
|
/**
|
|
994
1055
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
995
1056
|
* @summary Get records
|
|
@@ -1059,6 +1120,80 @@ export const DNSZoneApiAxiosParamCreator = function (configuration) {
|
|
|
1059
1120
|
options: localVarRequestOptions,
|
|
1060
1121
|
};
|
|
1061
1122
|
}),
|
|
1123
|
+
/**
|
|
1124
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
1125
|
+
* @summary Update zone records
|
|
1126
|
+
* @param {string} domain Domain name
|
|
1127
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
updateZoneRecordsV1: (domain_1, dNSV1ZoneUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneUpdateRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneUpdateRequest, options = {}) {
|
|
1132
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1133
|
+
assertParamExists('updateZoneRecordsV1', 'domain', domain);
|
|
1134
|
+
// verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
|
|
1135
|
+
assertParamExists('updateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest);
|
|
1136
|
+
const localVarPath = `/api/dns/v1/zones/{domain}`
|
|
1137
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1139
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1140
|
+
let baseOptions;
|
|
1141
|
+
if (configuration) {
|
|
1142
|
+
baseOptions = configuration.baseOptions;
|
|
1143
|
+
}
|
|
1144
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1145
|
+
const localVarHeaderParameter = {};
|
|
1146
|
+
const localVarQueryParameter = {};
|
|
1147
|
+
// authentication apiToken required
|
|
1148
|
+
// http bearer authentication required
|
|
1149
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1150
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1153
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1154
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration);
|
|
1155
|
+
return {
|
|
1156
|
+
url: toPathString(localVarUrlObj),
|
|
1157
|
+
options: localVarRequestOptions,
|
|
1158
|
+
};
|
|
1159
|
+
}),
|
|
1160
|
+
/**
|
|
1161
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
1162
|
+
* @summary Validate zone records
|
|
1163
|
+
* @param {string} domain Domain name
|
|
1164
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1165
|
+
* @param {*} [options] Override http request option.
|
|
1166
|
+
* @throws {RequiredError}
|
|
1167
|
+
*/
|
|
1168
|
+
validateZoneRecordsV1: (domain_1, dNSV1ZoneUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneUpdateRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneUpdateRequest, options = {}) {
|
|
1169
|
+
// verify required parameter 'domain' is not null or undefined
|
|
1170
|
+
assertParamExists('validateZoneRecordsV1', 'domain', domain);
|
|
1171
|
+
// verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
|
|
1172
|
+
assertParamExists('validateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest);
|
|
1173
|
+
const localVarPath = `/api/dns/v1/zones/{domain}/validate`
|
|
1174
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
1175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1177
|
+
let baseOptions;
|
|
1178
|
+
if (configuration) {
|
|
1179
|
+
baseOptions = configuration.baseOptions;
|
|
1180
|
+
}
|
|
1181
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1182
|
+
const localVarHeaderParameter = {};
|
|
1183
|
+
const localVarQueryParameter = {};
|
|
1184
|
+
// authentication apiToken required
|
|
1185
|
+
// http bearer authentication required
|
|
1186
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1187
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1190
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1191
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration);
|
|
1192
|
+
return {
|
|
1193
|
+
url: toPathString(localVarUrlObj),
|
|
1194
|
+
options: localVarRequestOptions,
|
|
1195
|
+
};
|
|
1196
|
+
}),
|
|
1062
1197
|
};
|
|
1063
1198
|
};
|
|
1064
1199
|
/**
|
|
@@ -1068,6 +1203,22 @@ export const DNSZoneApiAxiosParamCreator = function (configuration) {
|
|
|
1068
1203
|
export const DNSZoneApiFp = function (configuration) {
|
|
1069
1204
|
const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration);
|
|
1070
1205
|
return {
|
|
1206
|
+
/**
|
|
1207
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
1208
|
+
* @summary Delete zone records
|
|
1209
|
+
* @param {string} domain Domain name
|
|
1210
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
1211
|
+
* @param {*} [options] Override http request option.
|
|
1212
|
+
* @throws {RequiredError}
|
|
1213
|
+
*/
|
|
1214
|
+
deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
|
|
1215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1216
|
+
var _a, _b;
|
|
1217
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options);
|
|
1218
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.deleteZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1219
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1220
|
+
});
|
|
1221
|
+
},
|
|
1071
1222
|
/**
|
|
1072
1223
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
1073
1224
|
* @summary Get records
|
|
@@ -1099,6 +1250,38 @@ export const DNSZoneApiFp = function (configuration) {
|
|
|
1099
1250
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1100
1251
|
});
|
|
1101
1252
|
},
|
|
1253
|
+
/**
|
|
1254
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
1255
|
+
* @summary Update zone records
|
|
1256
|
+
* @param {string} domain Domain name
|
|
1257
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1258
|
+
* @param {*} [options] Override http request option.
|
|
1259
|
+
* @throws {RequiredError}
|
|
1260
|
+
*/
|
|
1261
|
+
updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
|
|
1262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1263
|
+
var _a, _b;
|
|
1264
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
|
|
1265
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.updateZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1266
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1267
|
+
});
|
|
1268
|
+
},
|
|
1269
|
+
/**
|
|
1270
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
1271
|
+
* @summary Validate zone records
|
|
1272
|
+
* @param {string} domain Domain name
|
|
1273
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
|
|
1278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1279
|
+
var _a, _b;
|
|
1280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
|
|
1281
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.validateZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1282
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1283
|
+
});
|
|
1284
|
+
},
|
|
1102
1285
|
};
|
|
1103
1286
|
};
|
|
1104
1287
|
/**
|
|
@@ -1108,6 +1291,17 @@ export const DNSZoneApiFp = function (configuration) {
|
|
|
1108
1291
|
export const DNSZoneApiFactory = function (configuration, basePath, axios) {
|
|
1109
1292
|
const localVarFp = DNSZoneApiFp(configuration);
|
|
1110
1293
|
return {
|
|
1294
|
+
/**
|
|
1295
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
1296
|
+
* @summary Delete zone records
|
|
1297
|
+
* @param {string} domain Domain name
|
|
1298
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
*/
|
|
1302
|
+
deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
|
|
1303
|
+
return localVarFp.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(axios, basePath));
|
|
1304
|
+
},
|
|
1111
1305
|
/**
|
|
1112
1306
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
1113
1307
|
* @summary Get records
|
|
@@ -1129,6 +1323,28 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
|
|
|
1129
1323
|
resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
|
|
1130
1324
|
return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
|
|
1131
1325
|
},
|
|
1326
|
+
/**
|
|
1327
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
1328
|
+
* @summary Update zone records
|
|
1329
|
+
* @param {string} domain Domain name
|
|
1330
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
|
|
1335
|
+
return localVarFp.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
|
|
1336
|
+
},
|
|
1337
|
+
/**
|
|
1338
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
1339
|
+
* @summary Validate zone records
|
|
1340
|
+
* @param {string} domain Domain name
|
|
1341
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
|
|
1346
|
+
return localVarFp.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
|
|
1347
|
+
},
|
|
1132
1348
|
};
|
|
1133
1349
|
};
|
|
1134
1350
|
/**
|
|
@@ -1138,6 +1354,18 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
|
|
|
1138
1354
|
* @extends {BaseAPI}
|
|
1139
1355
|
*/
|
|
1140
1356
|
export class DNSZoneApi extends BaseAPI {
|
|
1357
|
+
/**
|
|
1358
|
+
* This endpoint deletes selected DNS records for the selected domain.
|
|
1359
|
+
* @summary Delete zone records
|
|
1360
|
+
* @param {string} domain Domain name
|
|
1361
|
+
* @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
|
|
1362
|
+
* @param {*} [options] Override http request option.
|
|
1363
|
+
* @throws {RequiredError}
|
|
1364
|
+
* @memberof DNSZoneApi
|
|
1365
|
+
*/
|
|
1366
|
+
deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
|
|
1367
|
+
return DNSZoneApiFp(this.configuration).deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1368
|
+
}
|
|
1141
1369
|
/**
|
|
1142
1370
|
* This endpoint retrieves DNS zone records for a specific domain.
|
|
1143
1371
|
* @summary Get records
|
|
@@ -1161,6 +1389,30 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
1161
1389
|
resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
|
|
1162
1390
|
return DNSZoneApiFp(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1163
1391
|
}
|
|
1392
|
+
/**
|
|
1393
|
+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
|
|
1394
|
+
* @summary Update zone records
|
|
1395
|
+
* @param {string} domain Domain name
|
|
1396
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1397
|
+
* @param {*} [options] Override http request option.
|
|
1398
|
+
* @throws {RequiredError}
|
|
1399
|
+
* @memberof DNSZoneApi
|
|
1400
|
+
*/
|
|
1401
|
+
updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
|
|
1402
|
+
return DNSZoneApiFp(this.configuration).updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
|
|
1406
|
+
* @summary Validate zone records
|
|
1407
|
+
* @param {string} domain Domain name
|
|
1408
|
+
* @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
|
|
1409
|
+
* @param {*} [options] Override http request option.
|
|
1410
|
+
* @throws {RequiredError}
|
|
1411
|
+
* @memberof DNSZoneApi
|
|
1412
|
+
*/
|
|
1413
|
+
validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
|
|
1414
|
+
return DNSZoneApiFp(this.configuration).validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1415
|
+
}
|
|
1164
1416
|
}
|
|
1165
1417
|
/**
|
|
1166
1418
|
* DomainsPortfolioApi - 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: 0.0.
|
|
4
|
+
* API Version: 0.0.16
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.16
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.16
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.16
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.16
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.16
|
|
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-api-sdk-typescript/0.0.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-api-sdk-typescript/0.0.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.16
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.16
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.0.
|
|
4
|
+
* API Version: 0.0.16
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.0.
|
|
7
|
+
* API Version: 0.0.16
|
|
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/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.16
|
|
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
|