hostinger-api-sdk 1.30.4 → 1.30.6
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 +391 -391
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +239 -239
- package/dist/api.js +372 -372
- 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 +239 -239
- package/dist/esm/api.js +372 -372
- 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/AgencyHostingCacheApi.md +4 -4
- package/docs/AgencyHostingCronJobsApi.md +13 -13
- package/docs/AgencyHostingDatabasesApi.md +21 -21
- package/docs/AgencyHostingDatacentersApi.md +4 -4
- package/docs/AgencyHostingDomainsApi.md +17 -17
- package/docs/AgencyHostingFilesApi.md +4 -4
- package/docs/{AgencyHostingListAgencyPlanDomainsV1200Response.md → AgencyHostingListDomainsV1200Response.md} +3 -3
- package/docs/{AgencyHostingListAgencyPlanOrdersV1200Response.md → AgencyHostingListOrdersV1200Response.md} +3 -3
- package/docs/{AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md → AgencyHostingListWebsiteCronJobsV1200Response.md} +3 -3
- package/docs/{AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md → AgencyHostingListWebsiteDatabasesV1200Response.md} +3 -3
- package/docs/AgencyHostingOrdersApi.md +5 -5
- package/docs/AgencyHostingWebsiteSetupsApi.md +24 -24
- package/docs/AgencyHostingWebsitesApi.md +16 -16
- package/docs/AgencyHostingWordPressApi.md +12 -12
- package/docs/EcommerceProductsApi.md +1 -1
- package/docs/EcommerceV1ProductUploadProductImageRequest.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.32.
|
|
7
|
+
* API Version: 1.32.5
|
|
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
|
|
@@ -713,14 +713,14 @@ const AgencyHostingCacheApiAxiosParamCreator = function (configuration) {
|
|
|
713
713
|
return {
|
|
714
714
|
/**
|
|
715
715
|
* Clears cache for all domains associated with an Agency Plan website, including its preview domain. This operation clears all cache types for the website.
|
|
716
|
-
* @summary Clear
|
|
716
|
+
* @summary Clear website cache
|
|
717
717
|
* @param {string} websiteUid Agency Plan website UID
|
|
718
718
|
* @param {*} [options] Override http request option.
|
|
719
719
|
* @throws {RequiredError}
|
|
720
720
|
*/
|
|
721
|
-
|
|
721
|
+
clearWebsiteCacheV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
722
722
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
723
|
-
(0, common_1.assertParamExists)('
|
|
723
|
+
(0, common_1.assertParamExists)('clearWebsiteCacheV1', 'websiteUid', websiteUid);
|
|
724
724
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/cache`
|
|
725
725
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
726
726
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -755,16 +755,16 @@ const AgencyHostingCacheApiFp = function (configuration) {
|
|
|
755
755
|
return {
|
|
756
756
|
/**
|
|
757
757
|
* Clears cache for all domains associated with an Agency Plan website, including its preview domain. This operation clears all cache types for the website.
|
|
758
|
-
* @summary Clear
|
|
758
|
+
* @summary Clear website cache
|
|
759
759
|
* @param {string} websiteUid Agency Plan website UID
|
|
760
760
|
* @param {*} [options] Override http request option.
|
|
761
761
|
* @throws {RequiredError}
|
|
762
762
|
*/
|
|
763
|
-
|
|
763
|
+
clearWebsiteCacheV1(websiteUid, options) {
|
|
764
764
|
return __awaiter(this, void 0, void 0, function* () {
|
|
765
765
|
var _a, _b;
|
|
766
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
767
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCacheApi.
|
|
766
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clearWebsiteCacheV1(websiteUid, options);
|
|
767
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCacheApi.clearWebsiteCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
768
768
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
769
769
|
});
|
|
770
770
|
},
|
|
@@ -780,13 +780,13 @@ const AgencyHostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
|
780
780
|
return {
|
|
781
781
|
/**
|
|
782
782
|
* Clears cache for all domains associated with an Agency Plan website, including its preview domain. This operation clears all cache types for the website.
|
|
783
|
-
* @summary Clear
|
|
783
|
+
* @summary Clear website cache
|
|
784
784
|
* @param {string} websiteUid Agency Plan website UID
|
|
785
785
|
* @param {*} [options] Override http request option.
|
|
786
786
|
* @throws {RequiredError}
|
|
787
787
|
*/
|
|
788
|
-
|
|
789
|
-
return localVarFp.
|
|
788
|
+
clearWebsiteCacheV1(websiteUid, options) {
|
|
789
|
+
return localVarFp.clearWebsiteCacheV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
790
790
|
},
|
|
791
791
|
};
|
|
792
792
|
};
|
|
@@ -800,14 +800,14 @@ exports.AgencyHostingCacheApiFactory = AgencyHostingCacheApiFactory;
|
|
|
800
800
|
class AgencyHostingCacheApi extends base_1.BaseAPI {
|
|
801
801
|
/**
|
|
802
802
|
* Clears cache for all domains associated with an Agency Plan website, including its preview domain. This operation clears all cache types for the website.
|
|
803
|
-
* @summary Clear
|
|
803
|
+
* @summary Clear website cache
|
|
804
804
|
* @param {string} websiteUid Agency Plan website UID
|
|
805
805
|
* @param {*} [options] Override http request option.
|
|
806
806
|
* @throws {RequiredError}
|
|
807
807
|
* @memberof AgencyHostingCacheApi
|
|
808
808
|
*/
|
|
809
|
-
|
|
810
|
-
return (0, exports.AgencyHostingCacheApiFp)(this.configuration).
|
|
809
|
+
clearWebsiteCacheV1(websiteUid, options) {
|
|
810
|
+
return (0, exports.AgencyHostingCacheApiFp)(this.configuration).clearWebsiteCacheV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
exports.AgencyHostingCacheApi = AgencyHostingCacheApi;
|
|
@@ -819,17 +819,17 @@ const AgencyHostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
|
819
819
|
return {
|
|
820
820
|
/**
|
|
821
821
|
* Creates a cron job for an Agency Plan website from a schedule expression and a command. Returns the created cron job, including its uuid, which is required to delete the cron job.
|
|
822
|
-
* @summary Create
|
|
822
|
+
* @summary Create website cron job
|
|
823
823
|
* @param {string} websiteUid Agency Plan website UID
|
|
824
824
|
* @param {AgencyHostingV1WebsitesCronJobsCreateCronJobRequest} agencyHostingV1WebsitesCronJobsCreateCronJobRequest
|
|
825
825
|
* @param {*} [options] Override http request option.
|
|
826
826
|
* @throws {RequiredError}
|
|
827
827
|
*/
|
|
828
|
-
|
|
828
|
+
createWebsiteCronJobV1: (websiteUid_1, agencyHostingV1WebsitesCronJobsCreateCronJobRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1WebsitesCronJobsCreateCronJobRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options = {}) {
|
|
829
829
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
830
|
-
(0, common_1.assertParamExists)('
|
|
830
|
+
(0, common_1.assertParamExists)('createWebsiteCronJobV1', 'websiteUid', websiteUid);
|
|
831
831
|
// verify required parameter 'agencyHostingV1WebsitesCronJobsCreateCronJobRequest' is not null or undefined
|
|
832
|
-
(0, common_1.assertParamExists)('
|
|
832
|
+
(0, common_1.assertParamExists)('createWebsiteCronJobV1', 'agencyHostingV1WebsitesCronJobsCreateCronJobRequest', agencyHostingV1WebsitesCronJobsCreateCronJobRequest);
|
|
833
833
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/cron-jobs`
|
|
834
834
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
835
835
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -856,17 +856,17 @@ const AgencyHostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
|
856
856
|
}),
|
|
857
857
|
/**
|
|
858
858
|
* Permanently deletes the cron job identified by its uuid from an Agency Plan website. The operation is idempotent: deleting a cron job that does not exist succeeds without error.
|
|
859
|
-
* @summary Delete
|
|
859
|
+
* @summary Delete website cron job
|
|
860
860
|
* @param {string} websiteUid Agency Plan website UID
|
|
861
861
|
* @param {string} uuid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
862
862
|
* @param {*} [options] Override http request option.
|
|
863
863
|
* @throws {RequiredError}
|
|
864
864
|
*/
|
|
865
|
-
|
|
865
|
+
deleteWebsiteCronJobV1: (websiteUid_1, uuid_1, ...args_1) => __awaiter(this, [websiteUid_1, uuid_1, ...args_1], void 0, function* (websiteUid, uuid, options = {}) {
|
|
866
866
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
867
|
-
(0, common_1.assertParamExists)('
|
|
867
|
+
(0, common_1.assertParamExists)('deleteWebsiteCronJobV1', 'websiteUid', websiteUid);
|
|
868
868
|
// verify required parameter 'uuid' is not null or undefined
|
|
869
|
-
(0, common_1.assertParamExists)('
|
|
869
|
+
(0, common_1.assertParamExists)('deleteWebsiteCronJobV1', 'uuid', uuid);
|
|
870
870
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/cron-jobs/{uuid}`
|
|
871
871
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
872
872
|
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
@@ -892,16 +892,16 @@ const AgencyHostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
|
892
892
|
}),
|
|
893
893
|
/**
|
|
894
894
|
* Returns a paginated list of cron jobs configured for an Agency Plan website. Each entry includes the schedule expression and the command executed on that schedule.
|
|
895
|
-
* @summary List
|
|
895
|
+
* @summary List website cron jobs
|
|
896
896
|
* @param {string} websiteUid Agency Plan website UID
|
|
897
897
|
* @param {number} [page] Page number
|
|
898
898
|
* @param {number} [perPage] Number of items per page
|
|
899
899
|
* @param {*} [options] Override http request option.
|
|
900
900
|
* @throws {RequiredError}
|
|
901
901
|
*/
|
|
902
|
-
|
|
902
|
+
listWebsiteCronJobsV1: (websiteUid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [websiteUid_1, page_1, perPage_1, ...args_1], void 0, function* (websiteUid, page, perPage, options = {}) {
|
|
903
903
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
904
|
-
(0, common_1.assertParamExists)('
|
|
904
|
+
(0, common_1.assertParamExists)('listWebsiteCronJobsV1', 'websiteUid', websiteUid);
|
|
905
905
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/cron-jobs`
|
|
906
906
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
907
907
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -942,50 +942,50 @@ const AgencyHostingCronJobsApiFp = function (configuration) {
|
|
|
942
942
|
return {
|
|
943
943
|
/**
|
|
944
944
|
* Creates a cron job for an Agency Plan website from a schedule expression and a command. Returns the created cron job, including its uuid, which is required to delete the cron job.
|
|
945
|
-
* @summary Create
|
|
945
|
+
* @summary Create website cron job
|
|
946
946
|
* @param {string} websiteUid Agency Plan website UID
|
|
947
947
|
* @param {AgencyHostingV1WebsitesCronJobsCreateCronJobRequest} agencyHostingV1WebsitesCronJobsCreateCronJobRequest
|
|
948
948
|
* @param {*} [options] Override http request option.
|
|
949
949
|
* @throws {RequiredError}
|
|
950
950
|
*/
|
|
951
|
-
|
|
951
|
+
createWebsiteCronJobV1(websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options) {
|
|
952
952
|
return __awaiter(this, void 0, void 0, function* () {
|
|
953
953
|
var _a, _b;
|
|
954
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
955
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCronJobsApi.
|
|
954
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteCronJobV1(websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options);
|
|
955
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCronJobsApi.createWebsiteCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
956
956
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
957
957
|
});
|
|
958
958
|
},
|
|
959
959
|
/**
|
|
960
960
|
* Permanently deletes the cron job identified by its uuid from an Agency Plan website. The operation is idempotent: deleting a cron job that does not exist succeeds without error.
|
|
961
|
-
* @summary Delete
|
|
961
|
+
* @summary Delete website cron job
|
|
962
962
|
* @param {string} websiteUid Agency Plan website UID
|
|
963
963
|
* @param {string} uuid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
964
964
|
* @param {*} [options] Override http request option.
|
|
965
965
|
* @throws {RequiredError}
|
|
966
966
|
*/
|
|
967
|
-
|
|
967
|
+
deleteWebsiteCronJobV1(websiteUid, uuid, options) {
|
|
968
968
|
return __awaiter(this, void 0, void 0, function* () {
|
|
969
969
|
var _a, _b;
|
|
970
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
971
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCronJobsApi.
|
|
970
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteCronJobV1(websiteUid, uuid, options);
|
|
971
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCronJobsApi.deleteWebsiteCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
972
972
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
973
973
|
});
|
|
974
974
|
},
|
|
975
975
|
/**
|
|
976
976
|
* Returns a paginated list of cron jobs configured for an Agency Plan website. Each entry includes the schedule expression and the command executed on that schedule.
|
|
977
|
-
* @summary List
|
|
977
|
+
* @summary List website cron jobs
|
|
978
978
|
* @param {string} websiteUid Agency Plan website UID
|
|
979
979
|
* @param {number} [page] Page number
|
|
980
980
|
* @param {number} [perPage] Number of items per page
|
|
981
981
|
* @param {*} [options] Override http request option.
|
|
982
982
|
* @throws {RequiredError}
|
|
983
983
|
*/
|
|
984
|
-
|
|
984
|
+
listWebsiteCronJobsV1(websiteUid, page, perPage, options) {
|
|
985
985
|
return __awaiter(this, void 0, void 0, function* () {
|
|
986
986
|
var _a, _b;
|
|
987
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
988
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCronJobsApi.
|
|
987
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteCronJobsV1(websiteUid, page, perPage, options);
|
|
988
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingCronJobsApi.listWebsiteCronJobsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
989
989
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
990
990
|
});
|
|
991
991
|
},
|
|
@@ -1001,37 +1001,37 @@ const AgencyHostingCronJobsApiFactory = function (configuration, basePath, axios
|
|
|
1001
1001
|
return {
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Creates a cron job for an Agency Plan website from a schedule expression and a command. Returns the created cron job, including its uuid, which is required to delete the cron job.
|
|
1004
|
-
* @summary Create
|
|
1004
|
+
* @summary Create website cron job
|
|
1005
1005
|
* @param {string} websiteUid Agency Plan website UID
|
|
1006
1006
|
* @param {AgencyHostingV1WebsitesCronJobsCreateCronJobRequest} agencyHostingV1WebsitesCronJobsCreateCronJobRequest
|
|
1007
1007
|
* @param {*} [options] Override http request option.
|
|
1008
1008
|
* @throws {RequiredError}
|
|
1009
1009
|
*/
|
|
1010
|
-
|
|
1011
|
-
return localVarFp.
|
|
1010
|
+
createWebsiteCronJobV1(websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options) {
|
|
1011
|
+
return localVarFp.createWebsiteCronJobV1(websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
|
|
1012
1012
|
},
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Permanently deletes the cron job identified by its uuid from an Agency Plan website. The operation is idempotent: deleting a cron job that does not exist succeeds without error.
|
|
1015
|
-
* @summary Delete
|
|
1015
|
+
* @summary Delete website cron job
|
|
1016
1016
|
* @param {string} websiteUid Agency Plan website UID
|
|
1017
1017
|
* @param {string} uuid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
1018
1018
|
* @param {*} [options] Override http request option.
|
|
1019
1019
|
* @throws {RequiredError}
|
|
1020
1020
|
*/
|
|
1021
|
-
|
|
1022
|
-
return localVarFp.
|
|
1021
|
+
deleteWebsiteCronJobV1(websiteUid, uuid, options) {
|
|
1022
|
+
return localVarFp.deleteWebsiteCronJobV1(websiteUid, uuid, options).then((request) => request(axios, basePath));
|
|
1023
1023
|
},
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Returns a paginated list of cron jobs configured for an Agency Plan website. Each entry includes the schedule expression and the command executed on that schedule.
|
|
1026
|
-
* @summary List
|
|
1026
|
+
* @summary List website cron jobs
|
|
1027
1027
|
* @param {string} websiteUid Agency Plan website UID
|
|
1028
1028
|
* @param {number} [page] Page number
|
|
1029
1029
|
* @param {number} [perPage] Number of items per page
|
|
1030
1030
|
* @param {*} [options] Override http request option.
|
|
1031
1031
|
* @throws {RequiredError}
|
|
1032
1032
|
*/
|
|
1033
|
-
|
|
1034
|
-
return localVarFp.
|
|
1033
|
+
listWebsiteCronJobsV1(websiteUid, page, perPage, options) {
|
|
1034
|
+
return localVarFp.listWebsiteCronJobsV1(websiteUid, page, perPage, options).then((request) => request(axios, basePath));
|
|
1035
1035
|
},
|
|
1036
1036
|
};
|
|
1037
1037
|
};
|
|
@@ -1045,31 +1045,31 @@ exports.AgencyHostingCronJobsApiFactory = AgencyHostingCronJobsApiFactory;
|
|
|
1045
1045
|
class AgencyHostingCronJobsApi extends base_1.BaseAPI {
|
|
1046
1046
|
/**
|
|
1047
1047
|
* Creates a cron job for an Agency Plan website from a schedule expression and a command. Returns the created cron job, including its uuid, which is required to delete the cron job.
|
|
1048
|
-
* @summary Create
|
|
1048
|
+
* @summary Create website cron job
|
|
1049
1049
|
* @param {string} websiteUid Agency Plan website UID
|
|
1050
1050
|
* @param {AgencyHostingV1WebsitesCronJobsCreateCronJobRequest} agencyHostingV1WebsitesCronJobsCreateCronJobRequest
|
|
1051
1051
|
* @param {*} [options] Override http request option.
|
|
1052
1052
|
* @throws {RequiredError}
|
|
1053
1053
|
* @memberof AgencyHostingCronJobsApi
|
|
1054
1054
|
*/
|
|
1055
|
-
|
|
1056
|
-
return (0, exports.AgencyHostingCronJobsApiFp)(this.configuration).
|
|
1055
|
+
createWebsiteCronJobV1(websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options) {
|
|
1056
|
+
return (0, exports.AgencyHostingCronJobsApiFp)(this.configuration).createWebsiteCronJobV1(websiteUid, agencyHostingV1WebsitesCronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1057
1057
|
}
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Permanently deletes the cron job identified by its uuid from an Agency Plan website. The operation is idempotent: deleting a cron job that does not exist succeeds without error.
|
|
1060
|
-
* @summary Delete
|
|
1060
|
+
* @summary Delete website cron job
|
|
1061
1061
|
* @param {string} websiteUid Agency Plan website UID
|
|
1062
1062
|
* @param {string} uuid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
1063
1063
|
* @param {*} [options] Override http request option.
|
|
1064
1064
|
* @throws {RequiredError}
|
|
1065
1065
|
* @memberof AgencyHostingCronJobsApi
|
|
1066
1066
|
*/
|
|
1067
|
-
|
|
1068
|
-
return (0, exports.AgencyHostingCronJobsApiFp)(this.configuration).
|
|
1067
|
+
deleteWebsiteCronJobV1(websiteUid, uuid, options) {
|
|
1068
|
+
return (0, exports.AgencyHostingCronJobsApiFp)(this.configuration).deleteWebsiteCronJobV1(websiteUid, uuid, options).then((request) => request(this.axios, this.basePath));
|
|
1069
1069
|
}
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Returns a paginated list of cron jobs configured for an Agency Plan website. Each entry includes the schedule expression and the command executed on that schedule.
|
|
1072
|
-
* @summary List
|
|
1072
|
+
* @summary List website cron jobs
|
|
1073
1073
|
* @param {string} websiteUid Agency Plan website UID
|
|
1074
1074
|
* @param {number} [page] Page number
|
|
1075
1075
|
* @param {number} [perPage] Number of items per page
|
|
@@ -1077,8 +1077,8 @@ class AgencyHostingCronJobsApi extends base_1.BaseAPI {
|
|
|
1077
1077
|
* @throws {RequiredError}
|
|
1078
1078
|
* @memberof AgencyHostingCronJobsApi
|
|
1079
1079
|
*/
|
|
1080
|
-
|
|
1081
|
-
return (0, exports.AgencyHostingCronJobsApiFp)(this.configuration).
|
|
1080
|
+
listWebsiteCronJobsV1(websiteUid, page, perPage, options) {
|
|
1081
|
+
return (0, exports.AgencyHostingCronJobsApiFp)(this.configuration).listWebsiteCronJobsV1(websiteUid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
exports.AgencyHostingCronJobsApi = AgencyHostingCronJobsApi;
|
|
@@ -1090,20 +1090,20 @@ const AgencyHostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
1090
1090
|
return {
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Creates a user for an existing database on an Agency Plan website. Each database supports a single non-system user; creating a user for a database that already has one fails.
|
|
1093
|
-
* @summary Create
|
|
1093
|
+
* @summary Create website database user
|
|
1094
1094
|
* @param {string} websiteUid Agency Plan website UID
|
|
1095
1095
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1096
1096
|
* @param {AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest} agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest
|
|
1097
1097
|
* @param {*} [options] Override http request option.
|
|
1098
1098
|
* @throws {RequiredError}
|
|
1099
1099
|
*/
|
|
1100
|
-
|
|
1100
|
+
createWebsiteDatabaseUserV1: (websiteUid_1, databaseName_1, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, databaseName_1, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest_1, ...args_1], void 0, function* (websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options = {}) {
|
|
1101
1101
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1102
|
-
(0, common_1.assertParamExists)('
|
|
1102
|
+
(0, common_1.assertParamExists)('createWebsiteDatabaseUserV1', 'websiteUid', websiteUid);
|
|
1103
1103
|
// verify required parameter 'databaseName' is not null or undefined
|
|
1104
|
-
(0, common_1.assertParamExists)('
|
|
1104
|
+
(0, common_1.assertParamExists)('createWebsiteDatabaseUserV1', 'databaseName', databaseName);
|
|
1105
1105
|
// verify required parameter 'agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest' is not null or undefined
|
|
1106
|
-
(0, common_1.assertParamExists)('
|
|
1106
|
+
(0, common_1.assertParamExists)('createWebsiteDatabaseUserV1', 'agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest', agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest);
|
|
1107
1107
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users`
|
|
1108
1108
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
1109
1109
|
.replace(`{${"database_name"}}`, encodeURIComponent(String(databaseName)));
|
|
@@ -1131,17 +1131,17 @@ const AgencyHostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
1131
1131
|
}),
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Creates a MySQL database with a dedicated user for an Agency Plan website. The database name, username, and password must all be provided by the caller.
|
|
1134
|
-
* @summary Create
|
|
1134
|
+
* @summary Create website database
|
|
1135
1135
|
* @param {string} websiteUid Agency Plan website UID
|
|
1136
1136
|
* @param {AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest} agencyHostingV1WebsitesDatabasesCreateDatabaseRequest
|
|
1137
1137
|
* @param {*} [options] Override http request option.
|
|
1138
1138
|
* @throws {RequiredError}
|
|
1139
1139
|
*/
|
|
1140
|
-
|
|
1140
|
+
createWebsiteDatabaseV1: (websiteUid_1, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options = {}) {
|
|
1141
1141
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1142
|
-
(0, common_1.assertParamExists)('
|
|
1142
|
+
(0, common_1.assertParamExists)('createWebsiteDatabaseV1', 'websiteUid', websiteUid);
|
|
1143
1143
|
// verify required parameter 'agencyHostingV1WebsitesDatabasesCreateDatabaseRequest' is not null or undefined
|
|
1144
|
-
(0, common_1.assertParamExists)('
|
|
1144
|
+
(0, common_1.assertParamExists)('createWebsiteDatabaseV1', 'agencyHostingV1WebsitesDatabasesCreateDatabaseRequest', agencyHostingV1WebsitesDatabasesCreateDatabaseRequest);
|
|
1145
1145
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/databases`
|
|
1146
1146
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
1147
1147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1168,20 +1168,20 @@ const AgencyHostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
1168
1168
|
}),
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Permanently deletes a database user from an Agency Plan website database, revoking all access it had. The operation is idempotent: deleting a user that does not exist succeeds without error.
|
|
1171
|
-
* @summary Delete
|
|
1171
|
+
* @summary Delete website database user
|
|
1172
1172
|
* @param {string} websiteUid Agency Plan website UID
|
|
1173
1173
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1174
1174
|
* @param {string} databaseUserName Database username as returned by the list databases endpoint.
|
|
1175
1175
|
* @param {*} [options] Override http request option.
|
|
1176
1176
|
* @throws {RequiredError}
|
|
1177
1177
|
*/
|
|
1178
|
-
|
|
1178
|
+
deleteWebsiteDatabaseUserV1: (websiteUid_1, databaseName_1, databaseUserName_1, ...args_1) => __awaiter(this, [websiteUid_1, databaseName_1, databaseUserName_1, ...args_1], void 0, function* (websiteUid, databaseName, databaseUserName, options = {}) {
|
|
1179
1179
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1180
|
-
(0, common_1.assertParamExists)('
|
|
1180
|
+
(0, common_1.assertParamExists)('deleteWebsiteDatabaseUserV1', 'websiteUid', websiteUid);
|
|
1181
1181
|
// verify required parameter 'databaseName' is not null or undefined
|
|
1182
|
-
(0, common_1.assertParamExists)('
|
|
1182
|
+
(0, common_1.assertParamExists)('deleteWebsiteDatabaseUserV1', 'databaseName', databaseName);
|
|
1183
1183
|
// verify required parameter 'databaseUserName' is not null or undefined
|
|
1184
|
-
(0, common_1.assertParamExists)('
|
|
1184
|
+
(0, common_1.assertParamExists)('deleteWebsiteDatabaseUserV1', 'databaseUserName', databaseUserName);
|
|
1185
1185
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name}`
|
|
1186
1186
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
1187
1187
|
.replace(`{${"database_name"}}`, encodeURIComponent(String(databaseName)))
|
|
@@ -1208,17 +1208,17 @@ const AgencyHostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
1208
1208
|
}),
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users. The operation is idempotent: deleting a database that does not exist succeeds without error.
|
|
1211
|
-
* @summary Delete
|
|
1211
|
+
* @summary Delete website database
|
|
1212
1212
|
* @param {string} websiteUid Agency Plan website UID
|
|
1213
1213
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1214
1214
|
* @param {*} [options] Override http request option.
|
|
1215
1215
|
* @throws {RequiredError}
|
|
1216
1216
|
*/
|
|
1217
|
-
|
|
1217
|
+
deleteWebsiteDatabaseV1: (websiteUid_1, databaseName_1, ...args_1) => __awaiter(this, [websiteUid_1, databaseName_1, ...args_1], void 0, function* (websiteUid, databaseName, options = {}) {
|
|
1218
1218
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1219
|
-
(0, common_1.assertParamExists)('
|
|
1219
|
+
(0, common_1.assertParamExists)('deleteWebsiteDatabaseV1', 'websiteUid', websiteUid);
|
|
1220
1220
|
// verify required parameter 'databaseName' is not null or undefined
|
|
1221
|
-
(0, common_1.assertParamExists)('
|
|
1221
|
+
(0, common_1.assertParamExists)('deleteWebsiteDatabaseV1', 'databaseName', databaseName);
|
|
1222
1222
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}`
|
|
1223
1223
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
1224
1224
|
.replace(`{${"database_name"}}`, encodeURIComponent(String(databaseName)));
|
|
@@ -1244,16 +1244,16 @@ const AgencyHostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
1244
1244
|
}),
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Returns a paginated list of MySQL databases created for an Agency Plan website. Each entry includes the database\'s non-system users.
|
|
1247
|
-
* @summary List
|
|
1247
|
+
* @summary List website databases
|
|
1248
1248
|
* @param {string} websiteUid Agency Plan website UID
|
|
1249
1249
|
* @param {number} [page] Page number
|
|
1250
1250
|
* @param {number} [perPage] Number of items per page
|
|
1251
1251
|
* @param {*} [options] Override http request option.
|
|
1252
1252
|
* @throws {RequiredError}
|
|
1253
1253
|
*/
|
|
1254
|
-
|
|
1254
|
+
listWebsiteDatabasesV1: (websiteUid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [websiteUid_1, page_1, perPage_1, ...args_1], void 0, function* (websiteUid, page, perPage, options = {}) {
|
|
1255
1255
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1256
|
-
(0, common_1.assertParamExists)('
|
|
1256
|
+
(0, common_1.assertParamExists)('listWebsiteDatabasesV1', 'websiteUid', websiteUid);
|
|
1257
1257
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/databases`
|
|
1258
1258
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
1259
1259
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1294,84 +1294,84 @@ const AgencyHostingDatabasesApiFp = function (configuration) {
|
|
|
1294
1294
|
return {
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Creates a user for an existing database on an Agency Plan website. Each database supports a single non-system user; creating a user for a database that already has one fails.
|
|
1297
|
-
* @summary Create
|
|
1297
|
+
* @summary Create website database user
|
|
1298
1298
|
* @param {string} websiteUid Agency Plan website UID
|
|
1299
1299
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1300
1300
|
* @param {AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest} agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest
|
|
1301
1301
|
* @param {*} [options] Override http request option.
|
|
1302
1302
|
* @throws {RequiredError}
|
|
1303
1303
|
*/
|
|
1304
|
-
|
|
1304
|
+
createWebsiteDatabaseUserV1(websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options) {
|
|
1305
1305
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1306
1306
|
var _a, _b;
|
|
1307
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1308
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.
|
|
1307
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteDatabaseUserV1(websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options);
|
|
1308
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.createWebsiteDatabaseUserV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1309
1309
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1310
1310
|
});
|
|
1311
1311
|
},
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Creates a MySQL database with a dedicated user for an Agency Plan website. The database name, username, and password must all be provided by the caller.
|
|
1314
|
-
* @summary Create
|
|
1314
|
+
* @summary Create website database
|
|
1315
1315
|
* @param {string} websiteUid Agency Plan website UID
|
|
1316
1316
|
* @param {AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest} agencyHostingV1WebsitesDatabasesCreateDatabaseRequest
|
|
1317
1317
|
* @param {*} [options] Override http request option.
|
|
1318
1318
|
* @throws {RequiredError}
|
|
1319
1319
|
*/
|
|
1320
|
-
|
|
1320
|
+
createWebsiteDatabaseV1(websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options) {
|
|
1321
1321
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1322
1322
|
var _a, _b;
|
|
1323
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1324
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.
|
|
1323
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteDatabaseV1(websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options);
|
|
1324
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.createWebsiteDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1325
1325
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1326
1326
|
});
|
|
1327
1327
|
},
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Permanently deletes a database user from an Agency Plan website database, revoking all access it had. The operation is idempotent: deleting a user that does not exist succeeds without error.
|
|
1330
|
-
* @summary Delete
|
|
1330
|
+
* @summary Delete website database user
|
|
1331
1331
|
* @param {string} websiteUid Agency Plan website UID
|
|
1332
1332
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1333
1333
|
* @param {string} databaseUserName Database username as returned by the list databases endpoint.
|
|
1334
1334
|
* @param {*} [options] Override http request option.
|
|
1335
1335
|
* @throws {RequiredError}
|
|
1336
1336
|
*/
|
|
1337
|
-
|
|
1337
|
+
deleteWebsiteDatabaseUserV1(websiteUid, databaseName, databaseUserName, options) {
|
|
1338
1338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1339
1339
|
var _a, _b;
|
|
1340
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1341
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.
|
|
1340
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteDatabaseUserV1(websiteUid, databaseName, databaseUserName, options);
|
|
1341
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.deleteWebsiteDatabaseUserV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1342
1342
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1343
1343
|
});
|
|
1344
1344
|
},
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users. The operation is idempotent: deleting a database that does not exist succeeds without error.
|
|
1347
|
-
* @summary Delete
|
|
1347
|
+
* @summary Delete website database
|
|
1348
1348
|
* @param {string} websiteUid Agency Plan website UID
|
|
1349
1349
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1350
1350
|
* @param {*} [options] Override http request option.
|
|
1351
1351
|
* @throws {RequiredError}
|
|
1352
1352
|
*/
|
|
1353
|
-
|
|
1353
|
+
deleteWebsiteDatabaseV1(websiteUid, databaseName, options) {
|
|
1354
1354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1355
1355
|
var _a, _b;
|
|
1356
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1357
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.
|
|
1356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteDatabaseV1(websiteUid, databaseName, options);
|
|
1357
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.deleteWebsiteDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1358
1358
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1359
1359
|
});
|
|
1360
1360
|
},
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Returns a paginated list of MySQL databases created for an Agency Plan website. Each entry includes the database\'s non-system users.
|
|
1363
|
-
* @summary List
|
|
1363
|
+
* @summary List website databases
|
|
1364
1364
|
* @param {string} websiteUid Agency Plan website UID
|
|
1365
1365
|
* @param {number} [page] Page number
|
|
1366
1366
|
* @param {number} [perPage] Number of items per page
|
|
1367
1367
|
* @param {*} [options] Override http request option.
|
|
1368
1368
|
* @throws {RequiredError}
|
|
1369
1369
|
*/
|
|
1370
|
-
|
|
1370
|
+
listWebsiteDatabasesV1(websiteUid, page, perPage, options) {
|
|
1371
1371
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1372
1372
|
var _a, _b;
|
|
1373
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1374
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.
|
|
1373
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteDatabasesV1(websiteUid, page, perPage, options);
|
|
1374
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatabasesApi.listWebsiteDatabasesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1375
1375
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1376
1376
|
});
|
|
1377
1377
|
},
|
|
@@ -1387,61 +1387,61 @@ const AgencyHostingDatabasesApiFactory = function (configuration, basePath, axio
|
|
|
1387
1387
|
return {
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Creates a user for an existing database on an Agency Plan website. Each database supports a single non-system user; creating a user for a database that already has one fails.
|
|
1390
|
-
* @summary Create
|
|
1390
|
+
* @summary Create website database user
|
|
1391
1391
|
* @param {string} websiteUid Agency Plan website UID
|
|
1392
1392
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1393
1393
|
* @param {AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest} agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest
|
|
1394
1394
|
* @param {*} [options] Override http request option.
|
|
1395
1395
|
* @throws {RequiredError}
|
|
1396
1396
|
*/
|
|
1397
|
-
|
|
1398
|
-
return localVarFp.
|
|
1397
|
+
createWebsiteDatabaseUserV1(websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options) {
|
|
1398
|
+
return localVarFp.createWebsiteDatabaseUserV1(websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options).then((request) => request(axios, basePath));
|
|
1399
1399
|
},
|
|
1400
1400
|
/**
|
|
1401
1401
|
* Creates a MySQL database with a dedicated user for an Agency Plan website. The database name, username, and password must all be provided by the caller.
|
|
1402
|
-
* @summary Create
|
|
1402
|
+
* @summary Create website database
|
|
1403
1403
|
* @param {string} websiteUid Agency Plan website UID
|
|
1404
1404
|
* @param {AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest} agencyHostingV1WebsitesDatabasesCreateDatabaseRequest
|
|
1405
1405
|
* @param {*} [options] Override http request option.
|
|
1406
1406
|
* @throws {RequiredError}
|
|
1407
1407
|
*/
|
|
1408
|
-
|
|
1409
|
-
return localVarFp.
|
|
1408
|
+
createWebsiteDatabaseV1(websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options) {
|
|
1409
|
+
return localVarFp.createWebsiteDatabaseV1(websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
1410
1410
|
},
|
|
1411
1411
|
/**
|
|
1412
1412
|
* Permanently deletes a database user from an Agency Plan website database, revoking all access it had. The operation is idempotent: deleting a user that does not exist succeeds without error.
|
|
1413
|
-
* @summary Delete
|
|
1413
|
+
* @summary Delete website database user
|
|
1414
1414
|
* @param {string} websiteUid Agency Plan website UID
|
|
1415
1415
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1416
1416
|
* @param {string} databaseUserName Database username as returned by the list databases endpoint.
|
|
1417
1417
|
* @param {*} [options] Override http request option.
|
|
1418
1418
|
* @throws {RequiredError}
|
|
1419
1419
|
*/
|
|
1420
|
-
|
|
1421
|
-
return localVarFp.
|
|
1420
|
+
deleteWebsiteDatabaseUserV1(websiteUid, databaseName, databaseUserName, options) {
|
|
1421
|
+
return localVarFp.deleteWebsiteDatabaseUserV1(websiteUid, databaseName, databaseUserName, options).then((request) => request(axios, basePath));
|
|
1422
1422
|
},
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users. The operation is idempotent: deleting a database that does not exist succeeds without error.
|
|
1425
|
-
* @summary Delete
|
|
1425
|
+
* @summary Delete website database
|
|
1426
1426
|
* @param {string} websiteUid Agency Plan website UID
|
|
1427
1427
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1428
1428
|
* @param {*} [options] Override http request option.
|
|
1429
1429
|
* @throws {RequiredError}
|
|
1430
1430
|
*/
|
|
1431
|
-
|
|
1432
|
-
return localVarFp.
|
|
1431
|
+
deleteWebsiteDatabaseV1(websiteUid, databaseName, options) {
|
|
1432
|
+
return localVarFp.deleteWebsiteDatabaseV1(websiteUid, databaseName, options).then((request) => request(axios, basePath));
|
|
1433
1433
|
},
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Returns a paginated list of MySQL databases created for an Agency Plan website. Each entry includes the database\'s non-system users.
|
|
1436
|
-
* @summary List
|
|
1436
|
+
* @summary List website databases
|
|
1437
1437
|
* @param {string} websiteUid Agency Plan website UID
|
|
1438
1438
|
* @param {number} [page] Page number
|
|
1439
1439
|
* @param {number} [perPage] Number of items per page
|
|
1440
1440
|
* @param {*} [options] Override http request option.
|
|
1441
1441
|
* @throws {RequiredError}
|
|
1442
1442
|
*/
|
|
1443
|
-
|
|
1444
|
-
return localVarFp.
|
|
1443
|
+
listWebsiteDatabasesV1(websiteUid, page, perPage, options) {
|
|
1444
|
+
return localVarFp.listWebsiteDatabasesV1(websiteUid, page, perPage, options).then((request) => request(axios, basePath));
|
|
1445
1445
|
},
|
|
1446
1446
|
};
|
|
1447
1447
|
};
|
|
@@ -1455,7 +1455,7 @@ exports.AgencyHostingDatabasesApiFactory = AgencyHostingDatabasesApiFactory;
|
|
|
1455
1455
|
class AgencyHostingDatabasesApi extends base_1.BaseAPI {
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Creates a user for an existing database on an Agency Plan website. Each database supports a single non-system user; creating a user for a database that already has one fails.
|
|
1458
|
-
* @summary Create
|
|
1458
|
+
* @summary Create website database user
|
|
1459
1459
|
* @param {string} websiteUid Agency Plan website UID
|
|
1460
1460
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1461
1461
|
* @param {AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest} agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest
|
|
@@ -1463,24 +1463,24 @@ class AgencyHostingDatabasesApi extends base_1.BaseAPI {
|
|
|
1463
1463
|
* @throws {RequiredError}
|
|
1464
1464
|
* @memberof AgencyHostingDatabasesApi
|
|
1465
1465
|
*/
|
|
1466
|
-
|
|
1467
|
-
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).
|
|
1466
|
+
createWebsiteDatabaseUserV1(websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options) {
|
|
1467
|
+
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).createWebsiteDatabaseUserV1(websiteUid, databaseName, agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1468
1468
|
}
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Creates a MySQL database with a dedicated user for an Agency Plan website. The database name, username, and password must all be provided by the caller.
|
|
1471
|
-
* @summary Create
|
|
1471
|
+
* @summary Create website database
|
|
1472
1472
|
* @param {string} websiteUid Agency Plan website UID
|
|
1473
1473
|
* @param {AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest} agencyHostingV1WebsitesDatabasesCreateDatabaseRequest
|
|
1474
1474
|
* @param {*} [options] Override http request option.
|
|
1475
1475
|
* @throws {RequiredError}
|
|
1476
1476
|
* @memberof AgencyHostingDatabasesApi
|
|
1477
1477
|
*/
|
|
1478
|
-
|
|
1479
|
-
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).
|
|
1478
|
+
createWebsiteDatabaseV1(websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options) {
|
|
1479
|
+
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).createWebsiteDatabaseV1(websiteUid, agencyHostingV1WebsitesDatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1480
1480
|
}
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Permanently deletes a database user from an Agency Plan website database, revoking all access it had. The operation is idempotent: deleting a user that does not exist succeeds without error.
|
|
1483
|
-
* @summary Delete
|
|
1483
|
+
* @summary Delete website database user
|
|
1484
1484
|
* @param {string} websiteUid Agency Plan website UID
|
|
1485
1485
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1486
1486
|
* @param {string} databaseUserName Database username as returned by the list databases endpoint.
|
|
@@ -1488,24 +1488,24 @@ class AgencyHostingDatabasesApi extends base_1.BaseAPI {
|
|
|
1488
1488
|
* @throws {RequiredError}
|
|
1489
1489
|
* @memberof AgencyHostingDatabasesApi
|
|
1490
1490
|
*/
|
|
1491
|
-
|
|
1492
|
-
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).
|
|
1491
|
+
deleteWebsiteDatabaseUserV1(websiteUid, databaseName, databaseUserName, options) {
|
|
1492
|
+
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).deleteWebsiteDatabaseUserV1(websiteUid, databaseName, databaseUserName, options).then((request) => request(this.axios, this.basePath));
|
|
1493
1493
|
}
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users. The operation is idempotent: deleting a database that does not exist succeeds without error.
|
|
1496
|
-
* @summary Delete
|
|
1496
|
+
* @summary Delete website database
|
|
1497
1497
|
* @param {string} websiteUid Agency Plan website UID
|
|
1498
1498
|
* @param {string} databaseName Full database name as returned by the list databases endpoint.
|
|
1499
1499
|
* @param {*} [options] Override http request option.
|
|
1500
1500
|
* @throws {RequiredError}
|
|
1501
1501
|
* @memberof AgencyHostingDatabasesApi
|
|
1502
1502
|
*/
|
|
1503
|
-
|
|
1504
|
-
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).
|
|
1503
|
+
deleteWebsiteDatabaseV1(websiteUid, databaseName, options) {
|
|
1504
|
+
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).deleteWebsiteDatabaseV1(websiteUid, databaseName, options).then((request) => request(this.axios, this.basePath));
|
|
1505
1505
|
}
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Returns a paginated list of MySQL databases created for an Agency Plan website. Each entry includes the database\'s non-system users.
|
|
1508
|
-
* @summary List
|
|
1508
|
+
* @summary List website databases
|
|
1509
1509
|
* @param {string} websiteUid Agency Plan website UID
|
|
1510
1510
|
* @param {number} [page] Page number
|
|
1511
1511
|
* @param {number} [perPage] Number of items per page
|
|
@@ -1513,8 +1513,8 @@ class AgencyHostingDatabasesApi extends base_1.BaseAPI {
|
|
|
1513
1513
|
* @throws {RequiredError}
|
|
1514
1514
|
* @memberof AgencyHostingDatabasesApi
|
|
1515
1515
|
*/
|
|
1516
|
-
|
|
1517
|
-
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).
|
|
1516
|
+
listWebsiteDatabasesV1(websiteUid, page, perPage, options) {
|
|
1517
|
+
return (0, exports.AgencyHostingDatabasesApiFp)(this.configuration).listWebsiteDatabasesV1(websiteUid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
exports.AgencyHostingDatabasesApi = AgencyHostingDatabasesApi;
|
|
@@ -1526,14 +1526,14 @@ const AgencyHostingDatacentersApiAxiosParamCreator = function (configuration) {
|
|
|
1526
1526
|
return {
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order. Each datacenter includes a `pinger_url` you can ping from the client to measure round-trip latency; comparing the results across datacenters lets you pick the nearest one (lowest ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
1529
|
-
* @summary List available datacenters
|
|
1529
|
+
* @summary List available datacenters
|
|
1530
1530
|
* @param {number} orderId Agency Plan order ID
|
|
1531
1531
|
* @param {*} [options] Override http request option.
|
|
1532
1532
|
* @throws {RequiredError}
|
|
1533
1533
|
*/
|
|
1534
|
-
|
|
1534
|
+
listAvailableDatacentersV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
1535
1535
|
// verify required parameter 'orderId' is not null or undefined
|
|
1536
|
-
(0, common_1.assertParamExists)('
|
|
1536
|
+
(0, common_1.assertParamExists)('listAvailableDatacentersV1', 'orderId', orderId);
|
|
1537
1537
|
const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/datacenters`
|
|
1538
1538
|
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
1539
1539
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1568,16 +1568,16 @@ const AgencyHostingDatacentersApiFp = function (configuration) {
|
|
|
1568
1568
|
return {
|
|
1569
1569
|
/**
|
|
1570
1570
|
* Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order. Each datacenter includes a `pinger_url` you can ping from the client to measure round-trip latency; comparing the results across datacenters lets you pick the nearest one (lowest ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
1571
|
-
* @summary List available datacenters
|
|
1571
|
+
* @summary List available datacenters
|
|
1572
1572
|
* @param {number} orderId Agency Plan order ID
|
|
1573
1573
|
* @param {*} [options] Override http request option.
|
|
1574
1574
|
* @throws {RequiredError}
|
|
1575
1575
|
*/
|
|
1576
|
-
|
|
1576
|
+
listAvailableDatacentersV1(orderId, options) {
|
|
1577
1577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1578
1578
|
var _a, _b;
|
|
1579
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1580
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatacentersApi.
|
|
1579
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableDatacentersV1(orderId, options);
|
|
1580
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDatacentersApi.listAvailableDatacentersV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1581
1581
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1582
1582
|
});
|
|
1583
1583
|
},
|
|
@@ -1593,13 +1593,13 @@ const AgencyHostingDatacentersApiFactory = function (configuration, basePath, ax
|
|
|
1593
1593
|
return {
|
|
1594
1594
|
/**
|
|
1595
1595
|
* Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order. Each datacenter includes a `pinger_url` you can ping from the client to measure round-trip latency; comparing the results across datacenters lets you pick the nearest one (lowest ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
1596
|
-
* @summary List available datacenters
|
|
1596
|
+
* @summary List available datacenters
|
|
1597
1597
|
* @param {number} orderId Agency Plan order ID
|
|
1598
1598
|
* @param {*} [options] Override http request option.
|
|
1599
1599
|
* @throws {RequiredError}
|
|
1600
1600
|
*/
|
|
1601
|
-
|
|
1602
|
-
return localVarFp.
|
|
1601
|
+
listAvailableDatacentersV1(orderId, options) {
|
|
1602
|
+
return localVarFp.listAvailableDatacentersV1(orderId, options).then((request) => request(axios, basePath));
|
|
1603
1603
|
},
|
|
1604
1604
|
};
|
|
1605
1605
|
};
|
|
@@ -1613,14 +1613,14 @@ exports.AgencyHostingDatacentersApiFactory = AgencyHostingDatacentersApiFactory;
|
|
|
1613
1613
|
class AgencyHostingDatacentersApi extends base_1.BaseAPI {
|
|
1614
1614
|
/**
|
|
1615
1615
|
* Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order. Each datacenter includes a `pinger_url` you can ping from the client to measure round-trip latency; comparing the results across datacenters lets you pick the nearest one (lowest ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
1616
|
-
* @summary List available datacenters
|
|
1616
|
+
* @summary List available datacenters
|
|
1617
1617
|
* @param {number} orderId Agency Plan order ID
|
|
1618
1618
|
* @param {*} [options] Override http request option.
|
|
1619
1619
|
* @throws {RequiredError}
|
|
1620
1620
|
* @memberof AgencyHostingDatacentersApi
|
|
1621
1621
|
*/
|
|
1622
|
-
|
|
1623
|
-
return (0, exports.AgencyHostingDatacentersApiFp)(this.configuration).
|
|
1622
|
+
listAvailableDatacentersV1(orderId, options) {
|
|
1623
|
+
return (0, exports.AgencyHostingDatacentersApiFp)(this.configuration).listAvailableDatacentersV1(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
exports.AgencyHostingDatacentersApi = AgencyHostingDatacentersApi;
|
|
@@ -1632,20 +1632,20 @@ const AgencyHostingDomainsApiAxiosParamCreator = function (configuration) {
|
|
|
1632
1632
|
return {
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Changes the primary domain for an Agency Plan website. Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.
|
|
1635
|
-
* @summary Change
|
|
1635
|
+
* @summary Change website domain
|
|
1636
1636
|
* @param {string} websiteUid Agency Plan website UID
|
|
1637
1637
|
* @param {string} fromDomain Current domain name to change from
|
|
1638
1638
|
* @param {AgencyHostingV1DomainsChangeDomainRequest} agencyHostingV1DomainsChangeDomainRequest
|
|
1639
1639
|
* @param {*} [options] Override http request option.
|
|
1640
1640
|
* @throws {RequiredError}
|
|
1641
1641
|
*/
|
|
1642
|
-
|
|
1642
|
+
changeWebsiteDomainV1: (websiteUid_1, fromDomain_1, agencyHostingV1DomainsChangeDomainRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, fromDomain_1, agencyHostingV1DomainsChangeDomainRequest_1, ...args_1], void 0, function* (websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options = {}) {
|
|
1643
1643
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1644
|
-
(0, common_1.assertParamExists)('
|
|
1644
|
+
(0, common_1.assertParamExists)('changeWebsiteDomainV1', 'websiteUid', websiteUid);
|
|
1645
1645
|
// verify required parameter 'fromDomain' is not null or undefined
|
|
1646
|
-
(0, common_1.assertParamExists)('
|
|
1646
|
+
(0, common_1.assertParamExists)('changeWebsiteDomainV1', 'fromDomain', fromDomain);
|
|
1647
1647
|
// verify required parameter 'agencyHostingV1DomainsChangeDomainRequest' is not null or undefined
|
|
1648
|
-
(0, common_1.assertParamExists)('
|
|
1648
|
+
(0, common_1.assertParamExists)('changeWebsiteDomainV1', 'agencyHostingV1DomainsChangeDomainRequest', agencyHostingV1DomainsChangeDomainRequest);
|
|
1649
1649
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}`
|
|
1650
1650
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
1651
1651
|
.replace(`{${"from_domain"}}`, encodeURIComponent(String(fromDomain)));
|
|
@@ -1673,17 +1673,17 @@ const AgencyHostingDomainsApiAxiosParamCreator = function (configuration) {
|
|
|
1673
1673
|
}),
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
1676
|
-
* @summary Link domain to
|
|
1676
|
+
* @summary Link domain to website
|
|
1677
1677
|
* @param {string} websiteUid Agency Plan website UID
|
|
1678
1678
|
* @param {AgencyHostingV1DomainsLinkDomainRequest} agencyHostingV1DomainsLinkDomainRequest
|
|
1679
1679
|
* @param {*} [options] Override http request option.
|
|
1680
1680
|
* @throws {RequiredError}
|
|
1681
1681
|
*/
|
|
1682
|
-
|
|
1682
|
+
linkDomainToWebsiteV1: (websiteUid_1, agencyHostingV1DomainsLinkDomainRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1DomainsLinkDomainRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1DomainsLinkDomainRequest, options = {}) {
|
|
1683
1683
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1684
|
-
(0, common_1.assertParamExists)('
|
|
1684
|
+
(0, common_1.assertParamExists)('linkDomainToWebsiteV1', 'websiteUid', websiteUid);
|
|
1685
1685
|
// verify required parameter 'agencyHostingV1DomainsLinkDomainRequest' is not null or undefined
|
|
1686
|
-
(0, common_1.assertParamExists)('
|
|
1686
|
+
(0, common_1.assertParamExists)('linkDomainToWebsiteV1', 'agencyHostingV1DomainsLinkDomainRequest', agencyHostingV1DomainsLinkDomainRequest);
|
|
1687
1687
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains`
|
|
1688
1688
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
1689
1689
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1710,14 +1710,14 @@ const AgencyHostingDomainsApiAxiosParamCreator = function (configuration) {
|
|
|
1710
1710
|
}),
|
|
1711
1711
|
/**
|
|
1712
1712
|
* Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client. Use the website_uuids filter to narrow results to specific websites.
|
|
1713
|
-
* @summary List
|
|
1713
|
+
* @summary List domains
|
|
1714
1714
|
* @param {number} [page] Page number
|
|
1715
1715
|
* @param {number} [perPage] Number of items per page
|
|
1716
1716
|
* @param {Array<string> | null} [websiteUuids] Filter by website UIDs
|
|
1717
1717
|
* @param {*} [options] Override http request option.
|
|
1718
1718
|
* @throws {RequiredError}
|
|
1719
1719
|
*/
|
|
1720
|
-
|
|
1720
|
+
listDomainsV1: (page_1, perPage_1, websiteUuids_1, ...args_1) => __awaiter(this, [page_1, perPage_1, websiteUuids_1, ...args_1], void 0, function* (page, perPage, websiteUuids, options = {}) {
|
|
1721
1721
|
const localVarPath = `/api/agency-hosting/v1/domains`;
|
|
1722
1722
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1723
1723
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1750,17 +1750,17 @@ const AgencyHostingDomainsApiAxiosParamCreator = function (configuration) {
|
|
|
1750
1750
|
}),
|
|
1751
1751
|
/**
|
|
1752
1752
|
* Unlinks a domain from the specified Agency Plan website. The website stops serving traffic on this domain immediately. Website files and database are preserved, and any other linked domains remain accessible. If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
1753
|
-
* @summary Unlink domain from
|
|
1753
|
+
* @summary Unlink domain from website
|
|
1754
1754
|
* @param {string} websiteUid Agency Plan website UID
|
|
1755
1755
|
* @param {string} domain Domain name
|
|
1756
1756
|
* @param {*} [options] Override http request option.
|
|
1757
1757
|
* @throws {RequiredError}
|
|
1758
1758
|
*/
|
|
1759
|
-
|
|
1759
|
+
unlinkDomainFromWebsiteV1: (websiteUid_1, domain_1, ...args_1) => __awaiter(this, [websiteUid_1, domain_1, ...args_1], void 0, function* (websiteUid, domain, options = {}) {
|
|
1760
1760
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1761
|
-
(0, common_1.assertParamExists)('
|
|
1761
|
+
(0, common_1.assertParamExists)('unlinkDomainFromWebsiteV1', 'websiteUid', websiteUid);
|
|
1762
1762
|
// verify required parameter 'domain' is not null or undefined
|
|
1763
|
-
(0, common_1.assertParamExists)('
|
|
1763
|
+
(0, common_1.assertParamExists)('unlinkDomainFromWebsiteV1', 'domain', domain);
|
|
1764
1764
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}`
|
|
1765
1765
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)))
|
|
1766
1766
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
@@ -1796,67 +1796,67 @@ const AgencyHostingDomainsApiFp = function (configuration) {
|
|
|
1796
1796
|
return {
|
|
1797
1797
|
/**
|
|
1798
1798
|
* Changes the primary domain for an Agency Plan website. Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.
|
|
1799
|
-
* @summary Change
|
|
1799
|
+
* @summary Change website domain
|
|
1800
1800
|
* @param {string} websiteUid Agency Plan website UID
|
|
1801
1801
|
* @param {string} fromDomain Current domain name to change from
|
|
1802
1802
|
* @param {AgencyHostingV1DomainsChangeDomainRequest} agencyHostingV1DomainsChangeDomainRequest
|
|
1803
1803
|
* @param {*} [options] Override http request option.
|
|
1804
1804
|
* @throws {RequiredError}
|
|
1805
1805
|
*/
|
|
1806
|
-
|
|
1806
|
+
changeWebsiteDomainV1(websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options) {
|
|
1807
1807
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1808
1808
|
var _a, _b;
|
|
1809
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1810
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.
|
|
1809
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changeWebsiteDomainV1(websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options);
|
|
1810
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.changeWebsiteDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1811
1811
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1812
1812
|
});
|
|
1813
1813
|
},
|
|
1814
1814
|
/**
|
|
1815
1815
|
* Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
1816
|
-
* @summary Link domain to
|
|
1816
|
+
* @summary Link domain to website
|
|
1817
1817
|
* @param {string} websiteUid Agency Plan website UID
|
|
1818
1818
|
* @param {AgencyHostingV1DomainsLinkDomainRequest} agencyHostingV1DomainsLinkDomainRequest
|
|
1819
1819
|
* @param {*} [options] Override http request option.
|
|
1820
1820
|
* @throws {RequiredError}
|
|
1821
1821
|
*/
|
|
1822
|
-
|
|
1822
|
+
linkDomainToWebsiteV1(websiteUid, agencyHostingV1DomainsLinkDomainRequest, options) {
|
|
1823
1823
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1824
1824
|
var _a, _b;
|
|
1825
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1826
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.
|
|
1825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.linkDomainToWebsiteV1(websiteUid, agencyHostingV1DomainsLinkDomainRequest, options);
|
|
1826
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.linkDomainToWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1827
1827
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1828
1828
|
});
|
|
1829
1829
|
},
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client. Use the website_uuids filter to narrow results to specific websites.
|
|
1832
|
-
* @summary List
|
|
1832
|
+
* @summary List domains
|
|
1833
1833
|
* @param {number} [page] Page number
|
|
1834
1834
|
* @param {number} [perPage] Number of items per page
|
|
1835
1835
|
* @param {Array<string> | null} [websiteUuids] Filter by website UIDs
|
|
1836
1836
|
* @param {*} [options] Override http request option.
|
|
1837
1837
|
* @throws {RequiredError}
|
|
1838
1838
|
*/
|
|
1839
|
-
|
|
1839
|
+
listDomainsV1(page, perPage, websiteUuids, options) {
|
|
1840
1840
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1841
1841
|
var _a, _b;
|
|
1842
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1843
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.
|
|
1842
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listDomainsV1(page, perPage, websiteUuids, options);
|
|
1843
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.listDomainsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1844
1844
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1845
1845
|
});
|
|
1846
1846
|
},
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Unlinks a domain from the specified Agency Plan website. The website stops serving traffic on this domain immediately. Website files and database are preserved, and any other linked domains remain accessible. If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
1849
|
-
* @summary Unlink domain from
|
|
1849
|
+
* @summary Unlink domain from website
|
|
1850
1850
|
* @param {string} websiteUid Agency Plan website UID
|
|
1851
1851
|
* @param {string} domain Domain name
|
|
1852
1852
|
* @param {*} [options] Override http request option.
|
|
1853
1853
|
* @throws {RequiredError}
|
|
1854
1854
|
*/
|
|
1855
|
-
|
|
1855
|
+
unlinkDomainFromWebsiteV1(websiteUid, domain, options) {
|
|
1856
1856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1857
1857
|
var _a, _b;
|
|
1858
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1859
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.
|
|
1858
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.unlinkDomainFromWebsiteV1(websiteUid, domain, options);
|
|
1859
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingDomainsApi.unlinkDomainFromWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1860
1860
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1861
1861
|
});
|
|
1862
1862
|
},
|
|
@@ -1872,49 +1872,49 @@ const AgencyHostingDomainsApiFactory = function (configuration, basePath, axios)
|
|
|
1872
1872
|
return {
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Changes the primary domain for an Agency Plan website. Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.
|
|
1875
|
-
* @summary Change
|
|
1875
|
+
* @summary Change website domain
|
|
1876
1876
|
* @param {string} websiteUid Agency Plan website UID
|
|
1877
1877
|
* @param {string} fromDomain Current domain name to change from
|
|
1878
1878
|
* @param {AgencyHostingV1DomainsChangeDomainRequest} agencyHostingV1DomainsChangeDomainRequest
|
|
1879
1879
|
* @param {*} [options] Override http request option.
|
|
1880
1880
|
* @throws {RequiredError}
|
|
1881
1881
|
*/
|
|
1882
|
-
|
|
1883
|
-
return localVarFp.
|
|
1882
|
+
changeWebsiteDomainV1(websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options) {
|
|
1883
|
+
return localVarFp.changeWebsiteDomainV1(websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options).then((request) => request(axios, basePath));
|
|
1884
1884
|
},
|
|
1885
1885
|
/**
|
|
1886
1886
|
* Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
1887
|
-
* @summary Link domain to
|
|
1887
|
+
* @summary Link domain to website
|
|
1888
1888
|
* @param {string} websiteUid Agency Plan website UID
|
|
1889
1889
|
* @param {AgencyHostingV1DomainsLinkDomainRequest} agencyHostingV1DomainsLinkDomainRequest
|
|
1890
1890
|
* @param {*} [options] Override http request option.
|
|
1891
1891
|
* @throws {RequiredError}
|
|
1892
1892
|
*/
|
|
1893
|
-
|
|
1894
|
-
return localVarFp.
|
|
1893
|
+
linkDomainToWebsiteV1(websiteUid, agencyHostingV1DomainsLinkDomainRequest, options) {
|
|
1894
|
+
return localVarFp.linkDomainToWebsiteV1(websiteUid, agencyHostingV1DomainsLinkDomainRequest, options).then((request) => request(axios, basePath));
|
|
1895
1895
|
},
|
|
1896
1896
|
/**
|
|
1897
1897
|
* Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client. Use the website_uuids filter to narrow results to specific websites.
|
|
1898
|
-
* @summary List
|
|
1898
|
+
* @summary List domains
|
|
1899
1899
|
* @param {number} [page] Page number
|
|
1900
1900
|
* @param {number} [perPage] Number of items per page
|
|
1901
1901
|
* @param {Array<string> | null} [websiteUuids] Filter by website UIDs
|
|
1902
1902
|
* @param {*} [options] Override http request option.
|
|
1903
1903
|
* @throws {RequiredError}
|
|
1904
1904
|
*/
|
|
1905
|
-
|
|
1906
|
-
return localVarFp.
|
|
1905
|
+
listDomainsV1(page, perPage, websiteUuids, options) {
|
|
1906
|
+
return localVarFp.listDomainsV1(page, perPage, websiteUuids, options).then((request) => request(axios, basePath));
|
|
1907
1907
|
},
|
|
1908
1908
|
/**
|
|
1909
1909
|
* Unlinks a domain from the specified Agency Plan website. The website stops serving traffic on this domain immediately. Website files and database are preserved, and any other linked domains remain accessible. If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
1910
|
-
* @summary Unlink domain from
|
|
1910
|
+
* @summary Unlink domain from website
|
|
1911
1911
|
* @param {string} websiteUid Agency Plan website UID
|
|
1912
1912
|
* @param {string} domain Domain name
|
|
1913
1913
|
* @param {*} [options] Override http request option.
|
|
1914
1914
|
* @throws {RequiredError}
|
|
1915
1915
|
*/
|
|
1916
|
-
|
|
1917
|
-
return localVarFp.
|
|
1916
|
+
unlinkDomainFromWebsiteV1(websiteUid, domain, options) {
|
|
1917
|
+
return localVarFp.unlinkDomainFromWebsiteV1(websiteUid, domain, options).then((request) => request(axios, basePath));
|
|
1918
1918
|
},
|
|
1919
1919
|
};
|
|
1920
1920
|
};
|
|
@@ -1928,7 +1928,7 @@ exports.AgencyHostingDomainsApiFactory = AgencyHostingDomainsApiFactory;
|
|
|
1928
1928
|
class AgencyHostingDomainsApi extends base_1.BaseAPI {
|
|
1929
1929
|
/**
|
|
1930
1930
|
* Changes the primary domain for an Agency Plan website. Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.
|
|
1931
|
-
* @summary Change
|
|
1931
|
+
* @summary Change website domain
|
|
1932
1932
|
* @param {string} websiteUid Agency Plan website UID
|
|
1933
1933
|
* @param {string} fromDomain Current domain name to change from
|
|
1934
1934
|
* @param {AgencyHostingV1DomainsChangeDomainRequest} agencyHostingV1DomainsChangeDomainRequest
|
|
@@ -1936,24 +1936,24 @@ class AgencyHostingDomainsApi extends base_1.BaseAPI {
|
|
|
1936
1936
|
* @throws {RequiredError}
|
|
1937
1937
|
* @memberof AgencyHostingDomainsApi
|
|
1938
1938
|
*/
|
|
1939
|
-
|
|
1940
|
-
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).
|
|
1939
|
+
changeWebsiteDomainV1(websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options) {
|
|
1940
|
+
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).changeWebsiteDomainV1(websiteUid, fromDomain, agencyHostingV1DomainsChangeDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1941
1941
|
}
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
1944
|
-
* @summary Link domain to
|
|
1944
|
+
* @summary Link domain to website
|
|
1945
1945
|
* @param {string} websiteUid Agency Plan website UID
|
|
1946
1946
|
* @param {AgencyHostingV1DomainsLinkDomainRequest} agencyHostingV1DomainsLinkDomainRequest
|
|
1947
1947
|
* @param {*} [options] Override http request option.
|
|
1948
1948
|
* @throws {RequiredError}
|
|
1949
1949
|
* @memberof AgencyHostingDomainsApi
|
|
1950
1950
|
*/
|
|
1951
|
-
|
|
1952
|
-
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).
|
|
1951
|
+
linkDomainToWebsiteV1(websiteUid, agencyHostingV1DomainsLinkDomainRequest, options) {
|
|
1952
|
+
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).linkDomainToWebsiteV1(websiteUid, agencyHostingV1DomainsLinkDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1953
1953
|
}
|
|
1954
1954
|
/**
|
|
1955
1955
|
* Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client. Use the website_uuids filter to narrow results to specific websites.
|
|
1956
|
-
* @summary List
|
|
1956
|
+
* @summary List domains
|
|
1957
1957
|
* @param {number} [page] Page number
|
|
1958
1958
|
* @param {number} [perPage] Number of items per page
|
|
1959
1959
|
* @param {Array<string> | null} [websiteUuids] Filter by website UIDs
|
|
@@ -1961,20 +1961,20 @@ class AgencyHostingDomainsApi extends base_1.BaseAPI {
|
|
|
1961
1961
|
* @throws {RequiredError}
|
|
1962
1962
|
* @memberof AgencyHostingDomainsApi
|
|
1963
1963
|
*/
|
|
1964
|
-
|
|
1965
|
-
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).
|
|
1964
|
+
listDomainsV1(page, perPage, websiteUuids, options) {
|
|
1965
|
+
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).listDomainsV1(page, perPage, websiteUuids, options).then((request) => request(this.axios, this.basePath));
|
|
1966
1966
|
}
|
|
1967
1967
|
/**
|
|
1968
1968
|
* Unlinks a domain from the specified Agency Plan website. The website stops serving traffic on this domain immediately. Website files and database are preserved, and any other linked domains remain accessible. If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
1969
|
-
* @summary Unlink domain from
|
|
1969
|
+
* @summary Unlink domain from website
|
|
1970
1970
|
* @param {string} websiteUid Agency Plan website UID
|
|
1971
1971
|
* @param {string} domain Domain name
|
|
1972
1972
|
* @param {*} [options] Override http request option.
|
|
1973
1973
|
* @throws {RequiredError}
|
|
1974
1974
|
* @memberof AgencyHostingDomainsApi
|
|
1975
1975
|
*/
|
|
1976
|
-
|
|
1977
|
-
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).
|
|
1976
|
+
unlinkDomainFromWebsiteV1(websiteUid, domain, options) {
|
|
1977
|
+
return (0, exports.AgencyHostingDomainsApiFp)(this.configuration).unlinkDomainFromWebsiteV1(websiteUid, domain, options).then((request) => request(this.axios, this.basePath));
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
1980
|
exports.AgencyHostingDomainsApi = AgencyHostingDomainsApi;
|
|
@@ -1986,17 +1986,17 @@ const AgencyHostingFilesApiAxiosParamCreator = function (configuration) {
|
|
|
1986
1986
|
return {
|
|
1987
1987
|
/**
|
|
1988
1988
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
1989
|
-
* @summary Import
|
|
1989
|
+
* @summary Import website from archive
|
|
1990
1990
|
* @param {string} websiteUid Agency Plan website UID
|
|
1991
1991
|
* @param {AgencyHostingV1FilesImportArchiveRequest} agencyHostingV1FilesImportArchiveRequest
|
|
1992
1992
|
* @param {*} [options] Override http request option.
|
|
1993
1993
|
* @throws {RequiredError}
|
|
1994
1994
|
*/
|
|
1995
|
-
|
|
1995
|
+
importWebsiteFromArchiveV1: (websiteUid_1, agencyHostingV1FilesImportArchiveRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1FilesImportArchiveRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1FilesImportArchiveRequest, options = {}) {
|
|
1996
1996
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
1997
|
-
(0, common_1.assertParamExists)('
|
|
1997
|
+
(0, common_1.assertParamExists)('importWebsiteFromArchiveV1', 'websiteUid', websiteUid);
|
|
1998
1998
|
// verify required parameter 'agencyHostingV1FilesImportArchiveRequest' is not null or undefined
|
|
1999
|
-
(0, common_1.assertParamExists)('
|
|
1999
|
+
(0, common_1.assertParamExists)('importWebsiteFromArchiveV1', 'agencyHostingV1FilesImportArchiveRequest', agencyHostingV1FilesImportArchiveRequest);
|
|
2000
2000
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/files/import-archive`
|
|
2001
2001
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2002
2002
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2033,17 +2033,17 @@ const AgencyHostingFilesApiFp = function (configuration) {
|
|
|
2033
2033
|
return {
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2036
|
-
* @summary Import
|
|
2036
|
+
* @summary Import website from archive
|
|
2037
2037
|
* @param {string} websiteUid Agency Plan website UID
|
|
2038
2038
|
* @param {AgencyHostingV1FilesImportArchiveRequest} agencyHostingV1FilesImportArchiveRequest
|
|
2039
2039
|
* @param {*} [options] Override http request option.
|
|
2040
2040
|
* @throws {RequiredError}
|
|
2041
2041
|
*/
|
|
2042
|
-
|
|
2042
|
+
importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options) {
|
|
2043
2043
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2044
2044
|
var _a, _b;
|
|
2045
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2046
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingFilesApi.
|
|
2045
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options);
|
|
2046
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingFilesApi.importWebsiteFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2047
2047
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2048
2048
|
});
|
|
2049
2049
|
},
|
|
@@ -2059,14 +2059,14 @@ const AgencyHostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
|
2059
2059
|
return {
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2062
|
-
* @summary Import
|
|
2062
|
+
* @summary Import website from archive
|
|
2063
2063
|
* @param {string} websiteUid Agency Plan website UID
|
|
2064
2064
|
* @param {AgencyHostingV1FilesImportArchiveRequest} agencyHostingV1FilesImportArchiveRequest
|
|
2065
2065
|
* @param {*} [options] Override http request option.
|
|
2066
2066
|
* @throws {RequiredError}
|
|
2067
2067
|
*/
|
|
2068
|
-
|
|
2069
|
-
return localVarFp.
|
|
2068
|
+
importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options) {
|
|
2069
|
+
return localVarFp.importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options).then((request) => request(axios, basePath));
|
|
2070
2070
|
},
|
|
2071
2071
|
};
|
|
2072
2072
|
};
|
|
@@ -2080,15 +2080,15 @@ exports.AgencyHostingFilesApiFactory = AgencyHostingFilesApiFactory;
|
|
|
2080
2080
|
class AgencyHostingFilesApi extends base_1.BaseAPI {
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
2083
|
-
* @summary Import
|
|
2083
|
+
* @summary Import website from archive
|
|
2084
2084
|
* @param {string} websiteUid Agency Plan website UID
|
|
2085
2085
|
* @param {AgencyHostingV1FilesImportArchiveRequest} agencyHostingV1FilesImportArchiveRequest
|
|
2086
2086
|
* @param {*} [options] Override http request option.
|
|
2087
2087
|
* @throws {RequiredError}
|
|
2088
2088
|
* @memberof AgencyHostingFilesApi
|
|
2089
2089
|
*/
|
|
2090
|
-
|
|
2091
|
-
return (0, exports.AgencyHostingFilesApiFp)(this.configuration).
|
|
2090
|
+
importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options) {
|
|
2091
|
+
return (0, exports.AgencyHostingFilesApiFp)(this.configuration).importWebsiteFromArchiveV1(websiteUid, agencyHostingV1FilesImportArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
exports.AgencyHostingFilesApi = AgencyHostingFilesApi;
|
|
@@ -2100,13 +2100,13 @@ const AgencyHostingOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2100
2100
|
return {
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
2103
|
-
* @summary List
|
|
2103
|
+
* @summary List orders
|
|
2104
2104
|
* @param {number} [page] Page number
|
|
2105
2105
|
* @param {number} [perPage] Number of items per page
|
|
2106
2106
|
* @param {*} [options] Override http request option.
|
|
2107
2107
|
* @throws {RequiredError}
|
|
2108
2108
|
*/
|
|
2109
|
-
|
|
2109
|
+
listOrdersV1: (page_1, perPage_1, ...args_1) => __awaiter(this, [page_1, perPage_1, ...args_1], void 0, function* (page, perPage, options = {}) {
|
|
2110
2110
|
const localVarPath = `/api/agency-hosting/v1/orders`;
|
|
2111
2111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2112
2112
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2146,17 +2146,17 @@ const AgencyHostingOrdersApiFp = function (configuration) {
|
|
|
2146
2146
|
return {
|
|
2147
2147
|
/**
|
|
2148
2148
|
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
2149
|
-
* @summary List
|
|
2149
|
+
* @summary List orders
|
|
2150
2150
|
* @param {number} [page] Page number
|
|
2151
2151
|
* @param {number} [perPage] Number of items per page
|
|
2152
2152
|
* @param {*} [options] Override http request option.
|
|
2153
2153
|
* @throws {RequiredError}
|
|
2154
2154
|
*/
|
|
2155
|
-
|
|
2155
|
+
listOrdersV1(page, perPage, options) {
|
|
2156
2156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2157
2157
|
var _a, _b;
|
|
2158
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2159
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingOrdersApi.
|
|
2158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersV1(page, perPage, options);
|
|
2159
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingOrdersApi.listOrdersV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2160
2160
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2161
2161
|
});
|
|
2162
2162
|
},
|
|
@@ -2172,14 +2172,14 @@ const AgencyHostingOrdersApiFactory = function (configuration, basePath, axios)
|
|
|
2172
2172
|
return {
|
|
2173
2173
|
/**
|
|
2174
2174
|
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
2175
|
-
* @summary List
|
|
2175
|
+
* @summary List orders
|
|
2176
2176
|
* @param {number} [page] Page number
|
|
2177
2177
|
* @param {number} [perPage] Number of items per page
|
|
2178
2178
|
* @param {*} [options] Override http request option.
|
|
2179
2179
|
* @throws {RequiredError}
|
|
2180
2180
|
*/
|
|
2181
|
-
|
|
2182
|
-
return localVarFp.
|
|
2181
|
+
listOrdersV1(page, perPage, options) {
|
|
2182
|
+
return localVarFp.listOrdersV1(page, perPage, options).then((request) => request(axios, basePath));
|
|
2183
2183
|
},
|
|
2184
2184
|
};
|
|
2185
2185
|
};
|
|
@@ -2193,15 +2193,15 @@ exports.AgencyHostingOrdersApiFactory = AgencyHostingOrdersApiFactory;
|
|
|
2193
2193
|
class AgencyHostingOrdersApi extends base_1.BaseAPI {
|
|
2194
2194
|
/**
|
|
2195
2195
|
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
2196
|
-
* @summary List
|
|
2196
|
+
* @summary List orders
|
|
2197
2197
|
* @param {number} [page] Page number
|
|
2198
2198
|
* @param {number} [perPage] Number of items per page
|
|
2199
2199
|
* @param {*} [options] Override http request option.
|
|
2200
2200
|
* @throws {RequiredError}
|
|
2201
2201
|
* @memberof AgencyHostingOrdersApi
|
|
2202
2202
|
*/
|
|
2203
|
-
|
|
2204
|
-
return (0, exports.AgencyHostingOrdersApiFp)(this.configuration).
|
|
2203
|
+
listOrdersV1(page, perPage, options) {
|
|
2204
|
+
return (0, exports.AgencyHostingOrdersApiFp)(this.configuration).listOrdersV1(page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
2207
|
exports.AgencyHostingOrdersApi = AgencyHostingOrdersApi;
|
|
@@ -2212,73 +2212,73 @@ exports.AgencyHostingOrdersApi = AgencyHostingOrdersApi;
|
|
|
2212
2212
|
const AgencyHostingWebsiteSetupsApiAxiosParamCreator = function (configuration) {
|
|
2213
2213
|
return {
|
|
2214
2214
|
/**
|
|
2215
|
-
*
|
|
2216
|
-
* @summary
|
|
2215
|
+
* Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
2216
|
+
* @summary Create a new website
|
|
2217
2217
|
* @param {number} orderId Agency Plan order ID
|
|
2218
|
-
* @param {
|
|
2218
|
+
* @param {AgencyHostingV1SetupsCreateSetupRequest} agencyHostingV1SetupsCreateSetupRequest
|
|
2219
2219
|
* @param {*} [options] Override http request option.
|
|
2220
2220
|
* @throws {RequiredError}
|
|
2221
2221
|
*/
|
|
2222
|
-
|
|
2222
|
+
createANewWebsiteV1: (orderId_1, agencyHostingV1SetupsCreateSetupRequest_1, ...args_1) => __awaiter(this, [orderId_1, agencyHostingV1SetupsCreateSetupRequest_1, ...args_1], void 0, function* (orderId, agencyHostingV1SetupsCreateSetupRequest, options = {}) {
|
|
2223
2223
|
// verify required parameter 'orderId' is not null or undefined
|
|
2224
|
-
(0, common_1.assertParamExists)('
|
|
2225
|
-
// verify required parameter '
|
|
2226
|
-
(0, common_1.assertParamExists)('
|
|
2227
|
-
const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/websites/setups
|
|
2228
|
-
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)))
|
|
2229
|
-
.replace(`{${"setup_uuid"}}`, encodeURIComponent(String(setupUuid)));
|
|
2224
|
+
(0, common_1.assertParamExists)('createANewWebsiteV1', 'orderId', orderId);
|
|
2225
|
+
// verify required parameter 'agencyHostingV1SetupsCreateSetupRequest' is not null or undefined
|
|
2226
|
+
(0, common_1.assertParamExists)('createANewWebsiteV1', 'agencyHostingV1SetupsCreateSetupRequest', agencyHostingV1SetupsCreateSetupRequest);
|
|
2227
|
+
const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/websites/setups`
|
|
2228
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
2230
2229
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2231
2230
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2232
2231
|
let baseOptions;
|
|
2233
2232
|
if (configuration) {
|
|
2234
2233
|
baseOptions = configuration.baseOptions;
|
|
2235
2234
|
}
|
|
2236
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2235
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2237
2236
|
const localVarHeaderParameter = {};
|
|
2238
2237
|
const localVarQueryParameter = {};
|
|
2239
2238
|
// authentication apiToken required
|
|
2240
2239
|
// http bearer authentication required
|
|
2241
2240
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2241
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2242
2242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2243
2243
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2244
2244
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2245
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agencyHostingV1SetupsCreateSetupRequest, localVarRequestOptions, configuration);
|
|
2245
2246
|
return {
|
|
2246
2247
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2247
2248
|
options: localVarRequestOptions,
|
|
2248
2249
|
};
|
|
2249
2250
|
}),
|
|
2250
2251
|
/**
|
|
2251
|
-
*
|
|
2252
|
-
* @summary
|
|
2252
|
+
* Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
2253
|
+
* @summary Get website setup status
|
|
2253
2254
|
* @param {number} orderId Agency Plan order ID
|
|
2254
|
-
* @param {
|
|
2255
|
+
* @param {string} setupUuid Website setup UUID
|
|
2255
2256
|
* @param {*} [options] Override http request option.
|
|
2256
2257
|
* @throws {RequiredError}
|
|
2257
2258
|
*/
|
|
2258
|
-
|
|
2259
|
+
getWebsiteSetupStatusV1: (orderId_1, setupUuid_1, ...args_1) => __awaiter(this, [orderId_1, setupUuid_1, ...args_1], void 0, function* (orderId, setupUuid, options = {}) {
|
|
2259
2260
|
// verify required parameter 'orderId' is not null or undefined
|
|
2260
|
-
(0, common_1.assertParamExists)('
|
|
2261
|
-
// verify required parameter '
|
|
2262
|
-
(0, common_1.assertParamExists)('
|
|
2263
|
-
const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/websites/setups`
|
|
2264
|
-
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)))
|
|
2261
|
+
(0, common_1.assertParamExists)('getWebsiteSetupStatusV1', 'orderId', orderId);
|
|
2262
|
+
// verify required parameter 'setupUuid' is not null or undefined
|
|
2263
|
+
(0, common_1.assertParamExists)('getWebsiteSetupStatusV1', 'setupUuid', setupUuid);
|
|
2264
|
+
const localVarPath = `/api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}`
|
|
2265
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)))
|
|
2266
|
+
.replace(`{${"setup_uuid"}}`, encodeURIComponent(String(setupUuid)));
|
|
2265
2267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2266
2268
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2267
2269
|
let baseOptions;
|
|
2268
2270
|
if (configuration) {
|
|
2269
2271
|
baseOptions = configuration.baseOptions;
|
|
2270
2272
|
}
|
|
2271
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
2273
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2272
2274
|
const localVarHeaderParameter = {};
|
|
2273
2275
|
const localVarQueryParameter = {};
|
|
2274
2276
|
// authentication apiToken required
|
|
2275
2277
|
// http bearer authentication required
|
|
2276
2278
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2277
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2278
2279
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2279
2280
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2280
2281
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2281
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(agencyHostingV1SetupsCreateSetupRequest, localVarRequestOptions, configuration);
|
|
2282
2282
|
return {
|
|
2283
2283
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2284
2284
|
options: localVarRequestOptions,
|
|
@@ -2295,34 +2295,34 @@ const AgencyHostingWebsiteSetupsApiFp = function (configuration) {
|
|
|
2295
2295
|
const localVarAxiosParamCreator = (0, exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator)(configuration);
|
|
2296
2296
|
return {
|
|
2297
2297
|
/**
|
|
2298
|
-
*
|
|
2299
|
-
* @summary
|
|
2298
|
+
* Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
2299
|
+
* @summary Create a new website
|
|
2300
2300
|
* @param {number} orderId Agency Plan order ID
|
|
2301
|
-
* @param {
|
|
2301
|
+
* @param {AgencyHostingV1SetupsCreateSetupRequest} agencyHostingV1SetupsCreateSetupRequest
|
|
2302
2302
|
* @param {*} [options] Override http request option.
|
|
2303
2303
|
* @throws {RequiredError}
|
|
2304
2304
|
*/
|
|
2305
|
-
|
|
2305
|
+
createANewWebsiteV1(orderId, agencyHostingV1SetupsCreateSetupRequest, options) {
|
|
2306
2306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2307
2307
|
var _a, _b;
|
|
2308
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2309
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsiteSetupsApi.
|
|
2308
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewWebsiteV1(orderId, agencyHostingV1SetupsCreateSetupRequest, options);
|
|
2309
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsiteSetupsApi.createANewWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2310
2310
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2311
2311
|
});
|
|
2312
2312
|
},
|
|
2313
2313
|
/**
|
|
2314
|
-
*
|
|
2315
|
-
* @summary
|
|
2314
|
+
* Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
2315
|
+
* @summary Get website setup status
|
|
2316
2316
|
* @param {number} orderId Agency Plan order ID
|
|
2317
|
-
* @param {
|
|
2317
|
+
* @param {string} setupUuid Website setup UUID
|
|
2318
2318
|
* @param {*} [options] Override http request option.
|
|
2319
2319
|
* @throws {RequiredError}
|
|
2320
2320
|
*/
|
|
2321
|
-
|
|
2321
|
+
getWebsiteSetupStatusV1(orderId, setupUuid, options) {
|
|
2322
2322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2323
2323
|
var _a, _b;
|
|
2324
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2325
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsiteSetupsApi.
|
|
2324
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteSetupStatusV1(orderId, setupUuid, options);
|
|
2325
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsiteSetupsApi.getWebsiteSetupStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2326
2326
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2327
2327
|
});
|
|
2328
2328
|
},
|
|
@@ -2337,26 +2337,26 @@ const AgencyHostingWebsiteSetupsApiFactory = function (configuration, basePath,
|
|
|
2337
2337
|
const localVarFp = (0, exports.AgencyHostingWebsiteSetupsApiFp)(configuration);
|
|
2338
2338
|
return {
|
|
2339
2339
|
/**
|
|
2340
|
-
*
|
|
2341
|
-
* @summary
|
|
2340
|
+
* Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
2341
|
+
* @summary Create a new website
|
|
2342
2342
|
* @param {number} orderId Agency Plan order ID
|
|
2343
|
-
* @param {
|
|
2343
|
+
* @param {AgencyHostingV1SetupsCreateSetupRequest} agencyHostingV1SetupsCreateSetupRequest
|
|
2344
2344
|
* @param {*} [options] Override http request option.
|
|
2345
2345
|
* @throws {RequiredError}
|
|
2346
2346
|
*/
|
|
2347
|
-
|
|
2348
|
-
return localVarFp.
|
|
2347
|
+
createANewWebsiteV1(orderId, agencyHostingV1SetupsCreateSetupRequest, options) {
|
|
2348
|
+
return localVarFp.createANewWebsiteV1(orderId, agencyHostingV1SetupsCreateSetupRequest, options).then((request) => request(axios, basePath));
|
|
2349
2349
|
},
|
|
2350
2350
|
/**
|
|
2351
|
-
*
|
|
2352
|
-
* @summary
|
|
2351
|
+
* Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
2352
|
+
* @summary Get website setup status
|
|
2353
2353
|
* @param {number} orderId Agency Plan order ID
|
|
2354
|
-
* @param {
|
|
2354
|
+
* @param {string} setupUuid Website setup UUID
|
|
2355
2355
|
* @param {*} [options] Override http request option.
|
|
2356
2356
|
* @throws {RequiredError}
|
|
2357
2357
|
*/
|
|
2358
|
-
|
|
2359
|
-
return localVarFp.
|
|
2358
|
+
getWebsiteSetupStatusV1(orderId, setupUuid, options) {
|
|
2359
|
+
return localVarFp.getWebsiteSetupStatusV1(orderId, setupUuid, options).then((request) => request(axios, basePath));
|
|
2360
2360
|
},
|
|
2361
2361
|
};
|
|
2362
2362
|
};
|
|
@@ -2369,28 +2369,28 @@ exports.AgencyHostingWebsiteSetupsApiFactory = AgencyHostingWebsiteSetupsApiFact
|
|
|
2369
2369
|
*/
|
|
2370
2370
|
class AgencyHostingWebsiteSetupsApi extends base_1.BaseAPI {
|
|
2371
2371
|
/**
|
|
2372
|
-
*
|
|
2373
|
-
* @summary
|
|
2372
|
+
* Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
2373
|
+
* @summary Create a new website
|
|
2374
2374
|
* @param {number} orderId Agency Plan order ID
|
|
2375
|
-
* @param {
|
|
2375
|
+
* @param {AgencyHostingV1SetupsCreateSetupRequest} agencyHostingV1SetupsCreateSetupRequest
|
|
2376
2376
|
* @param {*} [options] Override http request option.
|
|
2377
2377
|
* @throws {RequiredError}
|
|
2378
2378
|
* @memberof AgencyHostingWebsiteSetupsApi
|
|
2379
2379
|
*/
|
|
2380
|
-
|
|
2381
|
-
return (0, exports.AgencyHostingWebsiteSetupsApiFp)(this.configuration).
|
|
2380
|
+
createANewWebsiteV1(orderId, agencyHostingV1SetupsCreateSetupRequest, options) {
|
|
2381
|
+
return (0, exports.AgencyHostingWebsiteSetupsApiFp)(this.configuration).createANewWebsiteV1(orderId, agencyHostingV1SetupsCreateSetupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2382
2382
|
}
|
|
2383
2383
|
/**
|
|
2384
|
-
*
|
|
2385
|
-
* @summary
|
|
2384
|
+
* Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
2385
|
+
* @summary Get website setup status
|
|
2386
2386
|
* @param {number} orderId Agency Plan order ID
|
|
2387
|
-
* @param {
|
|
2387
|
+
* @param {string} setupUuid Website setup UUID
|
|
2388
2388
|
* @param {*} [options] Override http request option.
|
|
2389
2389
|
* @throws {RequiredError}
|
|
2390
2390
|
* @memberof AgencyHostingWebsiteSetupsApi
|
|
2391
2391
|
*/
|
|
2392
|
-
|
|
2393
|
-
return (0, exports.AgencyHostingWebsiteSetupsApiFp)(this.configuration).
|
|
2392
|
+
getWebsiteSetupStatusV1(orderId, setupUuid, options) {
|
|
2393
|
+
return (0, exports.AgencyHostingWebsiteSetupsApiFp)(this.configuration).getWebsiteSetupStatusV1(orderId, setupUuid, options).then((request) => request(this.axios, this.basePath));
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
2396
|
exports.AgencyHostingWebsiteSetupsApi = AgencyHostingWebsiteSetupsApi;
|
|
@@ -2402,17 +2402,17 @@ const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
2402
2402
|
return {
|
|
2403
2403
|
/**
|
|
2404
2404
|
* Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive. Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
|
|
2405
|
-
* @summary Build
|
|
2405
|
+
* @summary Build website NodeJS assets
|
|
2406
2406
|
* @param {string} websiteUid Agency Plan website UID
|
|
2407
2407
|
* @param {AgencyHostingV1WebsitesBuildAssetsRequest} agencyHostingV1WebsitesBuildAssetsRequest
|
|
2408
2408
|
* @param {*} [options] Override http request option.
|
|
2409
2409
|
* @throws {RequiredError}
|
|
2410
2410
|
*/
|
|
2411
|
-
|
|
2411
|
+
buildWebsiteNodeJSAssetsV1: (websiteUid_1, agencyHostingV1WebsitesBuildAssetsRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1WebsitesBuildAssetsRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options = {}) {
|
|
2412
2412
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2413
|
-
(0, common_1.assertParamExists)('
|
|
2413
|
+
(0, common_1.assertParamExists)('buildWebsiteNodeJSAssetsV1', 'websiteUid', websiteUid);
|
|
2414
2414
|
// verify required parameter 'agencyHostingV1WebsitesBuildAssetsRequest' is not null or undefined
|
|
2415
|
-
(0, common_1.assertParamExists)('
|
|
2415
|
+
(0, common_1.assertParamExists)('buildWebsiteNodeJSAssetsV1', 'agencyHostingV1WebsitesBuildAssetsRequest', agencyHostingV1WebsitesBuildAssetsRequest);
|
|
2416
2416
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/build-assets`
|
|
2417
2417
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2418
2418
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2439,14 +2439,14 @@ const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
2439
2439
|
}),
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2442
|
-
* @summary Delete
|
|
2442
|
+
* @summary Delete website
|
|
2443
2443
|
* @param {string} websiteUid Agency Plan website UID
|
|
2444
2444
|
* @param {*} [options] Override http request option.
|
|
2445
2445
|
* @throws {RequiredError}
|
|
2446
2446
|
*/
|
|
2447
|
-
|
|
2447
|
+
deleteWebsiteV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2448
2448
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2449
|
-
(0, common_1.assertParamExists)('
|
|
2449
|
+
(0, common_1.assertParamExists)('deleteWebsiteV1', 'websiteUid', websiteUid);
|
|
2450
2450
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}`
|
|
2451
2451
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2452
2452
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2471,14 +2471,14 @@ const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
2471
2471
|
}),
|
|
2472
2472
|
/**
|
|
2473
2473
|
* Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
|
|
2474
|
-
* @summary Get
|
|
2474
|
+
* @summary Get website details
|
|
2475
2475
|
* @param {string} websiteUid Agency Plan website UID
|
|
2476
2476
|
* @param {*} [options] Override http request option.
|
|
2477
2477
|
* @throws {RequiredError}
|
|
2478
2478
|
*/
|
|
2479
|
-
|
|
2479
|
+
getWebsiteDetailsV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2480
2480
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2481
|
-
(0, common_1.assertParamExists)('
|
|
2481
|
+
(0, common_1.assertParamExists)('getWebsiteDetailsV1', 'websiteUid', websiteUid);
|
|
2482
2482
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}`
|
|
2483
2483
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2484
2484
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2503,14 +2503,14 @@ const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
2503
2503
|
}),
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
2506
|
-
* @summary List
|
|
2506
|
+
* @summary List website processes
|
|
2507
2507
|
* @param {string} websiteUid Agency Plan website UID
|
|
2508
2508
|
* @param {*} [options] Override http request option.
|
|
2509
2509
|
* @throws {RequiredError}
|
|
2510
2510
|
*/
|
|
2511
|
-
|
|
2511
|
+
listWebsiteProcessesV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2512
2512
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2513
|
-
(0, common_1.assertParamExists)('
|
|
2513
|
+
(0, common_1.assertParamExists)('listWebsiteProcessesV1', 'websiteUid', websiteUid);
|
|
2514
2514
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/processes`
|
|
2515
2515
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2516
2516
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2545,62 +2545,62 @@ const AgencyHostingWebsitesApiFp = function (configuration) {
|
|
|
2545
2545
|
return {
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive. Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
|
|
2548
|
-
* @summary Build
|
|
2548
|
+
* @summary Build website NodeJS assets
|
|
2549
2549
|
* @param {string} websiteUid Agency Plan website UID
|
|
2550
2550
|
* @param {AgencyHostingV1WebsitesBuildAssetsRequest} agencyHostingV1WebsitesBuildAssetsRequest
|
|
2551
2551
|
* @param {*} [options] Override http request option.
|
|
2552
2552
|
* @throws {RequiredError}
|
|
2553
2553
|
*/
|
|
2554
|
-
|
|
2554
|
+
buildWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options) {
|
|
2555
2555
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2556
2556
|
var _a, _b;
|
|
2557
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2558
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.
|
|
2557
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.buildWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options);
|
|
2558
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.buildWebsiteNodeJSAssetsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2559
2559
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2560
2560
|
});
|
|
2561
2561
|
},
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2564
|
-
* @summary Delete
|
|
2564
|
+
* @summary Delete website
|
|
2565
2565
|
* @param {string} websiteUid Agency Plan website UID
|
|
2566
2566
|
* @param {*} [options] Override http request option.
|
|
2567
2567
|
* @throws {RequiredError}
|
|
2568
2568
|
*/
|
|
2569
|
-
|
|
2569
|
+
deleteWebsiteV1(websiteUid, options) {
|
|
2570
2570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2571
2571
|
var _a, _b;
|
|
2572
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2573
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.
|
|
2572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteV1(websiteUid, options);
|
|
2573
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.deleteWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2574
2574
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2575
2575
|
});
|
|
2576
2576
|
},
|
|
2577
2577
|
/**
|
|
2578
2578
|
* Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
|
|
2579
|
-
* @summary Get
|
|
2579
|
+
* @summary Get website details
|
|
2580
2580
|
* @param {string} websiteUid Agency Plan website UID
|
|
2581
2581
|
* @param {*} [options] Override http request option.
|
|
2582
2582
|
* @throws {RequiredError}
|
|
2583
2583
|
*/
|
|
2584
|
-
|
|
2584
|
+
getWebsiteDetailsV1(websiteUid, options) {
|
|
2585
2585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2586
2586
|
var _a, _b;
|
|
2587
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2588
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.
|
|
2587
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteDetailsV1(websiteUid, options);
|
|
2588
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.getWebsiteDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2589
2589
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2590
2590
|
});
|
|
2591
2591
|
},
|
|
2592
2592
|
/**
|
|
2593
2593
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
2594
|
-
* @summary List
|
|
2594
|
+
* @summary List website processes
|
|
2595
2595
|
* @param {string} websiteUid Agency Plan website UID
|
|
2596
2596
|
* @param {*} [options] Override http request option.
|
|
2597
2597
|
* @throws {RequiredError}
|
|
2598
2598
|
*/
|
|
2599
|
-
|
|
2599
|
+
listWebsiteProcessesV1(websiteUid, options) {
|
|
2600
2600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2601
2601
|
var _a, _b;
|
|
2602
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2603
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.
|
|
2602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteProcessesV1(websiteUid, options);
|
|
2603
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWebsitesApi.listWebsiteProcessesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2604
2604
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2605
2605
|
});
|
|
2606
2606
|
},
|
|
@@ -2616,44 +2616,44 @@ const AgencyHostingWebsitesApiFactory = function (configuration, basePath, axios
|
|
|
2616
2616
|
return {
|
|
2617
2617
|
/**
|
|
2618
2618
|
* Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive. Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
|
|
2619
|
-
* @summary Build
|
|
2619
|
+
* @summary Build website NodeJS assets
|
|
2620
2620
|
* @param {string} websiteUid Agency Plan website UID
|
|
2621
2621
|
* @param {AgencyHostingV1WebsitesBuildAssetsRequest} agencyHostingV1WebsitesBuildAssetsRequest
|
|
2622
2622
|
* @param {*} [options] Override http request option.
|
|
2623
2623
|
* @throws {RequiredError}
|
|
2624
2624
|
*/
|
|
2625
|
-
|
|
2626
|
-
return localVarFp.
|
|
2625
|
+
buildWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options) {
|
|
2626
|
+
return localVarFp.buildWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options).then((request) => request(axios, basePath));
|
|
2627
2627
|
},
|
|
2628
2628
|
/**
|
|
2629
2629
|
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2630
|
-
* @summary Delete
|
|
2630
|
+
* @summary Delete website
|
|
2631
2631
|
* @param {string} websiteUid Agency Plan website UID
|
|
2632
2632
|
* @param {*} [options] Override http request option.
|
|
2633
2633
|
* @throws {RequiredError}
|
|
2634
2634
|
*/
|
|
2635
|
-
|
|
2636
|
-
return localVarFp.
|
|
2635
|
+
deleteWebsiteV1(websiteUid, options) {
|
|
2636
|
+
return localVarFp.deleteWebsiteV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2637
2637
|
},
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
|
|
2640
|
-
* @summary Get
|
|
2640
|
+
* @summary Get website details
|
|
2641
2641
|
* @param {string} websiteUid Agency Plan website UID
|
|
2642
2642
|
* @param {*} [options] Override http request option.
|
|
2643
2643
|
* @throws {RequiredError}
|
|
2644
2644
|
*/
|
|
2645
|
-
|
|
2646
|
-
return localVarFp.
|
|
2645
|
+
getWebsiteDetailsV1(websiteUid, options) {
|
|
2646
|
+
return localVarFp.getWebsiteDetailsV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2647
2647
|
},
|
|
2648
2648
|
/**
|
|
2649
2649
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
2650
|
-
* @summary List
|
|
2650
|
+
* @summary List website processes
|
|
2651
2651
|
* @param {string} websiteUid Agency Plan website UID
|
|
2652
2652
|
* @param {*} [options] Override http request option.
|
|
2653
2653
|
* @throws {RequiredError}
|
|
2654
2654
|
*/
|
|
2655
|
-
|
|
2656
|
-
return localVarFp.
|
|
2655
|
+
listWebsiteProcessesV1(websiteUid, options) {
|
|
2656
|
+
return localVarFp.listWebsiteProcessesV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2657
2657
|
},
|
|
2658
2658
|
};
|
|
2659
2659
|
};
|
|
@@ -2667,48 +2667,48 @@ exports.AgencyHostingWebsitesApiFactory = AgencyHostingWebsitesApiFactory;
|
|
|
2667
2667
|
class AgencyHostingWebsitesApi extends base_1.BaseAPI {
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive. Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
|
|
2670
|
-
* @summary Build
|
|
2670
|
+
* @summary Build website NodeJS assets
|
|
2671
2671
|
* @param {string} websiteUid Agency Plan website UID
|
|
2672
2672
|
* @param {AgencyHostingV1WebsitesBuildAssetsRequest} agencyHostingV1WebsitesBuildAssetsRequest
|
|
2673
2673
|
* @param {*} [options] Override http request option.
|
|
2674
2674
|
* @throws {RequiredError}
|
|
2675
2675
|
* @memberof AgencyHostingWebsitesApi
|
|
2676
2676
|
*/
|
|
2677
|
-
|
|
2678
|
-
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).
|
|
2677
|
+
buildWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options) {
|
|
2678
|
+
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).buildWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2679
2679
|
}
|
|
2680
2680
|
/**
|
|
2681
2681
|
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2682
|
-
* @summary Delete
|
|
2682
|
+
* @summary Delete website
|
|
2683
2683
|
* @param {string} websiteUid Agency Plan website UID
|
|
2684
2684
|
* @param {*} [options] Override http request option.
|
|
2685
2685
|
* @throws {RequiredError}
|
|
2686
2686
|
* @memberof AgencyHostingWebsitesApi
|
|
2687
2687
|
*/
|
|
2688
|
-
|
|
2689
|
-
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).
|
|
2688
|
+
deleteWebsiteV1(websiteUid, options) {
|
|
2689
|
+
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).deleteWebsiteV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2690
2690
|
}
|
|
2691
2691
|
/**
|
|
2692
2692
|
* Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
|
|
2693
|
-
* @summary Get
|
|
2693
|
+
* @summary Get website details
|
|
2694
2694
|
* @param {string} websiteUid Agency Plan website UID
|
|
2695
2695
|
* @param {*} [options] Override http request option.
|
|
2696
2696
|
* @throws {RequiredError}
|
|
2697
2697
|
* @memberof AgencyHostingWebsitesApi
|
|
2698
2698
|
*/
|
|
2699
|
-
|
|
2700
|
-
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).
|
|
2699
|
+
getWebsiteDetailsV1(websiteUid, options) {
|
|
2700
|
+
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).getWebsiteDetailsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2701
2701
|
}
|
|
2702
2702
|
/**
|
|
2703
2703
|
* Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
2704
|
-
* @summary List
|
|
2704
|
+
* @summary List website processes
|
|
2705
2705
|
* @param {string} websiteUid Agency Plan website UID
|
|
2706
2706
|
* @param {*} [options] Override http request option.
|
|
2707
2707
|
* @throws {RequiredError}
|
|
2708
2708
|
* @memberof AgencyHostingWebsitesApi
|
|
2709
2709
|
*/
|
|
2710
|
-
|
|
2711
|
-
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).
|
|
2710
|
+
listWebsiteProcessesV1(websiteUid, options) {
|
|
2711
|
+
return (0, exports.AgencyHostingWebsitesApiFp)(this.configuration).listWebsiteProcessesV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
2714
2714
|
exports.AgencyHostingWebsitesApi = AgencyHostingWebsitesApi;
|
|
@@ -2720,17 +2720,17 @@ const AgencyHostingWordPressApiAxiosParamCreator = function (configuration) {
|
|
|
2720
2720
|
return {
|
|
2721
2721
|
/**
|
|
2722
2722
|
* Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
|
|
2723
|
-
* @summary Change
|
|
2723
|
+
* @summary Change WordPress version
|
|
2724
2724
|
* @param {string} websiteUid Agency Plan website UID
|
|
2725
2725
|
* @param {AgencyHostingV1WordPressChangeVersionRequest} agencyHostingV1WordPressChangeVersionRequest
|
|
2726
2726
|
* @param {*} [options] Override http request option.
|
|
2727
2727
|
* @throws {RequiredError}
|
|
2728
2728
|
*/
|
|
2729
|
-
|
|
2729
|
+
changeWordPressVersionV1: (websiteUid_1, agencyHostingV1WordPressChangeVersionRequest_1, ...args_1) => __awaiter(this, [websiteUid_1, agencyHostingV1WordPressChangeVersionRequest_1, ...args_1], void 0, function* (websiteUid, agencyHostingV1WordPressChangeVersionRequest, options = {}) {
|
|
2730
2730
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2731
|
-
(0, common_1.assertParamExists)('
|
|
2731
|
+
(0, common_1.assertParamExists)('changeWordPressVersionV1', 'websiteUid', websiteUid);
|
|
2732
2732
|
// verify required parameter 'agencyHostingV1WordPressChangeVersionRequest' is not null or undefined
|
|
2733
|
-
(0, common_1.assertParamExists)('
|
|
2733
|
+
(0, common_1.assertParamExists)('changeWordPressVersionV1', 'agencyHostingV1WordPressChangeVersionRequest', agencyHostingV1WordPressChangeVersionRequest);
|
|
2734
2734
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version`
|
|
2735
2735
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2736
2736
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2757,14 +2757,14 @@ const AgencyHostingWordPressApiAxiosParamCreator = function (configuration) {
|
|
|
2757
2757
|
}),
|
|
2758
2758
|
/**
|
|
2759
2759
|
* Returns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
2760
|
-
* @summary Get
|
|
2760
|
+
* @summary Get WordPress settings
|
|
2761
2761
|
* @param {string} websiteUid Agency Plan website UID
|
|
2762
2762
|
* @param {*} [options] Override http request option.
|
|
2763
2763
|
* @throws {RequiredError}
|
|
2764
2764
|
*/
|
|
2765
|
-
|
|
2765
|
+
getWordPressSettingsV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2766
2766
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2767
|
-
(0, common_1.assertParamExists)('
|
|
2767
|
+
(0, common_1.assertParamExists)('getWordPressSettingsV1', 'websiteUid', websiteUid);
|
|
2768
2768
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings`
|
|
2769
2769
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2770
2770
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2789,14 +2789,14 @@ const AgencyHostingWordPressApiAxiosParamCreator = function (configuration) {
|
|
|
2789
2789
|
}),
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Lists the WordPress core versions available for installation on an Agency Plan website.
|
|
2792
|
-
* @summary List available WordPress versions
|
|
2792
|
+
* @summary List available WordPress versions
|
|
2793
2793
|
* @param {string} websiteUid Agency Plan website UID
|
|
2794
2794
|
* @param {*} [options] Override http request option.
|
|
2795
2795
|
* @throws {RequiredError}
|
|
2796
2796
|
*/
|
|
2797
|
-
|
|
2797
|
+
listAvailableWordPressVersionsV1: (websiteUid_1, ...args_1) => __awaiter(this, [websiteUid_1, ...args_1], void 0, function* (websiteUid, options = {}) {
|
|
2798
2798
|
// verify required parameter 'websiteUid' is not null or undefined
|
|
2799
|
-
(0, common_1.assertParamExists)('
|
|
2799
|
+
(0, common_1.assertParamExists)('listAvailableWordPressVersionsV1', 'websiteUid', websiteUid);
|
|
2800
2800
|
const localVarPath = `/api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions`
|
|
2801
2801
|
.replace(`{${"website_uid"}}`, encodeURIComponent(String(websiteUid)));
|
|
2802
2802
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2831,47 +2831,47 @@ const AgencyHostingWordPressApiFp = function (configuration) {
|
|
|
2831
2831
|
return {
|
|
2832
2832
|
/**
|
|
2833
2833
|
* Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
|
|
2834
|
-
* @summary Change
|
|
2834
|
+
* @summary Change WordPress version
|
|
2835
2835
|
* @param {string} websiteUid Agency Plan website UID
|
|
2836
2836
|
* @param {AgencyHostingV1WordPressChangeVersionRequest} agencyHostingV1WordPressChangeVersionRequest
|
|
2837
2837
|
* @param {*} [options] Override http request option.
|
|
2838
2838
|
* @throws {RequiredError}
|
|
2839
2839
|
*/
|
|
2840
|
-
|
|
2840
|
+
changeWordPressVersionV1(websiteUid, agencyHostingV1WordPressChangeVersionRequest, options) {
|
|
2841
2841
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2842
2842
|
var _a, _b;
|
|
2843
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2844
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWordPressApi.
|
|
2843
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changeWordPressVersionV1(websiteUid, agencyHostingV1WordPressChangeVersionRequest, options);
|
|
2844
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWordPressApi.changeWordPressVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2845
2845
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2846
2846
|
});
|
|
2847
2847
|
},
|
|
2848
2848
|
/**
|
|
2849
2849
|
* Returns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
2850
|
-
* @summary Get
|
|
2850
|
+
* @summary Get WordPress settings
|
|
2851
2851
|
* @param {string} websiteUid Agency Plan website UID
|
|
2852
2852
|
* @param {*} [options] Override http request option.
|
|
2853
2853
|
* @throws {RequiredError}
|
|
2854
2854
|
*/
|
|
2855
|
-
|
|
2855
|
+
getWordPressSettingsV1(websiteUid, options) {
|
|
2856
2856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2857
2857
|
var _a, _b;
|
|
2858
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2859
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWordPressApi.
|
|
2858
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWordPressSettingsV1(websiteUid, options);
|
|
2859
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWordPressApi.getWordPressSettingsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2860
2860
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2861
2861
|
});
|
|
2862
2862
|
},
|
|
2863
2863
|
/**
|
|
2864
2864
|
* Lists the WordPress core versions available for installation on an Agency Plan website.
|
|
2865
|
-
* @summary List available WordPress versions
|
|
2865
|
+
* @summary List available WordPress versions
|
|
2866
2866
|
* @param {string} websiteUid Agency Plan website UID
|
|
2867
2867
|
* @param {*} [options] Override http request option.
|
|
2868
2868
|
* @throws {RequiredError}
|
|
2869
2869
|
*/
|
|
2870
|
-
|
|
2870
|
+
listAvailableWordPressVersionsV1(websiteUid, options) {
|
|
2871
2871
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2872
2872
|
var _a, _b;
|
|
2873
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2874
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWordPressApi.
|
|
2873
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressVersionsV1(websiteUid, options);
|
|
2874
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgencyHostingWordPressApi.listAvailableWordPressVersionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2875
2875
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2876
2876
|
});
|
|
2877
2877
|
},
|
|
@@ -2887,34 +2887,34 @@ const AgencyHostingWordPressApiFactory = function (configuration, basePath, axio
|
|
|
2887
2887
|
return {
|
|
2888
2888
|
/**
|
|
2889
2889
|
* Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
|
|
2890
|
-
* @summary Change
|
|
2890
|
+
* @summary Change WordPress version
|
|
2891
2891
|
* @param {string} websiteUid Agency Plan website UID
|
|
2892
2892
|
* @param {AgencyHostingV1WordPressChangeVersionRequest} agencyHostingV1WordPressChangeVersionRequest
|
|
2893
2893
|
* @param {*} [options] Override http request option.
|
|
2894
2894
|
* @throws {RequiredError}
|
|
2895
2895
|
*/
|
|
2896
|
-
|
|
2897
|
-
return localVarFp.
|
|
2896
|
+
changeWordPressVersionV1(websiteUid, agencyHostingV1WordPressChangeVersionRequest, options) {
|
|
2897
|
+
return localVarFp.changeWordPressVersionV1(websiteUid, agencyHostingV1WordPressChangeVersionRequest, options).then((request) => request(axios, basePath));
|
|
2898
2898
|
},
|
|
2899
2899
|
/**
|
|
2900
2900
|
* Returns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
2901
|
-
* @summary Get
|
|
2901
|
+
* @summary Get WordPress settings
|
|
2902
2902
|
* @param {string} websiteUid Agency Plan website UID
|
|
2903
2903
|
* @param {*} [options] Override http request option.
|
|
2904
2904
|
* @throws {RequiredError}
|
|
2905
2905
|
*/
|
|
2906
|
-
|
|
2907
|
-
return localVarFp.
|
|
2906
|
+
getWordPressSettingsV1(websiteUid, options) {
|
|
2907
|
+
return localVarFp.getWordPressSettingsV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2908
2908
|
},
|
|
2909
2909
|
/**
|
|
2910
2910
|
* Lists the WordPress core versions available for installation on an Agency Plan website.
|
|
2911
|
-
* @summary List available WordPress versions
|
|
2911
|
+
* @summary List available WordPress versions
|
|
2912
2912
|
* @param {string} websiteUid Agency Plan website UID
|
|
2913
2913
|
* @param {*} [options] Override http request option.
|
|
2914
2914
|
* @throws {RequiredError}
|
|
2915
2915
|
*/
|
|
2916
|
-
|
|
2917
|
-
return localVarFp.
|
|
2916
|
+
listAvailableWordPressVersionsV1(websiteUid, options) {
|
|
2917
|
+
return localVarFp.listAvailableWordPressVersionsV1(websiteUid, options).then((request) => request(axios, basePath));
|
|
2918
2918
|
},
|
|
2919
2919
|
};
|
|
2920
2920
|
};
|
|
@@ -2928,37 +2928,37 @@ exports.AgencyHostingWordPressApiFactory = AgencyHostingWordPressApiFactory;
|
|
|
2928
2928
|
class AgencyHostingWordPressApi extends base_1.BaseAPI {
|
|
2929
2929
|
/**
|
|
2930
2930
|
* Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
|
|
2931
|
-
* @summary Change
|
|
2931
|
+
* @summary Change WordPress version
|
|
2932
2932
|
* @param {string} websiteUid Agency Plan website UID
|
|
2933
2933
|
* @param {AgencyHostingV1WordPressChangeVersionRequest} agencyHostingV1WordPressChangeVersionRequest
|
|
2934
2934
|
* @param {*} [options] Override http request option.
|
|
2935
2935
|
* @throws {RequiredError}
|
|
2936
2936
|
* @memberof AgencyHostingWordPressApi
|
|
2937
2937
|
*/
|
|
2938
|
-
|
|
2939
|
-
return (0, exports.AgencyHostingWordPressApiFp)(this.configuration).
|
|
2938
|
+
changeWordPressVersionV1(websiteUid, agencyHostingV1WordPressChangeVersionRequest, options) {
|
|
2939
|
+
return (0, exports.AgencyHostingWordPressApiFp)(this.configuration).changeWordPressVersionV1(websiteUid, agencyHostingV1WordPressChangeVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2940
2940
|
}
|
|
2941
2941
|
/**
|
|
2942
2942
|
* Returns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
2943
|
-
* @summary Get
|
|
2943
|
+
* @summary Get WordPress settings
|
|
2944
2944
|
* @param {string} websiteUid Agency Plan website UID
|
|
2945
2945
|
* @param {*} [options] Override http request option.
|
|
2946
2946
|
* @throws {RequiredError}
|
|
2947
2947
|
* @memberof AgencyHostingWordPressApi
|
|
2948
2948
|
*/
|
|
2949
|
-
|
|
2950
|
-
return (0, exports.AgencyHostingWordPressApiFp)(this.configuration).
|
|
2949
|
+
getWordPressSettingsV1(websiteUid, options) {
|
|
2950
|
+
return (0, exports.AgencyHostingWordPressApiFp)(this.configuration).getWordPressSettingsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2951
2951
|
}
|
|
2952
2952
|
/**
|
|
2953
2953
|
* Lists the WordPress core versions available for installation on an Agency Plan website.
|
|
2954
|
-
* @summary List available WordPress versions
|
|
2954
|
+
* @summary List available WordPress versions
|
|
2955
2955
|
* @param {string} websiteUid Agency Plan website UID
|
|
2956
2956
|
* @param {*} [options] Override http request option.
|
|
2957
2957
|
* @throws {RequiredError}
|
|
2958
2958
|
* @memberof AgencyHostingWordPressApi
|
|
2959
2959
|
*/
|
|
2960
|
-
|
|
2961
|
-
return (0, exports.AgencyHostingWordPressApiFp)(this.configuration).
|
|
2960
|
+
listAvailableWordPressVersionsV1(websiteUid, options) {
|
|
2961
|
+
return (0, exports.AgencyHostingWordPressApiFp)(this.configuration).listAvailableWordPressVersionsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
2964
|
exports.AgencyHostingWordPressApi = AgencyHostingWordPressApi;
|
|
@@ -7701,7 +7701,7 @@ const EcommerceProductsApiAxiosParamCreator = function (configuration) {
|
|
|
7701
7701
|
};
|
|
7702
7702
|
}),
|
|
7703
7703
|
/**
|
|
7704
|
-
*
|
|
7704
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7705
7705
|
* @summary Upload and attach a product image
|
|
7706
7706
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
7707
7707
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -7784,7 +7784,7 @@ const EcommerceProductsApiFp = function (configuration) {
|
|
|
7784
7784
|
});
|
|
7785
7785
|
},
|
|
7786
7786
|
/**
|
|
7787
|
-
*
|
|
7787
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7788
7788
|
* @summary Upload and attach a product image
|
|
7789
7789
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
7790
7790
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -7833,7 +7833,7 @@ const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
7833
7833
|
return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
|
|
7834
7834
|
},
|
|
7835
7835
|
/**
|
|
7836
|
-
*
|
|
7836
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7837
7837
|
* @summary Upload and attach a product image
|
|
7838
7838
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
7839
7839
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -7879,7 +7879,7 @@ class EcommerceProductsApi extends base_1.BaseAPI {
|
|
|
7879
7879
|
return (0, exports.EcommerceProductsApiFp)(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7880
7880
|
}
|
|
7881
7881
|
/**
|
|
7882
|
-
*
|
|
7882
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
7883
7883
|
* @summary Upload and attach a product image
|
|
7884
7884
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
7885
7885
|
* @param {string} productId The ID of the product to attach the image to.
|