hostinger-api-sdk 0.0.15 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-release.yaml +28 -11
- package/CODEOWNERS +1 -1
- package/README.md +2 -2
- package/api.ts +7356 -2584
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4966 -1780
- package/dist/api.js +3335 -325
- 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 +4966 -1780
- package/dist/esm/api.js +3283 -314
- 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/BillingSubscriptionsApi.md +64 -15
- package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
- package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
- package/docs/DomainsPortfolioApi.md +1 -1
- package/docs/EcommerceGetStoresV1200Response.md +22 -0
- package/docs/EcommerceStoresApi.md +117 -0
- package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
- package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
- package/docs/EcommerceV1StoreStoreRequest.md +30 -0
- package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
- package/docs/EcommerceV1StoreStoreResource.md +30 -0
- package/docs/HostingDatabasesApi.md +368 -0
- package/docs/HostingDatacentersApi.md +61 -0
- package/docs/HostingDomainsApi.md +468 -0
- package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
- package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
- package/docs/HostingListOrdersV1200Response.md +22 -0
- package/docs/HostingListWebsitesV1200Response.md +22 -0
- package/docs/HostingNodeJSApi.md +199 -0
- package/docs/HostingOrdersApi.md +70 -0
- package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
- package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
- package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
- package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
- package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
- package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
- package/docs/HostingV1DatacentersListRequest.md +20 -0
- package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
- package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
- package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
- package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
- package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
- package/docs/HostingV1DomainsSubdomainResource.md +28 -0
- package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
- package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
- package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
- package/docs/HostingV1NodeJsBuildResource.md +28 -0
- package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
- package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
- package/docs/HostingV1OrdersOrderResource.md +30 -0
- package/docs/HostingV1OrdersPlanResource.md +20 -0
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
- package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
- package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
- package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
- package/docs/HostingWebsitesApi.md +132 -0
- package/docs/HostingWordpressApi.md +126 -0
- package/docs/ReachContactsApi.md +63 -4
- package/docs/ReachListSegmentContactsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +224 -0
- package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
- package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
- package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
- package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
- package/docs/ReachV1ContactsStoreRequest.md +2 -2
- package/docs/ReachV1ProfilesProfileResource.md +30 -0
- package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
- package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
- package/docs/VPSActionsApi.md +1 -1
- package/docs/VPSDockerManagerApi.md +7 -7
- package/docs/VPSFirewallApi.md +1 -1
- package/docs/VPSMalwareScannerApi.md +2 -2
- package/docs/VPSVirtualMachineApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingV1OrderStoreRequest.md +0 -24
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.18.2
|
|
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,76 @@ export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
|
134
134
|
Individual: 'individual',
|
|
135
135
|
Organization: 'organization'
|
|
136
136
|
};
|
|
137
|
+
export const EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = {
|
|
138
|
+
Builder: 'builder',
|
|
139
|
+
Horizons: 'horizons',
|
|
140
|
+
Tiktok: 'tiktok',
|
|
141
|
+
Custom: 'custom',
|
|
142
|
+
QuickLink: 'quick-link',
|
|
143
|
+
Wordpress: 'wordpress'
|
|
144
|
+
};
|
|
145
|
+
export const EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
|
|
146
|
+
Custom: 'custom'
|
|
147
|
+
};
|
|
148
|
+
export const HostingV1DomainsParkedDomainResourceTypeEnum = {
|
|
149
|
+
Domain: 'domain',
|
|
150
|
+
Ip: 'ip'
|
|
151
|
+
};
|
|
152
|
+
export const HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
|
|
153
|
+
CreateReactApp: 'create-react-app',
|
|
154
|
+
Vite: 'vite',
|
|
155
|
+
Angular: 'angular',
|
|
156
|
+
React: 'react',
|
|
157
|
+
Vue: 'vue',
|
|
158
|
+
Parcel: 'parcel'
|
|
159
|
+
};
|
|
160
|
+
export const HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
|
|
161
|
+
Npm: 'npm',
|
|
162
|
+
Yarn: 'yarn',
|
|
163
|
+
Pnpm: 'pnpm'
|
|
164
|
+
};
|
|
165
|
+
export const HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
|
|
166
|
+
Archive: 'archive'
|
|
167
|
+
};
|
|
168
|
+
export const HostingV1NodeJsBuildResourceStateEnum = {
|
|
169
|
+
Pending: 'pending',
|
|
170
|
+
Running: 'running',
|
|
171
|
+
Completed: 'completed',
|
|
172
|
+
Failed: 'failed'
|
|
173
|
+
};
|
|
174
|
+
export const HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
|
|
175
|
+
NUMBER_18: 18,
|
|
176
|
+
NUMBER_20: 20,
|
|
177
|
+
NUMBER_22: 22,
|
|
178
|
+
NUMBER_24: 24
|
|
179
|
+
};
|
|
180
|
+
export const HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = {
|
|
181
|
+
CreateReactApp: 'create-react-app',
|
|
182
|
+
Vite: 'vite',
|
|
183
|
+
Angular: 'angular',
|
|
184
|
+
React: 'react',
|
|
185
|
+
Vue: 'vue',
|
|
186
|
+
Parcel: 'parcel',
|
|
187
|
+
Express: 'express',
|
|
188
|
+
Fastify: 'fastify',
|
|
189
|
+
Nest: 'nest'
|
|
190
|
+
};
|
|
191
|
+
export const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
|
|
192
|
+
Npm: 'npm',
|
|
193
|
+
Yarn: 'yarn',
|
|
194
|
+
Pnpm: 'pnpm'
|
|
195
|
+
};
|
|
196
|
+
export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
|
|
197
|
+
Main: 'main',
|
|
198
|
+
Addon: 'addon',
|
|
199
|
+
Parked: 'parked',
|
|
200
|
+
Subdomain: 'subdomain'
|
|
201
|
+
};
|
|
202
|
+
export const HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = {
|
|
203
|
+
All: 'all',
|
|
204
|
+
None: 'none',
|
|
205
|
+
Minor: 'minor'
|
|
206
|
+
};
|
|
137
207
|
export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
138
208
|
Subscribed: 'subscribed',
|
|
139
209
|
Unsubscribed: 'unsubscribed'
|
|
@@ -143,6 +213,67 @@ export const ReachV1ContactsContactResourceSourceEnum = {
|
|
|
143
213
|
Import: 'import',
|
|
144
214
|
Manual: 'manual'
|
|
145
215
|
};
|
|
216
|
+
export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
|
|
217
|
+
Subscribed: 'subscribed',
|
|
218
|
+
Unsubscribed: 'unsubscribed'
|
|
219
|
+
};
|
|
220
|
+
export const ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
|
|
221
|
+
Sync: 'sync',
|
|
222
|
+
Import: 'import',
|
|
223
|
+
Manual: 'manual'
|
|
224
|
+
};
|
|
225
|
+
export const ReachV1ContactsSegmentsStoreRequestLogicEnum = {
|
|
226
|
+
And: 'AND',
|
|
227
|
+
Or: 'OR'
|
|
228
|
+
};
|
|
229
|
+
export const ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = {
|
|
230
|
+
Equals: 'equals',
|
|
231
|
+
NotEquals: 'not_equals',
|
|
232
|
+
Contains: 'contains',
|
|
233
|
+
NotContains: 'not_contains',
|
|
234
|
+
Gte: 'gte',
|
|
235
|
+
Lte: 'lte',
|
|
236
|
+
Exists: 'exists',
|
|
237
|
+
WithinLastDays: 'within_last_days',
|
|
238
|
+
NotWithinLastDays: 'not_within_last_days',
|
|
239
|
+
OlderThanDays: 'older_than_days',
|
|
240
|
+
Processed: 'processed',
|
|
241
|
+
NotProcessed: 'not_processed',
|
|
242
|
+
Delivered: 'delivered',
|
|
243
|
+
NotDelivered: 'not_delivered',
|
|
244
|
+
Dropped: 'dropped',
|
|
245
|
+
NotDropped: 'not_dropped',
|
|
246
|
+
Bounced: 'bounced',
|
|
247
|
+
NotBounced: 'not_bounced',
|
|
248
|
+
Opened: 'opened',
|
|
249
|
+
NotOpened: 'not_opened',
|
|
250
|
+
Clicked: 'clicked',
|
|
251
|
+
NotClicked: 'not_clicked',
|
|
252
|
+
Unsubscribed: 'unsubscribed',
|
|
253
|
+
NotUnsubscribed: 'not_unsubscribed'
|
|
254
|
+
};
|
|
255
|
+
export const ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = {
|
|
256
|
+
Note: 'note',
|
|
257
|
+
Comment: 'comment',
|
|
258
|
+
Domain: 'domain',
|
|
259
|
+
Integration: 'integration',
|
|
260
|
+
Source: 'source',
|
|
261
|
+
Name: 'name',
|
|
262
|
+
Surname: 'surname',
|
|
263
|
+
Email: 'email',
|
|
264
|
+
SubscribedAt: 'subscribed_at',
|
|
265
|
+
UnsubscribedAt: 'unsubscribed_at',
|
|
266
|
+
SubscriptionStatus: 'subscription_status',
|
|
267
|
+
Processed: 'processed',
|
|
268
|
+
Opened: 'opened',
|
|
269
|
+
Clicked: 'clicked',
|
|
270
|
+
Delivered: 'delivered',
|
|
271
|
+
Bounced: 'bounced',
|
|
272
|
+
Unsubscribed: 'unsubscribed',
|
|
273
|
+
Dropped: 'dropped',
|
|
274
|
+
Tag: 'tag',
|
|
275
|
+
Campaigns: 'campaigns'
|
|
276
|
+
};
|
|
146
277
|
export const VPSV1ActionActionResourceStateEnum = {
|
|
147
278
|
Success: 'success',
|
|
148
279
|
Error: 'error',
|
|
@@ -358,113 +489,6 @@ export const GetCatalogItemListV1CategoryEnum = {
|
|
|
358
489
|
Domain: 'DOMAIN',
|
|
359
490
|
Vps: 'VPS'
|
|
360
491
|
};
|
|
361
|
-
/**
|
|
362
|
-
* BillingOrdersApi - axios parameter creator
|
|
363
|
-
* @export
|
|
364
|
-
*/
|
|
365
|
-
export const BillingOrdersApiAxiosParamCreator = function (configuration) {
|
|
366
|
-
return {
|
|
367
|
-
/**
|
|
368
|
-
* Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
369
|
-
* @summary Create service order
|
|
370
|
-
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
371
|
-
* @param {*} [options] Override http request option.
|
|
372
|
-
* @deprecated
|
|
373
|
-
* @throws {RequiredError}
|
|
374
|
-
*/
|
|
375
|
-
createServiceOrderV1: (billingV1OrderStoreRequest_1, ...args_1) => __awaiter(this, [billingV1OrderStoreRequest_1, ...args_1], void 0, function* (billingV1OrderStoreRequest, options = {}) {
|
|
376
|
-
// verify required parameter 'billingV1OrderStoreRequest' is not null or undefined
|
|
377
|
-
assertParamExists('createServiceOrderV1', 'billingV1OrderStoreRequest', billingV1OrderStoreRequest);
|
|
378
|
-
const localVarPath = `/api/billing/v1/orders`;
|
|
379
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
|
-
let baseOptions;
|
|
382
|
-
if (configuration) {
|
|
383
|
-
baseOptions = configuration.baseOptions;
|
|
384
|
-
}
|
|
385
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
386
|
-
const localVarHeaderParameter = {};
|
|
387
|
-
const localVarQueryParameter = {};
|
|
388
|
-
// authentication apiToken required
|
|
389
|
-
// http bearer authentication required
|
|
390
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
391
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
392
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
395
|
-
localVarRequestOptions.data = serializeDataIfNeeded(billingV1OrderStoreRequest, localVarRequestOptions, configuration);
|
|
396
|
-
return {
|
|
397
|
-
url: toPathString(localVarUrlObj),
|
|
398
|
-
options: localVarRequestOptions,
|
|
399
|
-
};
|
|
400
|
-
}),
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
/**
|
|
404
|
-
* BillingOrdersApi - functional programming interface
|
|
405
|
-
* @export
|
|
406
|
-
*/
|
|
407
|
-
export const BillingOrdersApiFp = function (configuration) {
|
|
408
|
-
const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration);
|
|
409
|
-
return {
|
|
410
|
-
/**
|
|
411
|
-
* Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
412
|
-
* @summary Create service order
|
|
413
|
-
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @deprecated
|
|
416
|
-
* @throws {RequiredError}
|
|
417
|
-
*/
|
|
418
|
-
createServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
419
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
-
var _a, _b;
|
|
421
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createServiceOrderV1(billingV1OrderStoreRequest, options);
|
|
422
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingOrdersApi.createServiceOrderV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
423
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
424
|
-
});
|
|
425
|
-
},
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* BillingOrdersApi - factory interface
|
|
430
|
-
* @export
|
|
431
|
-
*/
|
|
432
|
-
export const BillingOrdersApiFactory = function (configuration, basePath, axios) {
|
|
433
|
-
const localVarFp = BillingOrdersApiFp(configuration);
|
|
434
|
-
return {
|
|
435
|
-
/**
|
|
436
|
-
* Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
437
|
-
* @summary Create service order
|
|
438
|
-
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
439
|
-
* @param {*} [options] Override http request option.
|
|
440
|
-
* @deprecated
|
|
441
|
-
* @throws {RequiredError}
|
|
442
|
-
*/
|
|
443
|
-
createServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
444
|
-
return localVarFp.createServiceOrderV1(billingV1OrderStoreRequest, options).then((request) => request(axios, basePath));
|
|
445
|
-
},
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
/**
|
|
449
|
-
* BillingOrdersApi - object-oriented interface
|
|
450
|
-
* @export
|
|
451
|
-
* @class BillingOrdersApi
|
|
452
|
-
* @extends {BaseAPI}
|
|
453
|
-
*/
|
|
454
|
-
export class BillingOrdersApi extends BaseAPI {
|
|
455
|
-
/**
|
|
456
|
-
* Create a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
457
|
-
* @summary Create service order
|
|
458
|
-
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
459
|
-
* @param {*} [options] Override http request option.
|
|
460
|
-
* @deprecated
|
|
461
|
-
* @throws {RequiredError}
|
|
462
|
-
* @memberof BillingOrdersApi
|
|
463
|
-
*/
|
|
464
|
-
createServiceOrderV1(billingV1OrderStoreRequest, options) {
|
|
465
|
-
return BillingOrdersApiFp(this.configuration).createServiceOrderV1(billingV1OrderStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
492
|
/**
|
|
469
493
|
* BillingPaymentMethodsApi - axios parameter creator
|
|
470
494
|
* @export
|
|
@@ -703,19 +727,16 @@ export class BillingPaymentMethodsApi extends BaseAPI {
|
|
|
703
727
|
export const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
704
728
|
return {
|
|
705
729
|
/**
|
|
706
|
-
*
|
|
707
|
-
* @summary
|
|
730
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
731
|
+
* @summary Disable auto-renewal
|
|
708
732
|
* @param {string} subscriptionId Subscription ID
|
|
709
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
710
733
|
* @param {*} [options] Override http request option.
|
|
711
734
|
* @throws {RequiredError}
|
|
712
735
|
*/
|
|
713
|
-
|
|
736
|
+
disableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
714
737
|
// verify required parameter 'subscriptionId' is not null or undefined
|
|
715
|
-
assertParamExists('
|
|
716
|
-
|
|
717
|
-
assertParamExists('cancelSubscriptionV1', 'billingV1SubscriptionCancelRequest', billingV1SubscriptionCancelRequest);
|
|
718
|
-
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}`
|
|
738
|
+
assertParamExists('disableAutoRenewalV1', 'subscriptionId', subscriptionId);
|
|
739
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
|
|
719
740
|
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
720
741
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
721
742
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -729,11 +750,41 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration)
|
|
|
729
750
|
// authentication apiToken required
|
|
730
751
|
// http bearer authentication required
|
|
731
752
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
732
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
733
753
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
734
754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
755
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
736
|
-
|
|
756
|
+
return {
|
|
757
|
+
url: toPathString(localVarUrlObj),
|
|
758
|
+
options: localVarRequestOptions,
|
|
759
|
+
};
|
|
760
|
+
}),
|
|
761
|
+
/**
|
|
762
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
763
|
+
* @summary Enable auto-renewal
|
|
764
|
+
* @param {string} subscriptionId Subscription ID
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
*/
|
|
768
|
+
enableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
769
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
770
|
+
assertParamExists('enableAutoRenewalV1', 'subscriptionId', subscriptionId);
|
|
771
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
|
|
772
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
773
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
775
|
+
let baseOptions;
|
|
776
|
+
if (configuration) {
|
|
777
|
+
baseOptions = configuration.baseOptions;
|
|
778
|
+
}
|
|
779
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
780
|
+
const localVarHeaderParameter = {};
|
|
781
|
+
const localVarQueryParameter = {};
|
|
782
|
+
// authentication apiToken required
|
|
783
|
+
// http bearer authentication required
|
|
784
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
785
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
786
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
787
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
737
788
|
return {
|
|
738
789
|
url: toPathString(localVarUrlObj),
|
|
739
790
|
options: localVarRequestOptions,
|
|
@@ -777,18 +828,32 @@ export const BillingSubscriptionsApiFp = function (configuration) {
|
|
|
777
828
|
const localVarAxiosParamCreator = BillingSubscriptionsApiAxiosParamCreator(configuration);
|
|
778
829
|
return {
|
|
779
830
|
/**
|
|
780
|
-
*
|
|
781
|
-
* @summary
|
|
831
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
832
|
+
* @summary Disable auto-renewal
|
|
833
|
+
* @param {string} subscriptionId Subscription ID
|
|
834
|
+
* @param {*} [options] Override http request option.
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
*/
|
|
837
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
839
|
+
var _a, _b;
|
|
840
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
|
|
841
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
842
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
843
|
+
});
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
847
|
+
* @summary Enable auto-renewal
|
|
782
848
|
* @param {string} subscriptionId Subscription ID
|
|
783
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
784
849
|
* @param {*} [options] Override http request option.
|
|
785
850
|
* @throws {RequiredError}
|
|
786
851
|
*/
|
|
787
|
-
|
|
852
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
788
853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
789
854
|
var _a, _b;
|
|
790
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
791
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.
|
|
855
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
|
|
856
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
792
857
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
858
|
});
|
|
794
859
|
},
|
|
@@ -816,15 +881,24 @@ export const BillingSubscriptionsApiFactory = function (configuration, basePath,
|
|
|
816
881
|
const localVarFp = BillingSubscriptionsApiFp(configuration);
|
|
817
882
|
return {
|
|
818
883
|
/**
|
|
819
|
-
*
|
|
820
|
-
* @summary
|
|
884
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
885
|
+
* @summary Disable auto-renewal
|
|
886
|
+
* @param {string} subscriptionId Subscription ID
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
891
|
+
return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
892
|
+
},
|
|
893
|
+
/**
|
|
894
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
895
|
+
* @summary Enable auto-renewal
|
|
821
896
|
* @param {string} subscriptionId Subscription ID
|
|
822
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
823
897
|
* @param {*} [options] Override http request option.
|
|
824
898
|
* @throws {RequiredError}
|
|
825
899
|
*/
|
|
826
|
-
|
|
827
|
-
return localVarFp.
|
|
900
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
901
|
+
return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
828
902
|
},
|
|
829
903
|
/**
|
|
830
904
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
@@ -845,16 +919,26 @@ export const BillingSubscriptionsApiFactory = function (configuration, basePath,
|
|
|
845
919
|
*/
|
|
846
920
|
export class BillingSubscriptionsApi extends BaseAPI {
|
|
847
921
|
/**
|
|
848
|
-
*
|
|
849
|
-
* @summary
|
|
922
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
923
|
+
* @summary Disable auto-renewal
|
|
924
|
+
* @param {string} subscriptionId Subscription ID
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @throws {RequiredError}
|
|
927
|
+
* @memberof BillingSubscriptionsApi
|
|
928
|
+
*/
|
|
929
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
930
|
+
return BillingSubscriptionsApiFp(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
934
|
+
* @summary Enable auto-renewal
|
|
850
935
|
* @param {string} subscriptionId Subscription ID
|
|
851
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
852
936
|
* @param {*} [options] Override http request option.
|
|
853
937
|
* @throws {RequiredError}
|
|
854
938
|
* @memberof BillingSubscriptionsApi
|
|
855
939
|
*/
|
|
856
|
-
|
|
857
|
-
return BillingSubscriptionsApiFp(this.configuration).
|
|
940
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
941
|
+
return BillingSubscriptionsApiFp(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
858
942
|
}
|
|
859
943
|
/**
|
|
860
944
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
@@ -1525,6 +1609,109 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
1525
1609
|
return DNSZoneApiFp(this.configuration).validateDNSRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1526
1610
|
}
|
|
1527
1611
|
}
|
|
1612
|
+
/**
|
|
1613
|
+
* DomainAccessVerifierVerificationsApi - axios parameter creator
|
|
1614
|
+
* @export
|
|
1615
|
+
*/
|
|
1616
|
+
export const DomainAccessVerifierVerificationsApiAxiosParamCreator = function (configuration) {
|
|
1617
|
+
return {
|
|
1618
|
+
/**
|
|
1619
|
+
* Retrieve a list of pending and completed domain verifications.
|
|
1620
|
+
* @summary Get domain verifications
|
|
1621
|
+
* @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @throws {RequiredError}
|
|
1624
|
+
*/
|
|
1625
|
+
getDomainVerificationsDIRECT: (domainAccessVerifierV2VerificationsListRequest_1, ...args_1) => __awaiter(this, [domainAccessVerifierV2VerificationsListRequest_1, ...args_1], void 0, function* (domainAccessVerifierV2VerificationsListRequest, options = {}) {
|
|
1626
|
+
// verify required parameter 'domainAccessVerifierV2VerificationsListRequest' is not null or undefined
|
|
1627
|
+
assertParamExists('getDomainVerificationsDIRECT', 'domainAccessVerifierV2VerificationsListRequest', domainAccessVerifierV2VerificationsListRequest);
|
|
1628
|
+
const localVarPath = `/api/v2/direct/verifications/active`;
|
|
1629
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1630
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1631
|
+
let baseOptions;
|
|
1632
|
+
if (configuration) {
|
|
1633
|
+
baseOptions = configuration.baseOptions;
|
|
1634
|
+
}
|
|
1635
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1636
|
+
const localVarHeaderParameter = {};
|
|
1637
|
+
const localVarQueryParameter = {};
|
|
1638
|
+
// authentication apiToken required
|
|
1639
|
+
// http bearer authentication required
|
|
1640
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1641
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1642
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1644
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1645
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainAccessVerifierV2VerificationsListRequest, localVarRequestOptions, configuration);
|
|
1646
|
+
return {
|
|
1647
|
+
url: toPathString(localVarUrlObj),
|
|
1648
|
+
options: localVarRequestOptions,
|
|
1649
|
+
};
|
|
1650
|
+
}),
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* DomainAccessVerifierVerificationsApi - functional programming interface
|
|
1655
|
+
* @export
|
|
1656
|
+
*/
|
|
1657
|
+
export const DomainAccessVerifierVerificationsApiFp = function (configuration) {
|
|
1658
|
+
const localVarAxiosParamCreator = DomainAccessVerifierVerificationsApiAxiosParamCreator(configuration);
|
|
1659
|
+
return {
|
|
1660
|
+
/**
|
|
1661
|
+
* Retrieve a list of pending and completed domain verifications.
|
|
1662
|
+
* @summary Get domain verifications
|
|
1663
|
+
* @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
|
|
1664
|
+
* @param {*} [options] Override http request option.
|
|
1665
|
+
* @throws {RequiredError}
|
|
1666
|
+
*/
|
|
1667
|
+
getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options) {
|
|
1668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1669
|
+
var _a, _b;
|
|
1670
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options);
|
|
1671
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainAccessVerifierVerificationsApi.getDomainVerificationsDIRECT']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1672
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1673
|
+
});
|
|
1674
|
+
},
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* DomainAccessVerifierVerificationsApi - factory interface
|
|
1679
|
+
* @export
|
|
1680
|
+
*/
|
|
1681
|
+
export const DomainAccessVerifierVerificationsApiFactory = function (configuration, basePath, axios) {
|
|
1682
|
+
const localVarFp = DomainAccessVerifierVerificationsApiFp(configuration);
|
|
1683
|
+
return {
|
|
1684
|
+
/**
|
|
1685
|
+
* Retrieve a list of pending and completed domain verifications.
|
|
1686
|
+
* @summary Get domain verifications
|
|
1687
|
+
* @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
*/
|
|
1691
|
+
getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options) {
|
|
1692
|
+
return localVarFp.getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options).then((request) => request(axios, basePath));
|
|
1693
|
+
},
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
/**
|
|
1697
|
+
* DomainAccessVerifierVerificationsApi - object-oriented interface
|
|
1698
|
+
* @export
|
|
1699
|
+
* @class DomainAccessVerifierVerificationsApi
|
|
1700
|
+
* @extends {BaseAPI}
|
|
1701
|
+
*/
|
|
1702
|
+
export class DomainAccessVerifierVerificationsApi extends BaseAPI {
|
|
1703
|
+
/**
|
|
1704
|
+
* Retrieve a list of pending and completed domain verifications.
|
|
1705
|
+
* @summary Get domain verifications
|
|
1706
|
+
* @param {DomainAccessVerifierV2VerificationsListRequest} domainAccessVerifierV2VerificationsListRequest
|
|
1707
|
+
* @param {*} [options] Override http request option.
|
|
1708
|
+
* @throws {RequiredError}
|
|
1709
|
+
* @memberof DomainAccessVerifierVerificationsApi
|
|
1710
|
+
*/
|
|
1711
|
+
getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options) {
|
|
1712
|
+
return DomainAccessVerifierVerificationsApiFp(this.configuration).getDomainVerificationsDIRECT(domainAccessVerifierV2VerificationsListRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1528
1715
|
/**
|
|
1529
1716
|
* DomainsAvailabilityApi - axios parameter creator
|
|
1530
1717
|
* @export
|
|
@@ -2062,7 +2249,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
2062
2249
|
};
|
|
2063
2250
|
}),
|
|
2064
2251
|
/**
|
|
2065
|
-
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used.
|
|
2252
|
+
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
|
|
2066
2253
|
* @summary Purchase new domain
|
|
2067
2254
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2068
2255
|
* @param {*} [options] Override http request option.
|
|
@@ -2230,7 +2417,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
2230
2417
|
});
|
|
2231
2418
|
},
|
|
2232
2419
|
/**
|
|
2233
|
-
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used.
|
|
2420
|
+
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
|
|
2234
2421
|
* @summary Purchase new domain
|
|
2235
2422
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2236
2423
|
* @param {*} [options] Override http request option.
|
|
@@ -2329,7 +2516,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
2329
2516
|
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
2330
2517
|
},
|
|
2331
2518
|
/**
|
|
2332
|
-
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used.
|
|
2519
|
+
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
|
|
2333
2520
|
* @summary Purchase new domain
|
|
2334
2521
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2335
2522
|
* @param {*} [options] Override http request option.
|
|
@@ -2424,7 +2611,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
2424
2611
|
return DomainsPortfolioApiFp(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
2425
2612
|
}
|
|
2426
2613
|
/**
|
|
2427
|
-
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used.
|
|
2614
|
+
* Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
|
|
2428
2615
|
* @summary Purchase new domain
|
|
2429
2616
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2430
2617
|
* @param {*} [options] Override http request option.
|
|
@@ -2823,22 +3010,22 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
2823
3010
|
}
|
|
2824
3011
|
}
|
|
2825
3012
|
/**
|
|
2826
|
-
*
|
|
3013
|
+
* EcommerceStoresApi - axios parameter creator
|
|
2827
3014
|
* @export
|
|
2828
3015
|
*/
|
|
2829
|
-
export const
|
|
3016
|
+
export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
2830
3017
|
return {
|
|
2831
3018
|
/**
|
|
2832
|
-
* Create a new
|
|
2833
|
-
* @summary Create
|
|
2834
|
-
* @param {
|
|
3019
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3020
|
+
* @summary Create store
|
|
3021
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
2835
3022
|
* @param {*} [options] Override http request option.
|
|
2836
3023
|
* @throws {RequiredError}
|
|
2837
3024
|
*/
|
|
2838
|
-
|
|
2839
|
-
// verify required parameter '
|
|
2840
|
-
assertParamExists('
|
|
2841
|
-
const localVarPath = `/api/
|
|
3025
|
+
createStoreV1: (ecommerceV1StoreStoreRequest_1, ...args_1) => __awaiter(this, [ecommerceV1StoreStoreRequest_1, ...args_1], void 0, function* (ecommerceV1StoreStoreRequest, options = {}) {
|
|
3026
|
+
// verify required parameter 'ecommerceV1StoreStoreRequest' is not null or undefined
|
|
3027
|
+
assertParamExists('createStoreV1', 'ecommerceV1StoreStoreRequest', ecommerceV1StoreStoreRequest);
|
|
3028
|
+
const localVarPath = `/api/ecommerce/v1/stores`;
|
|
2842
3029
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2843
3030
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2844
3031
|
let baseOptions;
|
|
@@ -2855,36 +3042,36 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
2855
3042
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2856
3043
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2857
3044
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2858
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3045
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
|
|
2859
3046
|
return {
|
|
2860
3047
|
url: toPathString(localVarUrlObj),
|
|
2861
3048
|
options: localVarRequestOptions,
|
|
2862
3049
|
};
|
|
2863
3050
|
}),
|
|
2864
3051
|
/**
|
|
2865
|
-
*
|
|
2866
|
-
* @summary
|
|
2867
|
-
* @param {
|
|
3052
|
+
* Retrieve the stores associated with your account.
|
|
3053
|
+
* @summary Get stores
|
|
3054
|
+
* @param {number} [page] Page number
|
|
2868
3055
|
* @param {*} [options] Override http request option.
|
|
2869
3056
|
* @throws {RequiredError}
|
|
2870
3057
|
*/
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
assertParamExists('deleteAContactV1', 'uuid', uuid);
|
|
2874
|
-
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
2875
|
-
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
3058
|
+
getStoresV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
|
|
3059
|
+
const localVarPath = `/api/ecommerce/v1/stores`;
|
|
2876
3060
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2877
3061
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2878
3062
|
let baseOptions;
|
|
2879
3063
|
if (configuration) {
|
|
2880
3064
|
baseOptions = configuration.baseOptions;
|
|
2881
3065
|
}
|
|
2882
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3066
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2883
3067
|
const localVarHeaderParameter = {};
|
|
2884
3068
|
const localVarQueryParameter = {};
|
|
2885
3069
|
// authentication apiToken required
|
|
2886
3070
|
// http bearer authentication required
|
|
2887
3071
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3072
|
+
if (page !== undefined) {
|
|
3073
|
+
localVarQueryParameter['page'] = page;
|
|
3074
|
+
}
|
|
2888
3075
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2889
3076
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2890
3077
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2893,20 +3080,2649 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
2893
3080
|
options: localVarRequestOptions,
|
|
2894
3081
|
};
|
|
2895
3082
|
}),
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
/**
|
|
3086
|
+
* EcommerceStoresApi - functional programming interface
|
|
3087
|
+
* @export
|
|
3088
|
+
*/
|
|
3089
|
+
export const EcommerceStoresApiFp = function (configuration) {
|
|
3090
|
+
const localVarAxiosParamCreator = EcommerceStoresApiAxiosParamCreator(configuration);
|
|
3091
|
+
return {
|
|
2896
3092
|
/**
|
|
2897
|
-
*
|
|
2898
|
-
* @summary
|
|
3093
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3094
|
+
* @summary Create store
|
|
3095
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
2899
3096
|
* @param {*} [options] Override http request option.
|
|
2900
3097
|
* @throws {RequiredError}
|
|
2901
3098
|
*/
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
3099
|
+
createStoreV1(ecommerceV1StoreStoreRequest, options) {
|
|
3100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3101
|
+
var _a, _b;
|
|
3102
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createStoreV1(ecommerceV1StoreStoreRequest, options);
|
|
3103
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.createStoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3104
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3105
|
+
});
|
|
3106
|
+
},
|
|
3107
|
+
/**
|
|
3108
|
+
* Retrieve the stores associated with your account.
|
|
3109
|
+
* @summary Get stores
|
|
3110
|
+
* @param {number} [page] Page number
|
|
3111
|
+
* @param {*} [options] Override http request option.
|
|
3112
|
+
* @throws {RequiredError}
|
|
3113
|
+
*/
|
|
3114
|
+
getStoresV1(page, options) {
|
|
3115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3116
|
+
var _a, _b;
|
|
3117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStoresV1(page, options);
|
|
3118
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['EcommerceStoresApi.getStoresV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3119
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3120
|
+
});
|
|
3121
|
+
},
|
|
3122
|
+
};
|
|
3123
|
+
};
|
|
3124
|
+
/**
|
|
3125
|
+
* EcommerceStoresApi - factory interface
|
|
3126
|
+
* @export
|
|
3127
|
+
*/
|
|
3128
|
+
export const EcommerceStoresApiFactory = function (configuration, basePath, axios) {
|
|
3129
|
+
const localVarFp = EcommerceStoresApiFp(configuration);
|
|
3130
|
+
return {
|
|
3131
|
+
/**
|
|
3132
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3133
|
+
* @summary Create store
|
|
3134
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
3135
|
+
* @param {*} [options] Override http request option.
|
|
3136
|
+
* @throws {RequiredError}
|
|
3137
|
+
*/
|
|
3138
|
+
createStoreV1(ecommerceV1StoreStoreRequest, options) {
|
|
3139
|
+
return localVarFp.createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(axios, basePath));
|
|
3140
|
+
},
|
|
3141
|
+
/**
|
|
3142
|
+
* Retrieve the stores associated with your account.
|
|
3143
|
+
* @summary Get stores
|
|
3144
|
+
* @param {number} [page] Page number
|
|
3145
|
+
* @param {*} [options] Override http request option.
|
|
3146
|
+
* @throws {RequiredError}
|
|
3147
|
+
*/
|
|
3148
|
+
getStoresV1(page, options) {
|
|
3149
|
+
return localVarFp.getStoresV1(page, options).then((request) => request(axios, basePath));
|
|
3150
|
+
},
|
|
3151
|
+
};
|
|
3152
|
+
};
|
|
3153
|
+
/**
|
|
3154
|
+
* EcommerceStoresApi - object-oriented interface
|
|
3155
|
+
* @export
|
|
3156
|
+
* @class EcommerceStoresApi
|
|
3157
|
+
* @extends {BaseAPI}
|
|
3158
|
+
*/
|
|
3159
|
+
export class EcommerceStoresApi extends BaseAPI {
|
|
3160
|
+
/**
|
|
3161
|
+
* Create a new store for your account. A primary sales channel is created alongside the store.
|
|
3162
|
+
* @summary Create store
|
|
3163
|
+
* @param {EcommerceV1StoreStoreRequest} ecommerceV1StoreStoreRequest
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
* @memberof EcommerceStoresApi
|
|
3167
|
+
*/
|
|
3168
|
+
createStoreV1(ecommerceV1StoreStoreRequest, options) {
|
|
3169
|
+
return EcommerceStoresApiFp(this.configuration).createStoreV1(ecommerceV1StoreStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Retrieve the stores associated with your account.
|
|
3173
|
+
* @summary Get stores
|
|
3174
|
+
* @param {number} [page] Page number
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
* @memberof EcommerceStoresApi
|
|
3178
|
+
*/
|
|
3179
|
+
getStoresV1(page, options) {
|
|
3180
|
+
return EcommerceStoresApiFp(this.configuration).getStoresV1(page, options).then((request) => request(this.axios, this.basePath));
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
/**
|
|
3184
|
+
* HostingDatabasesApi - axios parameter creator
|
|
3185
|
+
* @export
|
|
3186
|
+
*/
|
|
3187
|
+
export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
3188
|
+
return {
|
|
3189
|
+
/**
|
|
3190
|
+
* 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.
|
|
3191
|
+
* @summary Change database password
|
|
3192
|
+
* @param {string} username
|
|
3193
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3194
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
3195
|
+
* @param {*} [options] Override http request option.
|
|
3196
|
+
* @throws {RequiredError}
|
|
3197
|
+
*/
|
|
3198
|
+
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 = {}) {
|
|
3199
|
+
// verify required parameter 'username' is not null or undefined
|
|
3200
|
+
assertParamExists('changeDatabasePasswordV1', 'username', username);
|
|
3201
|
+
// verify required parameter 'name' is not null or undefined
|
|
3202
|
+
assertParamExists('changeDatabasePasswordV1', 'name', name);
|
|
3203
|
+
// verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
|
|
3204
|
+
assertParamExists('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest);
|
|
3205
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
|
|
3206
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3207
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3210
|
+
let baseOptions;
|
|
3211
|
+
if (configuration) {
|
|
3212
|
+
baseOptions = configuration.baseOptions;
|
|
3213
|
+
}
|
|
3214
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3215
|
+
const localVarHeaderParameter = {};
|
|
3216
|
+
const localVarQueryParameter = {};
|
|
3217
|
+
// authentication apiToken required
|
|
3218
|
+
// http bearer authentication required
|
|
3219
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3220
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3221
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3223
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3224
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration);
|
|
3225
|
+
return {
|
|
3226
|
+
url: toPathString(localVarUrlObj),
|
|
3227
|
+
options: localVarRequestOptions,
|
|
3228
|
+
};
|
|
3229
|
+
}),
|
|
3230
|
+
/**
|
|
3231
|
+
* 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.
|
|
3232
|
+
* @summary Create account database
|
|
3233
|
+
* @param {string} username
|
|
3234
|
+
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
3235
|
+
* @param {*} [options] Override http request option.
|
|
3236
|
+
* @throws {RequiredError}
|
|
3237
|
+
*/
|
|
3238
|
+
createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
|
|
3239
|
+
// verify required parameter 'username' is not null or undefined
|
|
3240
|
+
assertParamExists('createAccountDatabaseV1', 'username', username);
|
|
3241
|
+
// verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
|
|
3242
|
+
assertParamExists('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
|
|
3243
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
|
|
3244
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
3245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3247
|
+
let baseOptions;
|
|
3248
|
+
if (configuration) {
|
|
3249
|
+
baseOptions = configuration.baseOptions;
|
|
3250
|
+
}
|
|
3251
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3252
|
+
const localVarHeaderParameter = {};
|
|
3253
|
+
const localVarQueryParameter = {};
|
|
3254
|
+
// authentication apiToken required
|
|
3255
|
+
// http bearer authentication required
|
|
3256
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3257
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3260
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3261
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
|
|
3262
|
+
return {
|
|
3263
|
+
url: toPathString(localVarUrlObj),
|
|
3264
|
+
options: localVarRequestOptions,
|
|
3265
|
+
};
|
|
3266
|
+
}),
|
|
3267
|
+
/**
|
|
3268
|
+
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
3269
|
+
* @summary Delete account database
|
|
3270
|
+
* @param {string} username
|
|
3271
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3272
|
+
* @param {*} [options] Override http request option.
|
|
3273
|
+
* @throws {RequiredError}
|
|
3274
|
+
*/
|
|
3275
|
+
deleteAccountDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
3276
|
+
// verify required parameter 'username' is not null or undefined
|
|
3277
|
+
assertParamExists('deleteAccountDatabaseV1', 'username', username);
|
|
3278
|
+
// verify required parameter 'name' is not null or undefined
|
|
3279
|
+
assertParamExists('deleteAccountDatabaseV1', 'name', name);
|
|
3280
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
|
|
3281
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3282
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3284
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3285
|
+
let baseOptions;
|
|
3286
|
+
if (configuration) {
|
|
3287
|
+
baseOptions = configuration.baseOptions;
|
|
3288
|
+
}
|
|
3289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3290
|
+
const localVarHeaderParameter = {};
|
|
3291
|
+
const localVarQueryParameter = {};
|
|
3292
|
+
// authentication apiToken required
|
|
3293
|
+
// http bearer authentication required
|
|
3294
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3295
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3296
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3297
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3298
|
+
return {
|
|
3299
|
+
url: toPathString(localVarUrlObj),
|
|
3300
|
+
options: localVarRequestOptions,
|
|
3301
|
+
};
|
|
3302
|
+
}),
|
|
3303
|
+
/**
|
|
3304
|
+
* 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.
|
|
3305
|
+
* @summary Get phpMyAdmin link
|
|
3306
|
+
* @param {string} username
|
|
3307
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3308
|
+
* @param {*} [options] Override http request option.
|
|
3309
|
+
* @throws {RequiredError}
|
|
3310
|
+
*/
|
|
3311
|
+
getPhpMyAdminLinkV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
3312
|
+
// verify required parameter 'username' is not null or undefined
|
|
3313
|
+
assertParamExists('getPhpMyAdminLinkV1', 'username', username);
|
|
3314
|
+
// verify required parameter 'name' is not null or undefined
|
|
3315
|
+
assertParamExists('getPhpMyAdminLinkV1', 'name', name);
|
|
3316
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
|
|
3317
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3318
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3321
|
+
let baseOptions;
|
|
3322
|
+
if (configuration) {
|
|
3323
|
+
baseOptions = configuration.baseOptions;
|
|
3324
|
+
}
|
|
3325
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3326
|
+
const localVarHeaderParameter = {};
|
|
3327
|
+
const localVarQueryParameter = {};
|
|
3328
|
+
// authentication apiToken required
|
|
3329
|
+
// http bearer authentication required
|
|
3330
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3333
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3334
|
+
return {
|
|
3335
|
+
url: toPathString(localVarUrlObj),
|
|
3336
|
+
options: localVarRequestOptions,
|
|
3337
|
+
};
|
|
3338
|
+
}),
|
|
3339
|
+
/**
|
|
3340
|
+
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
3341
|
+
* @summary List account databases
|
|
3342
|
+
* @param {string} username
|
|
3343
|
+
* @param {number} [page] Page number
|
|
3344
|
+
* @param {number} [perPage] Number of items per page
|
|
3345
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
3346
|
+
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
3347
|
+
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
3348
|
+
* @param {*} [options] Override http request option.
|
|
3349
|
+
* @throws {RequiredError}
|
|
3350
|
+
*/
|
|
3351
|
+
listAccountDatabasesV1: (username_1, page_1, perPage_1, domain_1, isAssigned_1, search_1, ...args_1) => __awaiter(this, [username_1, page_1, perPage_1, domain_1, isAssigned_1, search_1, ...args_1], void 0, function* (username, page, perPage, domain, isAssigned, search, options = {}) {
|
|
3352
|
+
// verify required parameter 'username' is not null or undefined
|
|
3353
|
+
assertParamExists('listAccountDatabasesV1', 'username', username);
|
|
3354
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
|
|
3355
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
3356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3358
|
+
let baseOptions;
|
|
3359
|
+
if (configuration) {
|
|
3360
|
+
baseOptions = configuration.baseOptions;
|
|
3361
|
+
}
|
|
3362
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3363
|
+
const localVarHeaderParameter = {};
|
|
3364
|
+
const localVarQueryParameter = {};
|
|
3365
|
+
// authentication apiToken required
|
|
3366
|
+
// http bearer authentication required
|
|
3367
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3368
|
+
if (page !== undefined) {
|
|
3369
|
+
localVarQueryParameter['page'] = page;
|
|
3370
|
+
}
|
|
3371
|
+
if (perPage !== undefined) {
|
|
3372
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
3373
|
+
}
|
|
3374
|
+
if (domain !== undefined) {
|
|
3375
|
+
localVarQueryParameter['domain'] = domain;
|
|
3376
|
+
}
|
|
3377
|
+
if (isAssigned !== undefined) {
|
|
3378
|
+
localVarQueryParameter['is_assigned'] = isAssigned;
|
|
3379
|
+
}
|
|
3380
|
+
if (search !== undefined) {
|
|
3381
|
+
localVarQueryParameter['search'] = search;
|
|
3382
|
+
}
|
|
3383
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3384
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3385
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3386
|
+
return {
|
|
3387
|
+
url: toPathString(localVarUrlObj),
|
|
3388
|
+
options: localVarRequestOptions,
|
|
3389
|
+
};
|
|
3390
|
+
}),
|
|
3391
|
+
/**
|
|
3392
|
+
* Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
|
|
3393
|
+
* @summary Repair database
|
|
3394
|
+
* @param {string} username
|
|
3395
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3396
|
+
* @param {*} [options] Override http request option.
|
|
3397
|
+
* @throws {RequiredError}
|
|
3398
|
+
*/
|
|
3399
|
+
repairDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
3400
|
+
// verify required parameter 'username' is not null or undefined
|
|
3401
|
+
assertParamExists('repairDatabaseV1', 'username', username);
|
|
3402
|
+
// verify required parameter 'name' is not null or undefined
|
|
3403
|
+
assertParamExists('repairDatabaseV1', 'name', name);
|
|
3404
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/repair`
|
|
3405
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3406
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3407
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3408
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3409
|
+
let baseOptions;
|
|
3410
|
+
if (configuration) {
|
|
3411
|
+
baseOptions = configuration.baseOptions;
|
|
3412
|
+
}
|
|
3413
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3414
|
+
const localVarHeaderParameter = {};
|
|
3415
|
+
const localVarQueryParameter = {};
|
|
3416
|
+
// authentication apiToken required
|
|
3417
|
+
// http bearer authentication required
|
|
3418
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3419
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3421
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3422
|
+
return {
|
|
3423
|
+
url: toPathString(localVarUrlObj),
|
|
3424
|
+
options: localVarRequestOptions,
|
|
3425
|
+
};
|
|
3426
|
+
}),
|
|
3427
|
+
};
|
|
3428
|
+
};
|
|
3429
|
+
/**
|
|
3430
|
+
* HostingDatabasesApi - functional programming interface
|
|
3431
|
+
* @export
|
|
3432
|
+
*/
|
|
3433
|
+
export const HostingDatabasesApiFp = function (configuration) {
|
|
3434
|
+
const localVarAxiosParamCreator = HostingDatabasesApiAxiosParamCreator(configuration);
|
|
3435
|
+
return {
|
|
3436
|
+
/**
|
|
3437
|
+
* 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.
|
|
3438
|
+
* @summary Change database password
|
|
3439
|
+
* @param {string} username
|
|
3440
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3441
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
3442
|
+
* @param {*} [options] Override http request option.
|
|
3443
|
+
* @throws {RequiredError}
|
|
3444
|
+
*/
|
|
3445
|
+
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
3446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3447
|
+
var _a, _b;
|
|
3448
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options);
|
|
3449
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.changeDatabasePasswordV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3450
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3451
|
+
});
|
|
3452
|
+
},
|
|
3453
|
+
/**
|
|
3454
|
+
* 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.
|
|
3455
|
+
* @summary Create account database
|
|
3456
|
+
* @param {string} username
|
|
3457
|
+
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
3458
|
+
* @param {*} [options] Override http request option.
|
|
3459
|
+
* @throws {RequiredError}
|
|
3460
|
+
*/
|
|
3461
|
+
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
3462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3463
|
+
var _a, _b;
|
|
3464
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options);
|
|
3465
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.createAccountDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3467
|
+
});
|
|
3468
|
+
},
|
|
3469
|
+
/**
|
|
3470
|
+
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
3471
|
+
* @summary Delete account database
|
|
3472
|
+
* @param {string} username
|
|
3473
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3474
|
+
* @param {*} [options] Override http request option.
|
|
3475
|
+
* @throws {RequiredError}
|
|
3476
|
+
*/
|
|
3477
|
+
deleteAccountDatabaseV1(username, name, options) {
|
|
3478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3479
|
+
var _a, _b;
|
|
3480
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountDatabaseV1(username, name, options);
|
|
3481
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.deleteAccountDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3482
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3483
|
+
});
|
|
3484
|
+
},
|
|
3485
|
+
/**
|
|
3486
|
+
* 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.
|
|
3487
|
+
* @summary Get phpMyAdmin link
|
|
3488
|
+
* @param {string} username
|
|
3489
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3490
|
+
* @param {*} [options] Override http request option.
|
|
3491
|
+
* @throws {RequiredError}
|
|
3492
|
+
*/
|
|
3493
|
+
getPhpMyAdminLinkV1(username, name, options) {
|
|
3494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3495
|
+
var _a, _b;
|
|
3496
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPhpMyAdminLinkV1(username, name, options);
|
|
3497
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.getPhpMyAdminLinkV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3498
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3499
|
+
});
|
|
3500
|
+
},
|
|
3501
|
+
/**
|
|
3502
|
+
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
3503
|
+
* @summary List account databases
|
|
3504
|
+
* @param {string} username
|
|
3505
|
+
* @param {number} [page] Page number
|
|
3506
|
+
* @param {number} [perPage] Number of items per page
|
|
3507
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
3508
|
+
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
3509
|
+
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
3510
|
+
* @param {*} [options] Override http request option.
|
|
3511
|
+
* @throws {RequiredError}
|
|
3512
|
+
*/
|
|
3513
|
+
listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
|
|
3514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3515
|
+
var _a, _b;
|
|
3516
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options);
|
|
3517
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.listAccountDatabasesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3519
|
+
});
|
|
3520
|
+
},
|
|
3521
|
+
/**
|
|
3522
|
+
* Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
|
|
3523
|
+
* @summary Repair database
|
|
3524
|
+
* @param {string} username
|
|
3525
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3526
|
+
* @param {*} [options] Override http request option.
|
|
3527
|
+
* @throws {RequiredError}
|
|
3528
|
+
*/
|
|
3529
|
+
repairDatabaseV1(username, name, options) {
|
|
3530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3531
|
+
var _a, _b;
|
|
3532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.repairDatabaseV1(username, name, options);
|
|
3533
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.repairDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3535
|
+
});
|
|
3536
|
+
},
|
|
3537
|
+
};
|
|
3538
|
+
};
|
|
3539
|
+
/**
|
|
3540
|
+
* HostingDatabasesApi - factory interface
|
|
3541
|
+
* @export
|
|
3542
|
+
*/
|
|
3543
|
+
export const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
3544
|
+
const localVarFp = HostingDatabasesApiFp(configuration);
|
|
3545
|
+
return {
|
|
3546
|
+
/**
|
|
3547
|
+
* 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.
|
|
3548
|
+
* @summary Change database password
|
|
3549
|
+
* @param {string} username
|
|
3550
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3551
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
3552
|
+
* @param {*} [options] Override http request option.
|
|
3553
|
+
* @throws {RequiredError}
|
|
3554
|
+
*/
|
|
3555
|
+
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
3556
|
+
return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
|
|
3557
|
+
},
|
|
3558
|
+
/**
|
|
3559
|
+
* 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.
|
|
3560
|
+
* @summary Create account database
|
|
3561
|
+
* @param {string} username
|
|
3562
|
+
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
3563
|
+
* @param {*} [options] Override http request option.
|
|
3564
|
+
* @throws {RequiredError}
|
|
3565
|
+
*/
|
|
3566
|
+
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
3567
|
+
return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
3568
|
+
},
|
|
3569
|
+
/**
|
|
3570
|
+
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
3571
|
+
* @summary Delete account database
|
|
3572
|
+
* @param {string} username
|
|
3573
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3574
|
+
* @param {*} [options] Override http request option.
|
|
3575
|
+
* @throws {RequiredError}
|
|
3576
|
+
*/
|
|
3577
|
+
deleteAccountDatabaseV1(username, name, options) {
|
|
3578
|
+
return localVarFp.deleteAccountDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
3579
|
+
},
|
|
3580
|
+
/**
|
|
3581
|
+
* 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.
|
|
3582
|
+
* @summary Get phpMyAdmin link
|
|
3583
|
+
* @param {string} username
|
|
3584
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3585
|
+
* @param {*} [options] Override http request option.
|
|
3586
|
+
* @throws {RequiredError}
|
|
3587
|
+
*/
|
|
3588
|
+
getPhpMyAdminLinkV1(username, name, options) {
|
|
3589
|
+
return localVarFp.getPhpMyAdminLinkV1(username, name, options).then((request) => request(axios, basePath));
|
|
3590
|
+
},
|
|
3591
|
+
/**
|
|
3592
|
+
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
3593
|
+
* @summary List account databases
|
|
3594
|
+
* @param {string} username
|
|
3595
|
+
* @param {number} [page] Page number
|
|
3596
|
+
* @param {number} [perPage] Number of items per page
|
|
3597
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
3598
|
+
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
3599
|
+
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
*/
|
|
3603
|
+
listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
|
|
3604
|
+
return localVarFp.listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options).then((request) => request(axios, basePath));
|
|
3605
|
+
},
|
|
3606
|
+
/**
|
|
3607
|
+
* Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
|
|
3608
|
+
* @summary Repair database
|
|
3609
|
+
* @param {string} username
|
|
3610
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3611
|
+
* @param {*} [options] Override http request option.
|
|
3612
|
+
* @throws {RequiredError}
|
|
3613
|
+
*/
|
|
3614
|
+
repairDatabaseV1(username, name, options) {
|
|
3615
|
+
return localVarFp.repairDatabaseV1(username, name, options).then((request) => request(axios, basePath));
|
|
3616
|
+
},
|
|
3617
|
+
};
|
|
3618
|
+
};
|
|
3619
|
+
/**
|
|
3620
|
+
* HostingDatabasesApi - object-oriented interface
|
|
3621
|
+
* @export
|
|
3622
|
+
* @class HostingDatabasesApi
|
|
3623
|
+
* @extends {BaseAPI}
|
|
3624
|
+
*/
|
|
3625
|
+
export class HostingDatabasesApi extends BaseAPI {
|
|
3626
|
+
/**
|
|
3627
|
+
* 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.
|
|
3628
|
+
* @summary Change database password
|
|
3629
|
+
* @param {string} username
|
|
3630
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3631
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
3632
|
+
* @param {*} [options] Override http request option.
|
|
3633
|
+
* @throws {RequiredError}
|
|
3634
|
+
* @memberof HostingDatabasesApi
|
|
3635
|
+
*/
|
|
3636
|
+
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
3637
|
+
return HostingDatabasesApiFp(this.configuration).changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
* 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.
|
|
3641
|
+
* @summary Create account database
|
|
3642
|
+
* @param {string} username
|
|
3643
|
+
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
3644
|
+
* @param {*} [options] Override http request option.
|
|
3645
|
+
* @throws {RequiredError}
|
|
3646
|
+
* @memberof HostingDatabasesApi
|
|
3647
|
+
*/
|
|
3648
|
+
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
3649
|
+
return HostingDatabasesApiFp(this.configuration).createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3650
|
+
}
|
|
3651
|
+
/**
|
|
3652
|
+
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
3653
|
+
* @summary Delete account database
|
|
3654
|
+
* @param {string} username
|
|
3655
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3656
|
+
* @param {*} [options] Override http request option.
|
|
3657
|
+
* @throws {RequiredError}
|
|
3658
|
+
* @memberof HostingDatabasesApi
|
|
3659
|
+
*/
|
|
3660
|
+
deleteAccountDatabaseV1(username, name, options) {
|
|
3661
|
+
return HostingDatabasesApiFp(this.configuration).deleteAccountDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
3662
|
+
}
|
|
3663
|
+
/**
|
|
3664
|
+
* 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.
|
|
3665
|
+
* @summary Get phpMyAdmin link
|
|
3666
|
+
* @param {string} username
|
|
3667
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3668
|
+
* @param {*} [options] Override http request option.
|
|
3669
|
+
* @throws {RequiredError}
|
|
3670
|
+
* @memberof HostingDatabasesApi
|
|
3671
|
+
*/
|
|
3672
|
+
getPhpMyAdminLinkV1(username, name, options) {
|
|
3673
|
+
return HostingDatabasesApiFp(this.configuration).getPhpMyAdminLinkV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
3674
|
+
}
|
|
3675
|
+
/**
|
|
3676
|
+
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
3677
|
+
* @summary List account databases
|
|
3678
|
+
* @param {string} username
|
|
3679
|
+
* @param {number} [page] Page number
|
|
3680
|
+
* @param {number} [perPage] Number of items per page
|
|
3681
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
3682
|
+
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
3683
|
+
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
3684
|
+
* @param {*} [options] Override http request option.
|
|
3685
|
+
* @throws {RequiredError}
|
|
3686
|
+
* @memberof HostingDatabasesApi
|
|
3687
|
+
*/
|
|
3688
|
+
listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
|
|
3689
|
+
return HostingDatabasesApiFp(this.configuration).listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options).then((request) => request(this.axios, this.basePath));
|
|
3690
|
+
}
|
|
3691
|
+
/**
|
|
3692
|
+
* Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
|
|
3693
|
+
* @summary Repair database
|
|
3694
|
+
* @param {string} username
|
|
3695
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3696
|
+
* @param {*} [options] Override http request option.
|
|
3697
|
+
* @throws {RequiredError}
|
|
3698
|
+
* @memberof HostingDatabasesApi
|
|
3699
|
+
*/
|
|
3700
|
+
repairDatabaseV1(username, name, options) {
|
|
3701
|
+
return HostingDatabasesApiFp(this.configuration).repairDatabaseV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
/**
|
|
3705
|
+
* HostingDatacentersApi - axios parameter creator
|
|
3706
|
+
* @export
|
|
3707
|
+
*/
|
|
3708
|
+
export const HostingDatacentersApiAxiosParamCreator = function (configuration) {
|
|
3709
|
+
return {
|
|
3710
|
+
/**
|
|
3711
|
+
* Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
|
|
3712
|
+
* @summary List available datacenters
|
|
3713
|
+
* @param {number} orderId Order ID
|
|
3714
|
+
* @param {*} [options] Override http request option.
|
|
3715
|
+
* @throws {RequiredError}
|
|
3716
|
+
*/
|
|
3717
|
+
listAvailableDatacentersV1: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
3718
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
3719
|
+
assertParamExists('listAvailableDatacentersV1', 'orderId', orderId);
|
|
3720
|
+
const localVarPath = `/api/hosting/v1/datacenters`;
|
|
3721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3723
|
+
let baseOptions;
|
|
3724
|
+
if (configuration) {
|
|
3725
|
+
baseOptions = configuration.baseOptions;
|
|
3726
|
+
}
|
|
3727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3728
|
+
const localVarHeaderParameter = {};
|
|
3729
|
+
const localVarQueryParameter = {};
|
|
3730
|
+
// authentication apiToken required
|
|
3731
|
+
// http bearer authentication required
|
|
3732
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3733
|
+
if (orderId !== undefined) {
|
|
3734
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
3735
|
+
}
|
|
3736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3738
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3739
|
+
return {
|
|
3740
|
+
url: toPathString(localVarUrlObj),
|
|
3741
|
+
options: localVarRequestOptions,
|
|
3742
|
+
};
|
|
3743
|
+
}),
|
|
3744
|
+
};
|
|
3745
|
+
};
|
|
3746
|
+
/**
|
|
3747
|
+
* HostingDatacentersApi - functional programming interface
|
|
3748
|
+
* @export
|
|
3749
|
+
*/
|
|
3750
|
+
export const HostingDatacentersApiFp = function (configuration) {
|
|
3751
|
+
const localVarAxiosParamCreator = HostingDatacentersApiAxiosParamCreator(configuration);
|
|
3752
|
+
return {
|
|
3753
|
+
/**
|
|
3754
|
+
* Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
|
|
3755
|
+
* @summary List available datacenters
|
|
3756
|
+
* @param {number} orderId Order ID
|
|
3757
|
+
* @param {*} [options] Override http request option.
|
|
3758
|
+
* @throws {RequiredError}
|
|
3759
|
+
*/
|
|
3760
|
+
listAvailableDatacentersV1(orderId, options) {
|
|
3761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3762
|
+
var _a, _b;
|
|
3763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableDatacentersV1(orderId, options);
|
|
3764
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatacentersApi.listAvailableDatacentersV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3766
|
+
});
|
|
3767
|
+
},
|
|
3768
|
+
};
|
|
3769
|
+
};
|
|
3770
|
+
/**
|
|
3771
|
+
* HostingDatacentersApi - factory interface
|
|
3772
|
+
* @export
|
|
3773
|
+
*/
|
|
3774
|
+
export const HostingDatacentersApiFactory = function (configuration, basePath, axios) {
|
|
3775
|
+
const localVarFp = HostingDatacentersApiFp(configuration);
|
|
3776
|
+
return {
|
|
3777
|
+
/**
|
|
3778
|
+
* Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
|
|
3779
|
+
* @summary List available datacenters
|
|
3780
|
+
* @param {number} orderId Order ID
|
|
3781
|
+
* @param {*} [options] Override http request option.
|
|
3782
|
+
* @throws {RequiredError}
|
|
3783
|
+
*/
|
|
3784
|
+
listAvailableDatacentersV1(orderId, options) {
|
|
3785
|
+
return localVarFp.listAvailableDatacentersV1(orderId, options).then((request) => request(axios, basePath));
|
|
3786
|
+
},
|
|
3787
|
+
};
|
|
3788
|
+
};
|
|
3789
|
+
/**
|
|
3790
|
+
* HostingDatacentersApi - object-oriented interface
|
|
3791
|
+
* @export
|
|
3792
|
+
* @class HostingDatacentersApi
|
|
3793
|
+
* @extends {BaseAPI}
|
|
3794
|
+
*/
|
|
3795
|
+
export class HostingDatacentersApi extends BaseAPI {
|
|
3796
|
+
/**
|
|
3797
|
+
* Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
|
|
3798
|
+
* @summary List available datacenters
|
|
3799
|
+
* @param {number} orderId Order ID
|
|
3800
|
+
* @param {*} [options] Override http request option.
|
|
3801
|
+
* @throws {RequiredError}
|
|
3802
|
+
* @memberof HostingDatacentersApi
|
|
3803
|
+
*/
|
|
3804
|
+
listAvailableDatacentersV1(orderId, options) {
|
|
3805
|
+
return HostingDatacentersApiFp(this.configuration).listAvailableDatacentersV1(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
3806
|
+
}
|
|
3807
|
+
}
|
|
3808
|
+
/**
|
|
3809
|
+
* HostingDomainsApi - axios parameter creator
|
|
3810
|
+
* @export
|
|
3811
|
+
*/
|
|
3812
|
+
export const HostingDomainsApiAxiosParamCreator = function (configuration) {
|
|
3813
|
+
return {
|
|
3814
|
+
/**
|
|
3815
|
+
* Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
|
|
3816
|
+
* @summary Create website parked domain
|
|
3817
|
+
* @param {string} username
|
|
3818
|
+
* @param {string} domain Domain name
|
|
3819
|
+
* @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
|
|
3820
|
+
* @param {*} [options] Override http request option.
|
|
3821
|
+
* @throws {RequiredError}
|
|
3822
|
+
*/
|
|
3823
|
+
createWebsiteParkedDomainV1: (username_1, domain_1, hostingV1DomainsCreateParkedDomainRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DomainsCreateParkedDomainRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DomainsCreateParkedDomainRequest, options = {}) {
|
|
3824
|
+
// verify required parameter 'username' is not null or undefined
|
|
3825
|
+
assertParamExists('createWebsiteParkedDomainV1', 'username', username);
|
|
3826
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3827
|
+
assertParamExists('createWebsiteParkedDomainV1', 'domain', domain);
|
|
3828
|
+
// verify required parameter 'hostingV1DomainsCreateParkedDomainRequest' is not null or undefined
|
|
3829
|
+
assertParamExists('createWebsiteParkedDomainV1', 'hostingV1DomainsCreateParkedDomainRequest', hostingV1DomainsCreateParkedDomainRequest);
|
|
3830
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains`
|
|
3831
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3832
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3833
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3834
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3835
|
+
let baseOptions;
|
|
3836
|
+
if (configuration) {
|
|
3837
|
+
baseOptions = configuration.baseOptions;
|
|
3838
|
+
}
|
|
3839
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3840
|
+
const localVarHeaderParameter = {};
|
|
3841
|
+
const localVarQueryParameter = {};
|
|
3842
|
+
// authentication apiToken required
|
|
3843
|
+
// http bearer authentication required
|
|
3844
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3845
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3846
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3847
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3848
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3849
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DomainsCreateParkedDomainRequest, localVarRequestOptions, configuration);
|
|
3850
|
+
return {
|
|
3851
|
+
url: toPathString(localVarUrlObj),
|
|
3852
|
+
options: localVarRequestOptions,
|
|
3853
|
+
};
|
|
3854
|
+
}),
|
|
3855
|
+
/**
|
|
3856
|
+
* Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
|
|
3857
|
+
* @summary Create website subdomain
|
|
3858
|
+
* @param {string} username
|
|
3859
|
+
* @param {string} domain Domain name
|
|
3860
|
+
* @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
|
|
3861
|
+
* @param {*} [options] Override http request option.
|
|
3862
|
+
* @throws {RequiredError}
|
|
3863
|
+
*/
|
|
3864
|
+
createWebsiteSubdomainV1: (username_1, domain_1, hostingV1DomainsCreateSubdomainRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1DomainsCreateSubdomainRequest_1, ...args_1], void 0, function* (username, domain, hostingV1DomainsCreateSubdomainRequest, options = {}) {
|
|
3865
|
+
// verify required parameter 'username' is not null or undefined
|
|
3866
|
+
assertParamExists('createWebsiteSubdomainV1', 'username', username);
|
|
3867
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3868
|
+
assertParamExists('createWebsiteSubdomainV1', 'domain', domain);
|
|
3869
|
+
// verify required parameter 'hostingV1DomainsCreateSubdomainRequest' is not null or undefined
|
|
3870
|
+
assertParamExists('createWebsiteSubdomainV1', 'hostingV1DomainsCreateSubdomainRequest', hostingV1DomainsCreateSubdomainRequest);
|
|
3871
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
|
|
3872
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3873
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3876
|
+
let baseOptions;
|
|
3877
|
+
if (configuration) {
|
|
3878
|
+
baseOptions = configuration.baseOptions;
|
|
3879
|
+
}
|
|
3880
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3881
|
+
const localVarHeaderParameter = {};
|
|
3882
|
+
const localVarQueryParameter = {};
|
|
3883
|
+
// authentication apiToken required
|
|
3884
|
+
// http bearer authentication required
|
|
3885
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3886
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3887
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3889
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3890
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DomainsCreateSubdomainRequest, localVarRequestOptions, configuration);
|
|
3891
|
+
return {
|
|
3892
|
+
url: toPathString(localVarUrlObj),
|
|
3893
|
+
options: localVarRequestOptions,
|
|
3894
|
+
};
|
|
3895
|
+
}),
|
|
3896
|
+
/**
|
|
3897
|
+
* Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
|
|
3898
|
+
* @summary Delete website parked domain
|
|
3899
|
+
* @param {string} username
|
|
3900
|
+
* @param {string} domain Domain name
|
|
3901
|
+
* @param {string} parkedDomain
|
|
3902
|
+
* @param {*} [options] Override http request option.
|
|
3903
|
+
* @throws {RequiredError}
|
|
3904
|
+
*/
|
|
3905
|
+
deleteWebsiteParkedDomainV1: (username_1, domain_1, parkedDomain_1, ...args_1) => __awaiter(this, [username_1, domain_1, parkedDomain_1, ...args_1], void 0, function* (username, domain, parkedDomain, options = {}) {
|
|
3906
|
+
// verify required parameter 'username' is not null or undefined
|
|
3907
|
+
assertParamExists('deleteWebsiteParkedDomainV1', 'username', username);
|
|
3908
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3909
|
+
assertParamExists('deleteWebsiteParkedDomainV1', 'domain', domain);
|
|
3910
|
+
// verify required parameter 'parkedDomain' is not null or undefined
|
|
3911
|
+
assertParamExists('deleteWebsiteParkedDomainV1', 'parkedDomain', parkedDomain);
|
|
3912
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}`
|
|
3913
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3914
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
|
|
3915
|
+
.replace(`{${"parkedDomain"}}`, encodeURIComponent(String(parkedDomain)));
|
|
3916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3917
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3918
|
+
let baseOptions;
|
|
3919
|
+
if (configuration) {
|
|
3920
|
+
baseOptions = configuration.baseOptions;
|
|
3921
|
+
}
|
|
3922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3923
|
+
const localVarHeaderParameter = {};
|
|
3924
|
+
const localVarQueryParameter = {};
|
|
3925
|
+
// authentication apiToken required
|
|
3926
|
+
// http bearer authentication required
|
|
3927
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3928
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3930
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3931
|
+
return {
|
|
3932
|
+
url: toPathString(localVarUrlObj),
|
|
3933
|
+
options: localVarRequestOptions,
|
|
3934
|
+
};
|
|
3935
|
+
}),
|
|
3936
|
+
/**
|
|
3937
|
+
* Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
|
|
3938
|
+
* @summary Delete website subdomain
|
|
3939
|
+
* @param {string} username
|
|
3940
|
+
* @param {string} domain Domain name
|
|
3941
|
+
* @param {string} subdomain
|
|
3942
|
+
* @param {*} [options] Override http request option.
|
|
3943
|
+
* @throws {RequiredError}
|
|
3944
|
+
*/
|
|
3945
|
+
deleteWebsiteSubdomainV1: (username_1, domain_1, subdomain_1, ...args_1) => __awaiter(this, [username_1, domain_1, subdomain_1, ...args_1], void 0, function* (username, domain, subdomain, options = {}) {
|
|
3946
|
+
// verify required parameter 'username' is not null or undefined
|
|
3947
|
+
assertParamExists('deleteWebsiteSubdomainV1', 'username', username);
|
|
3948
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3949
|
+
assertParamExists('deleteWebsiteSubdomainV1', 'domain', domain);
|
|
3950
|
+
// verify required parameter 'subdomain' is not null or undefined
|
|
3951
|
+
assertParamExists('deleteWebsiteSubdomainV1', 'subdomain', subdomain);
|
|
3952
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}`
|
|
3953
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3954
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
|
|
3955
|
+
.replace(`{${"subdomain"}}`, encodeURIComponent(String(subdomain)));
|
|
3956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3958
|
+
let baseOptions;
|
|
3959
|
+
if (configuration) {
|
|
3960
|
+
baseOptions = configuration.baseOptions;
|
|
3961
|
+
}
|
|
3962
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3963
|
+
const localVarHeaderParameter = {};
|
|
3964
|
+
const localVarQueryParameter = {};
|
|
3965
|
+
// authentication apiToken required
|
|
3966
|
+
// http bearer authentication required
|
|
3967
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3968
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3969
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3970
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3971
|
+
return {
|
|
3972
|
+
url: toPathString(localVarUrlObj),
|
|
3973
|
+
options: localVarRequestOptions,
|
|
3974
|
+
};
|
|
3975
|
+
}),
|
|
3976
|
+
/**
|
|
3977
|
+
* Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
|
|
3978
|
+
* @summary Generate a free subdomain
|
|
3979
|
+
* @param {*} [options] Override http request option.
|
|
3980
|
+
* @throws {RequiredError}
|
|
3981
|
+
*/
|
|
3982
|
+
generateAFreeSubdomainV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3983
|
+
const localVarPath = `/api/hosting/v1/domains/free-subdomains`;
|
|
3984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3986
|
+
let baseOptions;
|
|
3987
|
+
if (configuration) {
|
|
3988
|
+
baseOptions = configuration.baseOptions;
|
|
3989
|
+
}
|
|
3990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3991
|
+
const localVarHeaderParameter = {};
|
|
3992
|
+
const localVarQueryParameter = {};
|
|
3993
|
+
// authentication apiToken required
|
|
3994
|
+
// http bearer authentication required
|
|
3995
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3998
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3999
|
+
return {
|
|
4000
|
+
url: toPathString(localVarUrlObj),
|
|
4001
|
+
options: localVarRequestOptions,
|
|
4002
|
+
};
|
|
4003
|
+
}),
|
|
4004
|
+
/**
|
|
4005
|
+
* Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
|
|
4006
|
+
* @summary List website parked domains
|
|
4007
|
+
* @param {string} username
|
|
4008
|
+
* @param {string} domain Domain name
|
|
4009
|
+
* @param {*} [options] Override http request option.
|
|
4010
|
+
* @throws {RequiredError}
|
|
4011
|
+
*/
|
|
4012
|
+
listWebsiteParkedDomainsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4013
|
+
// verify required parameter 'username' is not null or undefined
|
|
4014
|
+
assertParamExists('listWebsiteParkedDomainsV1', 'username', username);
|
|
4015
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4016
|
+
assertParamExists('listWebsiteParkedDomainsV1', 'domain', domain);
|
|
4017
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains`
|
|
4018
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4019
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4022
|
+
let baseOptions;
|
|
4023
|
+
if (configuration) {
|
|
4024
|
+
baseOptions = configuration.baseOptions;
|
|
4025
|
+
}
|
|
4026
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4027
|
+
const localVarHeaderParameter = {};
|
|
4028
|
+
const localVarQueryParameter = {};
|
|
4029
|
+
// authentication apiToken required
|
|
4030
|
+
// http bearer authentication required
|
|
4031
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4034
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4035
|
+
return {
|
|
4036
|
+
url: toPathString(localVarUrlObj),
|
|
4037
|
+
options: localVarRequestOptions,
|
|
4038
|
+
};
|
|
4039
|
+
}),
|
|
4040
|
+
/**
|
|
4041
|
+
* Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
|
|
4042
|
+
* @summary List website subdomains
|
|
4043
|
+
* @param {string} username
|
|
4044
|
+
* @param {string} domain Domain name
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
*/
|
|
4048
|
+
listWebsiteSubdomainsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4049
|
+
// verify required parameter 'username' is not null or undefined
|
|
4050
|
+
assertParamExists('listWebsiteSubdomainsV1', 'username', username);
|
|
4051
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4052
|
+
assertParamExists('listWebsiteSubdomainsV1', 'domain', domain);
|
|
4053
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`
|
|
4054
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4055
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4056
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4057
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4058
|
+
let baseOptions;
|
|
4059
|
+
if (configuration) {
|
|
4060
|
+
baseOptions = configuration.baseOptions;
|
|
4061
|
+
}
|
|
4062
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4063
|
+
const localVarHeaderParameter = {};
|
|
4064
|
+
const localVarQueryParameter = {};
|
|
4065
|
+
// authentication apiToken required
|
|
4066
|
+
// http bearer authentication required
|
|
4067
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4068
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4069
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4070
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4071
|
+
return {
|
|
4072
|
+
url: toPathString(localVarUrlObj),
|
|
4073
|
+
options: localVarRequestOptions,
|
|
4074
|
+
};
|
|
4075
|
+
}),
|
|
4076
|
+
/**
|
|
4077
|
+
* Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
|
|
4078
|
+
* @summary Verify domain ownership
|
|
4079
|
+
* @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
|
|
4080
|
+
* @param {*} [options] Override http request option.
|
|
4081
|
+
* @throws {RequiredError}
|
|
4082
|
+
*/
|
|
4083
|
+
verifyDomainOwnershipV1: (hostingV1DomainsVerifyOwnershipRequest_1, ...args_1) => __awaiter(this, [hostingV1DomainsVerifyOwnershipRequest_1, ...args_1], void 0, function* (hostingV1DomainsVerifyOwnershipRequest, options = {}) {
|
|
4084
|
+
// verify required parameter 'hostingV1DomainsVerifyOwnershipRequest' is not null or undefined
|
|
4085
|
+
assertParamExists('verifyDomainOwnershipV1', 'hostingV1DomainsVerifyOwnershipRequest', hostingV1DomainsVerifyOwnershipRequest);
|
|
4086
|
+
const localVarPath = `/api/hosting/v1/domains/verify-ownership`;
|
|
4087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4088
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4089
|
+
let baseOptions;
|
|
4090
|
+
if (configuration) {
|
|
4091
|
+
baseOptions = configuration.baseOptions;
|
|
4092
|
+
}
|
|
4093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4094
|
+
const localVarHeaderParameter = {};
|
|
4095
|
+
const localVarQueryParameter = {};
|
|
4096
|
+
// authentication apiToken required
|
|
4097
|
+
// http bearer authentication required
|
|
4098
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4099
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4102
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4103
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DomainsVerifyOwnershipRequest, localVarRequestOptions, configuration);
|
|
4104
|
+
return {
|
|
4105
|
+
url: toPathString(localVarUrlObj),
|
|
4106
|
+
options: localVarRequestOptions,
|
|
4107
|
+
};
|
|
4108
|
+
}),
|
|
4109
|
+
};
|
|
4110
|
+
};
|
|
4111
|
+
/**
|
|
4112
|
+
* HostingDomainsApi - functional programming interface
|
|
4113
|
+
* @export
|
|
4114
|
+
*/
|
|
4115
|
+
export const HostingDomainsApiFp = function (configuration) {
|
|
4116
|
+
const localVarAxiosParamCreator = HostingDomainsApiAxiosParamCreator(configuration);
|
|
4117
|
+
return {
|
|
4118
|
+
/**
|
|
4119
|
+
* Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
|
|
4120
|
+
* @summary Create website parked domain
|
|
4121
|
+
* @param {string} username
|
|
4122
|
+
* @param {string} domain Domain name
|
|
4123
|
+
* @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
|
|
4124
|
+
* @param {*} [options] Override http request option.
|
|
4125
|
+
* @throws {RequiredError}
|
|
4126
|
+
*/
|
|
4127
|
+
createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options) {
|
|
4128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4129
|
+
var _a, _b;
|
|
4130
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options);
|
|
4131
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.createWebsiteParkedDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4133
|
+
});
|
|
4134
|
+
},
|
|
4135
|
+
/**
|
|
4136
|
+
* Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
|
|
4137
|
+
* @summary Create website subdomain
|
|
4138
|
+
* @param {string} username
|
|
4139
|
+
* @param {string} domain Domain name
|
|
4140
|
+
* @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
|
|
4141
|
+
* @param {*} [options] Override http request option.
|
|
4142
|
+
* @throws {RequiredError}
|
|
4143
|
+
*/
|
|
4144
|
+
createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options) {
|
|
4145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4146
|
+
var _a, _b;
|
|
4147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options);
|
|
4148
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.createWebsiteSubdomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4149
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4150
|
+
});
|
|
4151
|
+
},
|
|
4152
|
+
/**
|
|
4153
|
+
* Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
|
|
4154
|
+
* @summary Delete website parked domain
|
|
4155
|
+
* @param {string} username
|
|
4156
|
+
* @param {string} domain Domain name
|
|
4157
|
+
* @param {string} parkedDomain
|
|
4158
|
+
* @param {*} [options] Override http request option.
|
|
4159
|
+
* @throws {RequiredError}
|
|
4160
|
+
*/
|
|
4161
|
+
deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options) {
|
|
4162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4163
|
+
var _a, _b;
|
|
4164
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options);
|
|
4165
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.deleteWebsiteParkedDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4167
|
+
});
|
|
4168
|
+
},
|
|
4169
|
+
/**
|
|
4170
|
+
* Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
|
|
4171
|
+
* @summary Delete website subdomain
|
|
4172
|
+
* @param {string} username
|
|
4173
|
+
* @param {string} domain Domain name
|
|
4174
|
+
* @param {string} subdomain
|
|
4175
|
+
* @param {*} [options] Override http request option.
|
|
4176
|
+
* @throws {RequiredError}
|
|
4177
|
+
*/
|
|
4178
|
+
deleteWebsiteSubdomainV1(username, domain, subdomain, options) {
|
|
4179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4180
|
+
var _a, _b;
|
|
4181
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebsiteSubdomainV1(username, domain, subdomain, options);
|
|
4182
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.deleteWebsiteSubdomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4183
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4184
|
+
});
|
|
4185
|
+
},
|
|
4186
|
+
/**
|
|
4187
|
+
* Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
|
|
4188
|
+
* @summary Generate a free subdomain
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
*/
|
|
4192
|
+
generateAFreeSubdomainV1(options) {
|
|
4193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4194
|
+
var _a, _b;
|
|
4195
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateAFreeSubdomainV1(options);
|
|
4196
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.generateAFreeSubdomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4197
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4198
|
+
});
|
|
4199
|
+
},
|
|
4200
|
+
/**
|
|
4201
|
+
* Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
|
|
4202
|
+
* @summary List website parked domains
|
|
4203
|
+
* @param {string} username
|
|
4204
|
+
* @param {string} domain Domain name
|
|
4205
|
+
* @param {*} [options] Override http request option.
|
|
4206
|
+
* @throws {RequiredError}
|
|
4207
|
+
*/
|
|
4208
|
+
listWebsiteParkedDomainsV1(username, domain, options) {
|
|
4209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4210
|
+
var _a, _b;
|
|
4211
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteParkedDomainsV1(username, domain, options);
|
|
4212
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.listWebsiteParkedDomainsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4214
|
+
});
|
|
4215
|
+
},
|
|
4216
|
+
/**
|
|
4217
|
+
* Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
|
|
4218
|
+
* @summary List website subdomains
|
|
4219
|
+
* @param {string} username
|
|
4220
|
+
* @param {string} domain Domain name
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
*/
|
|
4224
|
+
listWebsiteSubdomainsV1(username, domain, options) {
|
|
4225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4226
|
+
var _a, _b;
|
|
4227
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsiteSubdomainsV1(username, domain, options);
|
|
4228
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.listWebsiteSubdomainsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4229
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4230
|
+
});
|
|
4231
|
+
},
|
|
4232
|
+
/**
|
|
4233
|
+
* Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
|
|
4234
|
+
* @summary Verify domain ownership
|
|
4235
|
+
* @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
|
|
4236
|
+
* @param {*} [options] Override http request option.
|
|
4237
|
+
* @throws {RequiredError}
|
|
4238
|
+
*/
|
|
4239
|
+
verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options) {
|
|
4240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4241
|
+
var _a, _b;
|
|
4242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options);
|
|
4243
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDomainsApi.verifyDomainOwnershipV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4244
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4245
|
+
});
|
|
4246
|
+
},
|
|
4247
|
+
};
|
|
4248
|
+
};
|
|
4249
|
+
/**
|
|
4250
|
+
* HostingDomainsApi - factory interface
|
|
4251
|
+
* @export
|
|
4252
|
+
*/
|
|
4253
|
+
export const HostingDomainsApiFactory = function (configuration, basePath, axios) {
|
|
4254
|
+
const localVarFp = HostingDomainsApiFp(configuration);
|
|
4255
|
+
return {
|
|
4256
|
+
/**
|
|
4257
|
+
* Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
|
|
4258
|
+
* @summary Create website parked domain
|
|
4259
|
+
* @param {string} username
|
|
4260
|
+
* @param {string} domain Domain name
|
|
4261
|
+
* @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
|
|
4262
|
+
* @param {*} [options] Override http request option.
|
|
4263
|
+
* @throws {RequiredError}
|
|
4264
|
+
*/
|
|
4265
|
+
createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options) {
|
|
4266
|
+
return localVarFp.createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options).then((request) => request(axios, basePath));
|
|
4267
|
+
},
|
|
4268
|
+
/**
|
|
4269
|
+
* Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
|
|
4270
|
+
* @summary Create website subdomain
|
|
4271
|
+
* @param {string} username
|
|
4272
|
+
* @param {string} domain Domain name
|
|
4273
|
+
* @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
|
|
4274
|
+
* @param {*} [options] Override http request option.
|
|
4275
|
+
* @throws {RequiredError}
|
|
4276
|
+
*/
|
|
4277
|
+
createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options) {
|
|
4278
|
+
return localVarFp.createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options).then((request) => request(axios, basePath));
|
|
4279
|
+
},
|
|
4280
|
+
/**
|
|
4281
|
+
* Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
|
|
4282
|
+
* @summary Delete website parked domain
|
|
4283
|
+
* @param {string} username
|
|
4284
|
+
* @param {string} domain Domain name
|
|
4285
|
+
* @param {string} parkedDomain
|
|
4286
|
+
* @param {*} [options] Override http request option.
|
|
4287
|
+
* @throws {RequiredError}
|
|
4288
|
+
*/
|
|
4289
|
+
deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options) {
|
|
4290
|
+
return localVarFp.deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options).then((request) => request(axios, basePath));
|
|
4291
|
+
},
|
|
4292
|
+
/**
|
|
4293
|
+
* Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
|
|
4294
|
+
* @summary Delete website subdomain
|
|
4295
|
+
* @param {string} username
|
|
4296
|
+
* @param {string} domain Domain name
|
|
4297
|
+
* @param {string} subdomain
|
|
4298
|
+
* @param {*} [options] Override http request option.
|
|
4299
|
+
* @throws {RequiredError}
|
|
4300
|
+
*/
|
|
4301
|
+
deleteWebsiteSubdomainV1(username, domain, subdomain, options) {
|
|
4302
|
+
return localVarFp.deleteWebsiteSubdomainV1(username, domain, subdomain, options).then((request) => request(axios, basePath));
|
|
4303
|
+
},
|
|
4304
|
+
/**
|
|
4305
|
+
* Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
|
|
4306
|
+
* @summary Generate a free subdomain
|
|
4307
|
+
* @param {*} [options] Override http request option.
|
|
4308
|
+
* @throws {RequiredError}
|
|
4309
|
+
*/
|
|
4310
|
+
generateAFreeSubdomainV1(options) {
|
|
4311
|
+
return localVarFp.generateAFreeSubdomainV1(options).then((request) => request(axios, basePath));
|
|
4312
|
+
},
|
|
4313
|
+
/**
|
|
4314
|
+
* Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
|
|
4315
|
+
* @summary List website parked domains
|
|
4316
|
+
* @param {string} username
|
|
4317
|
+
* @param {string} domain Domain name
|
|
4318
|
+
* @param {*} [options] Override http request option.
|
|
4319
|
+
* @throws {RequiredError}
|
|
4320
|
+
*/
|
|
4321
|
+
listWebsiteParkedDomainsV1(username, domain, options) {
|
|
4322
|
+
return localVarFp.listWebsiteParkedDomainsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4323
|
+
},
|
|
4324
|
+
/**
|
|
4325
|
+
* Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
|
|
4326
|
+
* @summary List website subdomains
|
|
4327
|
+
* @param {string} username
|
|
4328
|
+
* @param {string} domain Domain name
|
|
4329
|
+
* @param {*} [options] Override http request option.
|
|
4330
|
+
* @throws {RequiredError}
|
|
4331
|
+
*/
|
|
4332
|
+
listWebsiteSubdomainsV1(username, domain, options) {
|
|
4333
|
+
return localVarFp.listWebsiteSubdomainsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4334
|
+
},
|
|
4335
|
+
/**
|
|
4336
|
+
* Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
|
|
4337
|
+
* @summary Verify domain ownership
|
|
4338
|
+
* @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
|
|
4339
|
+
* @param {*} [options] Override http request option.
|
|
4340
|
+
* @throws {RequiredError}
|
|
4341
|
+
*/
|
|
4342
|
+
verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options) {
|
|
4343
|
+
return localVarFp.verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options).then((request) => request(axios, basePath));
|
|
4344
|
+
},
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
|
+
/**
|
|
4348
|
+
* HostingDomainsApi - object-oriented interface
|
|
4349
|
+
* @export
|
|
4350
|
+
* @class HostingDomainsApi
|
|
4351
|
+
* @extends {BaseAPI}
|
|
4352
|
+
*/
|
|
4353
|
+
export class HostingDomainsApi extends BaseAPI {
|
|
4354
|
+
/**
|
|
4355
|
+
* Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
|
|
4356
|
+
* @summary Create website parked domain
|
|
4357
|
+
* @param {string} username
|
|
4358
|
+
* @param {string} domain Domain name
|
|
4359
|
+
* @param {HostingV1DomainsCreateParkedDomainRequest} hostingV1DomainsCreateParkedDomainRequest
|
|
4360
|
+
* @param {*} [options] Override http request option.
|
|
4361
|
+
* @throws {RequiredError}
|
|
4362
|
+
* @memberof HostingDomainsApi
|
|
4363
|
+
*/
|
|
4364
|
+
createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options) {
|
|
4365
|
+
return HostingDomainsApiFp(this.configuration).createWebsiteParkedDomainV1(username, domain, hostingV1DomainsCreateParkedDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4366
|
+
}
|
|
4367
|
+
/**
|
|
4368
|
+
* Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
|
|
4369
|
+
* @summary Create website subdomain
|
|
4370
|
+
* @param {string} username
|
|
4371
|
+
* @param {string} domain Domain name
|
|
4372
|
+
* @param {HostingV1DomainsCreateSubdomainRequest} hostingV1DomainsCreateSubdomainRequest
|
|
4373
|
+
* @param {*} [options] Override http request option.
|
|
4374
|
+
* @throws {RequiredError}
|
|
4375
|
+
* @memberof HostingDomainsApi
|
|
4376
|
+
*/
|
|
4377
|
+
createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options) {
|
|
4378
|
+
return HostingDomainsApiFp(this.configuration).createWebsiteSubdomainV1(username, domain, hostingV1DomainsCreateSubdomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4379
|
+
}
|
|
4380
|
+
/**
|
|
4381
|
+
* Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
|
|
4382
|
+
* @summary Delete website parked domain
|
|
4383
|
+
* @param {string} username
|
|
4384
|
+
* @param {string} domain Domain name
|
|
4385
|
+
* @param {string} parkedDomain
|
|
4386
|
+
* @param {*} [options] Override http request option.
|
|
4387
|
+
* @throws {RequiredError}
|
|
4388
|
+
* @memberof HostingDomainsApi
|
|
4389
|
+
*/
|
|
4390
|
+
deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options) {
|
|
4391
|
+
return HostingDomainsApiFp(this.configuration).deleteWebsiteParkedDomainV1(username, domain, parkedDomain, options).then((request) => request(this.axios, this.basePath));
|
|
4392
|
+
}
|
|
4393
|
+
/**
|
|
4394
|
+
* Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
|
|
4395
|
+
* @summary Delete website subdomain
|
|
4396
|
+
* @param {string} username
|
|
4397
|
+
* @param {string} domain Domain name
|
|
4398
|
+
* @param {string} subdomain
|
|
4399
|
+
* @param {*} [options] Override http request option.
|
|
4400
|
+
* @throws {RequiredError}
|
|
4401
|
+
* @memberof HostingDomainsApi
|
|
4402
|
+
*/
|
|
4403
|
+
deleteWebsiteSubdomainV1(username, domain, subdomain, options) {
|
|
4404
|
+
return HostingDomainsApiFp(this.configuration).deleteWebsiteSubdomainV1(username, domain, subdomain, options).then((request) => request(this.axios, this.basePath));
|
|
4405
|
+
}
|
|
4406
|
+
/**
|
|
4407
|
+
* Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
|
|
4408
|
+
* @summary Generate a free subdomain
|
|
4409
|
+
* @param {*} [options] Override http request option.
|
|
4410
|
+
* @throws {RequiredError}
|
|
4411
|
+
* @memberof HostingDomainsApi
|
|
4412
|
+
*/
|
|
4413
|
+
generateAFreeSubdomainV1(options) {
|
|
4414
|
+
return HostingDomainsApiFp(this.configuration).generateAFreeSubdomainV1(options).then((request) => request(this.axios, this.basePath));
|
|
4415
|
+
}
|
|
4416
|
+
/**
|
|
4417
|
+
* Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
|
|
4418
|
+
* @summary List website parked domains
|
|
4419
|
+
* @param {string} username
|
|
4420
|
+
* @param {string} domain Domain name
|
|
4421
|
+
* @param {*} [options] Override http request option.
|
|
4422
|
+
* @throws {RequiredError}
|
|
4423
|
+
* @memberof HostingDomainsApi
|
|
4424
|
+
*/
|
|
4425
|
+
listWebsiteParkedDomainsV1(username, domain, options) {
|
|
4426
|
+
return HostingDomainsApiFp(this.configuration).listWebsiteParkedDomainsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4427
|
+
}
|
|
4428
|
+
/**
|
|
4429
|
+
* Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
|
|
4430
|
+
* @summary List website subdomains
|
|
4431
|
+
* @param {string} username
|
|
4432
|
+
* @param {string} domain Domain name
|
|
4433
|
+
* @param {*} [options] Override http request option.
|
|
4434
|
+
* @throws {RequiredError}
|
|
4435
|
+
* @memberof HostingDomainsApi
|
|
4436
|
+
*/
|
|
4437
|
+
listWebsiteSubdomainsV1(username, domain, options) {
|
|
4438
|
+
return HostingDomainsApiFp(this.configuration).listWebsiteSubdomainsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4439
|
+
}
|
|
4440
|
+
/**
|
|
4441
|
+
* Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
|
|
4442
|
+
* @summary Verify domain ownership
|
|
4443
|
+
* @param {HostingV1DomainsVerifyOwnershipRequest} hostingV1DomainsVerifyOwnershipRequest
|
|
4444
|
+
* @param {*} [options] Override http request option.
|
|
4445
|
+
* @throws {RequiredError}
|
|
4446
|
+
* @memberof HostingDomainsApi
|
|
4447
|
+
*/
|
|
4448
|
+
verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options) {
|
|
4449
|
+
return HostingDomainsApiFp(this.configuration).verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
/**
|
|
4453
|
+
* HostingNodeJSApi - axios parameter creator
|
|
4454
|
+
* @export
|
|
4455
|
+
*/
|
|
4456
|
+
export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
4457
|
+
return {
|
|
4458
|
+
/**
|
|
4459
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
4460
|
+
* @summary Create NodeJS build from archive
|
|
4461
|
+
* @param {string} username
|
|
4462
|
+
* @param {string} domain Domain name
|
|
4463
|
+
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
4464
|
+
* @param {*} [options] Override http request option.
|
|
4465
|
+
* @throws {RequiredError}
|
|
4466
|
+
*/
|
|
4467
|
+
createNodeJSBuildFromArchiveV1: (username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsCreateFromArchiveRequest, options = {}) {
|
|
4468
|
+
// verify required parameter 'username' is not null or undefined
|
|
4469
|
+
assertParamExists('createNodeJSBuildFromArchiveV1', 'username', username);
|
|
4470
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4471
|
+
assertParamExists('createNodeJSBuildFromArchiveV1', 'domain', domain);
|
|
4472
|
+
// verify required parameter 'hostingV1NodeJsCreateFromArchiveRequest' is not null or undefined
|
|
4473
|
+
assertParamExists('createNodeJSBuildFromArchiveV1', 'hostingV1NodeJsCreateFromArchiveRequest', hostingV1NodeJsCreateFromArchiveRequest);
|
|
4474
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive`
|
|
4475
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4476
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4477
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4478
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4479
|
+
let baseOptions;
|
|
4480
|
+
if (configuration) {
|
|
4481
|
+
baseOptions = configuration.baseOptions;
|
|
4482
|
+
}
|
|
4483
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4484
|
+
const localVarHeaderParameter = {};
|
|
4485
|
+
const localVarQueryParameter = {};
|
|
4486
|
+
// authentication apiToken required
|
|
4487
|
+
// http bearer authentication required
|
|
4488
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4489
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4490
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4491
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4492
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4493
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1NodeJsCreateFromArchiveRequest, localVarRequestOptions, configuration);
|
|
4494
|
+
return {
|
|
4495
|
+
url: toPathString(localVarUrlObj),
|
|
4496
|
+
options: localVarRequestOptions,
|
|
4497
|
+
};
|
|
4498
|
+
}),
|
|
4499
|
+
/**
|
|
4500
|
+
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
4501
|
+
* @summary Get NodeJS build logs
|
|
4502
|
+
* @param {string} username
|
|
4503
|
+
* @param {string} domain Domain name
|
|
4504
|
+
* @param {string} uuid Build UUID
|
|
4505
|
+
* @param {number | null} [fromLine] Line from which to start retrieving logs
|
|
4506
|
+
* @param {*} [options] Override http request option.
|
|
4507
|
+
* @throws {RequiredError}
|
|
4508
|
+
*/
|
|
4509
|
+
getNodeJSBuildLogsV1: (username_1, domain_1, uuid_1, fromLine_1, ...args_1) => __awaiter(this, [username_1, domain_1, uuid_1, fromLine_1, ...args_1], void 0, function* (username, domain, uuid, fromLine, options = {}) {
|
|
4510
|
+
// verify required parameter 'username' is not null or undefined
|
|
4511
|
+
assertParamExists('getNodeJSBuildLogsV1', 'username', username);
|
|
4512
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4513
|
+
assertParamExists('getNodeJSBuildLogsV1', 'domain', domain);
|
|
4514
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
4515
|
+
assertParamExists('getNodeJSBuildLogsV1', 'uuid', uuid);
|
|
4516
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs`
|
|
4517
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4518
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
|
|
4519
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
4520
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4521
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4522
|
+
let baseOptions;
|
|
4523
|
+
if (configuration) {
|
|
4524
|
+
baseOptions = configuration.baseOptions;
|
|
4525
|
+
}
|
|
4526
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4527
|
+
const localVarHeaderParameter = {};
|
|
4528
|
+
const localVarQueryParameter = {};
|
|
4529
|
+
// authentication apiToken required
|
|
4530
|
+
// http bearer authentication required
|
|
4531
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4532
|
+
if (fromLine !== undefined) {
|
|
4533
|
+
localVarQueryParameter['from_line'] = fromLine;
|
|
4534
|
+
}
|
|
4535
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4537
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4538
|
+
return {
|
|
4539
|
+
url: toPathString(localVarUrlObj),
|
|
4540
|
+
options: localVarRequestOptions,
|
|
4541
|
+
};
|
|
4542
|
+
}),
|
|
4543
|
+
/**
|
|
4544
|
+
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
4545
|
+
* @summary List NodeJS builds
|
|
4546
|
+
* @param {string} username
|
|
4547
|
+
* @param {string} domain Domain name
|
|
4548
|
+
* @param {number} [page] Page number
|
|
4549
|
+
* @param {number} [perPage] Number of items per page
|
|
4550
|
+
* @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
|
|
4551
|
+
* @param {*} [options] Override http request option.
|
|
4552
|
+
* @throws {RequiredError}
|
|
4553
|
+
*/
|
|
4554
|
+
listNodeJSBuildsV1: (username_1, domain_1, page_1, perPage_1, states_1, ...args_1) => __awaiter(this, [username_1, domain_1, page_1, perPage_1, states_1, ...args_1], void 0, function* (username, domain, page, perPage, states, options = {}) {
|
|
4555
|
+
// verify required parameter 'username' is not null or undefined
|
|
4556
|
+
assertParamExists('listNodeJSBuildsV1', 'username', username);
|
|
4557
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4558
|
+
assertParamExists('listNodeJSBuildsV1', 'domain', domain);
|
|
4559
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds`
|
|
4560
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4561
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4562
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4563
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4564
|
+
let baseOptions;
|
|
4565
|
+
if (configuration) {
|
|
4566
|
+
baseOptions = configuration.baseOptions;
|
|
4567
|
+
}
|
|
4568
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4569
|
+
const localVarHeaderParameter = {};
|
|
4570
|
+
const localVarQueryParameter = {};
|
|
4571
|
+
// authentication apiToken required
|
|
4572
|
+
// http bearer authentication required
|
|
4573
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4574
|
+
if (page !== undefined) {
|
|
4575
|
+
localVarQueryParameter['page'] = page;
|
|
4576
|
+
}
|
|
4577
|
+
if (perPage !== undefined) {
|
|
4578
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
4579
|
+
}
|
|
4580
|
+
if (states) {
|
|
4581
|
+
localVarQueryParameter['states'] = states;
|
|
4582
|
+
}
|
|
4583
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4584
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4585
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4586
|
+
return {
|
|
4587
|
+
url: toPathString(localVarUrlObj),
|
|
4588
|
+
options: localVarRequestOptions,
|
|
4589
|
+
};
|
|
4590
|
+
}),
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
/**
|
|
4594
|
+
* HostingNodeJSApi - functional programming interface
|
|
4595
|
+
* @export
|
|
4596
|
+
*/
|
|
4597
|
+
export const HostingNodeJSApiFp = function (configuration) {
|
|
4598
|
+
const localVarAxiosParamCreator = HostingNodeJSApiAxiosParamCreator(configuration);
|
|
4599
|
+
return {
|
|
4600
|
+
/**
|
|
4601
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
4602
|
+
* @summary Create NodeJS build from archive
|
|
4603
|
+
* @param {string} username
|
|
4604
|
+
* @param {string} domain Domain name
|
|
4605
|
+
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
4606
|
+
* @param {*} [options] Override http request option.
|
|
4607
|
+
* @throws {RequiredError}
|
|
4608
|
+
*/
|
|
4609
|
+
createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
|
|
4610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4611
|
+
var _a, _b;
|
|
4612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options);
|
|
4613
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.createNodeJSBuildFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4614
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4615
|
+
});
|
|
4616
|
+
},
|
|
4617
|
+
/**
|
|
4618
|
+
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
4619
|
+
* @summary Get NodeJS build logs
|
|
4620
|
+
* @param {string} username
|
|
4621
|
+
* @param {string} domain Domain name
|
|
4622
|
+
* @param {string} uuid Build UUID
|
|
4623
|
+
* @param {number | null} [fromLine] Line from which to start retrieving logs
|
|
4624
|
+
* @param {*} [options] Override http request option.
|
|
4625
|
+
* @throws {RequiredError}
|
|
4626
|
+
*/
|
|
4627
|
+
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
4628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4629
|
+
var _a, _b;
|
|
4630
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options);
|
|
4631
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.getNodeJSBuildLogsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4633
|
+
});
|
|
4634
|
+
},
|
|
4635
|
+
/**
|
|
4636
|
+
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
4637
|
+
* @summary List NodeJS builds
|
|
4638
|
+
* @param {string} username
|
|
4639
|
+
* @param {string} domain Domain name
|
|
4640
|
+
* @param {number} [page] Page number
|
|
4641
|
+
* @param {number} [perPage] Number of items per page
|
|
4642
|
+
* @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
|
|
4643
|
+
* @param {*} [options] Override http request option.
|
|
4644
|
+
* @throws {RequiredError}
|
|
4645
|
+
*/
|
|
4646
|
+
listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
|
|
4647
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4648
|
+
var _a, _b;
|
|
4649
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listNodeJSBuildsV1(username, domain, page, perPage, states, options);
|
|
4650
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.listNodeJSBuildsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4651
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4652
|
+
});
|
|
4653
|
+
},
|
|
4654
|
+
};
|
|
4655
|
+
};
|
|
4656
|
+
/**
|
|
4657
|
+
* HostingNodeJSApi - factory interface
|
|
4658
|
+
* @export
|
|
4659
|
+
*/
|
|
4660
|
+
export const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
4661
|
+
const localVarFp = HostingNodeJSApiFp(configuration);
|
|
4662
|
+
return {
|
|
4663
|
+
/**
|
|
4664
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
4665
|
+
* @summary Create NodeJS build from archive
|
|
4666
|
+
* @param {string} username
|
|
4667
|
+
* @param {string} domain Domain name
|
|
4668
|
+
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
4669
|
+
* @param {*} [options] Override http request option.
|
|
4670
|
+
* @throws {RequiredError}
|
|
4671
|
+
*/
|
|
4672
|
+
createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
|
|
4673
|
+
return localVarFp.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(axios, basePath));
|
|
4674
|
+
},
|
|
4675
|
+
/**
|
|
4676
|
+
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
4677
|
+
* @summary Get NodeJS build logs
|
|
4678
|
+
* @param {string} username
|
|
4679
|
+
* @param {string} domain Domain name
|
|
4680
|
+
* @param {string} uuid Build UUID
|
|
4681
|
+
* @param {number | null} [fromLine] Line from which to start retrieving logs
|
|
4682
|
+
* @param {*} [options] Override http request option.
|
|
4683
|
+
* @throws {RequiredError}
|
|
4684
|
+
*/
|
|
4685
|
+
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
4686
|
+
return localVarFp.getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(axios, basePath));
|
|
4687
|
+
},
|
|
4688
|
+
/**
|
|
4689
|
+
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
4690
|
+
* @summary List NodeJS builds
|
|
4691
|
+
* @param {string} username
|
|
4692
|
+
* @param {string} domain Domain name
|
|
4693
|
+
* @param {number} [page] Page number
|
|
4694
|
+
* @param {number} [perPage] Number of items per page
|
|
4695
|
+
* @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
|
|
4696
|
+
* @param {*} [options] Override http request option.
|
|
4697
|
+
* @throws {RequiredError}
|
|
4698
|
+
*/
|
|
4699
|
+
listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
|
|
4700
|
+
return localVarFp.listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(axios, basePath));
|
|
4701
|
+
},
|
|
4702
|
+
};
|
|
4703
|
+
};
|
|
4704
|
+
/**
|
|
4705
|
+
* HostingNodeJSApi - object-oriented interface
|
|
4706
|
+
* @export
|
|
4707
|
+
* @class HostingNodeJSApi
|
|
4708
|
+
* @extends {BaseAPI}
|
|
4709
|
+
*/
|
|
4710
|
+
export class HostingNodeJSApi extends BaseAPI {
|
|
4711
|
+
/**
|
|
4712
|
+
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
4713
|
+
* @summary Create NodeJS build from archive
|
|
4714
|
+
* @param {string} username
|
|
4715
|
+
* @param {string} domain Domain name
|
|
4716
|
+
* @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
|
|
4717
|
+
* @param {*} [options] Override http request option.
|
|
4718
|
+
* @throws {RequiredError}
|
|
4719
|
+
* @memberof HostingNodeJSApi
|
|
4720
|
+
*/
|
|
4721
|
+
createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
|
|
4722
|
+
return HostingNodeJSApiFp(this.configuration).createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4723
|
+
}
|
|
4724
|
+
/**
|
|
4725
|
+
* Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
|
|
4726
|
+
* @summary Get NodeJS build logs
|
|
4727
|
+
* @param {string} username
|
|
4728
|
+
* @param {string} domain Domain name
|
|
4729
|
+
* @param {string} uuid Build UUID
|
|
4730
|
+
* @param {number | null} [fromLine] Line from which to start retrieving logs
|
|
4731
|
+
* @param {*} [options] Override http request option.
|
|
4732
|
+
* @throws {RequiredError}
|
|
4733
|
+
* @memberof HostingNodeJSApi
|
|
4734
|
+
*/
|
|
4735
|
+
getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options) {
|
|
4736
|
+
return HostingNodeJSApiFp(this.configuration).getNodeJSBuildLogsV1(username, domain, uuid, fromLine, options).then((request) => request(this.axios, this.basePath));
|
|
4737
|
+
}
|
|
4738
|
+
/**
|
|
4739
|
+
* Retrieve a paginated list of Node.js build processes for a specific website. Each build represents a single run of the Node.js build pipeline. Use the `states` query parameter to filter results by build state (pending, running, completed, failed). Use the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.
|
|
4740
|
+
* @summary List NodeJS builds
|
|
4741
|
+
* @param {string} username
|
|
4742
|
+
* @param {string} domain Domain name
|
|
4743
|
+
* @param {number} [page] Page number
|
|
4744
|
+
* @param {number} [perPage] Number of items per page
|
|
4745
|
+
* @param {Array<ListNodeJSBuildsV1StatesEnum>} [states] Build states to filter by
|
|
4746
|
+
* @param {*} [options] Override http request option.
|
|
4747
|
+
* @throws {RequiredError}
|
|
4748
|
+
* @memberof HostingNodeJSApi
|
|
4749
|
+
*/
|
|
4750
|
+
listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
|
|
4751
|
+
return HostingNodeJSApiFp(this.configuration).listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(this.axios, this.basePath));
|
|
4752
|
+
}
|
|
4753
|
+
}
|
|
4754
|
+
/**
|
|
4755
|
+
* @export
|
|
4756
|
+
*/
|
|
4757
|
+
export const ListNodeJSBuildsV1StatesEnum = {
|
|
4758
|
+
Pending: 'pending',
|
|
4759
|
+
Running: 'running',
|
|
4760
|
+
Completed: 'completed',
|
|
4761
|
+
Failed: 'failed'
|
|
4762
|
+
};
|
|
4763
|
+
/**
|
|
4764
|
+
* HostingOrdersApi - axios parameter creator
|
|
4765
|
+
* @export
|
|
4766
|
+
*/
|
|
4767
|
+
export const HostingOrdersApiAxiosParamCreator = function (configuration) {
|
|
4768
|
+
return {
|
|
4769
|
+
/**
|
|
4770
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
4771
|
+
* @summary List orders
|
|
4772
|
+
* @param {number} [page] Page number
|
|
4773
|
+
* @param {number} [perPage] Number of items per page
|
|
4774
|
+
* @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
|
|
4775
|
+
* @param {Array<number> | null} [orderIds] Filter by specific order IDs
|
|
4776
|
+
* @param {*} [options] Override http request option.
|
|
4777
|
+
* @throws {RequiredError}
|
|
4778
|
+
*/
|
|
4779
|
+
listOrdersV1: (page_1, perPage_1, statuses_1, orderIds_1, ...args_1) => __awaiter(this, [page_1, perPage_1, statuses_1, orderIds_1, ...args_1], void 0, function* (page, perPage, statuses, orderIds, options = {}) {
|
|
4780
|
+
const localVarPath = `/api/hosting/v1/orders`;
|
|
4781
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4782
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4783
|
+
let baseOptions;
|
|
4784
|
+
if (configuration) {
|
|
4785
|
+
baseOptions = configuration.baseOptions;
|
|
4786
|
+
}
|
|
4787
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4788
|
+
const localVarHeaderParameter = {};
|
|
4789
|
+
const localVarQueryParameter = {};
|
|
4790
|
+
// authentication apiToken required
|
|
4791
|
+
// http bearer authentication required
|
|
4792
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4793
|
+
if (page !== undefined) {
|
|
4794
|
+
localVarQueryParameter['page'] = page;
|
|
4795
|
+
}
|
|
4796
|
+
if (perPage !== undefined) {
|
|
4797
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
4798
|
+
}
|
|
4799
|
+
if (statuses) {
|
|
4800
|
+
localVarQueryParameter['statuses'] = statuses;
|
|
4801
|
+
}
|
|
4802
|
+
if (orderIds) {
|
|
4803
|
+
localVarQueryParameter['order_ids'] = orderIds;
|
|
4804
|
+
}
|
|
4805
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4806
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4807
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4808
|
+
return {
|
|
4809
|
+
url: toPathString(localVarUrlObj),
|
|
4810
|
+
options: localVarRequestOptions,
|
|
4811
|
+
};
|
|
4812
|
+
}),
|
|
4813
|
+
};
|
|
4814
|
+
};
|
|
4815
|
+
/**
|
|
4816
|
+
* HostingOrdersApi - functional programming interface
|
|
4817
|
+
* @export
|
|
4818
|
+
*/
|
|
4819
|
+
export const HostingOrdersApiFp = function (configuration) {
|
|
4820
|
+
const localVarAxiosParamCreator = HostingOrdersApiAxiosParamCreator(configuration);
|
|
4821
|
+
return {
|
|
4822
|
+
/**
|
|
4823
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
4824
|
+
* @summary List orders
|
|
4825
|
+
* @param {number} [page] Page number
|
|
4826
|
+
* @param {number} [perPage] Number of items per page
|
|
4827
|
+
* @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
|
|
4828
|
+
* @param {Array<number> | null} [orderIds] Filter by specific order IDs
|
|
4829
|
+
* @param {*} [options] Override http request option.
|
|
4830
|
+
* @throws {RequiredError}
|
|
4831
|
+
*/
|
|
4832
|
+
listOrdersV1(page, perPage, statuses, orderIds, options) {
|
|
4833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4834
|
+
var _a, _b;
|
|
4835
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersV1(page, perPage, statuses, orderIds, options);
|
|
4836
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingOrdersApi.listOrdersV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4837
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4838
|
+
});
|
|
4839
|
+
},
|
|
4840
|
+
};
|
|
4841
|
+
};
|
|
4842
|
+
/**
|
|
4843
|
+
* HostingOrdersApi - factory interface
|
|
4844
|
+
* @export
|
|
4845
|
+
*/
|
|
4846
|
+
export const HostingOrdersApiFactory = function (configuration, basePath, axios) {
|
|
4847
|
+
const localVarFp = HostingOrdersApiFp(configuration);
|
|
4848
|
+
return {
|
|
4849
|
+
/**
|
|
4850
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
4851
|
+
* @summary List orders
|
|
4852
|
+
* @param {number} [page] Page number
|
|
4853
|
+
* @param {number} [perPage] Number of items per page
|
|
4854
|
+
* @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
|
|
4855
|
+
* @param {Array<number> | null} [orderIds] Filter by specific order IDs
|
|
4856
|
+
* @param {*} [options] Override http request option.
|
|
4857
|
+
* @throws {RequiredError}
|
|
4858
|
+
*/
|
|
4859
|
+
listOrdersV1(page, perPage, statuses, orderIds, options) {
|
|
4860
|
+
return localVarFp.listOrdersV1(page, perPage, statuses, orderIds, options).then((request) => request(axios, basePath));
|
|
4861
|
+
},
|
|
4862
|
+
};
|
|
4863
|
+
};
|
|
4864
|
+
/**
|
|
4865
|
+
* HostingOrdersApi - object-oriented interface
|
|
4866
|
+
* @export
|
|
4867
|
+
* @class HostingOrdersApi
|
|
4868
|
+
* @extends {BaseAPI}
|
|
4869
|
+
*/
|
|
4870
|
+
export class HostingOrdersApi extends BaseAPI {
|
|
4871
|
+
/**
|
|
4872
|
+
* Retrieve a paginated list of orders accessible to the authenticated client. This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you. Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.
|
|
4873
|
+
* @summary List orders
|
|
4874
|
+
* @param {number} [page] Page number
|
|
4875
|
+
* @param {number} [perPage] Number of items per page
|
|
4876
|
+
* @param {Array<ListOrdersV1StatusesEnum>} [statuses] Filter by order statuses
|
|
4877
|
+
* @param {Array<number> | null} [orderIds] Filter by specific order IDs
|
|
4878
|
+
* @param {*} [options] Override http request option.
|
|
4879
|
+
* @throws {RequiredError}
|
|
4880
|
+
* @memberof HostingOrdersApi
|
|
4881
|
+
*/
|
|
4882
|
+
listOrdersV1(page, perPage, statuses, orderIds, options) {
|
|
4883
|
+
return HostingOrdersApiFp(this.configuration).listOrdersV1(page, perPage, statuses, orderIds, options).then((request) => request(this.axios, this.basePath));
|
|
4884
|
+
}
|
|
4885
|
+
}
|
|
4886
|
+
/**
|
|
4887
|
+
* @export
|
|
4888
|
+
*/
|
|
4889
|
+
export const ListOrdersV1StatusesEnum = {
|
|
4890
|
+
Active: 'active',
|
|
4891
|
+
Deleting: 'deleting',
|
|
4892
|
+
Deleted: 'deleted',
|
|
4893
|
+
Suspended: 'suspended'
|
|
4894
|
+
};
|
|
4895
|
+
/**
|
|
4896
|
+
* HostingWebsitesApi - axios parameter creator
|
|
4897
|
+
* @export
|
|
4898
|
+
*/
|
|
4899
|
+
export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
4900
|
+
return {
|
|
4901
|
+
/**
|
|
4902
|
+
* Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
|
|
4903
|
+
* @summary Create website
|
|
4904
|
+
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
4905
|
+
* @param {*} [options] Override http request option.
|
|
4906
|
+
* @throws {RequiredError}
|
|
4907
|
+
*/
|
|
4908
|
+
createWebsiteV1: (hostingV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [hostingV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (hostingV1WebsitesCreateWebsiteRequest, options = {}) {
|
|
4909
|
+
// verify required parameter 'hostingV1WebsitesCreateWebsiteRequest' is not null or undefined
|
|
4910
|
+
assertParamExists('createWebsiteV1', 'hostingV1WebsitesCreateWebsiteRequest', hostingV1WebsitesCreateWebsiteRequest);
|
|
4911
|
+
const localVarPath = `/api/hosting/v1/websites`;
|
|
4912
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4913
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4914
|
+
let baseOptions;
|
|
4915
|
+
if (configuration) {
|
|
4916
|
+
baseOptions = configuration.baseOptions;
|
|
4917
|
+
}
|
|
4918
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4919
|
+
const localVarHeaderParameter = {};
|
|
4920
|
+
const localVarQueryParameter = {};
|
|
4921
|
+
// authentication apiToken required
|
|
4922
|
+
// http bearer authentication required
|
|
4923
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4924
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4925
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4926
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4927
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4928
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WebsitesCreateWebsiteRequest, localVarRequestOptions, configuration);
|
|
4929
|
+
return {
|
|
4930
|
+
url: toPathString(localVarUrlObj),
|
|
4931
|
+
options: localVarRequestOptions,
|
|
4932
|
+
};
|
|
4933
|
+
}),
|
|
4934
|
+
/**
|
|
4935
|
+
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
4936
|
+
* @summary List websites
|
|
4937
|
+
* @param {number} [page] Page number
|
|
4938
|
+
* @param {number} [perPage] Number of items per page
|
|
4939
|
+
* @param {string | null} [username] Filter by specific username
|
|
4940
|
+
* @param {number | null} [orderId] Order ID
|
|
4941
|
+
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
4942
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
4943
|
+
* @param {*} [options] Override http request option.
|
|
4944
|
+
* @throws {RequiredError}
|
|
4945
|
+
*/
|
|
4946
|
+
listWebsitesV1: (page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1) => __awaiter(this, [page_1, perPage_1, username_1, orderId_1, isEnabled_1, domain_1, ...args_1], void 0, function* (page, perPage, username, orderId, isEnabled, domain, options = {}) {
|
|
4947
|
+
const localVarPath = `/api/hosting/v1/websites`;
|
|
4948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4949
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4950
|
+
let baseOptions;
|
|
4951
|
+
if (configuration) {
|
|
4952
|
+
baseOptions = configuration.baseOptions;
|
|
4953
|
+
}
|
|
4954
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4955
|
+
const localVarHeaderParameter = {};
|
|
4956
|
+
const localVarQueryParameter = {};
|
|
4957
|
+
// authentication apiToken required
|
|
4958
|
+
// http bearer authentication required
|
|
4959
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4960
|
+
if (page !== undefined) {
|
|
4961
|
+
localVarQueryParameter['page'] = page;
|
|
4962
|
+
}
|
|
4963
|
+
if (perPage !== undefined) {
|
|
4964
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
4965
|
+
}
|
|
4966
|
+
if (username !== undefined) {
|
|
4967
|
+
localVarQueryParameter['username'] = username;
|
|
4968
|
+
}
|
|
4969
|
+
if (orderId !== undefined) {
|
|
4970
|
+
localVarQueryParameter['order_id'] = orderId;
|
|
4971
|
+
}
|
|
4972
|
+
if (isEnabled !== undefined) {
|
|
4973
|
+
localVarQueryParameter['is_enabled'] = isEnabled;
|
|
4974
|
+
}
|
|
4975
|
+
if (domain !== undefined) {
|
|
4976
|
+
localVarQueryParameter['domain'] = domain;
|
|
4977
|
+
}
|
|
4978
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4979
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4980
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4981
|
+
return {
|
|
4982
|
+
url: toPathString(localVarUrlObj),
|
|
4983
|
+
options: localVarRequestOptions,
|
|
4984
|
+
};
|
|
4985
|
+
}),
|
|
4986
|
+
};
|
|
4987
|
+
};
|
|
4988
|
+
/**
|
|
4989
|
+
* HostingWebsitesApi - functional programming interface
|
|
4990
|
+
* @export
|
|
4991
|
+
*/
|
|
4992
|
+
export const HostingWebsitesApiFp = function (configuration) {
|
|
4993
|
+
const localVarAxiosParamCreator = HostingWebsitesApiAxiosParamCreator(configuration);
|
|
4994
|
+
return {
|
|
4995
|
+
/**
|
|
4996
|
+
* Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
|
|
4997
|
+
* @summary Create website
|
|
4998
|
+
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
4999
|
+
* @param {*} [options] Override http request option.
|
|
5000
|
+
* @throws {RequiredError}
|
|
5001
|
+
*/
|
|
5002
|
+
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
5003
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5004
|
+
var _a, _b;
|
|
5005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options);
|
|
5006
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWebsitesApi.createWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5007
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5008
|
+
});
|
|
5009
|
+
},
|
|
5010
|
+
/**
|
|
5011
|
+
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
5012
|
+
* @summary List websites
|
|
5013
|
+
* @param {number} [page] Page number
|
|
5014
|
+
* @param {number} [perPage] Number of items per page
|
|
5015
|
+
* @param {string | null} [username] Filter by specific username
|
|
5016
|
+
* @param {number | null} [orderId] Order ID
|
|
5017
|
+
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
5018
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5019
|
+
* @param {*} [options] Override http request option.
|
|
5020
|
+
* @throws {RequiredError}
|
|
5021
|
+
*/
|
|
5022
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
5023
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5024
|
+
var _a, _b;
|
|
5025
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options);
|
|
5026
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWebsitesApi.listWebsitesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5027
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5028
|
+
});
|
|
5029
|
+
},
|
|
5030
|
+
};
|
|
5031
|
+
};
|
|
5032
|
+
/**
|
|
5033
|
+
* HostingWebsitesApi - factory interface
|
|
5034
|
+
* @export
|
|
5035
|
+
*/
|
|
5036
|
+
export const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
5037
|
+
const localVarFp = HostingWebsitesApiFp(configuration);
|
|
5038
|
+
return {
|
|
5039
|
+
/**
|
|
5040
|
+
* Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
|
|
5041
|
+
* @summary Create website
|
|
5042
|
+
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
5043
|
+
* @param {*} [options] Override http request option.
|
|
5044
|
+
* @throws {RequiredError}
|
|
5045
|
+
*/
|
|
5046
|
+
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
5047
|
+
return localVarFp.createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
5048
|
+
},
|
|
5049
|
+
/**
|
|
5050
|
+
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
5051
|
+
* @summary List websites
|
|
5052
|
+
* @param {number} [page] Page number
|
|
5053
|
+
* @param {number} [perPage] Number of items per page
|
|
5054
|
+
* @param {string | null} [username] Filter by specific username
|
|
5055
|
+
* @param {number | null} [orderId] Order ID
|
|
5056
|
+
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
5057
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5058
|
+
* @param {*} [options] Override http request option.
|
|
5059
|
+
* @throws {RequiredError}
|
|
5060
|
+
*/
|
|
5061
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
5062
|
+
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(axios, basePath));
|
|
5063
|
+
},
|
|
5064
|
+
};
|
|
5065
|
+
};
|
|
5066
|
+
/**
|
|
5067
|
+
* HostingWebsitesApi - object-oriented interface
|
|
5068
|
+
* @export
|
|
5069
|
+
* @class HostingWebsitesApi
|
|
5070
|
+
* @extends {BaseAPI}
|
|
5071
|
+
*/
|
|
5072
|
+
export class HostingWebsitesApi extends BaseAPI {
|
|
5073
|
+
/**
|
|
5074
|
+
* Create a new website for the authenticated client. Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. Subsequent websites will be hosted on the same datacenter automatically. Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
|
|
5075
|
+
* @summary Create website
|
|
5076
|
+
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
5077
|
+
* @param {*} [options] Override http request option.
|
|
5078
|
+
* @throws {RequiredError}
|
|
5079
|
+
* @memberof HostingWebsitesApi
|
|
5080
|
+
*/
|
|
5081
|
+
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
5082
|
+
return HostingWebsitesApiFp(this.configuration).createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5083
|
+
}
|
|
5084
|
+
/**
|
|
5085
|
+
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.
|
|
5086
|
+
* @summary List websites
|
|
5087
|
+
* @param {number} [page] Page number
|
|
5088
|
+
* @param {number} [perPage] Number of items per page
|
|
5089
|
+
* @param {string | null} [username] Filter by specific username
|
|
5090
|
+
* @param {number | null} [orderId] Order ID
|
|
5091
|
+
* @param {boolean | null} [isEnabled] Filter by enabled status
|
|
5092
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5093
|
+
* @param {*} [options] Override http request option.
|
|
5094
|
+
* @throws {RequiredError}
|
|
5095
|
+
* @memberof HostingWebsitesApi
|
|
5096
|
+
*/
|
|
5097
|
+
listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options) {
|
|
5098
|
+
return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, options).then((request) => request(this.axios, this.basePath));
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
5101
|
+
/**
|
|
5102
|
+
* HostingWordpressApi - axios parameter creator
|
|
5103
|
+
* @export
|
|
5104
|
+
*/
|
|
5105
|
+
export const HostingWordpressApiAxiosParamCreator = function (configuration) {
|
|
5106
|
+
return {
|
|
5107
|
+
/**
|
|
5108
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
5109
|
+
* @summary Install WordPress
|
|
5110
|
+
* @param {string} username
|
|
5111
|
+
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
5112
|
+
* @param {*} [options] Override http request option.
|
|
5113
|
+
* @throws {RequiredError}
|
|
5114
|
+
*/
|
|
5115
|
+
installWordPressV1: (username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1WordpressInstallWordpressRequest_1, ...args_1], void 0, function* (username, hostingV1WordpressInstallWordpressRequest, options = {}) {
|
|
5116
|
+
// verify required parameter 'username' is not null or undefined
|
|
5117
|
+
assertParamExists('installWordPressV1', 'username', username);
|
|
5118
|
+
// verify required parameter 'hostingV1WordpressInstallWordpressRequest' is not null or undefined
|
|
5119
|
+
assertParamExists('installWordPressV1', 'hostingV1WordpressInstallWordpressRequest', hostingV1WordpressInstallWordpressRequest);
|
|
5120
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
5121
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
5122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5124
|
+
let baseOptions;
|
|
5125
|
+
if (configuration) {
|
|
5126
|
+
baseOptions = configuration.baseOptions;
|
|
5127
|
+
}
|
|
5128
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5129
|
+
const localVarHeaderParameter = {};
|
|
5130
|
+
const localVarQueryParameter = {};
|
|
5131
|
+
// authentication apiToken required
|
|
5132
|
+
// http bearer authentication required
|
|
5133
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5137
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1WordpressInstallWordpressRequest, localVarRequestOptions, configuration);
|
|
5139
|
+
return {
|
|
5140
|
+
url: toPathString(localVarUrlObj),
|
|
5141
|
+
options: localVarRequestOptions,
|
|
5142
|
+
};
|
|
5143
|
+
}),
|
|
5144
|
+
/**
|
|
5145
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
5146
|
+
* @summary List WordPress installations
|
|
5147
|
+
* @param {string | null} [username] Filter by specific username
|
|
5148
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5149
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
5150
|
+
* @param {*} [options] Override http request option.
|
|
5151
|
+
* @throws {RequiredError}
|
|
5152
|
+
*/
|
|
5153
|
+
listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
|
|
5154
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
5155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5157
|
+
let baseOptions;
|
|
5158
|
+
if (configuration) {
|
|
5159
|
+
baseOptions = configuration.baseOptions;
|
|
5160
|
+
}
|
|
5161
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5162
|
+
const localVarHeaderParameter = {};
|
|
5163
|
+
const localVarQueryParameter = {};
|
|
5164
|
+
// authentication apiToken required
|
|
5165
|
+
// http bearer authentication required
|
|
5166
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5167
|
+
if (username !== undefined) {
|
|
5168
|
+
localVarQueryParameter['username'] = username;
|
|
5169
|
+
}
|
|
5170
|
+
if (domain !== undefined) {
|
|
5171
|
+
localVarQueryParameter['domain'] = domain;
|
|
5172
|
+
}
|
|
5173
|
+
if (ownership !== undefined) {
|
|
5174
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
5175
|
+
}
|
|
5176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5178
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5179
|
+
return {
|
|
5180
|
+
url: toPathString(localVarUrlObj),
|
|
5181
|
+
options: localVarRequestOptions,
|
|
5182
|
+
};
|
|
5183
|
+
}),
|
|
5184
|
+
};
|
|
5185
|
+
};
|
|
5186
|
+
/**
|
|
5187
|
+
* HostingWordpressApi - functional programming interface
|
|
5188
|
+
* @export
|
|
5189
|
+
*/
|
|
5190
|
+
export const HostingWordpressApiFp = function (configuration) {
|
|
5191
|
+
const localVarAxiosParamCreator = HostingWordpressApiAxiosParamCreator(configuration);
|
|
5192
|
+
return {
|
|
5193
|
+
/**
|
|
5194
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
5195
|
+
* @summary Install WordPress
|
|
5196
|
+
* @param {string} username
|
|
5197
|
+
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
5198
|
+
* @param {*} [options] Override http request option.
|
|
5199
|
+
* @throws {RequiredError}
|
|
5200
|
+
*/
|
|
5201
|
+
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
5202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5203
|
+
var _a, _b;
|
|
5204
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options);
|
|
5205
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWordpressApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5206
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5207
|
+
});
|
|
5208
|
+
},
|
|
5209
|
+
/**
|
|
5210
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
5211
|
+
* @summary List WordPress installations
|
|
5212
|
+
* @param {string | null} [username] Filter by specific username
|
|
5213
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5214
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
5215
|
+
* @param {*} [options] Override http request option.
|
|
5216
|
+
* @throws {RequiredError}
|
|
5217
|
+
*/
|
|
5218
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
5219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5220
|
+
var _a, _b;
|
|
5221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
5222
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingWordpressApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5224
|
+
});
|
|
5225
|
+
},
|
|
5226
|
+
};
|
|
5227
|
+
};
|
|
5228
|
+
/**
|
|
5229
|
+
* HostingWordpressApi - factory interface
|
|
5230
|
+
* @export
|
|
5231
|
+
*/
|
|
5232
|
+
export const HostingWordpressApiFactory = function (configuration, basePath, axios) {
|
|
5233
|
+
const localVarFp = HostingWordpressApiFp(configuration);
|
|
5234
|
+
return {
|
|
5235
|
+
/**
|
|
5236
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
5237
|
+
* @summary Install WordPress
|
|
5238
|
+
* @param {string} username
|
|
5239
|
+
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
5240
|
+
* @param {*} [options] Override http request option.
|
|
5241
|
+
* @throws {RequiredError}
|
|
5242
|
+
*/
|
|
5243
|
+
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
5244
|
+
return localVarFp.installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(axios, basePath));
|
|
5245
|
+
},
|
|
5246
|
+
/**
|
|
5247
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
5248
|
+
* @summary List WordPress installations
|
|
5249
|
+
* @param {string | null} [username] Filter by specific username
|
|
5250
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5251
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
5252
|
+
* @param {*} [options] Override http request option.
|
|
5253
|
+
* @throws {RequiredError}
|
|
5254
|
+
*/
|
|
5255
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
5256
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
5257
|
+
},
|
|
5258
|
+
};
|
|
5259
|
+
};
|
|
5260
|
+
/**
|
|
5261
|
+
* HostingWordpressApi - object-oriented interface
|
|
5262
|
+
* @export
|
|
5263
|
+
* @class HostingWordpressApi
|
|
5264
|
+
* @extends {BaseAPI}
|
|
5265
|
+
*/
|
|
5266
|
+
export class HostingWordpressApi extends BaseAPI {
|
|
5267
|
+
/**
|
|
5268
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
5269
|
+
* @summary Install WordPress
|
|
5270
|
+
* @param {string} username
|
|
5271
|
+
* @param {HostingV1WordpressInstallWordpressRequest} hostingV1WordpressInstallWordpressRequest
|
|
5272
|
+
* @param {*} [options] Override http request option.
|
|
5273
|
+
* @throws {RequiredError}
|
|
5274
|
+
* @memberof HostingWordpressApi
|
|
5275
|
+
*/
|
|
5276
|
+
installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options) {
|
|
5277
|
+
return HostingWordpressApiFp(this.configuration).installWordPressV1(username, hostingV1WordpressInstallWordpressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5278
|
+
}
|
|
5279
|
+
/**
|
|
5280
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
5281
|
+
* @summary List WordPress installations
|
|
5282
|
+
* @param {string | null} [username] Filter by specific username
|
|
5283
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5284
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
5285
|
+
* @param {*} [options] Override http request option.
|
|
5286
|
+
* @throws {RequiredError}
|
|
5287
|
+
* @memberof HostingWordpressApi
|
|
5288
|
+
*/
|
|
5289
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
5290
|
+
return HostingWordpressApiFp(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
/**
|
|
5294
|
+
* @export
|
|
5295
|
+
*/
|
|
5296
|
+
export const ListWordPressInstallationsV1OwnershipEnum = {
|
|
5297
|
+
Owned: 'owned',
|
|
5298
|
+
Managed: 'managed',
|
|
5299
|
+
All: 'all'
|
|
5300
|
+
};
|
|
5301
|
+
/**
|
|
5302
|
+
* ReachContactsApi - axios parameter creator
|
|
5303
|
+
* @export
|
|
5304
|
+
*/
|
|
5305
|
+
export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
5306
|
+
return {
|
|
5307
|
+
/**
|
|
5308
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5309
|
+
* @summary Create a new contact
|
|
5310
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5311
|
+
* @param {*} [options] Override http request option.
|
|
5312
|
+
* @deprecated
|
|
5313
|
+
* @throws {RequiredError}
|
|
5314
|
+
*/
|
|
5315
|
+
createANewContactV1: (reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsStoreRequest, options = {}) {
|
|
5316
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
5317
|
+
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
5318
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
5319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5321
|
+
let baseOptions;
|
|
5322
|
+
if (configuration) {
|
|
5323
|
+
baseOptions = configuration.baseOptions;
|
|
5324
|
+
}
|
|
5325
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5326
|
+
const localVarHeaderParameter = {};
|
|
5327
|
+
const localVarQueryParameter = {};
|
|
5328
|
+
// authentication apiToken required
|
|
5329
|
+
// http bearer authentication required
|
|
5330
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5331
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5332
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5333
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5334
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
5336
|
+
return {
|
|
5337
|
+
url: toPathString(localVarUrlObj),
|
|
5338
|
+
options: localVarRequestOptions,
|
|
5339
|
+
};
|
|
5340
|
+
}),
|
|
5341
|
+
/**
|
|
5342
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5343
|
+
* @summary Create new contacts
|
|
5344
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
5345
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5346
|
+
* @param {*} [options] Override http request option.
|
|
5347
|
+
* @throws {RequiredError}
|
|
5348
|
+
*/
|
|
5349
|
+
createNewContactsV1: (profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsStoreRequest, options = {}) {
|
|
5350
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
5351
|
+
assertParamExists('createNewContactsV1', 'profileUuid', profileUuid);
|
|
5352
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
5353
|
+
assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest);
|
|
5354
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
5355
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
5356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5358
|
+
let baseOptions;
|
|
5359
|
+
if (configuration) {
|
|
5360
|
+
baseOptions = configuration.baseOptions;
|
|
5361
|
+
}
|
|
5362
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5363
|
+
const localVarHeaderParameter = {};
|
|
5364
|
+
const localVarQueryParameter = {};
|
|
5365
|
+
// authentication apiToken required
|
|
5366
|
+
// http bearer authentication required
|
|
5367
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5368
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5369
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5370
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5371
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5372
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration);
|
|
5373
|
+
return {
|
|
5374
|
+
url: toPathString(localVarUrlObj),
|
|
5375
|
+
options: localVarRequestOptions,
|
|
5376
|
+
};
|
|
5377
|
+
}),
|
|
5378
|
+
/**
|
|
5379
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
5380
|
+
* @summary Delete a contact
|
|
5381
|
+
* @param {string} uuid UUID of the contact to delete
|
|
5382
|
+
* @param {*} [options] Override http request option.
|
|
5383
|
+
* @throws {RequiredError}
|
|
5384
|
+
*/
|
|
5385
|
+
deleteAContactV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
|
|
5386
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
5387
|
+
assertParamExists('deleteAContactV1', 'uuid', uuid);
|
|
5388
|
+
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
5389
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
5390
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5391
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5392
|
+
let baseOptions;
|
|
5393
|
+
if (configuration) {
|
|
5394
|
+
baseOptions = configuration.baseOptions;
|
|
5395
|
+
}
|
|
5396
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5397
|
+
const localVarHeaderParameter = {};
|
|
5398
|
+
const localVarQueryParameter = {};
|
|
5399
|
+
// authentication apiToken required
|
|
5400
|
+
// http bearer authentication required
|
|
5401
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5402
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5403
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5404
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5405
|
+
return {
|
|
5406
|
+
url: toPathString(localVarUrlObj),
|
|
5407
|
+
options: localVarRequestOptions,
|
|
5408
|
+
};
|
|
5409
|
+
}),
|
|
5410
|
+
/**
|
|
5411
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
5412
|
+
* @summary List contact groups
|
|
5413
|
+
* @param {*} [options] Override http request option.
|
|
5414
|
+
* @deprecated
|
|
5415
|
+
* @throws {RequiredError}
|
|
5416
|
+
*/
|
|
5417
|
+
listContactGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5418
|
+
const localVarPath = `/api/reach/v1/contacts/groups`;
|
|
5419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5420
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5421
|
+
let baseOptions;
|
|
5422
|
+
if (configuration) {
|
|
5423
|
+
baseOptions = configuration.baseOptions;
|
|
5424
|
+
}
|
|
5425
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5426
|
+
const localVarHeaderParameter = {};
|
|
5427
|
+
const localVarQueryParameter = {};
|
|
5428
|
+
// authentication apiToken required
|
|
5429
|
+
// http bearer authentication required
|
|
5430
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5431
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5433
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5434
|
+
return {
|
|
5435
|
+
url: toPathString(localVarUrlObj),
|
|
5436
|
+
options: localVarRequestOptions,
|
|
5437
|
+
};
|
|
5438
|
+
}),
|
|
5439
|
+
/**
|
|
5440
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
5441
|
+
* @summary List contacts
|
|
5442
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
5443
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
5444
|
+
* @param {number} [page] Page number
|
|
5445
|
+
* @param {*} [options] Override http request option.
|
|
5446
|
+
* @throws {RequiredError}
|
|
5447
|
+
*/
|
|
5448
|
+
listContactsV1: (groupUuid_1, subscriptionStatus_1, page_1, ...args_1) => __awaiter(this, [groupUuid_1, subscriptionStatus_1, page_1, ...args_1], void 0, function* (groupUuid, subscriptionStatus, page, options = {}) {
|
|
5449
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
5450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5451
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5452
|
+
let baseOptions;
|
|
5453
|
+
if (configuration) {
|
|
5454
|
+
baseOptions = configuration.baseOptions;
|
|
5455
|
+
}
|
|
5456
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5457
|
+
const localVarHeaderParameter = {};
|
|
5458
|
+
const localVarQueryParameter = {};
|
|
5459
|
+
// authentication apiToken required
|
|
5460
|
+
// http bearer authentication required
|
|
5461
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5462
|
+
if (groupUuid !== undefined) {
|
|
5463
|
+
localVarQueryParameter['group_uuid'] = groupUuid;
|
|
5464
|
+
}
|
|
5465
|
+
if (subscriptionStatus !== undefined) {
|
|
5466
|
+
localVarQueryParameter['subscription_status'] = subscriptionStatus;
|
|
5467
|
+
}
|
|
5468
|
+
if (page !== undefined) {
|
|
5469
|
+
localVarQueryParameter['page'] = page;
|
|
5470
|
+
}
|
|
5471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5474
|
+
return {
|
|
5475
|
+
url: toPathString(localVarUrlObj),
|
|
5476
|
+
options: localVarRequestOptions,
|
|
5477
|
+
};
|
|
5478
|
+
}),
|
|
5479
|
+
};
|
|
5480
|
+
};
|
|
5481
|
+
/**
|
|
5482
|
+
* ReachContactsApi - functional programming interface
|
|
5483
|
+
* @export
|
|
5484
|
+
*/
|
|
5485
|
+
export const ReachContactsApiFp = function (configuration) {
|
|
5486
|
+
const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration);
|
|
5487
|
+
return {
|
|
5488
|
+
/**
|
|
5489
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5490
|
+
* @summary Create a new contact
|
|
5491
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5492
|
+
* @param {*} [options] Override http request option.
|
|
5493
|
+
* @deprecated
|
|
5494
|
+
* @throws {RequiredError}
|
|
5495
|
+
*/
|
|
5496
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
5497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5498
|
+
var _a, _b;
|
|
5499
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
|
|
5500
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createANewContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5501
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5502
|
+
});
|
|
5503
|
+
},
|
|
5504
|
+
/**
|
|
5505
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5506
|
+
* @summary Create new contacts
|
|
5507
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
5508
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5509
|
+
* @param {*} [options] Override http request option.
|
|
5510
|
+
* @throws {RequiredError}
|
|
5511
|
+
*/
|
|
5512
|
+
createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
|
|
5513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5514
|
+
var _a, _b;
|
|
5515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options);
|
|
5516
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.createNewContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5517
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5518
|
+
});
|
|
5519
|
+
},
|
|
5520
|
+
/**
|
|
5521
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
5522
|
+
* @summary Delete a contact
|
|
5523
|
+
* @param {string} uuid UUID of the contact to delete
|
|
5524
|
+
* @param {*} [options] Override http request option.
|
|
5525
|
+
* @throws {RequiredError}
|
|
5526
|
+
*/
|
|
5527
|
+
deleteAContactV1(uuid, options) {
|
|
5528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5529
|
+
var _a, _b;
|
|
5530
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAContactV1(uuid, options);
|
|
5531
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.deleteAContactV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5532
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5533
|
+
});
|
|
5534
|
+
},
|
|
5535
|
+
/**
|
|
5536
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
5537
|
+
* @summary List contact groups
|
|
5538
|
+
* @param {*} [options] Override http request option.
|
|
5539
|
+
* @deprecated
|
|
5540
|
+
* @throws {RequiredError}
|
|
5541
|
+
*/
|
|
5542
|
+
listContactGroupsV1(options) {
|
|
5543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5544
|
+
var _a, _b;
|
|
5545
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactGroupsV1(options);
|
|
5546
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5547
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5548
|
+
});
|
|
5549
|
+
},
|
|
5550
|
+
/**
|
|
5551
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
5552
|
+
* @summary List contacts
|
|
5553
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
5554
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
5555
|
+
* @param {number} [page] Page number
|
|
5556
|
+
* @param {*} [options] Override http request option.
|
|
5557
|
+
* @throws {RequiredError}
|
|
5558
|
+
*/
|
|
5559
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
5560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5561
|
+
var _a, _b;
|
|
5562
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
|
|
5563
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachContactsApi.listContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5565
|
+
});
|
|
5566
|
+
},
|
|
5567
|
+
};
|
|
5568
|
+
};
|
|
5569
|
+
/**
|
|
5570
|
+
* ReachContactsApi - factory interface
|
|
5571
|
+
* @export
|
|
5572
|
+
*/
|
|
5573
|
+
export const ReachContactsApiFactory = function (configuration, basePath, axios) {
|
|
5574
|
+
const localVarFp = ReachContactsApiFp(configuration);
|
|
5575
|
+
return {
|
|
5576
|
+
/**
|
|
5577
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5578
|
+
* @summary Create a new contact
|
|
5579
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5580
|
+
* @param {*} [options] Override http request option.
|
|
5581
|
+
* @deprecated
|
|
5582
|
+
* @throws {RequiredError}
|
|
5583
|
+
*/
|
|
5584
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
5585
|
+
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
5586
|
+
},
|
|
5587
|
+
/**
|
|
5588
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5589
|
+
* @summary Create new contacts
|
|
5590
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
5591
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5592
|
+
* @param {*} [options] Override http request option.
|
|
5593
|
+
* @throws {RequiredError}
|
|
5594
|
+
*/
|
|
5595
|
+
createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
|
|
5596
|
+
return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
5597
|
+
},
|
|
5598
|
+
/**
|
|
5599
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
5600
|
+
* @summary Delete a contact
|
|
5601
|
+
* @param {string} uuid UUID of the contact to delete
|
|
5602
|
+
* @param {*} [options] Override http request option.
|
|
5603
|
+
* @throws {RequiredError}
|
|
5604
|
+
*/
|
|
5605
|
+
deleteAContactV1(uuid, options) {
|
|
5606
|
+
return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
|
|
5607
|
+
},
|
|
5608
|
+
/**
|
|
5609
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
5610
|
+
* @summary List contact groups
|
|
5611
|
+
* @param {*} [options] Override http request option.
|
|
5612
|
+
* @deprecated
|
|
5613
|
+
* @throws {RequiredError}
|
|
5614
|
+
*/
|
|
5615
|
+
listContactGroupsV1(options) {
|
|
5616
|
+
return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
|
|
5617
|
+
},
|
|
5618
|
+
/**
|
|
5619
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
5620
|
+
* @summary List contacts
|
|
5621
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
5622
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
5623
|
+
* @param {number} [page] Page number
|
|
5624
|
+
* @param {*} [options] Override http request option.
|
|
5625
|
+
* @throws {RequiredError}
|
|
5626
|
+
*/
|
|
5627
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
5628
|
+
return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
|
|
5629
|
+
},
|
|
5630
|
+
};
|
|
5631
|
+
};
|
|
5632
|
+
/**
|
|
5633
|
+
* ReachContactsApi - object-oriented interface
|
|
5634
|
+
* @export
|
|
5635
|
+
* @class ReachContactsApi
|
|
5636
|
+
* @extends {BaseAPI}
|
|
5637
|
+
*/
|
|
5638
|
+
export class ReachContactsApi extends BaseAPI {
|
|
5639
|
+
/**
|
|
5640
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5641
|
+
* @summary Create a new contact
|
|
5642
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5643
|
+
* @param {*} [options] Override http request option.
|
|
5644
|
+
* @deprecated
|
|
5645
|
+
* @throws {RequiredError}
|
|
5646
|
+
* @memberof ReachContactsApi
|
|
5647
|
+
*/
|
|
5648
|
+
createANewContactV1(reachV1ContactsStoreRequest, options) {
|
|
5649
|
+
return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5650
|
+
}
|
|
5651
|
+
/**
|
|
5652
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
5653
|
+
* @summary Create new contacts
|
|
5654
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
5655
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5656
|
+
* @param {*} [options] Override http request option.
|
|
5657
|
+
* @throws {RequiredError}
|
|
5658
|
+
* @memberof ReachContactsApi
|
|
5659
|
+
*/
|
|
5660
|
+
createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options) {
|
|
5661
|
+
return ReachContactsApiFp(this.configuration).createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5662
|
+
}
|
|
5663
|
+
/**
|
|
5664
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
5665
|
+
* @summary Delete a contact
|
|
5666
|
+
* @param {string} uuid UUID of the contact to delete
|
|
5667
|
+
* @param {*} [options] Override http request option.
|
|
5668
|
+
* @throws {RequiredError}
|
|
5669
|
+
* @memberof ReachContactsApi
|
|
5670
|
+
*/
|
|
5671
|
+
deleteAContactV1(uuid, options) {
|
|
5672
|
+
return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
5673
|
+
}
|
|
5674
|
+
/**
|
|
5675
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
5676
|
+
* @summary List contact groups
|
|
5677
|
+
* @param {*} [options] Override http request option.
|
|
5678
|
+
* @deprecated
|
|
5679
|
+
* @throws {RequiredError}
|
|
5680
|
+
* @memberof ReachContactsApi
|
|
5681
|
+
*/
|
|
5682
|
+
listContactGroupsV1(options) {
|
|
5683
|
+
return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
|
|
5684
|
+
}
|
|
5685
|
+
/**
|
|
5686
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
5687
|
+
* @summary List contacts
|
|
5688
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
5689
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
5690
|
+
* @param {number} [page] Page number
|
|
5691
|
+
* @param {*} [options] Override http request option.
|
|
5692
|
+
* @throws {RequiredError}
|
|
5693
|
+
* @memberof ReachContactsApi
|
|
5694
|
+
*/
|
|
5695
|
+
listContactsV1(groupUuid, subscriptionStatus, page, options) {
|
|
5696
|
+
return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5699
|
+
/**
|
|
5700
|
+
* @export
|
|
5701
|
+
*/
|
|
5702
|
+
export const ListContactsV1SubscriptionStatusEnum = {
|
|
5703
|
+
Subscribed: 'subscribed',
|
|
5704
|
+
Unsubscribed: 'unsubscribed'
|
|
5705
|
+
};
|
|
5706
|
+
/**
|
|
5707
|
+
* ReachProfilesApi - axios parameter creator
|
|
5708
|
+
* @export
|
|
5709
|
+
*/
|
|
5710
|
+
export const ReachProfilesApiAxiosParamCreator = function (configuration) {
|
|
5711
|
+
return {
|
|
5712
|
+
/**
|
|
5713
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5714
|
+
* @summary List Profiles
|
|
5715
|
+
* @param {*} [options] Override http request option.
|
|
5716
|
+
* @throws {RequiredError}
|
|
5717
|
+
*/
|
|
5718
|
+
listProfilesV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5719
|
+
const localVarPath = `/api/reach/v1/profiles`;
|
|
5720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5721
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5722
|
+
let baseOptions;
|
|
5723
|
+
if (configuration) {
|
|
5724
|
+
baseOptions = configuration.baseOptions;
|
|
5725
|
+
}
|
|
2910
5726
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2911
5727
|
const localVarHeaderParameter = {};
|
|
2912
5728
|
const localVarQueryParameter = {};
|
|
@@ -2921,38 +5737,198 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
2921
5737
|
options: localVarRequestOptions,
|
|
2922
5738
|
};
|
|
2923
5739
|
}),
|
|
5740
|
+
};
|
|
5741
|
+
};
|
|
5742
|
+
/**
|
|
5743
|
+
* ReachProfilesApi - functional programming interface
|
|
5744
|
+
* @export
|
|
5745
|
+
*/
|
|
5746
|
+
export const ReachProfilesApiFp = function (configuration) {
|
|
5747
|
+
const localVarAxiosParamCreator = ReachProfilesApiAxiosParamCreator(configuration);
|
|
5748
|
+
return {
|
|
2924
5749
|
/**
|
|
2925
|
-
*
|
|
2926
|
-
* @summary List
|
|
2927
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
2928
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
2929
|
-
* @param {number} [page] Page number
|
|
5750
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5751
|
+
* @summary List Profiles
|
|
2930
5752
|
* @param {*} [options] Override http request option.
|
|
2931
5753
|
* @throws {RequiredError}
|
|
2932
5754
|
*/
|
|
2933
|
-
|
|
2934
|
-
|
|
5755
|
+
listProfilesV1(options) {
|
|
5756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5757
|
+
var _a, _b;
|
|
5758
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfilesV1(options);
|
|
5759
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachProfilesApi.listProfilesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5760
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5761
|
+
});
|
|
5762
|
+
},
|
|
5763
|
+
};
|
|
5764
|
+
};
|
|
5765
|
+
/**
|
|
5766
|
+
* ReachProfilesApi - factory interface
|
|
5767
|
+
* @export
|
|
5768
|
+
*/
|
|
5769
|
+
export const ReachProfilesApiFactory = function (configuration, basePath, axios) {
|
|
5770
|
+
const localVarFp = ReachProfilesApiFp(configuration);
|
|
5771
|
+
return {
|
|
5772
|
+
/**
|
|
5773
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5774
|
+
* @summary List Profiles
|
|
5775
|
+
* @param {*} [options] Override http request option.
|
|
5776
|
+
* @throws {RequiredError}
|
|
5777
|
+
*/
|
|
5778
|
+
listProfilesV1(options) {
|
|
5779
|
+
return localVarFp.listProfilesV1(options).then((request) => request(axios, basePath));
|
|
5780
|
+
},
|
|
5781
|
+
};
|
|
5782
|
+
};
|
|
5783
|
+
/**
|
|
5784
|
+
* ReachProfilesApi - object-oriented interface
|
|
5785
|
+
* @export
|
|
5786
|
+
* @class ReachProfilesApi
|
|
5787
|
+
* @extends {BaseAPI}
|
|
5788
|
+
*/
|
|
5789
|
+
export class ReachProfilesApi extends BaseAPI {
|
|
5790
|
+
/**
|
|
5791
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5792
|
+
* @summary List Profiles
|
|
5793
|
+
* @param {*} [options] Override http request option.
|
|
5794
|
+
* @throws {RequiredError}
|
|
5795
|
+
* @memberof ReachProfilesApi
|
|
5796
|
+
*/
|
|
5797
|
+
listProfilesV1(options) {
|
|
5798
|
+
return ReachProfilesApiFp(this.configuration).listProfilesV1(options).then((request) => request(this.axios, this.basePath));
|
|
5799
|
+
}
|
|
5800
|
+
}
|
|
5801
|
+
/**
|
|
5802
|
+
* ReachSegmentsApi - axios parameter creator
|
|
5803
|
+
* @export
|
|
5804
|
+
*/
|
|
5805
|
+
export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
5806
|
+
return {
|
|
5807
|
+
/**
|
|
5808
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
5809
|
+
* @summary Create a new contact segment
|
|
5810
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
5811
|
+
* @param {*} [options] Override http request option.
|
|
5812
|
+
* @throws {RequiredError}
|
|
5813
|
+
*/
|
|
5814
|
+
createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
|
|
5815
|
+
// verify required parameter 'reachV1ContactsSegmentsStoreRequest' is not null or undefined
|
|
5816
|
+
assertParamExists('createANewContactSegmentV1', 'reachV1ContactsSegmentsStoreRequest', reachV1ContactsSegmentsStoreRequest);
|
|
5817
|
+
const localVarPath = `/api/reach/v1/segmentation/segments`;
|
|
2935
5818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2936
5819
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2937
5820
|
let baseOptions;
|
|
2938
5821
|
if (configuration) {
|
|
2939
5822
|
baseOptions = configuration.baseOptions;
|
|
2940
5823
|
}
|
|
2941
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
5824
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2942
5825
|
const localVarHeaderParameter = {};
|
|
2943
5826
|
const localVarQueryParameter = {};
|
|
2944
5827
|
// authentication apiToken required
|
|
2945
5828
|
// http bearer authentication required
|
|
2946
5829
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2947
|
-
|
|
2948
|
-
|
|
5830
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5831
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5832
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5833
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5834
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsStoreRequest, localVarRequestOptions, configuration);
|
|
5835
|
+
return {
|
|
5836
|
+
url: toPathString(localVarUrlObj),
|
|
5837
|
+
options: localVarRequestOptions,
|
|
5838
|
+
};
|
|
5839
|
+
}),
|
|
5840
|
+
/**
|
|
5841
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
5842
|
+
* @summary Get segment details
|
|
5843
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
5844
|
+
* @param {*} [options] Override http request option.
|
|
5845
|
+
* @throws {RequiredError}
|
|
5846
|
+
*/
|
|
5847
|
+
getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
|
|
5848
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
5849
|
+
assertParamExists('getSegmentDetailsV1', 'segmentUuid', segmentUuid);
|
|
5850
|
+
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
|
|
5851
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
5852
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5853
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5854
|
+
let baseOptions;
|
|
5855
|
+
if (configuration) {
|
|
5856
|
+
baseOptions = configuration.baseOptions;
|
|
2949
5857
|
}
|
|
2950
|
-
|
|
2951
|
-
|
|
5858
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5859
|
+
const localVarHeaderParameter = {};
|
|
5860
|
+
const localVarQueryParameter = {};
|
|
5861
|
+
// authentication apiToken required
|
|
5862
|
+
// http bearer authentication required
|
|
5863
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5866
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5867
|
+
return {
|
|
5868
|
+
url: toPathString(localVarUrlObj),
|
|
5869
|
+
options: localVarRequestOptions,
|
|
5870
|
+
};
|
|
5871
|
+
}),
|
|
5872
|
+
/**
|
|
5873
|
+
* 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
|
+
* @summary List segment contacts
|
|
5875
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
5876
|
+
* @param {number} [page] Page number
|
|
5877
|
+
* @param {number} [perPage] Number of items per page
|
|
5878
|
+
* @param {*} [options] Override http request option.
|
|
5879
|
+
* @throws {RequiredError}
|
|
5880
|
+
*/
|
|
5881
|
+
listSegmentContactsV1: (segmentUuid_1, page_1, perPage_1, ...args_1) => __awaiter(this, [segmentUuid_1, page_1, perPage_1, ...args_1], void 0, function* (segmentUuid, page, perPage, options = {}) {
|
|
5882
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
5883
|
+
assertParamExists('listSegmentContactsV1', 'segmentUuid', segmentUuid);
|
|
5884
|
+
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
|
|
5885
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
5886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5887
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5888
|
+
let baseOptions;
|
|
5889
|
+
if (configuration) {
|
|
5890
|
+
baseOptions = configuration.baseOptions;
|
|
2952
5891
|
}
|
|
5892
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5893
|
+
const localVarHeaderParameter = {};
|
|
5894
|
+
const localVarQueryParameter = {};
|
|
5895
|
+
// authentication apiToken required
|
|
5896
|
+
// http bearer authentication required
|
|
5897
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2953
5898
|
if (page !== undefined) {
|
|
2954
5899
|
localVarQueryParameter['page'] = page;
|
|
2955
5900
|
}
|
|
5901
|
+
if (perPage !== undefined) {
|
|
5902
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
5903
|
+
}
|
|
5904
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5906
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5907
|
+
return {
|
|
5908
|
+
url: toPathString(localVarUrlObj),
|
|
5909
|
+
options: localVarRequestOptions,
|
|
5910
|
+
};
|
|
5911
|
+
}),
|
|
5912
|
+
/**
|
|
5913
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
5914
|
+
* @summary List segments
|
|
5915
|
+
* @param {*} [options] Override http request option.
|
|
5916
|
+
* @throws {RequiredError}
|
|
5917
|
+
*/
|
|
5918
|
+
listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5919
|
+
const localVarPath = `/api/reach/v1/segmentation/segments`;
|
|
5920
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5921
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5922
|
+
let baseOptions;
|
|
5923
|
+
if (configuration) {
|
|
5924
|
+
baseOptions = configuration.baseOptions;
|
|
5925
|
+
}
|
|
5926
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5927
|
+
const localVarHeaderParameter = {};
|
|
5928
|
+
const localVarQueryParameter = {};
|
|
5929
|
+
// authentication apiToken required
|
|
5930
|
+
// http bearer authentication required
|
|
5931
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2956
5932
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2957
5933
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2958
5934
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2964,185 +5940,178 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
2964
5940
|
};
|
|
2965
5941
|
};
|
|
2966
5942
|
/**
|
|
2967
|
-
*
|
|
5943
|
+
* ReachSegmentsApi - functional programming interface
|
|
2968
5944
|
* @export
|
|
2969
5945
|
*/
|
|
2970
|
-
export const
|
|
2971
|
-
const localVarAxiosParamCreator =
|
|
5946
|
+
export const ReachSegmentsApiFp = function (configuration) {
|
|
5947
|
+
const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration);
|
|
2972
5948
|
return {
|
|
2973
5949
|
/**
|
|
2974
|
-
* Create a new contact
|
|
2975
|
-
* @summary Create a new contact
|
|
2976
|
-
* @param {
|
|
5950
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
5951
|
+
* @summary Create a new contact segment
|
|
5952
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
2977
5953
|
* @param {*} [options] Override http request option.
|
|
2978
5954
|
* @throws {RequiredError}
|
|
2979
5955
|
*/
|
|
2980
|
-
|
|
5956
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
2981
5957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2982
5958
|
var _a, _b;
|
|
2983
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2984
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
5959
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
|
|
5960
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2985
5961
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2986
5962
|
});
|
|
2987
5963
|
},
|
|
2988
5964
|
/**
|
|
2989
|
-
*
|
|
2990
|
-
* @summary
|
|
2991
|
-
* @param {string}
|
|
5965
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
5966
|
+
* @summary Get segment details
|
|
5967
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
2992
5968
|
* @param {*} [options] Override http request option.
|
|
2993
5969
|
* @throws {RequiredError}
|
|
2994
5970
|
*/
|
|
2995
|
-
|
|
5971
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
2996
5972
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2997
5973
|
var _a, _b;
|
|
2998
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2999
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
5974
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
|
|
5975
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3000
5976
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3001
5977
|
});
|
|
3002
5978
|
},
|
|
3003
5979
|
/**
|
|
3004
|
-
*
|
|
3005
|
-
* @summary List
|
|
5980
|
+
* 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
|
+
* @summary List segment contacts
|
|
5982
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
5983
|
+
* @param {number} [page] Page number
|
|
5984
|
+
* @param {number} [perPage] Number of items per page
|
|
3006
5985
|
* @param {*} [options] Override http request option.
|
|
3007
5986
|
* @throws {RequiredError}
|
|
3008
5987
|
*/
|
|
3009
|
-
|
|
5988
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
3010
5989
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3011
5990
|
var _a, _b;
|
|
3012
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3013
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
5991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
|
|
5992
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3014
5993
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3015
5994
|
});
|
|
3016
5995
|
},
|
|
3017
5996
|
/**
|
|
3018
|
-
* Get a list of
|
|
3019
|
-
* @summary List
|
|
3020
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3021
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3022
|
-
* @param {number} [page] Page number
|
|
5997
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
5998
|
+
* @summary List segments
|
|
3023
5999
|
* @param {*} [options] Override http request option.
|
|
3024
6000
|
* @throws {RequiredError}
|
|
3025
6001
|
*/
|
|
3026
|
-
|
|
6002
|
+
listSegmentsV1(options) {
|
|
3027
6003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3028
6004
|
var _a, _b;
|
|
3029
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3030
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['
|
|
6005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegmentsV1(options);
|
|
6006
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3031
6007
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3032
6008
|
});
|
|
3033
6009
|
},
|
|
3034
6010
|
};
|
|
3035
6011
|
};
|
|
3036
6012
|
/**
|
|
3037
|
-
*
|
|
6013
|
+
* ReachSegmentsApi - factory interface
|
|
3038
6014
|
* @export
|
|
3039
6015
|
*/
|
|
3040
|
-
export const
|
|
3041
|
-
const localVarFp =
|
|
6016
|
+
export const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
|
|
6017
|
+
const localVarFp = ReachSegmentsApiFp(configuration);
|
|
3042
6018
|
return {
|
|
3043
6019
|
/**
|
|
3044
|
-
* Create a new contact
|
|
3045
|
-
* @summary Create a new contact
|
|
3046
|
-
* @param {
|
|
6020
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
6021
|
+
* @summary Create a new contact segment
|
|
6022
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
3047
6023
|
* @param {*} [options] Override http request option.
|
|
3048
6024
|
* @throws {RequiredError}
|
|
3049
6025
|
*/
|
|
3050
|
-
|
|
3051
|
-
return localVarFp.
|
|
6026
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
6027
|
+
return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
|
|
3052
6028
|
},
|
|
3053
6029
|
/**
|
|
3054
|
-
*
|
|
3055
|
-
* @summary
|
|
3056
|
-
* @param {string}
|
|
6030
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
6031
|
+
* @summary Get segment details
|
|
6032
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
3057
6033
|
* @param {*} [options] Override http request option.
|
|
3058
6034
|
* @throws {RequiredError}
|
|
3059
6035
|
*/
|
|
3060
|
-
|
|
3061
|
-
return localVarFp.
|
|
6036
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
6037
|
+
return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
|
|
3062
6038
|
},
|
|
3063
6039
|
/**
|
|
3064
|
-
*
|
|
3065
|
-
* @summary List
|
|
6040
|
+
* 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
|
+
* @summary List segment contacts
|
|
6042
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
6043
|
+
* @param {number} [page] Page number
|
|
6044
|
+
* @param {number} [perPage] Number of items per page
|
|
3066
6045
|
* @param {*} [options] Override http request option.
|
|
3067
6046
|
* @throws {RequiredError}
|
|
3068
6047
|
*/
|
|
3069
|
-
|
|
3070
|
-
return localVarFp.
|
|
6048
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
6049
|
+
return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
3071
6050
|
},
|
|
3072
6051
|
/**
|
|
3073
|
-
* Get a list of
|
|
3074
|
-
* @summary List
|
|
3075
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3076
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3077
|
-
* @param {number} [page] Page number
|
|
6052
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
6053
|
+
* @summary List segments
|
|
3078
6054
|
* @param {*} [options] Override http request option.
|
|
3079
6055
|
* @throws {RequiredError}
|
|
3080
6056
|
*/
|
|
3081
|
-
|
|
3082
|
-
return localVarFp.
|
|
6057
|
+
listSegmentsV1(options) {
|
|
6058
|
+
return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
|
|
3083
6059
|
},
|
|
3084
6060
|
};
|
|
3085
6061
|
};
|
|
3086
6062
|
/**
|
|
3087
|
-
*
|
|
6063
|
+
* ReachSegmentsApi - object-oriented interface
|
|
3088
6064
|
* @export
|
|
3089
|
-
* @class
|
|
6065
|
+
* @class ReachSegmentsApi
|
|
3090
6066
|
* @extends {BaseAPI}
|
|
3091
6067
|
*/
|
|
3092
|
-
export class
|
|
6068
|
+
export class ReachSegmentsApi extends BaseAPI {
|
|
3093
6069
|
/**
|
|
3094
|
-
* Create a new contact
|
|
3095
|
-
* @summary Create a new contact
|
|
3096
|
-
* @param {
|
|
6070
|
+
* Create a new contact segment. This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.
|
|
6071
|
+
* @summary Create a new contact segment
|
|
6072
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
3097
6073
|
* @param {*} [options] Override http request option.
|
|
3098
6074
|
* @throws {RequiredError}
|
|
3099
|
-
* @memberof
|
|
6075
|
+
* @memberof ReachSegmentsApi
|
|
3100
6076
|
*/
|
|
3101
|
-
|
|
3102
|
-
return
|
|
6077
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
6078
|
+
return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3103
6079
|
}
|
|
3104
6080
|
/**
|
|
3105
|
-
*
|
|
3106
|
-
* @summary
|
|
3107
|
-
* @param {string}
|
|
6081
|
+
* Get details of a specific segment. This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.
|
|
6082
|
+
* @summary Get segment details
|
|
6083
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
3108
6084
|
* @param {*} [options] Override http request option.
|
|
3109
6085
|
* @throws {RequiredError}
|
|
3110
|
-
* @memberof
|
|
6086
|
+
* @memberof ReachSegmentsApi
|
|
3111
6087
|
*/
|
|
3112
|
-
|
|
3113
|
-
return
|
|
6088
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
6089
|
+
return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
3114
6090
|
}
|
|
3115
6091
|
/**
|
|
3116
|
-
*
|
|
3117
|
-
* @summary List
|
|
6092
|
+
* 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
|
+
* @summary List segment contacts
|
|
6094
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
6095
|
+
* @param {number} [page] Page number
|
|
6096
|
+
* @param {number} [perPage] Number of items per page
|
|
3118
6097
|
* @param {*} [options] Override http request option.
|
|
3119
6098
|
* @throws {RequiredError}
|
|
3120
|
-
* @memberof
|
|
6099
|
+
* @memberof ReachSegmentsApi
|
|
3121
6100
|
*/
|
|
3122
|
-
|
|
3123
|
-
return
|
|
6101
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
6102
|
+
return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
3124
6103
|
}
|
|
3125
6104
|
/**
|
|
3126
|
-
* Get a list of
|
|
3127
|
-
* @summary List
|
|
3128
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3129
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3130
|
-
* @param {number} [page] Page number
|
|
6105
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
6106
|
+
* @summary List segments
|
|
3131
6107
|
* @param {*} [options] Override http request option.
|
|
3132
6108
|
* @throws {RequiredError}
|
|
3133
|
-
* @memberof
|
|
6109
|
+
* @memberof ReachSegmentsApi
|
|
3134
6110
|
*/
|
|
3135
|
-
|
|
3136
|
-
return
|
|
6111
|
+
listSegmentsV1(options) {
|
|
6112
|
+
return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
|
|
3137
6113
|
}
|
|
3138
6114
|
}
|
|
3139
|
-
/**
|
|
3140
|
-
* @export
|
|
3141
|
-
*/
|
|
3142
|
-
export const ListContactsV1SubscriptionStatusEnum = {
|
|
3143
|
-
Subscribed: 'subscribed',
|
|
3144
|
-
Unsubscribed: 'unsubscribed'
|
|
3145
|
-
};
|
|
3146
6115
|
/**
|
|
3147
6116
|
* VPSActionsApi - axios parameter creator
|
|
3148
6117
|
* @export
|
|
@@ -3186,7 +6155,7 @@ export const VPSActionsApiAxiosParamCreator = function (configuration) {
|
|
|
3186
6155
|
};
|
|
3187
6156
|
}),
|
|
3188
6157
|
/**
|
|
3189
|
-
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying
|
|
6158
|
+
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
|
|
3190
6159
|
* @summary Get actions
|
|
3191
6160
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3192
6161
|
* @param {number} [page] Page number
|
|
@@ -3247,7 +6216,7 @@ export const VPSActionsApiFp = function (configuration) {
|
|
|
3247
6216
|
});
|
|
3248
6217
|
},
|
|
3249
6218
|
/**
|
|
3250
|
-
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying
|
|
6219
|
+
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
|
|
3251
6220
|
* @summary Get actions
|
|
3252
6221
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3253
6222
|
* @param {number} [page] Page number
|
|
@@ -3283,7 +6252,7 @@ export const VPSActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3283
6252
|
return localVarFp.getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(axios, basePath));
|
|
3284
6253
|
},
|
|
3285
6254
|
/**
|
|
3286
|
-
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying
|
|
6255
|
+
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
|
|
3287
6256
|
* @summary Get actions
|
|
3288
6257
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3289
6258
|
* @param {number} [page] Page number
|
|
@@ -3315,7 +6284,7 @@ export class VPSActionsApi extends BaseAPI {
|
|
|
3315
6284
|
return VPSActionsApiFp(this.configuration).getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(this.axios, this.basePath));
|
|
3316
6285
|
}
|
|
3317
6286
|
/**
|
|
3318
|
-
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying
|
|
6287
|
+
* Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
|
|
3319
6288
|
* @summary Get actions
|
|
3320
6289
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3321
6290
|
* @param {number} [page] Page number
|
|
@@ -3613,7 +6582,7 @@ export class VPSDataCentersApi extends BaseAPI {
|
|
|
3613
6582
|
export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
3614
6583
|
return {
|
|
3615
6584
|
/**
|
|
3616
|
-
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
|
|
6585
|
+
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
|
|
3617
6586
|
* @summary Create new project
|
|
3618
6587
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3619
6588
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3686,7 +6655,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3686
6655
|
};
|
|
3687
6656
|
}),
|
|
3688
6657
|
/**
|
|
3689
|
-
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration.
|
|
6658
|
+
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
|
|
3690
6659
|
* @summary Get project containers
|
|
3691
6660
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3692
6661
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3722,7 +6691,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3722
6691
|
};
|
|
3723
6692
|
}),
|
|
3724
6693
|
/**
|
|
3725
|
-
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.
|
|
6694
|
+
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
|
|
3726
6695
|
* @summary Get project contents
|
|
3727
6696
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3728
6697
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3758,7 +6727,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3758
6727
|
};
|
|
3759
6728
|
}),
|
|
3760
6729
|
/**
|
|
3761
|
-
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with
|
|
6730
|
+
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
|
|
3762
6731
|
* @summary Get project list
|
|
3763
6732
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3764
6733
|
* @param {*} [options] Override http request option.
|
|
@@ -3826,7 +6795,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3826
6795
|
};
|
|
3827
6796
|
}),
|
|
3828
6797
|
/**
|
|
3829
|
-
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order.
|
|
6798
|
+
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
|
|
3830
6799
|
* @summary Restart project
|
|
3831
6800
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3832
6801
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3898,7 +6867,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3898
6867
|
};
|
|
3899
6868
|
}),
|
|
3900
6869
|
/**
|
|
3901
|
-
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes.
|
|
6870
|
+
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
|
|
3902
6871
|
* @summary Stop project
|
|
3903
6872
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3904
6873
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3934,7 +6903,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3934
6903
|
};
|
|
3935
6904
|
}),
|
|
3936
6905
|
/**
|
|
3937
|
-
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations.
|
|
6906
|
+
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
|
|
3938
6907
|
* @summary Update project
|
|
3939
6908
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3940
6909
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3979,7 +6948,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
3979
6948
|
const localVarAxiosParamCreator = VPSDockerManagerApiAxiosParamCreator(configuration);
|
|
3980
6949
|
return {
|
|
3981
6950
|
/**
|
|
3982
|
-
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
|
|
6951
|
+
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
|
|
3983
6952
|
* @summary Create new project
|
|
3984
6953
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3985
6954
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4011,7 +6980,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4011
6980
|
});
|
|
4012
6981
|
},
|
|
4013
6982
|
/**
|
|
4014
|
-
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration.
|
|
6983
|
+
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
|
|
4015
6984
|
* @summary Get project containers
|
|
4016
6985
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4017
6986
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4027,7 +6996,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4027
6996
|
});
|
|
4028
6997
|
},
|
|
4029
6998
|
/**
|
|
4030
|
-
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.
|
|
6999
|
+
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
|
|
4031
7000
|
* @summary Get project contents
|
|
4032
7001
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4033
7002
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4043,7 +7012,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4043
7012
|
});
|
|
4044
7013
|
},
|
|
4045
7014
|
/**
|
|
4046
|
-
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with
|
|
7015
|
+
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
|
|
4047
7016
|
* @summary Get project list
|
|
4048
7017
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4049
7018
|
* @param {*} [options] Override http request option.
|
|
@@ -4074,7 +7043,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4074
7043
|
});
|
|
4075
7044
|
},
|
|
4076
7045
|
/**
|
|
4077
|
-
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order.
|
|
7046
|
+
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
|
|
4078
7047
|
* @summary Restart project
|
|
4079
7048
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4080
7049
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4106,7 +7075,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4106
7075
|
});
|
|
4107
7076
|
},
|
|
4108
7077
|
/**
|
|
4109
|
-
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes.
|
|
7078
|
+
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
|
|
4110
7079
|
* @summary Stop project
|
|
4111
7080
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4112
7081
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4122,7 +7091,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4122
7091
|
});
|
|
4123
7092
|
},
|
|
4124
7093
|
/**
|
|
4125
|
-
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations.
|
|
7094
|
+
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
|
|
4126
7095
|
* @summary Update project
|
|
4127
7096
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4128
7097
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4147,7 +7116,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4147
7116
|
const localVarFp = VPSDockerManagerApiFp(configuration);
|
|
4148
7117
|
return {
|
|
4149
7118
|
/**
|
|
4150
|
-
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
|
|
7119
|
+
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
|
|
4151
7120
|
* @summary Create new project
|
|
4152
7121
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4153
7122
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4169,7 +7138,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4169
7138
|
return localVarFp.deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4170
7139
|
},
|
|
4171
7140
|
/**
|
|
4172
|
-
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration.
|
|
7141
|
+
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
|
|
4173
7142
|
* @summary Get project containers
|
|
4174
7143
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4175
7144
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4180,7 +7149,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4180
7149
|
return localVarFp.getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4181
7150
|
},
|
|
4182
7151
|
/**
|
|
4183
|
-
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.
|
|
7152
|
+
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
|
|
4184
7153
|
* @summary Get project contents
|
|
4185
7154
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4186
7155
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4191,7 +7160,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4191
7160
|
return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4192
7161
|
},
|
|
4193
7162
|
/**
|
|
4194
|
-
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with
|
|
7163
|
+
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
|
|
4195
7164
|
* @summary Get project list
|
|
4196
7165
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4197
7166
|
* @param {*} [options] Override http request option.
|
|
@@ -4212,7 +7181,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4212
7181
|
return localVarFp.getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4213
7182
|
},
|
|
4214
7183
|
/**
|
|
4215
|
-
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order.
|
|
7184
|
+
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
|
|
4216
7185
|
* @summary Restart project
|
|
4217
7186
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4218
7187
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4234,7 +7203,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4234
7203
|
return localVarFp.startProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4235
7204
|
},
|
|
4236
7205
|
/**
|
|
4237
|
-
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes.
|
|
7206
|
+
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
|
|
4238
7207
|
* @summary Stop project
|
|
4239
7208
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4240
7209
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4245,7 +7214,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4245
7214
|
return localVarFp.stopProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4246
7215
|
},
|
|
4247
7216
|
/**
|
|
4248
|
-
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations.
|
|
7217
|
+
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
|
|
4249
7218
|
* @summary Update project
|
|
4250
7219
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4251
7220
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4265,7 +7234,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4265
7234
|
*/
|
|
4266
7235
|
export class VPSDockerManagerApi extends BaseAPI {
|
|
4267
7236
|
/**
|
|
4268
|
-
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
|
|
7237
|
+
* Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project with the same name already exists, existing project will be replaced.
|
|
4269
7238
|
* @summary Create new project
|
|
4270
7239
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4271
7240
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4289,7 +7258,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4289
7258
|
return VPSDockerManagerApiFp(this.configuration).deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4290
7259
|
}
|
|
4291
7260
|
/**
|
|
4292
|
-
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration.
|
|
7261
|
+
* Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
|
|
4293
7262
|
* @summary Get project containers
|
|
4294
7263
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4295
7264
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4301,7 +7270,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4301
7270
|
return VPSDockerManagerApiFp(this.configuration).getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4302
7271
|
}
|
|
4303
7272
|
/**
|
|
4304
|
-
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.
|
|
7273
|
+
* Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
|
|
4305
7274
|
* @summary Get project contents
|
|
4306
7275
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4307
7276
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4313,7 +7282,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4313
7282
|
return VPSDockerManagerApiFp(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4314
7283
|
}
|
|
4315
7284
|
/**
|
|
4316
|
-
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with
|
|
7285
|
+
* Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the `Get project containers` endpoint. Use this to get an overview of all Docker projects on your VPS instance.
|
|
4317
7286
|
* @summary Get project list
|
|
4318
7287
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4319
7288
|
* @param {*} [options] Override http request option.
|
|
@@ -4336,7 +7305,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4336
7305
|
return VPSDockerManagerApiFp(this.configuration).getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4337
7306
|
}
|
|
4338
7307
|
/**
|
|
4339
|
-
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order.
|
|
7308
|
+
* Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
|
|
4340
7309
|
* @summary Restart project
|
|
4341
7310
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4342
7311
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4360,7 +7329,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4360
7329
|
return VPSDockerManagerApiFp(this.configuration).startProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4361
7330
|
}
|
|
4362
7331
|
/**
|
|
4363
|
-
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes.
|
|
7332
|
+
* Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
|
|
4364
7333
|
* @summary Stop project
|
|
4365
7334
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4366
7335
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4372,7 +7341,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4372
7341
|
return VPSDockerManagerApiFp(this.configuration).stopProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4373
7342
|
}
|
|
4374
7343
|
/**
|
|
4375
|
-
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations.
|
|
7344
|
+
* Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
|
|
4376
7345
|
* @summary Update project
|
|
4377
7346
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4378
7347
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4533,7 +7502,7 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration) {
|
|
|
4533
7502
|
};
|
|
4534
7503
|
}),
|
|
4535
7504
|
/**
|
|
4536
|
-
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.
|
|
7505
|
+
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
|
|
4537
7506
|
* @summary Delete firewall rule
|
|
4538
7507
|
* @param {number} firewallId Firewall ID
|
|
4539
7508
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -4814,7 +7783,7 @@ export const VPSFirewallApiFp = function (configuration) {
|
|
|
4814
7783
|
});
|
|
4815
7784
|
},
|
|
4816
7785
|
/**
|
|
4817
|
-
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.
|
|
7786
|
+
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
|
|
4818
7787
|
* @summary Delete firewall rule
|
|
4819
7788
|
* @param {number} firewallId Firewall ID
|
|
4820
7789
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -4960,7 +7929,7 @@ export const VPSFirewallApiFactory = function (configuration, basePath, axios) {
|
|
|
4960
7929
|
return localVarFp.deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(axios, basePath));
|
|
4961
7930
|
},
|
|
4962
7931
|
/**
|
|
4963
|
-
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.
|
|
7932
|
+
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
|
|
4964
7933
|
* @summary Delete firewall rule
|
|
4965
7934
|
* @param {number} firewallId Firewall ID
|
|
4966
7935
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -5080,7 +8049,7 @@ export class VPSFirewallApi extends BaseAPI {
|
|
|
5080
8049
|
return VPSFirewallApiFp(this.configuration).deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
5081
8050
|
}
|
|
5082
8051
|
/**
|
|
5083
|
-
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.
|
|
8052
|
+
* Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
|
|
5084
8053
|
* @summary Delete firewall rule
|
|
5085
8054
|
* @param {number} firewallId Firewall ID
|
|
5086
8055
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -5157,7 +8126,7 @@ export class VPSFirewallApi extends BaseAPI {
|
|
|
5157
8126
|
export const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
|
|
5158
8127
|
return {
|
|
5159
8128
|
/**
|
|
5160
|
-
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans,
|
|
8129
|
+
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
|
|
5161
8130
|
* @summary Get scan metrics
|
|
5162
8131
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5163
8132
|
* @param {*} [options] Override http request option.
|
|
@@ -5189,7 +8158,7 @@ export const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
|
|
|
5189
8158
|
};
|
|
5190
8159
|
}),
|
|
5191
8160
|
/**
|
|
5192
|
-
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines.
|
|
8161
|
+
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
|
|
5193
8162
|
* @summary Install Monarx
|
|
5194
8163
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5195
8164
|
* @param {*} [options] Override http request option.
|
|
@@ -5262,7 +8231,7 @@ export const VPSMalwareScannerApiFp = function (configuration) {
|
|
|
5262
8231
|
const localVarAxiosParamCreator = VPSMalwareScannerApiAxiosParamCreator(configuration);
|
|
5263
8232
|
return {
|
|
5264
8233
|
/**
|
|
5265
|
-
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans,
|
|
8234
|
+
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
|
|
5266
8235
|
* @summary Get scan metrics
|
|
5267
8236
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5268
8237
|
* @param {*} [options] Override http request option.
|
|
@@ -5277,7 +8246,7 @@ export const VPSMalwareScannerApiFp = function (configuration) {
|
|
|
5277
8246
|
});
|
|
5278
8247
|
},
|
|
5279
8248
|
/**
|
|
5280
|
-
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines.
|
|
8249
|
+
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
|
|
5281
8250
|
* @summary Install Monarx
|
|
5282
8251
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5283
8252
|
* @param {*} [options] Override http request option.
|
|
@@ -5316,7 +8285,7 @@ export const VPSMalwareScannerApiFactory = function (configuration, basePath, ax
|
|
|
5316
8285
|
const localVarFp = VPSMalwareScannerApiFp(configuration);
|
|
5317
8286
|
return {
|
|
5318
8287
|
/**
|
|
5319
|
-
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans,
|
|
8288
|
+
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
|
|
5320
8289
|
* @summary Get scan metrics
|
|
5321
8290
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5322
8291
|
* @param {*} [options] Override http request option.
|
|
@@ -5326,7 +8295,7 @@ export const VPSMalwareScannerApiFactory = function (configuration, basePath, ax
|
|
|
5326
8295
|
return localVarFp.getScanMetricsV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
5327
8296
|
},
|
|
5328
8297
|
/**
|
|
5329
|
-
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines.
|
|
8298
|
+
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
|
|
5330
8299
|
* @summary Install Monarx
|
|
5331
8300
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5332
8301
|
* @param {*} [options] Override http request option.
|
|
@@ -5355,7 +8324,7 @@ export const VPSMalwareScannerApiFactory = function (configuration, basePath, ax
|
|
|
5355
8324
|
*/
|
|
5356
8325
|
export class VPSMalwareScannerApi extends BaseAPI {
|
|
5357
8326
|
/**
|
|
5358
|
-
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans,
|
|
8327
|
+
* Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner. Use this endpoint to monitor VPS security scan results and threat detection.
|
|
5359
8328
|
* @summary Get scan metrics
|
|
5360
8329
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5361
8330
|
* @param {*} [options] Override http request option.
|
|
@@ -5366,7 +8335,7 @@ export class VPSMalwareScannerApi extends BaseAPI {
|
|
|
5366
8335
|
return VPSMalwareScannerApiFp(this.configuration).getScanMetricsV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
5367
8336
|
}
|
|
5368
8337
|
/**
|
|
5369
|
-
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines.
|
|
8338
|
+
* Install the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software. Use this endpoint to enable malware protection on VPS instances.
|
|
5370
8339
|
* @summary Install Monarx
|
|
5371
8340
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5372
8341
|
* @param {*} [options] Override http request option.
|
|
@@ -7109,7 +10078,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
7109
10078
|
};
|
|
7110
10079
|
}),
|
|
7111
10080
|
/**
|
|
7112
|
-
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least
|
|
10081
|
+
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
|
|
7113
10082
|
* @summary Recreate virtual machine
|
|
7114
10083
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7115
10084
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|
|
@@ -7545,7 +10514,7 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
7545
10514
|
});
|
|
7546
10515
|
},
|
|
7547
10516
|
/**
|
|
7548
|
-
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least
|
|
10517
|
+
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
|
|
7549
10518
|
* @summary Recreate virtual machine
|
|
7550
10519
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7551
10520
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|
|
@@ -7762,7 +10731,7 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
7762
10731
|
return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
|
|
7763
10732
|
},
|
|
7764
10733
|
/**
|
|
7765
|
-
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least
|
|
10734
|
+
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
|
|
7766
10735
|
* @summary Recreate virtual machine
|
|
7767
10736
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7768
10737
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|
|
@@ -7934,7 +10903,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
7934
10903
|
return VPSVirtualMachineApiFp(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7935
10904
|
}
|
|
7936
10905
|
/**
|
|
7937
|
-
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least
|
|
10906
|
+
* Recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 12 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!** Use this endpoint to completely rebuild VPS instances with fresh OS installation.
|
|
7938
10907
|
* @summary Recreate virtual machine
|
|
7939
10908
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7940
10909
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|