hostinger-api-sdk 0.0.17 → 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/README.md +2 -2
- package/api.ts +7280 -2652
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4936 -1816
- package/dist/api.js +3248 -374
- 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 +4936 -1816
- package/dist/esm/api.js +3196 -363
- 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 +0 -59
- 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
|
|
@@ -702,43 +726,6 @@ export class BillingPaymentMethodsApi extends BaseAPI {
|
|
|
702
726
|
*/
|
|
703
727
|
export const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
704
728
|
return {
|
|
705
|
-
/**
|
|
706
|
-
* Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
|
|
707
|
-
* @summary Cancel subscription
|
|
708
|
-
* @param {string} subscriptionId Subscription ID
|
|
709
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
710
|
-
* @param {*} [options] Override http request option.
|
|
711
|
-
* @throws {RequiredError}
|
|
712
|
-
*/
|
|
713
|
-
cancelSubscriptionV1: (subscriptionId_1, billingV1SubscriptionCancelRequest_1, ...args_1) => __awaiter(this, [subscriptionId_1, billingV1SubscriptionCancelRequest_1, ...args_1], void 0, function* (subscriptionId, billingV1SubscriptionCancelRequest, options = {}) {
|
|
714
|
-
// verify required parameter 'subscriptionId' is not null or undefined
|
|
715
|
-
assertParamExists('cancelSubscriptionV1', 'subscriptionId', subscriptionId);
|
|
716
|
-
// verify required parameter 'billingV1SubscriptionCancelRequest' is not null or undefined
|
|
717
|
-
assertParamExists('cancelSubscriptionV1', 'billingV1SubscriptionCancelRequest', billingV1SubscriptionCancelRequest);
|
|
718
|
-
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}`
|
|
719
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
720
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
721
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
722
|
-
let baseOptions;
|
|
723
|
-
if (configuration) {
|
|
724
|
-
baseOptions = configuration.baseOptions;
|
|
725
|
-
}
|
|
726
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
727
|
-
const localVarHeaderParameter = {};
|
|
728
|
-
const localVarQueryParameter = {};
|
|
729
|
-
// authentication apiToken required
|
|
730
|
-
// http bearer authentication required
|
|
731
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
732
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
733
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
734
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
736
|
-
localVarRequestOptions.data = serializeDataIfNeeded(billingV1SubscriptionCancelRequest, localVarRequestOptions, configuration);
|
|
737
|
-
return {
|
|
738
|
-
url: toPathString(localVarUrlObj),
|
|
739
|
-
options: localVarRequestOptions,
|
|
740
|
-
};
|
|
741
|
-
}),
|
|
742
729
|
/**
|
|
743
730
|
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
744
731
|
* @summary Disable auto-renewal
|
|
@@ -840,22 +827,6 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration)
|
|
|
840
827
|
export const BillingSubscriptionsApiFp = function (configuration) {
|
|
841
828
|
const localVarAxiosParamCreator = BillingSubscriptionsApiAxiosParamCreator(configuration);
|
|
842
829
|
return {
|
|
843
|
-
/**
|
|
844
|
-
* Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
|
|
845
|
-
* @summary Cancel subscription
|
|
846
|
-
* @param {string} subscriptionId Subscription ID
|
|
847
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
848
|
-
* @param {*} [options] Override http request option.
|
|
849
|
-
* @throws {RequiredError}
|
|
850
|
-
*/
|
|
851
|
-
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
852
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
853
|
-
var _a, _b;
|
|
854
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options);
|
|
855
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.cancelSubscriptionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
856
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
857
|
-
});
|
|
858
|
-
},
|
|
859
830
|
/**
|
|
860
831
|
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
861
832
|
* @summary Disable auto-renewal
|
|
@@ -909,17 +880,6 @@ export const BillingSubscriptionsApiFp = function (configuration) {
|
|
|
909
880
|
export const BillingSubscriptionsApiFactory = function (configuration, basePath, axios) {
|
|
910
881
|
const localVarFp = BillingSubscriptionsApiFp(configuration);
|
|
911
882
|
return {
|
|
912
|
-
/**
|
|
913
|
-
* Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
|
|
914
|
-
* @summary Cancel subscription
|
|
915
|
-
* @param {string} subscriptionId Subscription ID
|
|
916
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
917
|
-
* @param {*} [options] Override http request option.
|
|
918
|
-
* @throws {RequiredError}
|
|
919
|
-
*/
|
|
920
|
-
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
921
|
-
return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
|
|
922
|
-
},
|
|
923
883
|
/**
|
|
924
884
|
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
925
885
|
* @summary Disable auto-renewal
|
|
@@ -958,18 +918,6 @@ export const BillingSubscriptionsApiFactory = function (configuration, basePath,
|
|
|
958
918
|
* @extends {BaseAPI}
|
|
959
919
|
*/
|
|
960
920
|
export class BillingSubscriptionsApi extends BaseAPI {
|
|
961
|
-
/**
|
|
962
|
-
* Cancel a subscription and stop any further billing. Use this endpoint when users want to terminate active services.
|
|
963
|
-
* @summary Cancel subscription
|
|
964
|
-
* @param {string} subscriptionId Subscription ID
|
|
965
|
-
* @param {BillingV1SubscriptionCancelRequest} billingV1SubscriptionCancelRequest
|
|
966
|
-
* @param {*} [options] Override http request option.
|
|
967
|
-
* @throws {RequiredError}
|
|
968
|
-
* @memberof BillingSubscriptionsApi
|
|
969
|
-
*/
|
|
970
|
-
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
971
|
-
return BillingSubscriptionsApiFp(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
972
|
-
}
|
|
973
921
|
/**
|
|
974
922
|
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
975
923
|
* @summary Disable auto-renewal
|
|
@@ -1661,6 +1609,109 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
1661
1609
|
return DNSZoneApiFp(this.configuration).validateDNSRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1662
1610
|
}
|
|
1663
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
|
+
}
|
|
1664
1715
|
/**
|
|
1665
1716
|
* DomainsAvailabilityApi - axios parameter creator
|
|
1666
1717
|
* @export
|
|
@@ -2198,7 +2249,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
2198
2249
|
};
|
|
2199
2250
|
}),
|
|
2200
2251
|
/**
|
|
2201
|
-
* 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.
|
|
2202
2253
|
* @summary Purchase new domain
|
|
2203
2254
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2204
2255
|
* @param {*} [options] Override http request option.
|
|
@@ -2366,7 +2417,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
2366
2417
|
});
|
|
2367
2418
|
},
|
|
2368
2419
|
/**
|
|
2369
|
-
* 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.
|
|
2370
2421
|
* @summary Purchase new domain
|
|
2371
2422
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2372
2423
|
* @param {*} [options] Override http request option.
|
|
@@ -2465,7 +2516,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
2465
2516
|
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
2466
2517
|
},
|
|
2467
2518
|
/**
|
|
2468
|
-
* 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.
|
|
2469
2520
|
* @summary Purchase new domain
|
|
2470
2521
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2471
2522
|
* @param {*} [options] Override http request option.
|
|
@@ -2560,7 +2611,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
2560
2611
|
return DomainsPortfolioApiFp(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
2561
2612
|
}
|
|
2562
2613
|
/**
|
|
2563
|
-
* 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.
|
|
2564
2615
|
* @summary Purchase new domain
|
|
2565
2616
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
2566
2617
|
* @param {*} [options] Override http request option.
|
|
@@ -2959,22 +3010,22 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
2959
3010
|
}
|
|
2960
3011
|
}
|
|
2961
3012
|
/**
|
|
2962
|
-
*
|
|
3013
|
+
* EcommerceStoresApi - axios parameter creator
|
|
2963
3014
|
* @export
|
|
2964
3015
|
*/
|
|
2965
|
-
export const
|
|
3016
|
+
export const EcommerceStoresApiAxiosParamCreator = function (configuration) {
|
|
2966
3017
|
return {
|
|
2967
3018
|
/**
|
|
2968
|
-
* Create a new
|
|
2969
|
-
* @summary Create
|
|
2970
|
-
* @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
|
|
2971
3022
|
* @param {*} [options] Override http request option.
|
|
2972
3023
|
* @throws {RequiredError}
|
|
2973
3024
|
*/
|
|
2974
|
-
|
|
2975
|
-
// verify required parameter '
|
|
2976
|
-
assertParamExists('
|
|
2977
|
-
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`;
|
|
2978
3029
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2979
3030
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2980
3031
|
let baseOptions;
|
|
@@ -2991,36 +3042,36 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
2991
3042
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2992
3043
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2993
3044
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2994
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3045
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ecommerceV1StoreStoreRequest, localVarRequestOptions, configuration);
|
|
2995
3046
|
return {
|
|
2996
3047
|
url: toPathString(localVarUrlObj),
|
|
2997
3048
|
options: localVarRequestOptions,
|
|
2998
3049
|
};
|
|
2999
3050
|
}),
|
|
3000
3051
|
/**
|
|
3001
|
-
*
|
|
3002
|
-
* @summary
|
|
3003
|
-
* @param {
|
|
3052
|
+
* Retrieve the stores associated with your account.
|
|
3053
|
+
* @summary Get stores
|
|
3054
|
+
* @param {number} [page] Page number
|
|
3004
3055
|
* @param {*} [options] Override http request option.
|
|
3005
3056
|
* @throws {RequiredError}
|
|
3006
3057
|
*/
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
assertParamExists('deleteAContactV1', 'uuid', uuid);
|
|
3010
|
-
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
3011
|
-
.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`;
|
|
3012
3060
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3013
3061
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3014
3062
|
let baseOptions;
|
|
3015
3063
|
if (configuration) {
|
|
3016
3064
|
baseOptions = configuration.baseOptions;
|
|
3017
3065
|
}
|
|
3018
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3066
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3019
3067
|
const localVarHeaderParameter = {};
|
|
3020
3068
|
const localVarQueryParameter = {};
|
|
3021
3069
|
// authentication apiToken required
|
|
3022
3070
|
// http bearer authentication required
|
|
3023
3071
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3072
|
+
if (page !== undefined) {
|
|
3073
|
+
localVarQueryParameter['page'] = page;
|
|
3074
|
+
}
|
|
3024
3075
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3025
3076
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3026
3077
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3029,19 +3080,2648 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
3029
3080
|
options: localVarRequestOptions,
|
|
3030
3081
|
};
|
|
3031
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 {
|
|
3032
3092
|
/**
|
|
3033
|
-
*
|
|
3034
|
-
* @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
|
|
3035
3096
|
* @param {*} [options] Override http request option.
|
|
3036
3097
|
* @throws {RequiredError}
|
|
3037
3098
|
*/
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
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;
|
|
3045
5725
|
}
|
|
3046
5726
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3047
5727
|
const localVarHeaderParameter = {};
|
|
@@ -3057,38 +5737,198 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
3057
5737
|
options: localVarRequestOptions,
|
|
3058
5738
|
};
|
|
3059
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 {
|
|
3060
5749
|
/**
|
|
3061
|
-
*
|
|
3062
|
-
* @summary List
|
|
3063
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3064
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3065
|
-
* @param {number} [page] Page number
|
|
5750
|
+
* This endpoint returns all profiles available to the client, including their basic information.
|
|
5751
|
+
* @summary List Profiles
|
|
3066
5752
|
* @param {*} [options] Override http request option.
|
|
3067
5753
|
* @throws {RequiredError}
|
|
3068
5754
|
*/
|
|
3069
|
-
|
|
3070
|
-
|
|
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`;
|
|
3071
5818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3072
5819
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3073
5820
|
let baseOptions;
|
|
3074
5821
|
if (configuration) {
|
|
3075
5822
|
baseOptions = configuration.baseOptions;
|
|
3076
5823
|
}
|
|
3077
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
5824
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3078
5825
|
const localVarHeaderParameter = {};
|
|
3079
5826
|
const localVarQueryParameter = {};
|
|
3080
5827
|
// authentication apiToken required
|
|
3081
5828
|
// http bearer authentication required
|
|
3082
5829
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3083
|
-
|
|
3084
|
-
|
|
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;
|
|
3085
5857
|
}
|
|
3086
|
-
|
|
3087
|
-
|
|
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;
|
|
3088
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);
|
|
3089
5898
|
if (page !== undefined) {
|
|
3090
5899
|
localVarQueryParameter['page'] = page;
|
|
3091
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);
|
|
3092
5932
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3093
5933
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3094
5934
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3100,185 +5940,178 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
3100
5940
|
};
|
|
3101
5941
|
};
|
|
3102
5942
|
/**
|
|
3103
|
-
*
|
|
5943
|
+
* ReachSegmentsApi - functional programming interface
|
|
3104
5944
|
* @export
|
|
3105
5945
|
*/
|
|
3106
|
-
export const
|
|
3107
|
-
const localVarAxiosParamCreator =
|
|
5946
|
+
export const ReachSegmentsApiFp = function (configuration) {
|
|
5947
|
+
const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration);
|
|
3108
5948
|
return {
|
|
3109
5949
|
/**
|
|
3110
|
-
* Create a new contact
|
|
3111
|
-
* @summary Create a new contact
|
|
3112
|
-
* @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
|
|
3113
5953
|
* @param {*} [options] Override http request option.
|
|
3114
5954
|
* @throws {RequiredError}
|
|
3115
5955
|
*/
|
|
3116
|
-
|
|
5956
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
3117
5957
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3118
5958
|
var _a, _b;
|
|
3119
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3120
|
-
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;
|
|
3121
5961
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3122
5962
|
});
|
|
3123
5963
|
},
|
|
3124
5964
|
/**
|
|
3125
|
-
*
|
|
3126
|
-
* @summary
|
|
3127
|
-
* @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
|
|
3128
5968
|
* @param {*} [options] Override http request option.
|
|
3129
5969
|
* @throws {RequiredError}
|
|
3130
5970
|
*/
|
|
3131
|
-
|
|
5971
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
3132
5972
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3133
5973
|
var _a, _b;
|
|
3134
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3135
|
-
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;
|
|
3136
5976
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3137
5977
|
});
|
|
3138
5978
|
},
|
|
3139
5979
|
/**
|
|
3140
|
-
*
|
|
3141
|
-
* @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
|
|
3142
5985
|
* @param {*} [options] Override http request option.
|
|
3143
5986
|
* @throws {RequiredError}
|
|
3144
5987
|
*/
|
|
3145
|
-
|
|
5988
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
3146
5989
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3147
5990
|
var _a, _b;
|
|
3148
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3149
|
-
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;
|
|
3150
5993
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3151
5994
|
});
|
|
3152
5995
|
},
|
|
3153
5996
|
/**
|
|
3154
|
-
* Get a list of
|
|
3155
|
-
* @summary List
|
|
3156
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3157
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3158
|
-
* @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
|
|
3159
5999
|
* @param {*} [options] Override http request option.
|
|
3160
6000
|
* @throws {RequiredError}
|
|
3161
6001
|
*/
|
|
3162
|
-
|
|
6002
|
+
listSegmentsV1(options) {
|
|
3163
6003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3164
6004
|
var _a, _b;
|
|
3165
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3166
|
-
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;
|
|
3167
6007
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3168
6008
|
});
|
|
3169
6009
|
},
|
|
3170
6010
|
};
|
|
3171
6011
|
};
|
|
3172
6012
|
/**
|
|
3173
|
-
*
|
|
6013
|
+
* ReachSegmentsApi - factory interface
|
|
3174
6014
|
* @export
|
|
3175
6015
|
*/
|
|
3176
|
-
export const
|
|
3177
|
-
const localVarFp =
|
|
6016
|
+
export const ReachSegmentsApiFactory = function (configuration, basePath, axios) {
|
|
6017
|
+
const localVarFp = ReachSegmentsApiFp(configuration);
|
|
3178
6018
|
return {
|
|
3179
6019
|
/**
|
|
3180
|
-
* Create a new contact
|
|
3181
|
-
* @summary Create a new contact
|
|
3182
|
-
* @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
|
|
3183
6023
|
* @param {*} [options] Override http request option.
|
|
3184
6024
|
* @throws {RequiredError}
|
|
3185
6025
|
*/
|
|
3186
|
-
|
|
3187
|
-
return localVarFp.
|
|
6026
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
6027
|
+
return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
|
|
3188
6028
|
},
|
|
3189
6029
|
/**
|
|
3190
|
-
*
|
|
3191
|
-
* @summary
|
|
3192
|
-
* @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
|
|
3193
6033
|
* @param {*} [options] Override http request option.
|
|
3194
6034
|
* @throws {RequiredError}
|
|
3195
6035
|
*/
|
|
3196
|
-
|
|
3197
|
-
return localVarFp.
|
|
6036
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
6037
|
+
return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
|
|
3198
6038
|
},
|
|
3199
6039
|
/**
|
|
3200
|
-
*
|
|
3201
|
-
* @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
|
|
3202
6045
|
* @param {*} [options] Override http request option.
|
|
3203
6046
|
* @throws {RequiredError}
|
|
3204
6047
|
*/
|
|
3205
|
-
|
|
3206
|
-
return localVarFp.
|
|
6048
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
6049
|
+
return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
3207
6050
|
},
|
|
3208
6051
|
/**
|
|
3209
|
-
* Get a list of
|
|
3210
|
-
* @summary List
|
|
3211
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3212
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3213
|
-
* @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
|
|
3214
6054
|
* @param {*} [options] Override http request option.
|
|
3215
6055
|
* @throws {RequiredError}
|
|
3216
6056
|
*/
|
|
3217
|
-
|
|
3218
|
-
return localVarFp.
|
|
6057
|
+
listSegmentsV1(options) {
|
|
6058
|
+
return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
|
|
3219
6059
|
},
|
|
3220
6060
|
};
|
|
3221
6061
|
};
|
|
3222
6062
|
/**
|
|
3223
|
-
*
|
|
6063
|
+
* ReachSegmentsApi - object-oriented interface
|
|
3224
6064
|
* @export
|
|
3225
|
-
* @class
|
|
6065
|
+
* @class ReachSegmentsApi
|
|
3226
6066
|
* @extends {BaseAPI}
|
|
3227
6067
|
*/
|
|
3228
|
-
export class
|
|
6068
|
+
export class ReachSegmentsApi extends BaseAPI {
|
|
3229
6069
|
/**
|
|
3230
|
-
* Create a new contact
|
|
3231
|
-
* @summary Create a new contact
|
|
3232
|
-
* @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
|
|
3233
6073
|
* @param {*} [options] Override http request option.
|
|
3234
6074
|
* @throws {RequiredError}
|
|
3235
|
-
* @memberof
|
|
6075
|
+
* @memberof ReachSegmentsApi
|
|
3236
6076
|
*/
|
|
3237
|
-
|
|
3238
|
-
return
|
|
6077
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
6078
|
+
return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3239
6079
|
}
|
|
3240
6080
|
/**
|
|
3241
|
-
*
|
|
3242
|
-
* @summary
|
|
3243
|
-
* @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
|
|
3244
6084
|
* @param {*} [options] Override http request option.
|
|
3245
6085
|
* @throws {RequiredError}
|
|
3246
|
-
* @memberof
|
|
6086
|
+
* @memberof ReachSegmentsApi
|
|
3247
6087
|
*/
|
|
3248
|
-
|
|
3249
|
-
return
|
|
6088
|
+
getSegmentDetailsV1(segmentUuid, options) {
|
|
6089
|
+
return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
3250
6090
|
}
|
|
3251
6091
|
/**
|
|
3252
|
-
*
|
|
3253
|
-
* @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
|
|
3254
6097
|
* @param {*} [options] Override http request option.
|
|
3255
6098
|
* @throws {RequiredError}
|
|
3256
|
-
* @memberof
|
|
6099
|
+
* @memberof ReachSegmentsApi
|
|
3257
6100
|
*/
|
|
3258
|
-
|
|
3259
|
-
return
|
|
6101
|
+
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
6102
|
+
return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
3260
6103
|
}
|
|
3261
6104
|
/**
|
|
3262
|
-
* Get a list of
|
|
3263
|
-
* @summary List
|
|
3264
|
-
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
3265
|
-
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
3266
|
-
* @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
|
|
3267
6107
|
* @param {*} [options] Override http request option.
|
|
3268
6108
|
* @throws {RequiredError}
|
|
3269
|
-
* @memberof
|
|
6109
|
+
* @memberof ReachSegmentsApi
|
|
3270
6110
|
*/
|
|
3271
|
-
|
|
3272
|
-
return
|
|
6111
|
+
listSegmentsV1(options) {
|
|
6112
|
+
return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
|
|
3273
6113
|
}
|
|
3274
6114
|
}
|
|
3275
|
-
/**
|
|
3276
|
-
* @export
|
|
3277
|
-
*/
|
|
3278
|
-
export const ListContactsV1SubscriptionStatusEnum = {
|
|
3279
|
-
Subscribed: 'subscribed',
|
|
3280
|
-
Unsubscribed: 'unsubscribed'
|
|
3281
|
-
};
|
|
3282
6115
|
/**
|
|
3283
6116
|
* VPSActionsApi - axios parameter creator
|
|
3284
6117
|
* @export
|
|
@@ -3322,7 +6155,7 @@ export const VPSActionsApiAxiosParamCreator = function (configuration) {
|
|
|
3322
6155
|
};
|
|
3323
6156
|
}),
|
|
3324
6157
|
/**
|
|
3325
|
-
* 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.
|
|
3326
6159
|
* @summary Get actions
|
|
3327
6160
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3328
6161
|
* @param {number} [page] Page number
|
|
@@ -3383,7 +6216,7 @@ export const VPSActionsApiFp = function (configuration) {
|
|
|
3383
6216
|
});
|
|
3384
6217
|
},
|
|
3385
6218
|
/**
|
|
3386
|
-
* 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.
|
|
3387
6220
|
* @summary Get actions
|
|
3388
6221
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3389
6222
|
* @param {number} [page] Page number
|
|
@@ -3419,7 +6252,7 @@ export const VPSActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
3419
6252
|
return localVarFp.getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(axios, basePath));
|
|
3420
6253
|
},
|
|
3421
6254
|
/**
|
|
3422
|
-
* 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.
|
|
3423
6256
|
* @summary Get actions
|
|
3424
6257
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3425
6258
|
* @param {number} [page] Page number
|
|
@@ -3451,7 +6284,7 @@ export class VPSActionsApi extends BaseAPI {
|
|
|
3451
6284
|
return VPSActionsApiFp(this.configuration).getActionDetailsV1(virtualMachineId, actionId, options).then((request) => request(this.axios, this.basePath));
|
|
3452
6285
|
}
|
|
3453
6286
|
/**
|
|
3454
|
-
* 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.
|
|
3455
6288
|
* @summary Get actions
|
|
3456
6289
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3457
6290
|
* @param {number} [page] Page number
|
|
@@ -3749,7 +6582,7 @@ export class VPSDataCentersApi extends BaseAPI {
|
|
|
3749
6582
|
export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
3750
6583
|
return {
|
|
3751
6584
|
/**
|
|
3752
|
-
* 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.
|
|
3753
6586
|
* @summary Create new project
|
|
3754
6587
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3755
6588
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -3822,7 +6655,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3822
6655
|
};
|
|
3823
6656
|
}),
|
|
3824
6657
|
/**
|
|
3825
|
-
* 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.
|
|
3826
6659
|
* @summary Get project containers
|
|
3827
6660
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3828
6661
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3858,7 +6691,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3858
6691
|
};
|
|
3859
6692
|
}),
|
|
3860
6693
|
/**
|
|
3861
|
-
* 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.
|
|
3862
6695
|
* @summary Get project contents
|
|
3863
6696
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3864
6697
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -3894,7 +6727,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3894
6727
|
};
|
|
3895
6728
|
}),
|
|
3896
6729
|
/**
|
|
3897
|
-
* 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.
|
|
3898
6731
|
* @summary Get project list
|
|
3899
6732
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3900
6733
|
* @param {*} [options] Override http request option.
|
|
@@ -3962,7 +6795,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3962
6795
|
};
|
|
3963
6796
|
}),
|
|
3964
6797
|
/**
|
|
3965
|
-
* 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.
|
|
3966
6799
|
* @summary Restart project
|
|
3967
6800
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
3968
6801
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4034,7 +6867,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4034
6867
|
};
|
|
4035
6868
|
}),
|
|
4036
6869
|
/**
|
|
4037
|
-
* 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.
|
|
4038
6871
|
* @summary Stop project
|
|
4039
6872
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4040
6873
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4070,7 +6903,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4070
6903
|
};
|
|
4071
6904
|
}),
|
|
4072
6905
|
/**
|
|
4073
|
-
* 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.
|
|
4074
6907
|
* @summary Update project
|
|
4075
6908
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4076
6909
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4115,7 +6948,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4115
6948
|
const localVarAxiosParamCreator = VPSDockerManagerApiAxiosParamCreator(configuration);
|
|
4116
6949
|
return {
|
|
4117
6950
|
/**
|
|
4118
|
-
* 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.
|
|
4119
6952
|
* @summary Create new project
|
|
4120
6953
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4121
6954
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4147,7 +6980,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4147
6980
|
});
|
|
4148
6981
|
},
|
|
4149
6982
|
/**
|
|
4150
|
-
* 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.
|
|
4151
6984
|
* @summary Get project containers
|
|
4152
6985
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4153
6986
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4163,7 +6996,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4163
6996
|
});
|
|
4164
6997
|
},
|
|
4165
6998
|
/**
|
|
4166
|
-
* 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.
|
|
4167
7000
|
* @summary Get project contents
|
|
4168
7001
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4169
7002
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4179,7 +7012,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4179
7012
|
});
|
|
4180
7013
|
},
|
|
4181
7014
|
/**
|
|
4182
|
-
* 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.
|
|
4183
7016
|
* @summary Get project list
|
|
4184
7017
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4185
7018
|
* @param {*} [options] Override http request option.
|
|
@@ -4210,7 +7043,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4210
7043
|
});
|
|
4211
7044
|
},
|
|
4212
7045
|
/**
|
|
4213
|
-
* 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.
|
|
4214
7047
|
* @summary Restart project
|
|
4215
7048
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4216
7049
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4242,7 +7075,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4242
7075
|
});
|
|
4243
7076
|
},
|
|
4244
7077
|
/**
|
|
4245
|
-
* 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.
|
|
4246
7079
|
* @summary Stop project
|
|
4247
7080
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4248
7081
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4258,7 +7091,7 @@ export const VPSDockerManagerApiFp = function (configuration) {
|
|
|
4258
7091
|
});
|
|
4259
7092
|
},
|
|
4260
7093
|
/**
|
|
4261
|
-
* 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.
|
|
4262
7095
|
* @summary Update project
|
|
4263
7096
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4264
7097
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4283,7 +7116,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4283
7116
|
const localVarFp = VPSDockerManagerApiFp(configuration);
|
|
4284
7117
|
return {
|
|
4285
7118
|
/**
|
|
4286
|
-
* 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.
|
|
4287
7120
|
* @summary Create new project
|
|
4288
7121
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4289
7122
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4305,7 +7138,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4305
7138
|
return localVarFp.deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4306
7139
|
},
|
|
4307
7140
|
/**
|
|
4308
|
-
* 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.
|
|
4309
7142
|
* @summary Get project containers
|
|
4310
7143
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4311
7144
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4316,7 +7149,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4316
7149
|
return localVarFp.getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4317
7150
|
},
|
|
4318
7151
|
/**
|
|
4319
|
-
* 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.
|
|
4320
7153
|
* @summary Get project contents
|
|
4321
7154
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4322
7155
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4327,7 +7160,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4327
7160
|
return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4328
7161
|
},
|
|
4329
7162
|
/**
|
|
4330
|
-
* 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.
|
|
4331
7164
|
* @summary Get project list
|
|
4332
7165
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4333
7166
|
* @param {*} [options] Override http request option.
|
|
@@ -4348,7 +7181,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4348
7181
|
return localVarFp.getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4349
7182
|
},
|
|
4350
7183
|
/**
|
|
4351
|
-
* 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.
|
|
4352
7185
|
* @summary Restart project
|
|
4353
7186
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4354
7187
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4370,7 +7203,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4370
7203
|
return localVarFp.startProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4371
7204
|
},
|
|
4372
7205
|
/**
|
|
4373
|
-
* 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.
|
|
4374
7207
|
* @summary Stop project
|
|
4375
7208
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4376
7209
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4381,7 +7214,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4381
7214
|
return localVarFp.stopProjectV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
4382
7215
|
},
|
|
4383
7216
|
/**
|
|
4384
|
-
* 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.
|
|
4385
7218
|
* @summary Update project
|
|
4386
7219
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4387
7220
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4401,7 +7234,7 @@ export const VPSDockerManagerApiFactory = function (configuration, basePath, axi
|
|
|
4401
7234
|
*/
|
|
4402
7235
|
export class VPSDockerManagerApi extends BaseAPI {
|
|
4403
7236
|
/**
|
|
4404
|
-
* 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.
|
|
4405
7238
|
* @summary Create new project
|
|
4406
7239
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4407
7240
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -4425,7 +7258,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4425
7258
|
return VPSDockerManagerApiFp(this.configuration).deleteProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4426
7259
|
}
|
|
4427
7260
|
/**
|
|
4428
|
-
* 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.
|
|
4429
7262
|
* @summary Get project containers
|
|
4430
7263
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4431
7264
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4437,7 +7270,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4437
7270
|
return VPSDockerManagerApiFp(this.configuration).getProjectContainersV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4438
7271
|
}
|
|
4439
7272
|
/**
|
|
4440
|
-
* 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.
|
|
4441
7274
|
* @summary Get project contents
|
|
4442
7275
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4443
7276
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4449,7 +7282,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4449
7282
|
return VPSDockerManagerApiFp(this.configuration).getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4450
7283
|
}
|
|
4451
7284
|
/**
|
|
4452
|
-
* 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.
|
|
4453
7286
|
* @summary Get project list
|
|
4454
7287
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4455
7288
|
* @param {*} [options] Override http request option.
|
|
@@ -4472,7 +7305,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4472
7305
|
return VPSDockerManagerApiFp(this.configuration).getProjectLogsV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4473
7306
|
}
|
|
4474
7307
|
/**
|
|
4475
|
-
* 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.
|
|
4476
7309
|
* @summary Restart project
|
|
4477
7310
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4478
7311
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4496,7 +7329,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4496
7329
|
return VPSDockerManagerApiFp(this.configuration).startProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4497
7330
|
}
|
|
4498
7331
|
/**
|
|
4499
|
-
* 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.
|
|
4500
7333
|
* @summary Stop project
|
|
4501
7334
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4502
7335
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4508,7 +7341,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
4508
7341
|
return VPSDockerManagerApiFp(this.configuration).stopProjectV1(virtualMachineId, projectName, options).then((request) => request(this.axios, this.basePath));
|
|
4509
7342
|
}
|
|
4510
7343
|
/**
|
|
4511
|
-
* 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.
|
|
4512
7345
|
* @summary Update project
|
|
4513
7346
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
4514
7347
|
* @param {string} projectName Docker Compose project name using alphanumeric characters, dashes, and underscores only
|
|
@@ -4669,7 +7502,7 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration) {
|
|
|
4669
7502
|
};
|
|
4670
7503
|
}),
|
|
4671
7504
|
/**
|
|
4672
|
-
* 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.
|
|
4673
7506
|
* @summary Delete firewall rule
|
|
4674
7507
|
* @param {number} firewallId Firewall ID
|
|
4675
7508
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -4950,7 +7783,7 @@ export const VPSFirewallApiFp = function (configuration) {
|
|
|
4950
7783
|
});
|
|
4951
7784
|
},
|
|
4952
7785
|
/**
|
|
4953
|
-
* 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.
|
|
4954
7787
|
* @summary Delete firewall rule
|
|
4955
7788
|
* @param {number} firewallId Firewall ID
|
|
4956
7789
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -5096,7 +7929,7 @@ export const VPSFirewallApiFactory = function (configuration, basePath, axios) {
|
|
|
5096
7929
|
return localVarFp.deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(axios, basePath));
|
|
5097
7930
|
},
|
|
5098
7931
|
/**
|
|
5099
|
-
* 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.
|
|
5100
7933
|
* @summary Delete firewall rule
|
|
5101
7934
|
* @param {number} firewallId Firewall ID
|
|
5102
7935
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -5216,7 +8049,7 @@ export class VPSFirewallApi extends BaseAPI {
|
|
|
5216
8049
|
return VPSFirewallApiFp(this.configuration).deactivateFirewallV1(firewallId, virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
5217
8050
|
}
|
|
5218
8051
|
/**
|
|
5219
|
-
* 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.
|
|
5220
8053
|
* @summary Delete firewall rule
|
|
5221
8054
|
* @param {number} firewallId Firewall ID
|
|
5222
8055
|
* @param {number} ruleId Firewall Rule ID
|
|
@@ -5293,7 +8126,7 @@ export class VPSFirewallApi extends BaseAPI {
|
|
|
5293
8126
|
export const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
|
|
5294
8127
|
return {
|
|
5295
8128
|
/**
|
|
5296
|
-
* 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.
|
|
5297
8130
|
* @summary Get scan metrics
|
|
5298
8131
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5299
8132
|
* @param {*} [options] Override http request option.
|
|
@@ -5325,7 +8158,7 @@ export const VPSMalwareScannerApiAxiosParamCreator = function (configuration) {
|
|
|
5325
8158
|
};
|
|
5326
8159
|
}),
|
|
5327
8160
|
/**
|
|
5328
|
-
* 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.
|
|
5329
8162
|
* @summary Install Monarx
|
|
5330
8163
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5331
8164
|
* @param {*} [options] Override http request option.
|
|
@@ -5398,7 +8231,7 @@ export const VPSMalwareScannerApiFp = function (configuration) {
|
|
|
5398
8231
|
const localVarAxiosParamCreator = VPSMalwareScannerApiAxiosParamCreator(configuration);
|
|
5399
8232
|
return {
|
|
5400
8233
|
/**
|
|
5401
|
-
* 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.
|
|
5402
8235
|
* @summary Get scan metrics
|
|
5403
8236
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5404
8237
|
* @param {*} [options] Override http request option.
|
|
@@ -5413,7 +8246,7 @@ export const VPSMalwareScannerApiFp = function (configuration) {
|
|
|
5413
8246
|
});
|
|
5414
8247
|
},
|
|
5415
8248
|
/**
|
|
5416
|
-
* 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.
|
|
5417
8250
|
* @summary Install Monarx
|
|
5418
8251
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5419
8252
|
* @param {*} [options] Override http request option.
|
|
@@ -5452,7 +8285,7 @@ export const VPSMalwareScannerApiFactory = function (configuration, basePath, ax
|
|
|
5452
8285
|
const localVarFp = VPSMalwareScannerApiFp(configuration);
|
|
5453
8286
|
return {
|
|
5454
8287
|
/**
|
|
5455
|
-
* 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.
|
|
5456
8289
|
* @summary Get scan metrics
|
|
5457
8290
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5458
8291
|
* @param {*} [options] Override http request option.
|
|
@@ -5462,7 +8295,7 @@ export const VPSMalwareScannerApiFactory = function (configuration, basePath, ax
|
|
|
5462
8295
|
return localVarFp.getScanMetricsV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
5463
8296
|
},
|
|
5464
8297
|
/**
|
|
5465
|
-
* 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.
|
|
5466
8299
|
* @summary Install Monarx
|
|
5467
8300
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5468
8301
|
* @param {*} [options] Override http request option.
|
|
@@ -5491,7 +8324,7 @@ export const VPSMalwareScannerApiFactory = function (configuration, basePath, ax
|
|
|
5491
8324
|
*/
|
|
5492
8325
|
export class VPSMalwareScannerApi extends BaseAPI {
|
|
5493
8326
|
/**
|
|
5494
|
-
* 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.
|
|
5495
8328
|
* @summary Get scan metrics
|
|
5496
8329
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5497
8330
|
* @param {*} [options] Override http request option.
|
|
@@ -5502,7 +8335,7 @@ export class VPSMalwareScannerApi extends BaseAPI {
|
|
|
5502
8335
|
return VPSMalwareScannerApiFp(this.configuration).getScanMetricsV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
5503
8336
|
}
|
|
5504
8337
|
/**
|
|
5505
|
-
* 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.
|
|
5506
8339
|
* @summary Install Monarx
|
|
5507
8340
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
5508
8341
|
* @param {*} [options] Override http request option.
|
|
@@ -7245,7 +10078,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
7245
10078
|
};
|
|
7246
10079
|
}),
|
|
7247
10080
|
/**
|
|
7248
|
-
* 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.
|
|
7249
10082
|
* @summary Recreate virtual machine
|
|
7250
10083
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7251
10084
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|
|
@@ -7681,7 +10514,7 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
7681
10514
|
});
|
|
7682
10515
|
},
|
|
7683
10516
|
/**
|
|
7684
|
-
* 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.
|
|
7685
10518
|
* @summary Recreate virtual machine
|
|
7686
10519
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7687
10520
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|
|
@@ -7898,7 +10731,7 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
7898
10731
|
return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
|
|
7899
10732
|
},
|
|
7900
10733
|
/**
|
|
7901
|
-
* 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.
|
|
7902
10735
|
* @summary Recreate virtual machine
|
|
7903
10736
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7904
10737
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|
|
@@ -8070,7 +10903,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
8070
10903
|
return VPSVirtualMachineApiFp(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8071
10904
|
}
|
|
8072
10905
|
/**
|
|
8073
|
-
* 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.
|
|
8074
10907
|
* @summary Recreate virtual machine
|
|
8075
10908
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
8076
10909
|
* @param {VPSV1VirtualMachineRecreateRequest} vPSV1VirtualMachineRecreateRequest
|