hostinger-api-sdk 0.0.2 → 0.0.4

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/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.0.14
6
+ * API Version: 0.0.17
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 DNSV1ZoneNameResourceTypeEnum = {
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',
@@ -124,9 +148,21 @@ export const VPSV1FirewallRulesStoreRequestSourceEnum = {
124
148
  };
125
149
  export const VPSV1VirtualMachineVirtualMachineResourceStateEnum = {
126
150
  Running: 'running',
151
+ Starting: 'starting',
152
+ Stopping: 'stopping',
127
153
  Stopped: 'stopped',
128
154
  Creating: 'creating',
129
- Initial: 'initial'
155
+ Initial: 'initial',
156
+ Error: 'error',
157
+ Suspending: 'suspending',
158
+ Unsuspending: 'unsuspending',
159
+ Suspended: 'suspended',
160
+ Destroying: 'destroying',
161
+ Destroyed: 'destroyed',
162
+ Recreating: 'recreating',
163
+ Restoring: 'restoring',
164
+ Recovery: 'recovery',
165
+ StoppingRecovery: 'stopping_recovery'
130
166
  };
131
167
  export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
132
168
  Unlocked: 'unlocked',
@@ -990,6 +1026,43 @@ export class DNSSnapshotApi extends BaseAPI {
990
1026
  */
991
1027
  export const DNSZoneApiAxiosParamCreator = function (configuration) {
992
1028
  return {
1029
+ /**
1030
+ * This endpoint deletes selected DNS records for the selected domain.
1031
+ * @summary Delete zone records
1032
+ * @param {string} domain Domain name
1033
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ */
1037
+ deleteZoneRecordsV1: (domain_1, dNSV1ZoneDestroyRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneDestroyRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneDestroyRequest, options = {}) {
1038
+ // verify required parameter 'domain' is not null or undefined
1039
+ assertParamExists('deleteZoneRecordsV1', 'domain', domain);
1040
+ // verify required parameter 'dNSV1ZoneDestroyRequest' is not null or undefined
1041
+ assertParamExists('deleteZoneRecordsV1', 'dNSV1ZoneDestroyRequest', dNSV1ZoneDestroyRequest);
1042
+ const localVarPath = `/api/dns/v1/zones/{domain}`
1043
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1044
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1045
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1046
+ let baseOptions;
1047
+ if (configuration) {
1048
+ baseOptions = configuration.baseOptions;
1049
+ }
1050
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1051
+ const localVarHeaderParameter = {};
1052
+ const localVarQueryParameter = {};
1053
+ // authentication apiToken required
1054
+ // http bearer authentication required
1055
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1056
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1057
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1058
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1059
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1060
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneDestroyRequest, localVarRequestOptions, configuration);
1061
+ return {
1062
+ url: toPathString(localVarUrlObj),
1063
+ options: localVarRequestOptions,
1064
+ };
1065
+ }),
993
1066
  /**
994
1067
  * This endpoint retrieves DNS zone records for a specific domain.
995
1068
  * @summary Get records
@@ -1059,6 +1132,80 @@ export const DNSZoneApiAxiosParamCreator = function (configuration) {
1059
1132
  options: localVarRequestOptions,
1060
1133
  };
1061
1134
  }),
1135
+ /**
1136
+ * 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.
1137
+ * @summary Update zone records
1138
+ * @param {string} domain Domain name
1139
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ */
1143
+ updateZoneRecordsV1: (domain_1, dNSV1ZoneUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneUpdateRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneUpdateRequest, options = {}) {
1144
+ // verify required parameter 'domain' is not null or undefined
1145
+ assertParamExists('updateZoneRecordsV1', 'domain', domain);
1146
+ // verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
1147
+ assertParamExists('updateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest);
1148
+ const localVarPath = `/api/dns/v1/zones/{domain}`
1149
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1152
+ let baseOptions;
1153
+ if (configuration) {
1154
+ baseOptions = configuration.baseOptions;
1155
+ }
1156
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1157
+ const localVarHeaderParameter = {};
1158
+ const localVarQueryParameter = {};
1159
+ // authentication apiToken required
1160
+ // http bearer authentication required
1161
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1162
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1165
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1166
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration);
1167
+ return {
1168
+ url: toPathString(localVarUrlObj),
1169
+ options: localVarRequestOptions,
1170
+ };
1171
+ }),
1172
+ /**
1173
+ * 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.
1174
+ * @summary Validate zone records
1175
+ * @param {string} domain Domain name
1176
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ validateZoneRecordsV1: (domain_1, dNSV1ZoneUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneUpdateRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneUpdateRequest, options = {}) {
1181
+ // verify required parameter 'domain' is not null or undefined
1182
+ assertParamExists('validateZoneRecordsV1', 'domain', domain);
1183
+ // verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
1184
+ assertParamExists('validateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest);
1185
+ const localVarPath = `/api/dns/v1/zones/{domain}/validate`
1186
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1189
+ let baseOptions;
1190
+ if (configuration) {
1191
+ baseOptions = configuration.baseOptions;
1192
+ }
1193
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1194
+ const localVarHeaderParameter = {};
1195
+ const localVarQueryParameter = {};
1196
+ // authentication apiToken required
1197
+ // http bearer authentication required
1198
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1202
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1203
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration);
1204
+ return {
1205
+ url: toPathString(localVarUrlObj),
1206
+ options: localVarRequestOptions,
1207
+ };
1208
+ }),
1062
1209
  };
1063
1210
  };
1064
1211
  /**
@@ -1068,6 +1215,22 @@ export const DNSZoneApiAxiosParamCreator = function (configuration) {
1068
1215
  export const DNSZoneApiFp = function (configuration) {
1069
1216
  const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration);
1070
1217
  return {
1218
+ /**
1219
+ * This endpoint deletes selected DNS records for the selected domain.
1220
+ * @summary Delete zone records
1221
+ * @param {string} domain Domain name
1222
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ */
1226
+ deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
1227
+ return __awaiter(this, void 0, void 0, function* () {
1228
+ var _a, _b;
1229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options);
1230
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.deleteZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1231
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1232
+ });
1233
+ },
1071
1234
  /**
1072
1235
  * This endpoint retrieves DNS zone records for a specific domain.
1073
1236
  * @summary Get records
@@ -1099,6 +1262,38 @@ export const DNSZoneApiFp = function (configuration) {
1099
1262
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1100
1263
  });
1101
1264
  },
1265
+ /**
1266
+ * 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.
1267
+ * @summary Update zone records
1268
+ * @param {string} domain Domain name
1269
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1270
+ * @param {*} [options] Override http request option.
1271
+ * @throws {RequiredError}
1272
+ */
1273
+ updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1274
+ return __awaiter(this, void 0, void 0, function* () {
1275
+ var _a, _b;
1276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
1277
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.updateZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1279
+ });
1280
+ },
1281
+ /**
1282
+ * 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.
1283
+ * @summary Validate zone records
1284
+ * @param {string} domain Domain name
1285
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ */
1289
+ validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1290
+ return __awaiter(this, void 0, void 0, function* () {
1291
+ var _a, _b;
1292
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
1293
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.validateZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1295
+ });
1296
+ },
1102
1297
  };
