hostinger-api-sdk 0.0.1 → 0.0.2

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.9
6
+ * API Version: 0.0.14
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,6 +56,18 @@ export const BillingV1SubscriptionSubscriptionResourceStatusEnum = {
56
56
  InTrial: 'in_trial',
57
57
  Future: 'future'
58
58
  };
59
+ export const DNSV1ZoneNameResourceTypeEnum = {
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
+ };
59
71
  export const DomainsV1DomainDomainResourceTypeEnum = {
60
72
  Domain: 'domain',
61
73
  FreeDomain: 'free_domain'
@@ -720,6 +732,436 @@ export class BillingSubscriptionsApi extends BaseAPI {
720
732
  return BillingSubscriptionsApiFp(this.configuration).getSubscriptionListV1(options).then((request) => request(this.axios, this.basePath));
721
733
  }
722
734
  }
735
+ /**
736
+ * DNSSnapshotApi - axios parameter creator
737
+ * @export
738
+ */
739
+ export const DNSSnapshotApiAxiosParamCreator = function (configuration) {
740
+ return {
741
+ /**
742
+ * This endpoint retrieves list of DNS snapshots.
743
+ * @summary Get snapshot list
744
+ * @param {string} domain Domain name
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ getSnapshotListV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
749
+ // verify required parameter 'domain' is not null or undefined
750
+ assertParamExists('getSnapshotListV1', 'domain', domain);
751
+ const localVarPath = `/api/dns/v1/snapshots/{domain}`
752
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
753
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
754
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
755
+ let baseOptions;
756
+ if (configuration) {
757
+ baseOptions = configuration.baseOptions;
758
+ }
759
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
760
+ const localVarHeaderParameter = {};
761
+ const localVarQueryParameter = {};
762
+ // authentication apiToken required
763
+ // http bearer authentication required
764
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
767
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
768
+ return {
769
+ url: toPathString(localVarUrlObj),
770
+ options: localVarRequestOptions,
771
+ };
772
+ }),
773
+ /**
774
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
775
+ * @summary Get snapshot
776
+ * @param {string} domain Domain name
777
+ * @param {number} snapshotId Snapshot ID
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ getSnapshotV1: (domain_1, snapshotId_1, ...args_1) => __awaiter(this, [domain_1, snapshotId_1, ...args_1], void 0, function* (domain, snapshotId, options = {}) {
782
+ // verify required parameter 'domain' is not null or undefined
783
+ assertParamExists('getSnapshotV1', 'domain', domain);
784
+ // verify required parameter 'snapshotId' is not null or undefined
785
+ assertParamExists('getSnapshotV1', 'snapshotId', snapshotId);
786
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
787
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
788
+ .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
790
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
791
+ let baseOptions;
792
+ if (configuration) {
793
+ baseOptions = configuration.baseOptions;
794
+ }
795
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
796
+ const localVarHeaderParameter = {};
797
+ const localVarQueryParameter = {};
798
+ // authentication apiToken required
799
+ // http bearer authentication required
800
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
801
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
802
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
803
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
804
+ return {
805
+ url: toPathString(localVarUrlObj),
806
+ options: localVarRequestOptions,
807
+ };
808
+ }),
809
+ /**
810
+ * This endpoint restores DNS zone to the selected snapshot.
811
+ * @summary Restore snapshot
812
+ * @param {string} domain Domain name
813
+ * @param {number} snapshotId Snapshot ID
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ restoreSnapshotV1: (domain_1, snapshotId_1, ...args_1) => __awaiter(this, [domain_1, snapshotId_1, ...args_1], void 0, function* (domain, snapshotId, options = {}) {
818
+ // verify required parameter 'domain' is not null or undefined
819
+ assertParamExists('restoreSnapshotV1', 'domain', domain);
820
+ // verify required parameter 'snapshotId' is not null or undefined
821
+ assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId);
822
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
823
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
824
+ .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
827
+ let baseOptions;
828
+ if (configuration) {
829
+ baseOptions = configuration.baseOptions;
830
+ }
831
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
832
+ const localVarHeaderParameter = {};
833
+ const localVarQueryParameter = {};
834
+ // authentication apiToken required
835
+ // http bearer authentication required
836
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
837
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
838
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
839
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
840
+ return {
841
+ url: toPathString(localVarUrlObj),
842
+ options: localVarRequestOptions,
843
+ };
844
+ }),
845
+ };
846
+ };
847
+ /**
848
+ * DNSSnapshotApi - functional programming interface
849
+ * @export
850
+ */
851
+ export const DNSSnapshotApiFp = function (configuration) {
852
+ const localVarAxiosParamCreator = DNSSnapshotApiAxiosParamCreator(configuration);
853
+ return {
854
+ /**
855
+ * This endpoint retrieves list of DNS snapshots.
856
+ * @summary Get snapshot list
857
+ * @param {string} domain Domain name
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ getSnapshotListV1(domain, options) {
862
+ return __awaiter(this, void 0, void 0, function* () {
863
+ var _a, _b;
864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSnapshotListV1(domain, options);
865
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSSnapshotApi.getSnapshotListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
866
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
867
+ });
868
+ },
869
+ /**
870
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
871
+ * @summary Get snapshot
872
+ * @param {string} domain Domain name
873
+ * @param {number} snapshotId Snapshot ID
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ getSnapshotV1(domain, snapshotId, options) {
878
+ return __awaiter(this, void 0, void 0, function* () {
879
+ var _a, _b;
880
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSnapshotV1(domain, snapshotId, options);
881
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSSnapshotApi.getSnapshotV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
882
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
883
+ });
884
+ },
885
+ /**
886
+ * This endpoint restores DNS zone to the selected snapshot.
887
+ * @summary Restore snapshot
888
+ * @param {string} domain Domain name
889
+ * @param {number} snapshotId Snapshot ID
890
+ * @param {*} [options] Override http request option.
891
+ * @throws {RequiredError}
892
+ */
893
+ restoreSnapshotV1(domain, snapshotId, options) {
894
+ return __awaiter(this, void 0, void 0, function* () {
895
+ var _a, _b;
896
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSnapshotV1(domain, snapshotId, options);
897
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSSnapshotApi.restoreSnapshotV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
898
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
899
+ });
900
+ },
901
+ };
902
+ };
903
+ /**
904
+ * DNSSnapshotApi - factory interface
905
+ * @export
906
+ */
907
+ export const DNSSnapshotApiFactory = function (configuration, basePath, axios) {
908
+ const localVarFp = DNSSnapshotApiFp(configuration);
909
+ return {
910
+ /**
911
+ * This endpoint retrieves list of DNS snapshots.
912
+ * @summary Get snapshot list
913
+ * @param {string} domain Domain name
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ getSnapshotListV1(domain, options) {
918
+ return localVarFp.getSnapshotListV1(domain, options).then((request) => request(axios, basePath));
919
+ },
920
+ /**
921
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
922
+ * @summary Get snapshot
923
+ * @param {string} domain Domain name
924
+ * @param {number} snapshotId Snapshot ID
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ getSnapshotV1(domain, snapshotId, options) {
929
+ return localVarFp.getSnapshotV1(domain, snapshotId, options).then((request) => request(axios, basePath));
930
+ },
931
+ /**
932
+ * This endpoint restores DNS zone to the selected snapshot.
933
+ * @summary Restore snapshot
934
+ * @param {string} domain Domain name
935
+ * @param {number} snapshotId Snapshot ID
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ restoreSnapshotV1(domain, snapshotId, options) {
940
+ return localVarFp.restoreSnapshotV1(domain, snapshotId, options).then((request) => request(axios, basePath));
941
+ },
942
+ };
943
+ };
944
+ /**
945
+ * DNSSnapshotApi - object-oriented interface
946
+ * @export
947
+ * @class DNSSnapshotApi
948
+ * @extends {BaseAPI}
949
+ */
950
+ export class DNSSnapshotApi extends BaseAPI {
951
+ /**
952
+ * This endpoint retrieves list of DNS snapshots.
953
+ * @summary Get snapshot list
954
+ * @param {string} domain Domain name
955
+ * @param {*} [options] Override http request option.
956
+ * @throws {RequiredError}
957
+ * @memberof DNSSnapshotApi
958
+ */
959
+ getSnapshotListV1(domain, options) {
960
+ return DNSSnapshotApiFp(this.configuration).getSnapshotListV1(domain, options).then((request) => request(this.axios, this.basePath));
961
+ }
962
+ /**
963
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
964
+ * @summary Get snapshot
965
+ * @param {string} domain Domain name
966
+ * @param {number} snapshotId Snapshot ID
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ * @memberof DNSSnapshotApi
970
+ */
971
+ getSnapshotV1(domain, snapshotId, options) {
972
+ return DNSSnapshotApiFp(this.configuration).getSnapshotV1(domain, snapshotId, options).then((request) => request(this.axios, this.basePath));
973
+ }
974
+ /**
975
+ * This endpoint restores DNS zone to the selected snapshot.
976
+ * @summary Restore snapshot
977
+ * @param {string} domain Domain name
978
+ * @param {number} snapshotId Snapshot ID
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ * @memberof DNSSnapshotApi
982
+ */
983
+ restoreSnapshotV1(domain, snapshotId, options) {
984
+ return DNSSnapshotApiFp(this.configuration).restoreSnapshotV1(domain, snapshotId, options).then((request) => request(this.axios, this.basePath));
985
+ }
986
+ }
987
+ /**
988
+ * DNSZoneApi - axios parameter creator
989
+ * @export
990
+ */
991
+ export const DNSZoneApiAxiosParamCreator = function (configuration) {
992
+ return {
993
+ /**
994
+ * This endpoint retrieves DNS zone records for a specific domain.
995
+ * @summary Get records
996
+ * @param {string} domain Domain name
997
+ * @param {*} [options] Override http request option.
998
+ * @throws {RequiredError}
999
+ */
1000
+ getRecordsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
1001
+ // verify required parameter 'domain' is not null or undefined
1002
+ assertParamExists('getRecordsV1', 'domain', domain);
1003
+ const localVarPath = `/api/dns/v1/zones/{domain}`
1004
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1005
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1006
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1007
+ let baseOptions;
1008
+ if (configuration) {
1009
+ baseOptions = configuration.baseOptions;
1010
+ }
1011
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1012
+ const localVarHeaderParameter = {};
1013
+ const localVarQueryParameter = {};
1014
+ // authentication apiToken required
1015
+ // http bearer authentication required
1016
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1019
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1020
+ return {
1021
+ url: toPathString(localVarUrlObj),
1022
+ options: localVarRequestOptions,
1023
+ };
1024
+ }),
1025
+ /**
1026
+ * This endpoint resets DNS zone to the default records.
1027
+ * @summary Reset zone records
1028
+ * @param {string} domain Domain name
1029
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ resetZoneRecordsV1: (domain_1, dNSV1ZoneResetRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneResetRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneResetRequest, options = {}) {
1034
+ // verify required parameter 'domain' is not null or undefined
1035
+ assertParamExists('resetZoneRecordsV1', 'domain', domain);
1036
+ // verify required parameter 'dNSV1ZoneResetRequest' is not null or undefined
1037
+ assertParamExists('resetZoneRecordsV1', 'dNSV1ZoneResetRequest', dNSV1ZoneResetRequest);
1038
+ const localVarPath = `/api/dns/v1/zones/{domain}/reset`
1039
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1042
+ let baseOptions;
1043
+ if (configuration) {
1044
+ baseOptions = configuration.baseOptions;
1045
+ }
1046
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1047
+ const localVarHeaderParameter = {};
1048
+ const localVarQueryParameter = {};
1049
+ // authentication apiToken required
1050
+ // http bearer authentication required
1051
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1052
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1056
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneResetRequest, localVarRequestOptions, configuration);
1057
+ return {
1058
+ url: toPathString(localVarUrlObj),
1059
+ options: localVarRequestOptions,
1060
+ };
1061
+ }),
1062
+ };
1063
+ };
1064
+ /**
1065
+ * DNSZoneApi - functional programming interface
1066
+ * @export
1067
+ */
1068
+ export const DNSZoneApiFp = function (configuration) {
1069
+ const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration);
1070
+ return {
1071
+ /**
1072
+ * This endpoint retrieves DNS zone records for a specific domain.
1073
+ * @summary Get records
1074
+ * @param {string} domain Domain name
1075
+ * @param {*} [options] Override http request option.
1076
+ * @throws {RequiredError}
1077
+ */
1078
+ getRecordsV1(domain, options) {
1079
+ return __awaiter(this, void 0, void 0, function* () {
1080
+ var _a, _b;
1081
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecordsV1(domain, options);
1082
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.getRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1083
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1084
+ });
1085
+ },
1086
+ /**
1087
+ * This endpoint resets DNS zone to the default records.
1088
+ * @summary Reset zone records
1089
+ * @param {string} domain Domain name
1090
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1095
+ return __awaiter(this, void 0, void 0, function* () {
1096
+ var _a, _b;
1097
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options);
1098
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DNSZoneApi.resetZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1099
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1100
+ });
1101
+ },
1102
+ };
1103
+ };
1104
+ /**
1105
+ * DNSZoneApi - factory interface
1106
+ * @export
1107
+ */
1108
+ export const DNSZoneApiFactory = function (configuration, basePath, axios) {
1109
+ const localVarFp = DNSZoneApiFp(configuration);
1110
+ return {
1111
+ /**
1112
+ * This endpoint retrieves DNS zone records for a specific domain.
1113
+ * @summary Get records
1114
+ * @param {string} domain Domain name
1115
+ * @param {*} [options] Override http request option.
1116
+ * @throws {RequiredError}
1117
+ */
1118
+ getRecordsV1(domain, options) {
1119
+ return localVarFp.getRecordsV1(domain, options).then((request) => request(axios, basePath));
1120
+ },
1121
+ /**
1122
+ * This endpoint resets DNS zone to the default records.
1123
+ * @summary Reset zone records
1124
+ * @param {string} domain Domain name
1125
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1130
+ return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1131
+ },
1132
+ };
1133
+ };
1134
+ /**
1135
+ * DNSZoneApi - object-oriented interface
1136
+ * @export
1137
+ * @class DNSZoneApi
1138
+ * @extends {BaseAPI}
1139
+ */
1140
+ export class DNSZoneApi extends BaseAPI {
1141
+ /**
1142
+ * This endpoint retrieves DNS zone records for a specific domain.
1143
+ * @summary Get records
1144
+ * @param {string} domain Domain name
1145
+ * @param {*} [options] Override http request option.
1146
+ * @throws {RequiredError}
1147
+ * @memberof DNSZoneApi
1148
+ */
1149
+ getRecordsV1(domain, options) {
1150
+ return DNSZoneApiFp(this.configuration).getRecordsV1(domain, options).then((request) => request(this.axios, this.basePath));
1151
+ }
1152
+ /**
1153
+ * This endpoint resets DNS zone to the default records.
1154
+ * @summary Reset zone records
1155
+ * @param {string} domain Domain name
1156
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1157
+ * @param {*} [options] Override http request option.
1158
+ * @throws {RequiredError}
1159
+ * @memberof DNSZoneApi
1160
+ */
1161
+ resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1162
+ return DNSZoneApiFp(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1163
+ }
1164
+ }
723
1165
  /**
724
1166
  * DomainsPortfolioApi - axios parameter creator
725
1167
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.9
4
+ * API Version: 0.0.14
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.9
6
+ * API Version: 0.0.14
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.9
4
+ * API Version: 0.0.14
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.9
6
+ * API Version: 0.0.14
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.9
4
+ * API Version: 0.0.14
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.9
6
+ * API Version: 0.0.14
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.3" }, (_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.2" }, (_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.9
4
+ * API Version: 0.0.14
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.9
6
+ * API Version: 0.0.14
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.9
4
+ * API Version: 0.0.14
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.9
7
+ * API Version: 0.0.14
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.9
6
+ * API Version: 0.0.14
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.1",
3
+ "version": "0.0.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/api-typescript-sdk.iml" filepath="$PROJECT_DIR$/.idea/api-typescript-sdk.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/php.xml DELETED
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MessDetectorOptionsConfiguration">
4
- <option name="transferred" value="true" />
5
- </component>
6
- <component name="PHPCSFixerOptionsConfiguration">
7
- <option name="transferred" value="true" />
8
- </component>
9
- <component name="PHPCodeSnifferOptionsConfiguration">
10
- <option name="highlightLevel" value="WARNING" />
11
- <option name="transferred" value="true" />
12
- </component>
13
- <component name="PhpStanOptionsConfiguration">
14
- <option name="transferred" value="true" />
15
- </component>
16
- <component name="PsalmOptionsConfiguration">
17
- <option name="transferred" value="true" />
18
- </component>
19
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>