hostinger-api-sdk 0.0.19 → 0.0.21
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 +1464 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +900 -23
- package/dist/api.js +956 -130
- 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 +900 -23
- package/dist/esm/api.js +926 -117
- 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/EcommercePaymentsApi.md +66 -0
- package/docs/EcommerceProductsApi.md +125 -0
- package/docs/EcommerceShippingApi.md +66 -0
- package/docs/EcommerceStoresApi.md +54 -0
- package/docs/EcommerceV1PaymentEnableManualPaymentRequest.md +20 -0
- package/docs/EcommerceV1PaymentManualPaymentResource.md +22 -0
- package/docs/EcommerceV1PaymentManualPaymentResourcePaymentMethod.md +26 -0
- package/docs/EcommerceV1ProductCreateDigitalProductRequest.md +28 -0
- package/docs/EcommerceV1ProductCreatePhysicalProductRequest.md +26 -0
- package/docs/EcommerceV1ProductProductCreationResource.md +22 -0
- package/docs/EcommerceV1ProductProductCreationResourceProduct.md +30 -0
- package/docs/EcommerceV1ShippingSetShippingRequest.md +20 -0
- package/docs/EcommerceV1ShippingShippingResource.md +22 -0
- package/docs/EcommerceV1ShippingShippingResourceShippingOption.md +24 -0
- package/docs/EcommerceV1StoreStoreDeleteResource.md +22 -0
- package/docs/HorizonsV1WebsitesCreateWebsiteRequest.md +20 -0
- package/docs/HorizonsV1WebsitesCreateWebsiteRequestMessageInner.md +22 -0
- package/docs/HorizonsV1WebsitesCreatedWebsiteResource.md +22 -0
- package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +20 -0
- package/docs/HorizonsWebsitesApi.md +117 -0
- package/docs/{ReachListSegmentContactsV1200Response.md → ReachListProfileSegmentContactsV1200Response.md} +3 -3
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +65 -2
- package/docs/ReachV1ProfilesDomainsDnsRecordStatus.md +24 -0
- package/docs/ReachV1ProfilesDomainsDnsRecordStatusActualInner.md +22 -0
- package/docs/ReachV1ProfilesDomainsDnsRecordStatusSuggestedInner.md +24 -0
- package/docs/ReachV1ProfilesDomainsDnsStatusResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.19.3
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -134,6 +134,10 @@ export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
|
134
134
|
Individual: 'individual',
|
|
135
135
|
Organization: 'organization'
|
|
136
136
|
};
|
|
137
|
+
export const EcommerceV1ProductProductCreationResourceProductTypeEnum = {
|
|
138
|
+
Physical: 'physical',
|
|
139
|
+
Digital: 'digital'
|
|
140
|
+
};
|
|
137
141
|
export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
|
|
138
142
|
Builder: 'builder',
|
|
139
143
|
Horizons: 'horizons',
|
|
@@ -145,6 +149,9 @@ export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
|
|
|
145
149
|
export const EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
|
|
146
150
|
Custom: 'custom'
|
|
147
151
|
};
|
|
152
|
+
export const HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
|
|
153
|
+
Text: 'text'
|
|
154
|
+
};
|
|
148
155
|
export const HostingV1DomainsParkedDomainResourceTypeEnum = {
|
|
149
156
|
Domain: 'domain',
|
|
150
157
|
Ip: 'ip'
|
|
@@ -3010,22 +3017,26 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
3010
3017
|
}
|
|
3011
3018
|
}
|
|
3012
3019
|
/**
|
|
3013
|
-
*
|
|
3020
|
+
* EcommercePaymentsApi - axios parameter creator
|
|
3014
3021
|
* @export
|
|
3015
3022
|
*/
|
|
3016
|
-
export const
|
|
3023
|
+
export const EcommercePaymentsApiAxiosParamCreator = function (configuration) {
|
|
3017
3024
|
return {
|
|
3018
3025
|
/**
|
|
3019
|
-
*
|
|
3020
|
-
* @summary
|
|
3021
|
-
* @param {
|
|
3026
|
+
* Enable a manual payment method so the store can accept orders without an online payment provider.
|
|
3027
|
+
* @summary Enable manual payment method
|
|
3028
|
+
* @param {string} storeId The ID of the store to enable manual payment for.
|
|
3029
|
+
* @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
|
|
3022
3030
|
* @param {*} [options] Override http request option.
|
|
3023
3031
|
* @throws {RequiredError}
|
|
3024
3032
|
*/
|
|
3025
|
-
|
|
3026
|
-
// verify required parameter '
|
|
3027
|
-
assertParamExists('
|
|
3028
|
-
|
|
3033
|
+
enableManualPaymentMethodV1: (storeId_1, ecommerceV1PaymentEnableManualPaymentRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1PaymentEnableManualPaymentRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1PaymentEnableManualPaymentRequest, options = {}) {
|
|
3034
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3035
|
+
assertParamExists('enableManualPaymentMethodV1', 'storeId', storeId);
|
|
3036
|
+
// verify required parameter 'ecommerceV1PaymentEnableManualPaymentRequest' is not null or undefined
|
|
3037
|
+
assertParamExists('enableManualPaymentMethodV1', 'ecommerceV1PaymentEnableManualPaymentRequest', ecommerceV1PaymentEnableManualPaymentRequest);
|
|
3038
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/payment-methods/manual`
|
|
3039
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3029
3040
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3030
3041
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3031
3042
|
let baseOptions;
|
|
@@ -3042,39 +3053,154 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
|
3042
3053
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3043
3054
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3044
3055
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3045
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3056
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1PaymentEnableManualPaymentRequest, localVarRequestOptions, configuration);
|
|
3046
3057
|
return {
|
|
3047
3058
|
url: toPathString(localVarUrlObj),
|
|
3048
3059
|
options: localVarRequestOptions,
|
|
3049
3060
|
};
|
|
3050
3061
|
}),
|
|
3062
|
+
};
|
|
3063
|
+
};
|
|
3064
|
+
/**
|
|
3065
|
+
* EcommercePaymentsApi - functional programming interface
|
|
3066
|
+
* @export
|
|
3067
|
+
*/
|
|
3068
|
+
export const EcommercePaymentsApiFp = function (configuration) {
|
|
3069
|
+
const localVarAxiosParamCreator = EcommercePaymentsApiAxiosParamCreator(configuration);
|
|
3070
|
+
return {
|
|
3051
3071
|
/**
|
|
3052
|
-
*
|
|
3053
|
-
* @summary
|
|
3054
|
-
* @param {
|
|
3072
|
+
* Enable a manual payment method so the store can accept orders without an online payment provider.
|
|
3073
|
+
* @summary Enable manual payment method
|
|
3074
|
+
* @param {string} storeId The ID of the store to enable manual payment for.
|
|
3075
|
+
* @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
|
|
3055
3076
|
* @param {*} [options] Override http request option.
|
|
3056
3077
|
* @throws {RequiredError}
|
|
3057
3078
|
*/
|
|
3058
|
-
|
|
3059
|
-
|
|
3079
|
+
enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
|
|
3080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3081
|
+
var _a, _b;
|
|
3082
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options);
|
|
3083
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommercePaymentsApi.enableManualPaymentMethodV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3084
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3085
|
+
});
|
|
3086
|
+
},
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
/**
|
|
3090
|
+
* EcommercePaymentsApi - factory interface
|
|
3091
|
+
* @export
|
|
3092
|
+
*/
|
|
3093
|
+
export const EcommercePaymentsApiFactory = function (configuration, basePath, axios) {
|
|
3094
|
+
const localVarFp = EcommercePaymentsApiFp(configuration);
|
|
3095
|
+
return {
|
|
3096
|
+
/**
|
|
3097
|
+
* Enable a manual payment method so the store can accept orders without an online payment provider.
|
|
3098
|
+
* @summary Enable manual payment method
|
|
3099
|
+
* @param {string} storeId The ID of the store to enable manual payment for.
|
|
3100
|
+
* @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
|
|
3101
|
+
* @param {*} [options] Override http request option.
|
|
3102
|
+
* @throws {RequiredError}
|
|
3103
|
+
*/
|
|
3104
|
+
enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
|
|
3105
|
+
return localVarFp.enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(axios, basePath));
|
|
3106
|
+
},
|
|
3107
|
+
};
|
|
3108
|
+
};
|
|
3109
|
+
/**
|
|
3110
|
+
* EcommercePaymentsApi - object-oriented interface
|
|
3111
|
+
* @export
|
|
3112
|
+
* @class EcommercePaymentsApi
|
|
3113
|
+
* @extends {BaseAPI}
|
|
3114
|
+
*/
|
|
3115
|
+
export class EcommercePaymentsApi extends BaseAPI {
|
|
3116
|
+
/**
|
|
3117
|
+
* Enable a manual payment method so the store can accept orders without an online payment provider.
|
|
3118
|
+
* @summary Enable manual payment method
|
|
3119
|
+
* @param {string} storeId The ID of the store to enable manual payment for.
|
|
3120
|
+
* @param {EcommerceV1PaymentEnableManualPaymentRequest} ecommerceV1PaymentEnableManualPaymentRequest
|
|
3121
|
+
* @param {*} [options] Override http request option.
|
|
3122
|
+
* @throws {RequiredError}
|
|
3123
|
+
* @memberof EcommercePaymentsApi
|
|
3124
|
+
*/
|
|
3125
|
+
enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options) {
|
|
3126
|
+
return EcommercePaymentsApiFp(this.configuration).enableManualPaymentMethodV1(storeId, ecommerceV1PaymentEnableManualPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
/**
|
|
3130
|
+
* EcommerceProductsApi - axios parameter creator
|
|
3131
|
+
* @export
|
|
3132
|
+
*/
|
|
3133
|
+
export const EcommerceProductsApiAxiosParamCreator = function (configuration) {
|
|
3134
|
+
return {
|
|
3135
|
+
/**
|
|
3136
|
+
* Create a published digital product with a single variant and an optional external download link.
|
|
3137
|
+
* @summary Create digital product
|
|
3138
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3139
|
+
* @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
|
|
3140
|
+
* @param {*} [options] Override http request option.
|
|
3141
|
+
* @throws {RequiredError}
|
|
3142
|
+
*/
|
|
3143
|
+
createDigitalProductV1: (storeId_1, ecommerceV1ProductCreateDigitalProductRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ProductCreateDigitalProductRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ProductCreateDigitalProductRequest, options = {}) {
|
|
3144
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3145
|
+
assertParamExists('createDigitalProductV1', 'storeId', storeId);
|
|
3146
|
+
// verify required parameter 'ecommerceV1ProductCreateDigitalProductRequest' is not null or undefined
|
|
3147
|
+
assertParamExists('createDigitalProductV1', 'ecommerceV1ProductCreateDigitalProductRequest', ecommerceV1ProductCreateDigitalProductRequest);
|
|
3148
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/digital`
|
|
3149
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3060
3150
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3061
3151
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3062
3152
|
let baseOptions;
|
|
3063
3153
|
if (configuration) {
|
|
3064
3154
|
baseOptions = configuration.baseOptions;
|
|
3065
3155
|
}
|
|
3066
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3156
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3067
3157
|
const localVarHeaderParameter = {};
|
|
3068
3158
|
const localVarQueryParameter = {};
|
|
3069
3159
|
// authentication apiToken required
|
|
3070
3160
|
// http bearer authentication required
|
|
3071
3161
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3072
|
-
|
|
3073
|
-
|
|
3162
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3165
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3166
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreateDigitalProductRequest, localVarRequestOptions, configuration);
|
|
3167
|
+
return {
|
|
3168
|
+
url: toPathString(localVarUrlObj),
|
|
3169
|
+
options: localVarRequestOptions,
|
|
3170
|
+
};
|
|
3171
|
+
}),
|
|
3172
|
+
/**
|
|
3173
|
+
* Create a published physical product with a single variant priced in the store currency.
|
|
3174
|
+
* @summary Create physical product
|
|
3175
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3176
|
+
* @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
|
|
3177
|
+
* @param {*} [options] Override http request option.
|
|
3178
|
+
* @throws {RequiredError}
|
|
3179
|
+
*/
|
|
3180
|
+
createPhysicalProductV1: (storeId_1, ecommerceV1ProductCreatePhysicalProductRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ProductCreatePhysicalProductRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ProductCreatePhysicalProductRequest, options = {}) {
|
|
3181
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3182
|
+
assertParamExists('createPhysicalProductV1', 'storeId', storeId);
|
|
3183
|
+
// verify required parameter 'ecommerceV1ProductCreatePhysicalProductRequest' is not null or undefined
|
|
3184
|
+
assertParamExists('createPhysicalProductV1', 'ecommerceV1ProductCreatePhysicalProductRequest', ecommerceV1ProductCreatePhysicalProductRequest);
|
|
3185
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/products/physical`
|
|
3186
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3188
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3189
|
+
let baseOptions;
|
|
3190
|
+
if (configuration) {
|
|
3191
|
+
baseOptions = configuration.baseOptions;
|
|
3074
3192
|
}
|
|
3193
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3194
|
+
const localVarHeaderParameter = {};
|
|
3195
|
+
const localVarQueryParameter = {};
|
|
3196
|
+
// authentication apiToken required
|
|
3197
|
+
// http bearer authentication required
|
|
3198
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3199
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3075
3200
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3076
3201
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3077
3202
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3203
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ProductCreatePhysicalProductRequest, localVarRequestOptions, configuration);
|
|
3078
3204
|
return {
|
|
3079
3205
|
url: toPathString(localVarUrlObj),
|
|
3080
3206
|
options: localVarRequestOptions,
|
|
@@ -3083,135 +3209,137 @@ export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
|
3083
3209
|
};
|
|
3084
3210
|
};
|
|
3085
3211
|
/**
|
|
3086
|
-
*
|
|
3212
|
+
* EcommerceProductsApi - functional programming interface
|
|
3087
3213
|
* @export
|
|
3088
3214
|
*/
|
|
3089
|
-
export const
|
|
3090
|
-
const localVarAxiosParamCreator =
|
|
3215
|
+
export const EcommerceProductsApiFp = function (configuration) {
|
|
3216
|
+
const localVarAxiosParamCreator = EcommerceProductsApiAxiosParamCreator(configuration);
|
|
3091
3217
|
return {
|
|
3092
3218
|
/**
|
|
3093
|
-
* Create a
|
|
3094
|
-
* @summary Create
|
|
3095
|
-
* @param {
|
|
3219
|
+
* Create a published digital product with a single variant and an optional external download link.
|
|
3220
|
+
* @summary Create digital product
|
|
3221
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3222
|
+
* @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
|
|
3096
3223
|
* @param {*} [options] Override http request option.
|
|
3097
3224
|
* @throws {RequiredError}
|
|
3098
3225
|
*/
|
|
3099
|
-
|
|
3226
|
+
createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
|
|
3100
3227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3101
3228
|
var _a, _b;
|
|
3102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3103
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
3229
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options);
|
|
3230
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceProductsApi.createDigitalProductV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3104
3231
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3105
3232
|
});
|
|
3106
3233
|
},
|
|
3107
3234
|
/**
|
|
3108
|
-
*
|
|
3109
|
-
* @summary
|
|
3110
|
-
* @param {
|
|
3235
|
+
* Create a published physical product with a single variant priced in the store currency.
|
|
3236
|
+
* @summary Create physical product
|
|
3237
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3238
|
+
* @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
|
|
3111
3239
|
* @param {*} [options] Override http request option.
|
|
3112
3240
|
* @throws {RequiredError}
|
|
3113
3241
|
*/
|
|
3114
|
-
|
|
3242
|
+
createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
|
|
3115
3243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3116
3244
|
var _a, _b;
|
|
3117
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3118
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
3245
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options);
|
|
3246
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceProductsApi.createPhysicalProductV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3119
3247
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3120
3248
|
});
|
|
3121
3249
|
},
|
|
3122
3250
|
};
|
|
3123
3251
|
};
|
|
3124
3252
|
/**
|
|
3125
|
-
*
|
|
3253
|
+
* EcommerceProductsApi - factory interface
|
|
3126
3254
|
* @export
|
|
3127
3255
|
*/
|
|
3128
|
-
export const
|
|
3129
|
-
const localVarFp =
|
|
3256
|
+
export const EcommerceProductsApiFactory = function (configuration, basePath, axios) {
|
|
3257
|
+
const localVarFp = EcommerceProductsApiFp(configuration);
|
|
3130
3258
|
return {
|
|
3131
3259
|
/**
|
|
3132
|
-
* Create a
|
|
3133
|
-
* @summary Create
|
|
3134
|
-
* @param {
|
|
3260
|
+
* Create a published digital product with a single variant and an optional external download link.
|
|
3261
|
+
* @summary Create digital product
|
|
3262
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3263
|
+
* @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
|
|
3135
3264
|
* @param {*} [options] Override http request option.
|
|
3136
3265
|
* @throws {RequiredError}
|
|
3137
3266
|
*/
|
|
3138
|
-
|
|
3139
|
-
return localVarFp.
|
|
3267
|
+
createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
|
|
3268
|
+
return localVarFp.createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(axios, basePath));
|
|
3140
3269
|
},
|
|
3141
3270
|
/**
|
|
3142
|
-
*
|
|
3143
|
-
* @summary
|
|
3144
|
-
* @param {
|
|
3271
|
+
* Create a published physical product with a single variant priced in the store currency.
|
|
3272
|
+
* @summary Create physical product
|
|
3273
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3274
|
+
* @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
|
|
3145
3275
|
* @param {*} [options] Override http request option.
|
|
3146
3276
|
* @throws {RequiredError}
|
|
3147
3277
|
*/
|
|
3148
|
-
|
|
3149
|
-
return localVarFp.
|
|
3278
|
+
createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
|
|
3279
|
+
return localVarFp.createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(axios, basePath));
|
|
3150
3280
|
},
|
|
3151
3281
|
};
|
|
3152
3282
|
};
|
|
3153
3283
|
/**
|
|
3154
|
-
*
|
|
3284
|
+
* EcommerceProductsApi - object-oriented interface
|
|
3155
3285
|
* @export
|
|
3156
|
-
* @class
|
|
3286
|
+
* @class EcommerceProductsApi
|
|
3157
3287
|
* @extends {BaseAPI}
|
|
3158
3288
|
*/
|
|
3159
|
-
export class
|
|
3289
|
+
export class EcommerceProductsApi extends BaseAPI {
|
|
3160
3290
|
/**
|
|
3161
|
-
* Create a
|
|
3162
|
-
* @summary Create
|
|
3163
|
-
* @param {
|
|
3291
|
+
* Create a published digital product with a single variant and an optional external download link.
|
|
3292
|
+
* @summary Create digital product
|
|
3293
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3294
|
+
* @param {EcommerceV1ProductCreateDigitalProductRequest} ecommerceV1ProductCreateDigitalProductRequest
|
|
3164
3295
|
* @param {*} [options] Override http request option.
|
|
3165
3296
|
* @throws {RequiredError}
|
|
3166
|
-
* @memberof
|
|
3297
|
+
* @memberof EcommerceProductsApi
|
|
3167
3298
|
*/
|
|
3168
|
-
|
|
3169
|
-
return
|
|
3299
|
+
createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options) {
|
|
3300
|
+
return EcommerceProductsApiFp(this.configuration).createDigitalProductV1(storeId, ecommerceV1ProductCreateDigitalProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3170
3301
|
}
|
|
3171
3302
|
/**
|
|
3172
|
-
*
|
|
3173
|
-
* @summary
|
|
3174
|
-
* @param {
|
|
3303
|
+
* Create a published physical product with a single variant priced in the store currency.
|
|
3304
|
+
* @summary Create physical product
|
|
3305
|
+
* @param {string} storeId The ID of the store to create the product in.
|
|
3306
|
+
* @param {EcommerceV1ProductCreatePhysicalProductRequest} ecommerceV1ProductCreatePhysicalProductRequest
|
|
3175
3307
|
* @param {*} [options] Override http request option.
|
|
3176
3308
|
* @throws {RequiredError}
|
|
3177
|
-
* @memberof
|
|
3309
|
+
* @memberof EcommerceProductsApi
|
|
3178
3310
|
*/
|
|
3179
|
-
|
|
3180
|
-
return
|
|
3311
|
+
createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options) {
|
|
3312
|
+
return EcommerceProductsApiFp(this.configuration).createPhysicalProductV1(storeId, ecommerceV1ProductCreatePhysicalProductRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3181
3313
|
}
|
|
3182
3314
|
}
|
|
3183
3315
|
/**
|
|
3184
|
-
*
|
|
3316
|
+
* EcommerceShippingApi - axios parameter creator
|
|
3185
3317
|
* @export
|
|
3186
3318
|
*/
|
|
3187
|
-
export const
|
|
3319
|
+
export const EcommerceShippingApiAxiosParamCreator = function (configuration) {
|
|
3188
3320
|
return {
|
|
3189
3321
|
/**
|
|
3190
|
-
*
|
|
3191
|
-
* @summary
|
|
3192
|
-
* @param {string}
|
|
3193
|
-
* @param {
|
|
3194
|
-
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
3322
|
+
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
3323
|
+
* @summary Set store shipping
|
|
3324
|
+
* @param {string} storeId The ID of the store to configure shipping for.
|
|
3325
|
+
* @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
|
|
3195
3326
|
* @param {*} [options] Override http request option.
|
|
3196
3327
|
* @throws {RequiredError}
|
|
3197
3328
|
*/
|
|
3198
|
-
|
|
3199
|
-
// verify required parameter '
|
|
3200
|
-
assertParamExists('
|
|
3201
|
-
// verify required parameter '
|
|
3202
|
-
assertParamExists('
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
|
|
3206
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3207
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3329
|
+
setStoreShippingV1: (storeId_1, ecommerceV1ShippingSetShippingRequest_1, ...args_1) => __awaiter(this, [storeId_1, ecommerceV1ShippingSetShippingRequest_1, ...args_1], void 0, function* (storeId, ecommerceV1ShippingSetShippingRequest, options = {}) {
|
|
3330
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3331
|
+
assertParamExists('setStoreShippingV1', 'storeId', storeId);
|
|
3332
|
+
// verify required parameter 'ecommerceV1ShippingSetShippingRequest' is not null or undefined
|
|
3333
|
+
assertParamExists('setStoreShippingV1', 'ecommerceV1ShippingSetShippingRequest', ecommerceV1ShippingSetShippingRequest);
|
|
3334
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}/shipping`
|
|
3335
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3208
3336
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3209
3337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3210
3338
|
let baseOptions;
|
|
3211
3339
|
if (configuration) {
|
|
3212
3340
|
baseOptions = configuration.baseOptions;
|
|
3213
3341
|
}
|
|
3214
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3215
3343
|
const localVarHeaderParameter = {};
|
|
3216
3344
|
const localVarQueryParameter = {};
|
|
3217
3345
|
// authentication apiToken required
|
|
@@ -3221,27 +3349,96 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
3221
3349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3222
3350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3223
3351
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3224
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3352
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1ShippingSetShippingRequest, localVarRequestOptions, configuration);
|
|
3225
3353
|
return {
|
|
3226
3354
|
url: toPathString(localVarUrlObj),
|
|
3227
3355
|
options: localVarRequestOptions,
|
|
3228
3356
|
};
|
|
3229
3357
|
}),
|
|
3358
|
+
};
|
|
3359
|
+
};
|
|
3360
|
+
/**
|
|
3361
|
+
* EcommerceShippingApi - functional programming interface
|
|
3362
|
+
* @export
|
|
3363
|
+
*/
|
|
3364
|
+
export const EcommerceShippingApiFp = function (configuration) {
|
|
3365
|
+
const localVarAxiosParamCreator = EcommerceShippingApiAxiosParamCreator(configuration);
|
|
3366
|
+
return {
|
|
3230
3367
|
/**
|
|
3231
|
-
*
|
|
3232
|
-
* @summary
|
|
3233
|
-
* @param {string}
|
|
3234
|
-
* @param {
|
|
3368
|
+
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
3369
|
+
* @summary Set store shipping
|
|
3370
|
+
* @param {string} storeId The ID of the store to configure shipping for.
|
|
3371
|
+
* @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
|
|
3235
3372
|
* @param {*} [options] Override http request option.
|
|
3236
3373
|
* @throws {RequiredError}
|
|
3237
3374
|
*/
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3375
|
+
setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
|
|
3376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3377
|
+
var _a, _b;
|
|
3378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options);
|
|
3379
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceShippingApi.setStoreShippingV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3380
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3381
|
+
});
|
|
3382
|
+
},
|
|
3383
|
+
};
|
|
3384
|
+
};
|
|
3385
|
+
/**
|
|
3386
|
+
* EcommerceShippingApi - factory interface
|
|
3387
|
+
* @export
|
|
3388
|
+
*/
|
|
3389
|
+
export const EcommerceShippingApiFactory = function (configuration, basePath, axios) {
|
|
3390
|
+
const localVarFp = EcommerceShippingApiFp(configuration);
|
|
3391
|
+
return {
|
|
3392
|
+
/**
|
|
3393
|
+
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
3394
|
+
* @summary Set store shipping
|
|
3395
|
+
* @param {string} storeId The ID of the store to configure shipping for.
|
|
3396
|
+
* @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
|
|
3397
|
+
* @param {*} [options] Override http request option.
|
|
3398
|
+
* @throws {RequiredError}
|
|
3399
|
+
*/
|
|
3400
|
+
setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
|
|
3401
|
+
return localVarFp.setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(axios, basePath));
|
|
3402
|
+
},
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
/**
|
|
3406
|
+
* EcommerceShippingApi - object-oriented interface
|
|
3407
|
+
* @export
|
|
3408
|
+
* @class EcommerceShippingApi
|
|
3409
|
+
* @extends {BaseAPI}
|
|
3410
|
+
*/
|
|
3411
|
+
export class EcommerceShippingApi extends BaseAPI {
|
|
3412
|
+
/**
|
|
3413
|
+
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
3414
|
+
* @summary Set store shipping
|
|
3415
|
+
* @param {string} storeId The ID of the store to configure shipping for.
|
|
3416
|
+
* @param {EcommerceV1ShippingSetShippingRequest} ecommerceV1ShippingSetShippingRequest
|
|
3417
|
+
* @param {*} [options] Override http request option.
|
|
3418
|
+
* @throws {RequiredError}
|
|
3419
|
+
* @memberof EcommerceShippingApi
|
|
3420
|
+
*/
|
|
3421
|
+
setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options) {
|
|
3422
|
+
return EcommerceShippingApiFp(this.configuration).setStoreShippingV1(storeId, ecommerceV1ShippingSetShippingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3423
|
+
}
|
|
3424
|
+
}
|
|
3425
|
+
/**
|
|
3426
|
+
* EcommerceStoresApi - axios parameter creator
|
|
3427
|
+
* @export
|
|
3428
|
+
*/
|
|
3429
|
+
export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
3430
|
+
return {
|
|
3431
|
+
/**
|
|
3432
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3433
|
+
* @summary Create store
|
|
3434
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
3435
|
+
* @param {*} [options] Override http request option.
|
|
3436
|
+
* @throws {RequiredError}
|
|
3437
|
+
*/
|
|
3438
|
+
createStoreV1: (ecommerceV1StoreStoreRequest_1, ...args_1) => __awaiter(this, [ecommerceV1StoreStoreRequest_1, ...args_1], void 0, function* (ecommerceV1StoreStoreRequest, options = {}) {
|
|
3439
|
+
// verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
|
|
3440
|
+
assertParamExists('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest);
|
|
3441
|
+
const localVarPath = `/api/ecommerce/v1/stores`;
|
|
3245
3442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3246
3443
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3247
3444
|
let baseOptions;
|
|
@@ -3258,28 +3455,24 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
3258
3455
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3259
3456
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3260
3457
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3261
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3458
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
|
|
3262
3459
|
return {
|
|
3263
3460
|
url: toPathString(localVarUrlObj),
|
|
3264
3461
|
options: localVarRequestOptions,
|
|
3265
3462
|
};
|
|
3266
3463
|
}),
|
|
3267
3464
|
/**
|
|
3268
|
-
*
|
|
3269
|
-
* @summary Delete
|
|
3270
|
-
* @param {string}
|
|
3271
|
-
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3465
|
+
* Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
|
|
3466
|
+
* @summary Delete store
|
|
3467
|
+
* @param {string} storeId The ID of the store to delete.
|
|
3272
3468
|
* @param {*} [options] Override http request option.
|
|
3273
3469
|
* @throws {RequiredError}
|
|
3274
3470
|
*/
|
|
3275
|
-
|
|
3276
|
-
// verify required parameter '
|
|
3277
|
-
assertParamExists('
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
|
|
3281
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3282
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3471
|
+
deleteStoreV1: (storeId_1, ...args_1) => __awaiter(this, [storeId_1, ...args_1], void 0, function* (storeId, options = {}) {
|
|
3472
|
+
// verify required parameter 'storeId' is not null or undefined
|
|
3473
|
+
assertParamExists('deleteStoreV1', 'storeId', storeId);
|
|
3474
|
+
const localVarPath = `/api/ecommerce/v1/stores/{store_id}`
|
|
3475
|
+
.replace(`{${"store_id"}}`, encodeURIComponent(String(storeId)));
|
|
3283
3476
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3284
3477
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3285
3478
|
let baseOptions;
|
|
@@ -3301,21 +3494,480 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
3301
3494
|
};
|
|
3302
3495
|
}),
|
|
3303
3496
|
/**
|
|
3304
|
-
*
|
|
3305
|
-
* @summary Get
|
|
3306
|
-
* @param {
|
|
3307
|
-
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3497
|
+
* Retrieve the stores associated with your account.
|
|
3498
|
+
* @summary Get stores
|
|
3499
|
+
* @param {number} [page] Page number
|
|
3308
3500
|
* @param {*} [options] Override http request option.
|
|
3309
3501
|
* @throws {RequiredError}
|
|
3310
3502
|
*/
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
.
|
|
3318
|
-
|
|
3503
|
+
getStoresV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
|
|
3504
|
+
const localVarPath = `/api/ecommerce/v1/stores`;
|
|
3505
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3506
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3507
|
+
let baseOptions;
|
|
3508
|
+
if (configuration) {
|
|
3509
|
+
baseOptions = configuration.baseOptions;
|
|
3510
|
+
}
|
|
3511
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3512
|
+
const localVarHeaderParameter = {};
|
|
3513
|
+
const localVarQueryParameter = {};
|
|
3514
|
+
// authentication apiToken required
|
|
3515
|
+
// http bearer authentication required
|
|
3516
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3517
|
+
if (page !== undefined) {
|
|
3518
|
+
localVarQueryParameter['page'] = page;
|
|
3519
|
+
}
|
|
3520
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3521
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3522
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3523
|
+
return {
|
|
3524
|
+
url: toPathString(localVarUrlObj),
|
|
3525
|
+
options: localVarRequestOptions,
|
|
3526
|
+
};
|
|
3527
|
+
}),
|
|
3528
|
+
};
|
|
3529
|
+
};
|
|
3530
|
+
/**
|
|
3531
|
+
* EcommerceStoresApi - functional programming interface
|
|
3532
|
+
* @export
|
|
3533
|
+
*/
|
|
3534
|
+
export const EcommerceStoresApiFp = function (configuration) {
|
|
3535
|
+
const localVarAxiosParamCreator = EcommerceStoresApiAxiosParamCreator(configuration);
|
|
3536
|
+
return {
|
|
3537
|
+
/**
|
|
3538
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3539
|
+
* @summary Create store
|
|
3540
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
3541
|
+
* @param {*} [options] Override http request option.
|
|
3542
|
+
* @throws {RequiredError}
|
|
3543
|
+
*/
|
|
3544
|
+
createStoreV1(ecommerceV1StoreStoreRequest, options) {
|
|
3545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3546
|
+
var _a, _b;
|
|
3547
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
|
|
3548
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.createStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3549
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3550
|
+
});
|
|
3551
|
+
},
|
|
3552
|
+
/**
|
|
3553
|
+
* Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
|
|
3554
|
+
* @summary Delete store
|
|
3555
|
+
* @param {string} storeId The ID of the store to delete.
|
|
3556
|
+
* @param {*} [options] Override http request option.
|
|
3557
|
+
* @throws {RequiredError}
|
|
3558
|
+
*/
|
|
3559
|
+
deleteStoreV1(storeId, options) {
|
|
3560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3561
|
+
var _a, _b;
|
|
3562
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteStoreV1(storeId, options);
|
|
3563
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.deleteStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3565
|
+
});
|
|
3566
|
+
},
|
|
3567
|
+
/**
|
|
3568
|
+
* Retrieve the stores associated with your account.
|
|
3569
|
+
* @summary Get stores
|
|
3570
|
+
* @param {number} [page] Page number
|
|
3571
|
+
* @param {*} [options] Override http request option.
|
|
3572
|
+
* @throws {RequiredError}
|
|
3573
|
+
*/
|
|
3574
|
+
getStoresV1(page, options) {
|
|
3575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3576
|
+
var _a, _b;
|
|
3577
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoresV1(page, options);
|
|
3578
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.getStoresV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3579
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3580
|
+
});
|
|
3581
|
+
},
|
|
3582
|
+
};
|
|
3583
|
+
};
|
|
3584
|
+
/**
|
|
3585
|
+
* EcommerceStoresApi - factory interface
|
|
3586
|
+
* @export
|
|
3587
|
+
*/
|
|
3588
|
+
export const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
|
|
3589
|
+
const localVarFp = EcommerceStoresApiFp(configuration);
|
|
3590
|
+
return {
|
|
3591
|
+
/**
|
|
3592
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3593
|
+
* @summary Create store
|
|
3594
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
3595
|
+
* @param {*} [options] Override http request option.
|
|
3596
|
+
* @throws {RequiredError}
|
|
3597
|
+
*/
|
|
3598
|
+
createStoreV1(ecommerceV1StoreStoreRequest, options) {
|
|
3599
|
+
return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
|
|
3600
|
+
},
|
|
3601
|
+
/**
|
|
3602
|
+
* Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
|
|
3603
|
+
* @summary Delete store
|
|
3604
|
+
* @param {string} storeId The ID of the store to delete.
|
|
3605
|
+
* @param {*} [options] Override http request option.
|
|
3606
|
+
* @throws {RequiredError}
|
|
3607
|
+
*/
|
|
3608
|
+
deleteStoreV1(storeId, options) {
|
|
3609
|
+
return localVarFp.deleteStoreV1(storeId, options).then((request) => request(axios, basePath));
|
|
3610
|
+
},
|
|
3611
|
+
/**
|
|
3612
|
+
* Retrieve the stores associated with your account.
|
|
3613
|
+
* @summary Get stores
|
|
3614
|
+
* @param {number} [page] Page number
|
|
3615
|
+
* @param {*} [options] Override http request option.
|
|
3616
|
+
* @throws {RequiredError}
|
|
3617
|
+
*/
|
|
3618
|
+
getStoresV1(page, options) {
|
|
3619
|
+
return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
|
|
3620
|
+
},
|
|
3621
|
+
};
|
|
3622
|
+
};
|
|
3623
|
+
/**
|
|
3624
|
+
* EcommerceStoresApi - object-oriented interface
|
|
3625
|
+
* @export
|
|
3626
|
+
* @class EcommerceStoresApi
|
|
3627
|
+
* @extends {BaseAPI}
|
|
3628
|
+
*/
|
|
3629
|
+
export class EcommerceStoresApi extends BaseAPI {
|
|
3630
|
+
/**
|
|
3631
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3632
|
+
* @summary Create store
|
|
3633
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
3634
|
+
* @param {*} [options] Override http request option.
|
|
3635
|
+
* @throws {RequiredError}
|
|
3636
|
+
* @memberof EcommerceStoresApi
|
|
3637
|
+
*/
|
|
3638
|
+
createStoreV1(ecommerceV1StoreStoreRequest, options) {
|
|
3639
|
+
return EcommerceStoresApiFp(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3640
|
+
}
|
|
3641
|
+
/**
|
|
3642
|
+
* Soft-delete a store owned by your account. The underlying store data is preserved; only the store is marked as deleted.
|
|
3643
|
+
* @summary Delete store
|
|
3644
|
+
* @param {string} storeId The ID of the store to delete.
|
|
3645
|
+
* @param {*} [options] Override http request option.
|
|
3646
|
+
* @throws {RequiredError}
|
|
3647
|
+
* @memberof EcommerceStoresApi
|
|
3648
|
+
*/
|
|
3649
|
+
deleteStoreV1(storeId, options) {
|
|
3650
|
+
return EcommerceStoresApiFp(this.configuration).deleteStoreV1(storeId, options).then((request) => request(this.axios, this.basePath));
|
|
3651
|
+
}
|
|
3652
|
+
/**
|
|
3653
|
+
* Retrieve the stores associated with your account.
|
|
3654
|
+
* @summary Get stores
|
|
3655
|
+
* @param {number} [page] Page number
|
|
3656
|
+
* @param {*} [options] Override http request option.
|
|
3657
|
+
* @throws {RequiredError}
|
|
3658
|
+
* @memberof EcommerceStoresApi
|
|
3659
|
+
*/
|
|
3660
|
+
getStoresV1(page, options) {
|
|
3661
|
+
return EcommerceStoresApiFp(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
/**
|
|
3665
|
+
* HorizonsWebsitesApi - axios parameter creator
|
|
3666
|
+
* @export
|
|
3667
|
+
*/
|
|
3668
|
+
export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
|
|
3669
|
+
return {
|
|
3670
|
+
/**
|
|
3671
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
3672
|
+
* @summary Create website
|
|
3673
|
+
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
3674
|
+
* @param {*} [options] Override http request option.
|
|
3675
|
+
* @throws {RequiredError}
|
|
3676
|
+
*/
|
|
3677
|
+
createWebsiteV1: (horizonsV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [horizonsV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (horizonsV1WebsitesCreateWebsiteRequest, options = {}) {
|
|
3678
|
+
// verify required parameter 'horizonsV1WebsitesCreateWebsiteRequest' is not null or undefined
|
|
3679
|
+
assertParamExists('createWebsiteV1', 'horizonsV1WebsitesCreateWebsiteRequest', horizonsV1WebsitesCreateWebsiteRequest);
|
|
3680
|
+
const localVarPath = `/api/horizons/v1/websites`;
|
|
3681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3682
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3683
|
+
let baseOptions;
|
|
3684
|
+
if (configuration) {
|
|
3685
|
+
baseOptions = configuration.baseOptions;
|
|
3686
|
+
}
|
|
3687
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3688
|
+
const localVarHeaderParameter = {};
|
|
3689
|
+
const localVarQueryParameter = {};
|
|
3690
|
+
// authentication apiToken required
|
|
3691
|
+
// http bearer authentication required
|
|
3692
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3693
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3694
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3695
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3696
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3697
|
+
localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration);
|
|
3698
|
+
return {
|
|
3699
|
+
url: toPathString(localVarUrlObj),
|
|
3700
|
+
options: localVarRequestOptions,
|
|
3701
|
+
};
|
|
3702
|
+
}),
|
|
3703
|
+
/**
|
|
3704
|
+
* Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
|
|
3705
|
+
* @summary Get website
|
|
3706
|
+
* @param {string} websiteId The website ID
|
|
3707
|
+
* @param {*} [options] Override http request option.
|
|
3708
|
+
* @throws {RequiredError}
|
|
3709
|
+
*/
|
|
3710
|
+
getWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
|
|
3711
|
+
// verify required parameter 'websiteId' is not null or undefined
|
|
3712
|
+
assertParamExists('getWebsiteV1', 'websiteId', websiteId);
|
|
3713
|
+
const localVarPath = `/api/horizons/v1/websites/{websiteId}`
|
|
3714
|
+
.replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
|
|
3715
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3717
|
+
let baseOptions;
|
|
3718
|
+
if (configuration) {
|
|
3719
|
+
baseOptions = configuration.baseOptions;
|
|
3720
|
+
}
|
|
3721
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3722
|
+
const localVarHeaderParameter = {};
|
|
3723
|
+
const localVarQueryParameter = {};
|
|
3724
|
+
// authentication apiToken required
|
|
3725
|
+
// http bearer authentication required
|
|
3726
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3727
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3728
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3729
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3730
|
+
return {
|
|
3731
|
+
url: toPathString(localVarUrlObj),
|
|
3732
|
+
options: localVarRequestOptions,
|
|
3733
|
+
};
|
|
3734
|
+
}),
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3737
|
+
/**
|
|
3738
|
+
* HorizonsWebsitesApi - functional programming interface
|
|
3739
|
+
* @export
|
|
3740
|
+
*/
|
|
3741
|
+
export const HorizonsWebsitesApiFp = function (configuration) {
|
|
3742
|
+
const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration);
|
|
3743
|
+
return {
|
|
3744
|
+
/**
|
|
3745
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
3746
|
+
* @summary Create website
|
|
3747
|
+
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
3748
|
+
* @param {*} [options] Override http request option.
|
|
3749
|
+
* @throws {RequiredError}
|
|
3750
|
+
*/
|
|
3751
|
+
createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
|
|
3752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3753
|
+
var _a, _b;
|
|
3754
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options);
|
|
3755
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.createWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3756
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3757
|
+
});
|
|
3758
|
+
},
|
|
3759
|
+
/**
|
|
3760
|
+
* Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
|
|
3761
|
+
* @summary Get website
|
|
3762
|
+
* @param {string} websiteId The website ID
|
|
3763
|
+
* @param {*} [options] Override http request option.
|
|
3764
|
+
* @throws {RequiredError}
|
|
3765
|
+
*/
|
|
3766
|
+
getWebsiteV1(websiteId, options) {
|
|
3767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3768
|
+
var _a, _b;
|
|
3769
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteV1(websiteId, options);
|
|
3770
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.getWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3771
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3772
|
+
});
|
|
3773
|
+
},
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
/**
|
|
3777
|
+
* HorizonsWebsitesApi - factory interface
|
|
3778
|
+
* @export
|
|
3779
|
+
*/
|
|
3780
|
+
export const HorizonsWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
3781
|
+
const localVarFp = HorizonsWebsitesApiFp(configuration);
|
|
3782
|
+
return {
|
|
3783
|
+
/**
|
|
3784
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
3785
|
+
* @summary Create website
|
|
3786
|
+
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
3787
|
+
* @param {*} [options] Override http request option.
|
|
3788
|
+
* @throws {RequiredError}
|
|
3789
|
+
*/
|
|
3790
|
+
createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
|
|
3791
|
+
return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
3792
|
+
},
|
|
3793
|
+
/**
|
|
3794
|
+
* Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
|
|
3795
|
+
* @summary Get website
|
|
3796
|
+
* @param {string} websiteId The website ID
|
|
3797
|
+
* @param {*} [options] Override http request option.
|
|
3798
|
+
* @throws {RequiredError}
|
|
3799
|
+
*/
|
|
3800
|
+
getWebsiteV1(websiteId, options) {
|
|
3801
|
+
return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
|
|
3802
|
+
},
|
|
3803
|
+
};
|
|
3804
|
+
};
|
|
3805
|
+
/**
|
|
3806
|
+
* HorizonsWebsitesApi - object-oriented interface
|
|
3807
|
+
* @export
|
|
3808
|
+
* @class HorizonsWebsitesApi
|
|
3809
|
+
* @extends {BaseAPI}
|
|
3810
|
+
*/
|
|
3811
|
+
export class HorizonsWebsitesApi extends BaseAPI {
|
|
3812
|
+
/**
|
|
3813
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
3814
|
+
* @summary Create website
|
|
3815
|
+
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
3816
|
+
* @param {*} [options] Override http request option.
|
|
3817
|
+
* @throws {RequiredError}
|
|
3818
|
+
* @memberof HorizonsWebsitesApi
|
|
3819
|
+
*/
|
|
3820
|
+
createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options) {
|
|
3821
|
+
return HorizonsWebsitesApiFp(this.configuration).createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3822
|
+
}
|
|
3823
|
+
/**
|
|
3824
|
+
* Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
|
|
3825
|
+
* @summary Get website
|
|
3826
|
+
* @param {string} websiteId The website ID
|
|
3827
|
+
* @param {*} [options] Override http request option.
|
|
3828
|
+
* @throws {RequiredError}
|
|
3829
|
+
* @memberof HorizonsWebsitesApi
|
|
3830
|
+
*/
|
|
3831
|
+
getWebsiteV1(websiteId, options) {
|
|
3832
|
+
return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
/**
|
|
3836
|
+
* HostingDatabasesApi - axios parameter creator
|
|
3837
|
+
* @export
|
|
3838
|
+
*/
|
|
3839
|
+
export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
3840
|
+
return {
|
|
3841
|
+
/**
|
|
3842
|
+
* Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
|
|
3843
|
+
* @summary Change database password
|
|
3844
|
+
* @param {string} username
|
|
3845
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3846
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
3847
|
+
* @param {*} [options] Override http request option.
|
|
3848
|
+
* @throws {RequiredError}
|
|
3849
|
+
*/
|
|
3850
|
+
changeDatabasePasswordV1: (username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options = {}) {
|
|
3851
|
+
// verify required parameter 'username' is not null or undefined
|
|
3852
|
+
assertParamExists('changeDatabasePasswordV1', 'username', username);
|
|
3853
|
+
// verify required parameter 'name' is not null or undefined
|
|
3854
|
+
assertParamExists('changeDatabasePasswordV1', 'name', name);
|
|
3855
|
+
// verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
|
|
3856
|
+
assertParamExists('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest);
|
|
3857
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
|
|
3858
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3859
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3861
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3862
|
+
let baseOptions;
|
|
3863
|
+
if (configuration) {
|
|
3864
|
+
baseOptions = configuration.baseOptions;
|
|
3865
|
+
}
|
|
3866
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3867
|
+
const localVarHeaderParameter = {};
|
|
3868
|
+
const localVarQueryParameter = {};
|
|
3869
|
+
// authentication apiToken required
|
|
3870
|
+
// http bearer authentication required
|
|
3871
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3872
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3873
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3874
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3875
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3876
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration);
|
|
3877
|
+
return {
|
|
3878
|
+
url: toPathString(localVarUrlObj),
|
|
3879
|
+
options: localVarRequestOptions,
|
|
3880
|
+
};
|
|
3881
|
+
}),
|
|
3882
|
+
/**
|
|
3883
|
+
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
3884
|
+
* @summary Create account database
|
|
3885
|
+
* @param {string} username
|
|
3886
|
+
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
3887
|
+
* @param {*} [options] Override http request option.
|
|
3888
|
+
* @throws {RequiredError}
|
|
3889
|
+
*/
|
|
3890
|
+
createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
|
|
3891
|
+
// verify required parameter 'username' is not null or undefined
|
|
3892
|
+
assertParamExists('createAccountDatabaseV1', 'username', username);
|
|
3893
|
+
// verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
|
|
3894
|
+
assertParamExists('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
|
|
3895
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
|
|
3896
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
3897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3898
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3899
|
+
let baseOptions;
|
|
3900
|
+
if (configuration) {
|
|
3901
|
+
baseOptions = configuration.baseOptions;
|
|
3902
|
+
}
|
|
3903
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3904
|
+
const localVarHeaderParameter = {};
|
|
3905
|
+
const localVarQueryParameter = {};
|
|
3906
|
+
// authentication apiToken required
|
|
3907
|
+
// http bearer authentication required
|
|
3908
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3909
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3910
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3911
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3912
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3913
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
|
|
3914
|
+
return {
|
|
3915
|
+
url: toPathString(localVarUrlObj),
|
|
3916
|
+
options: localVarRequestOptions,
|
|
3917
|
+
};
|
|
3918
|
+
}),
|
|
3919
|
+
/**
|
|
3920
|
+
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
3921
|
+
* @summary Delete account database
|
|
3922
|
+
* @param {string} username
|
|
3923
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3924
|
+
* @param {*} [options] Override http request option.
|
|
3925
|
+
* @throws {RequiredError}
|
|
3926
|
+
*/
|
|
3927
|
+
deleteAccountDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
3928
|
+
// verify required parameter 'username' is not null or undefined
|
|
3929
|
+
assertParamExists('deleteAccountDatabaseV1', 'username', username);
|
|
3930
|
+
// verify required parameter 'name' is not null or undefined
|
|
3931
|
+
assertParamExists('deleteAccountDatabaseV1', 'name', name);
|
|
3932
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
|
|
3933
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3934
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3936
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3937
|
+
let baseOptions;
|
|
3938
|
+
if (configuration) {
|
|
3939
|
+
baseOptions = configuration.baseOptions;
|
|
3940
|
+
}
|
|
3941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3942
|
+
const localVarHeaderParameter = {};
|
|
3943
|
+
const localVarQueryParameter = {};
|
|
3944
|
+
// authentication apiToken required
|
|
3945
|
+
// http bearer authentication required
|
|
3946
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3949
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3950
|
+
return {
|
|
3951
|
+
url: toPathString(localVarUrlObj),
|
|
3952
|
+
options: localVarRequestOptions,
|
|
3953
|
+
};
|
|
3954
|
+
}),
|
|
3955
|
+
/**
|
|
3956
|
+
* Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
|
|
3957
|
+
* @summary Get phpMyAdmin link
|
|
3958
|
+
* @param {string} username
|
|
3959
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3960
|
+
* @param {*} [options] Override http request option.
|
|
3961
|
+
* @throws {RequiredError}
|
|
3962
|
+
*/
|
|
3963
|
+
getPhpMyAdminLinkV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
3964
|
+
// verify required parameter 'username' is not null or undefined
|
|
3965
|
+
assertParamExists('getPhpMyAdminLinkV1', 'username', username);
|
|
3966
|
+
// verify required parameter 'name' is not null or undefined
|
|
3967
|
+
assertParamExists('getPhpMyAdminLinkV1', 'name', name);
|
|
3968
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
|
|
3969
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3970
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3319
3971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3320
3972
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3321
3973
|
let baseOptions;
|
|
@@ -5709,6 +6361,38 @@ export const ListContactsV1SubscriptionStatusEnum = {
|
|
|
5709
6361
|
*/
|
|
5710
6362
|
export const ReachProfilesApiAxiosParamCreator = function (configuration) {
|
|
5711
6363
|
return {
|
|
6364
|
+
/**
|
|
6365
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
6366
|
+
* @summary Get profile domain DNS status
|
|
6367
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6368
|
+
* @param {*} [options] Override http request option.
|
|
6369
|
+
* @throws {RequiredError}
|
|
6370
|
+
*/
|
|
6371
|
+
getProfileDomainDNSStatusV1: (profileUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, ...args_1], void 0, function* (profileUuid, options = {}) {
|
|
6372
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
6373
|
+
assertParamExists('getProfileDomainDNSStatusV1', 'profileUuid', profileUuid);
|
|
6374
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/domains/dns-status`
|
|
6375
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
6376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6377
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6378
|
+
let baseOptions;
|
|
6379
|
+
if (configuration) {
|
|
6380
|
+
baseOptions = configuration.baseOptions;
|
|
6381
|
+
}
|
|
6382
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6383
|
+
const localVarHeaderParameter = {};
|
|
6384
|
+
const localVarQueryParameter = {};
|
|
6385
|
+
// authentication apiToken required
|
|
6386
|
+
// http bearer authentication required
|
|
6387
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6391
|
+
return {
|
|
6392
|
+
url: toPathString(localVarUrlObj),
|
|
6393
|
+
options: localVarRequestOptions,
|
|
6394
|
+
};
|
|
6395
|
+
}),
|
|
5712
6396
|
/**
|
|
5713
6397
|
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5714
6398
|
* @summary List Profiles
|
|
@@ -5746,6 +6430,21 @@ export const ReachProfilesApiAxiosParamCreator = function (configuration) {
|
|
|
5746
6430
|
export const ReachProfilesApiFp = function (configuration) {
|
|
5747
6431
|
const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration);
|
|
5748
6432
|
return {
|
|
6433
|
+
/**
|
|
6434
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
6435
|
+
* @summary Get profile domain DNS status
|
|
6436
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6437
|
+
* @param {*} [options] Override http request option.
|
|
6438
|
+
* @throws {RequiredError}
|
|
6439
|
+
*/
|
|
6440
|
+
getProfileDomainDNSStatusV1(profileUuid, options) {
|
|
6441
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6442
|
+
var _a, _b;
|
|
6443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileDomainDNSStatusV1(profileUuid, options);
|
|
6444
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.getProfileDomainDNSStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6445
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6446
|
+
});
|
|
6447
|
+
},
|
|
5749
6448
|
/**
|
|
5750
6449
|
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5751
6450
|
* @summary List Profiles
|
|
@@ -5769,6 +6468,16 @@ export const ReachProfilesApiFp = function (configuration) {
|
|
|
5769
6468
|
export const ReachProfilesApiFactory = function (configuration, basePath, axios) {
|
|
5770
6469
|
const localVarFp = ReachProfilesApiFp(configuration);
|
|
5771
6470
|
return {
|
|
6471
|
+
/**
|
|
6472
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
6473
|
+
* @summary Get profile domain DNS status
|
|
6474
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6475
|
+
* @param {*} [options] Override http request option.
|
|
6476
|
+
* @throws {RequiredError}
|
|
6477
|
+
*/
|
|
6478
|
+
getProfileDomainDNSStatusV1(profileUuid, options) {
|
|
6479
|
+
return localVarFp.getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
6480
|
+
},
|
|
5772
6481
|
/**
|
|
5773
6482
|
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5774
6483
|
* @summary List Profiles
|
|
@@ -5787,6 +6496,17 @@ export const ReachProfilesApiFactory = function (configuration, basePath, axios)
|
|
|
5787
6496
|
* @extends {BaseAPI}
|
|
5788
6497
|
*/
|
|
5789
6498
|
export class ReachProfilesApi extends BaseAPI {
|
|
6499
|
+
/**
|
|
6500
|
+
* Retrieve the DNS configuration status for a profile\'s domain. This endpoint reports the state of MX, SPF, DKIM and DMARC records, including the actual records found and the suggested records required for correct email delivery.
|
|
6501
|
+
* @summary Get profile domain DNS status
|
|
6502
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6503
|
+
* @param {*} [options] Override http request option.
|
|
6504
|
+
* @throws {RequiredError}
|
|
6505
|
+
* @memberof ReachProfilesApi
|
|
6506
|
+
*/
|
|
6507
|
+
getProfileDomainDNSStatusV1(profileUuid, options) {
|
|
6508
|
+
return ReachProfilesApiFp(this.configuration).getProfileDomainDNSStatusV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
6509
|
+
}
|
|
5790
6510
|
/**
|
|
5791
6511
|
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5792
6512
|
* @summary List Profiles
|
|
@@ -5869,6 +6589,50 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
5869
6589
|
options: localVarRequestOptions,
|
|
5870
6590
|
};
|
|
5871
6591
|
}),
|
|
6592
|
+
/**
|
|
6593
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
6594
|
+
* @summary List profile segment contacts
|
|
6595
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6596
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
6597
|
+
* @param {number} [page] Page number
|
|
6598
|
+
* @param {number} [perPage] Number of items per page
|
|
6599
|
+
* @param {*} [options] Override http request option.
|
|
6600
|
+
* @throws {RequiredError}
|
|
6601
|
+
*/
|
|
6602
|
+
listProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, segmentUuid, page, perPage, options = {}) {
|
|
6603
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
6604
|
+
assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid);
|
|
6605
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
6606
|
+
assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
|
|
6607
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
|
|
6608
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
6609
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
6610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6612
|
+
let baseOptions;
|
|
6613
|
+
if (configuration) {
|
|
6614
|
+
baseOptions = configuration.baseOptions;
|
|
6615
|
+
}
|
|
6616
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6617
|
+
const localVarHeaderParameter = {};
|
|
6618
|
+
const localVarQueryParameter = {};
|
|
6619
|
+
// authentication apiToken required
|
|
6620
|
+
// http bearer authentication required
|
|
6621
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6622
|
+
if (page !== undefined) {
|
|
6623
|
+
localVarQueryParameter['page'] = page;
|
|
6624
|
+
}
|
|
6625
|
+
if (perPage !== undefined) {
|
|
6626
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
6627
|
+
}
|
|
6628
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6629
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6630
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6631
|
+
return {
|
|
6632
|
+
url: toPathString(localVarUrlObj),
|
|
6633
|
+
options: localVarRequestOptions,
|
|
6634
|
+
};
|
|
6635
|
+
}),
|
|
5872
6636
|
/**
|
|
5873
6637
|
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
5874
6638
|
* @summary List segment contacts
|
|
@@ -5976,6 +6740,24 @@ export const ReachSegmentsApiFp = function (configuration) {
|
|
|
5976
6740
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5977
6741
|
});
|
|
5978
6742
|
},
|
|
6743
|
+
/**
|
|
6744
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
6745
|
+
* @summary List profile segment contacts
|
|
6746
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6747
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
6748
|
+
* @param {number} [page] Page number
|
|
6749
|
+
* @param {number} [perPage] Number of items per page
|
|
6750
|
+
* @param {*} [options] Override http request option.
|
|
6751
|
+
* @throws {RequiredError}
|
|
6752
|
+
*/
|
|
6753
|
+
listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
|
|
6754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6755
|
+
var _a, _b;
|
|
6756
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
|
|
6757
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6758
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6759
|
+
});
|
|
6760
|
+
},
|
|
5979
6761
|
/**
|
|
5980
6762
|
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
5981
6763
|
* @summary List segment contacts
|
|
@@ -6036,6 +6818,19 @@ export const ReachSegmentsApiFactory = function (configuration, basePath, axios)
|
|
|
6036
6818
|
getSegmentDetailsV1(segmentUuid, options) {
|
|
6037
6819
|
return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
|
|
6038
6820
|
},
|
|
6821
|
+
/**
|
|
6822
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
6823
|
+
* @summary List profile segment contacts
|
|
6824
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6825
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
6826
|
+
* @param {number} [page] Page number
|
|
6827
|
+
* @param {number} [perPage] Number of items per page
|
|
6828
|
+
* @param {*} [options] Override http request option.
|
|
6829
|
+
* @throws {RequiredError}
|
|
6830
|
+
*/
|
|
6831
|
+
listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
|
|
6832
|
+
return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
6833
|
+
},
|
|
6039
6834
|
/**
|
|
6040
6835
|
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
6041
6836
|
* @summary List segment contacts
|
|
@@ -6088,6 +6883,20 @@ export class ReachSegmentsApi extends BaseAPI {
|
|
|
6088
6883
|
getSegmentDetailsV1(segmentUuid, options) {
|
|
6089
6884
|
return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
6090
6885
|
}
|
|
6886
|
+
/**
|
|
6887
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
6888
|
+
* @summary List profile segment contacts
|
|
6889
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
6890
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
6891
|
+
* @param {number} [page] Page number
|
|
6892
|
+
* @param {number} [perPage] Number of items per page
|
|
6893
|
+
* @param {*} [options] Override http request option.
|
|
6894
|
+
* @throws {RequiredError}
|
|
6895
|
+
* @memberof ReachSegmentsApi
|
|
6896
|
+
*/
|
|
6897
|
+
listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options) {
|
|
6898
|
+
return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
6899
|
+
}
|
|
6091
6900
|
/**
|
|
6092
6901
|
* Retrieve contacts associated with a specific segment. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.
|
|
6093
6902
|
* @summary List segment contacts
|