1103
1298
  };
1104
1299
  /**
@@ -1108,6 +1303,17 @@ export const DNSZoneApiFp = function (configuration) {
1108
1303
  export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1109
1304
  const localVarFp = DNSZoneApiFp(configuration);
1110
1305
  return {
1306
+ /**
1307
+ * This endpoint deletes selected DNS records for the selected domain.
1308
+ * @summary Delete zone records
1309
+ * @param {string} domain Domain name
1310
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
1315
+ return localVarFp.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(axios, basePath));
1316
+ },
1111
1317
  /**
1112
1318
  * This endpoint retrieves DNS zone records for a specific domain.
1113
1319
  * @summary Get records
@@ -1129,6 +1335,28 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1129
1335
  resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1130
1336
  return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1131
1337
  },
1338
+ /**
1339
+ * 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.
1340
+ * @summary Update zone records
1341
+ * @param {string} domain Domain name
1342
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1343
+ * @param {*} [options] Override http request option.
1344
+ * @throws {RequiredError}
1345
+ */
1346
+ updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1347
+ return localVarFp.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
1348
+ },
1349
+ /**
1350
+ * 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.
1351
+ * @summary Validate zone records
1352
+ * @param {string} domain Domain name
1353
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1354
+ * @param {*} [options] Override http request option.
1355
+ * @throws {RequiredError}
1356
+ */
1357
+ validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1358
+ return localVarFp.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
1359
+ },
1132
1360
  };
1133
1361
  };
1134
1362
  /**
@@ -1138,6 +1366,18 @@ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1138
1366
  * @extends {BaseAPI}
1139
1367
  */
1140
1368
  export class DNSZoneApi extends BaseAPI {
1369
+ /**
1370
+ * This endpoint deletes selected DNS records for the selected domain.
1371
+ * @summary Delete zone records
1372
+ * @param {string} domain Domain name
1373
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ * @memberof DNSZoneApi
1377
+ */
1378
+ deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
1379
+ return DNSZoneApiFp(this.configuration).deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(this.axios, this.basePath));
1380
+ }
1141
1381
  /**
1142
1382
  * This endpoint retrieves DNS zone records for a specific domain.
1143
1383
  * @summary Get records
@@ -1161,6 +1401,30 @@ export class DNSZoneApi extends BaseAPI {
1161
1401
  resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1162
1402
  return DNSZoneApiFp(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1163
1403
  }
1404
+ /**
1405
+ * 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.
1406
+ * @summary Update 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
+ updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1414
+ return DNSZoneApiFp(this.configuration).updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1415
+ }
1416
+ /**
1417
+ * 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.
1418
+ * @summary Validate zone records
1419
+ * @param {string} domain Domain name
1420
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1421
+ * @param {*} [options] Override http request option.
1422
+ * @throws {RequiredError}
1423
+ * @memberof DNSZoneApi
1424
+ */
1425
+ validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1426
+ return DNSZoneApiFp(this.configuration).validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1427
+ }
1164
1428
  }
1165
1429
  /**
1166
1430
  * DomainsPortfolioApi - axios parameter creator
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.14
4
+ * API Version: 0.0.17
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.14
6
+ * API Version: 0.0.17
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.14
4
+ * API Version: 0.0.17
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.14
6
+ * API Version: 0.0.17
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.14
4
+ * API Version: 0.0.17
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.14
6
+ * API Version: 0.0.17
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.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-api-sdk-typescript/0.0.4" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.14
4
+ * API Version: 0.0.17
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.14
6
+ * API Version: 0.0.17
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.14
4
+ * API Version: 0.0.17
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.14
7
+ * API Version: 0.0.17
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.14
6
+ * API Version: 0.0.17
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {