hostinger-api-sdk 0.0.13 → 0.0.17
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/ISSUE_TEMPLATE/bug_report.md +36 -0
- package/CODEOWNERS +1 -1
- package/README.md +2 -2
- package/api.ts +701 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +535 -103
- package/dist/api.js +488 -12
- 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 +535 -103
- package/dist/esm/api.js +481 -9
- 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 +108 -0
- package/docs/ReachContactsApi.md +224 -0
- package/docs/ReachListContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsContactResource.md +34 -0
- package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
- package/docs/ReachV1ContactsStoreRequest.md +28 -0
- package/docs/VPSDockerManagerApi.md +2 -2
- package/docs/VPSV1BackupBackupResource.md +4 -0
- package/docs/VPSV1DockerManagerContainerResource.md +2 -0
- package/docs/VPSV1DockerManagerContentResource.md +2 -0
- package/docs/VPSV1DockerManagerProjectResource.md +2 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +2 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +2 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -1480,6 +1480,151 @@ export interface InlineObject2Errors {
|
|
|
1480
1480
|
*/
|
|
1481
1481
|
'field_2': Array<any>;
|
|
1482
1482
|
}
|
|
1483
|
+
/**
|
|
1484
|
+
*
|
|
1485
|
+
* @export
|
|
1486
|
+
* @interface ReachListContactsV1200Response
|
|
1487
|
+
*/
|
|
1488
|
+
export interface ReachListContactsV1200Response {
|
|
1489
|
+
/**
|
|
1490
|
+
* Array of [`Reach.V1.Contacts.ContactResource`](#model/reachv1contactscontactresource)
|
|
1491
|
+
* @type {Array<ReachV1ContactsContactResource>}
|
|
1492
|
+
* @memberof ReachListContactsV1200Response
|
|
1493
|
+
*/
|
|
1494
|
+
'data': Array<ReachV1ContactsContactResource>;
|
|
1495
|
+
/**
|
|
1496
|
+
*
|
|
1497
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1498
|
+
* @memberof ReachListContactsV1200Response
|
|
1499
|
+
*/
|
|
1500
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1501
|
+
}
|
|
1502
|
+
/**
|
|
1503
|
+
*
|
|
1504
|
+
* @export
|
|
1505
|
+
* @interface ReachV1ContactsContactResource
|
|
1506
|
+
*/
|
|
1507
|
+
export interface ReachV1ContactsContactResource {
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @type {string}
|
|
1511
|
+
* @memberof ReachV1ContactsContactResource
|
|
1512
|
+
*/
|
|
1513
|
+
'uuid': string;
|
|
1514
|
+
/**
|
|
1515
|
+
*
|
|
1516
|
+
* @type {string}
|
|
1517
|
+
* @memberof ReachV1ContactsContactResource
|
|
1518
|
+
*/
|
|
1519
|
+
'name': string;
|
|
1520
|
+
/**
|
|
1521
|
+
*
|
|
1522
|
+
* @type {string}
|
|
1523
|
+
* @memberof ReachV1ContactsContactResource
|
|
1524
|
+
*/
|
|
1525
|
+
'surname': string;
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @type {string}
|
|
1529
|
+
* @memberof ReachV1ContactsContactResource
|
|
1530
|
+
*/
|
|
1531
|
+
'email': string;
|
|
1532
|
+
/**
|
|
1533
|
+
*
|
|
1534
|
+
* @type {string}
|
|
1535
|
+
* @memberof ReachV1ContactsContactResource
|
|
1536
|
+
*/
|
|
1537
|
+
'subscription_status': ReachV1ContactsContactResourceSubscriptionStatusEnum;
|
|
1538
|
+
/**
|
|
1539
|
+
*
|
|
1540
|
+
* @type {string}
|
|
1541
|
+
* @memberof ReachV1ContactsContactResource
|
|
1542
|
+
*/
|
|
1543
|
+
'subscribed_at': string;
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @type {string}
|
|
1547
|
+
* @memberof ReachV1ContactsContactResource
|
|
1548
|
+
*/
|
|
1549
|
+
'source': ReachV1ContactsContactResourceSourceEnum | null;
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @type {string}
|
|
1553
|
+
* @memberof ReachV1ContactsContactResource
|
|
1554
|
+
*/
|
|
1555
|
+
'note': string | null;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
1559
|
+
Subscribed: 'subscribed',
|
|
1560
|
+
Unsubscribed: 'unsubscribed'
|
|
1561
|
+
} as const;
|
|
1562
|
+
|
|
1563
|
+
export type ReachV1ContactsContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsContactResourceSubscriptionStatusEnum];
|
|
1564
|
+
export const ReachV1ContactsContactResourceSourceEnum = {
|
|
1565
|
+
Sync: 'sync',
|
|
1566
|
+
Import: 'import',
|
|
1567
|
+
Manual: 'manual'
|
|
1568
|
+
} as const;
|
|
1569
|
+
|
|
1570
|
+
export type ReachV1ContactsContactResourceSourceEnum = typeof ReachV1ContactsContactResourceSourceEnum[keyof typeof ReachV1ContactsContactResourceSourceEnum];
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
*
|
|
1574
|
+
* @export
|
|
1575
|
+
* @interface ReachV1ContactsGroupsContactGroupResource
|
|
1576
|
+
*/
|
|
1577
|
+
export interface ReachV1ContactsGroupsContactGroupResource {
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @type {string}
|
|
1581
|
+
* @memberof ReachV1ContactsGroupsContactGroupResource
|
|
1582
|
+
*/
|
|
1583
|
+
'uuid': string;
|
|
1584
|
+
/**
|
|
1585
|
+
*
|
|
1586
|
+
* @type {string}
|
|
1587
|
+
* @memberof ReachV1ContactsGroupsContactGroupResource
|
|
1588
|
+
*/
|
|
1589
|
+
'title': string;
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
*
|
|
1593
|
+
* @export
|
|
1594
|
+
* @interface ReachV1ContactsStoreRequest
|
|
1595
|
+
*/
|
|
1596
|
+
export interface ReachV1ContactsStoreRequest {
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @type {string}
|
|
1600
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
1601
|
+
*/
|
|
1602
|
+
'email': string;
|
|
1603
|
+
/**
|
|
1604
|
+
*
|
|
1605
|
+
* @type {string}
|
|
1606
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
1607
|
+
*/
|
|
1608
|
+
'name': string | null;
|
|
1609
|
+
/**
|
|
1610
|
+
*
|
|
1611
|
+
* @type {string}
|
|
1612
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
1613
|
+
*/
|
|
1614
|
+
'surname': string | null;
|
|
1615
|
+
/**
|
|
1616
|
+
*
|
|
1617
|
+
* @type {Array<string>}
|
|
1618
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
1619
|
+
*/
|
|
1620
|
+
'group_uuids': Array<string> | null;
|
|
1621
|
+
/**
|
|
1622
|
+
*
|
|
1623
|
+
* @type {string}
|
|
1624
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
1625
|
+
*/
|
|
1626
|
+
'note': string | null;
|
|
1627
|
+
}
|
|
1483
1628
|
/**
|
|
1484
1629
|
*
|
|
1485
1630
|
* @export
|
|
@@ -1635,6 +1780,18 @@ export interface VPSV1BackupBackupResource {
|
|
|
1635
1780
|
* @memberof VPSV1BackupBackupResource
|
|
1636
1781
|
*/
|
|
1637
1782
|
'id': number;
|
|
1783
|
+
/**
|
|
1784
|
+
* Backup size in kilobytes
|
|
1785
|
+
* @type {number}
|
|
1786
|
+
* @memberof VPSV1BackupBackupResource
|
|
1787
|
+
*/
|
|
1788
|
+
'size': number;
|
|
1789
|
+
/**
|
|
1790
|
+
* Estimated backup restore time in seconds
|
|
1791
|
+
* @type {number}
|
|
1792
|
+
* @memberof VPSV1BackupBackupResource
|
|
1793
|
+
*/
|
|
1794
|
+
'restore_time': number;
|
|
1638
1795
|
/**
|
|
1639
1796
|
* Location of the backup
|
|
1640
1797
|
* @type {string}
|
|
@@ -1804,6 +1961,12 @@ export interface VPSV1DockerManagerContainerResource {
|
|
|
1804
1961
|
* @memberof VPSV1DockerManagerContainerResource
|
|
1805
1962
|
*/
|
|
1806
1963
|
'state': VPSV1DockerManagerContainerResourceStateEnum;
|
|
1964
|
+
/**
|
|
1965
|
+
* Container health status
|
|
1966
|
+
* @type {string}
|
|
1967
|
+
* @memberof VPSV1DockerManagerContainerResource
|
|
1968
|
+
*/
|
|
1969
|
+
'health': VPSV1DockerManagerContainerResourceHealthEnum;
|
|
1807
1970
|
/**
|
|
1808
1971
|
* Array of [`VPS.V1.DockerManager.ContainerPortResource`](#model/vpsv1dockermanagercontainerportresource)
|
|
1809
1972
|
* @type {Array<VPSV1DockerManagerContainerPortResource>}
|
|
@@ -1829,6 +1992,14 @@ export const VPSV1DockerManagerContainerResourceStateEnum = {
|
|
|
1829
1992
|
} as const;
|
|
1830
1993
|
|
|
1831
1994
|
export type VPSV1DockerManagerContainerResourceStateEnum = typeof VPSV1DockerManagerContainerResourceStateEnum[keyof typeof VPSV1DockerManagerContainerResourceStateEnum];
|
|
1995
|
+
export const VPSV1DockerManagerContainerResourceHealthEnum = {
|
|
1996
|
+
Starting: 'starting',
|
|
1997
|
+
Healthy: 'healthy',
|
|
1998
|
+
Unhealthy: 'unhealthy',
|
|
1999
|
+
Empty: ''
|
|
2000
|
+
} as const;
|
|
2001
|
+
|
|
2002
|
+
export type VPSV1DockerManagerContainerResourceHealthEnum = typeof VPSV1DockerManagerContainerResourceHealthEnum[keyof typeof VPSV1DockerManagerContainerResourceHealthEnum];
|
|
1832
2003
|
|
|
1833
2004
|
/**
|
|
1834
2005
|
*
|
|
@@ -1885,6 +2056,12 @@ export interface VPSV1DockerManagerContentResource {
|
|
|
1885
2056
|
* @memberof VPSV1DockerManagerContentResource
|
|
1886
2057
|
*/
|
|
1887
2058
|
'content': string;
|
|
2059
|
+
/**
|
|
2060
|
+
* Project environment variables
|
|
2061
|
+
* @type {string}
|
|
2062
|
+
* @memberof VPSV1DockerManagerContentResource
|
|
2063
|
+
*/
|
|
2064
|
+
'environment': string | null;
|
|
1888
2065
|
}
|
|
1889
2066
|
/**
|
|
1890
2067
|
*
|
|
@@ -1954,6 +2131,12 @@ export interface VPSV1DockerManagerProjectResource {
|
|
|
1954
2131
|
* @memberof VPSV1DockerManagerProjectResource
|
|
1955
2132
|
*/
|
|
1956
2133
|
'path': string;
|
|
2134
|
+
/**
|
|
2135
|
+
* Array of [`VPS.V1.DockerManager.ContainerResource`](#model/vpsv1dockermanagercontainerresource)
|
|
2136
|
+
* @type {Array<VPSV1DockerManagerContainerResource>}
|
|
2137
|
+
* @memberof VPSV1DockerManagerProjectResource
|
|
2138
|
+
*/
|
|
2139
|
+
'containers': Array<VPSV1DockerManagerContainerResource>;
|
|
1957
2140
|
}
|
|
1958
2141
|
|
|
1959
2142
|
export const VPSV1DockerManagerProjectResourceStateEnum = {
|
|
@@ -2401,6 +2584,12 @@ export interface VPSV1SnapshotSnapshotResource {
|
|
|
2401
2584
|
* @memberof VPSV1SnapshotSnapshotResource
|
|
2402
2585
|
*/
|
|
2403
2586
|
'id': number;
|
|
2587
|
+
/**
|
|
2588
|
+
* Estimated snapshot restore time in seconds
|
|
2589
|
+
* @type {number}
|
|
2590
|
+
* @memberof VPSV1SnapshotSnapshotResource
|
|
2591
|
+
*/
|
|
2592
|
+
'restore_time': number;
|
|
2404
2593
|
/**
|
|
2405
2594
|
*
|
|
2406
2595
|
* @type {string}
|
|
@@ -2463,6 +2652,12 @@ export interface VPSV1VirtualMachineDockerManagerUpRequest {
|
|
|
2463
2652
|
* @memberof VPSV1VirtualMachineDockerManagerUpRequest
|
|
2464
2653
|
*/
|
|
2465
2654
|
'content': string;
|
|
2655
|
+
/**
|
|
2656
|
+
* Project environment variables
|
|
2657
|
+
* @type {string}
|
|
2658
|
+
* @memberof VPSV1VirtualMachineDockerManagerUpRequest
|
|
2659
|
+
*/
|
|
2660
|
+
'environment': string | null;
|
|
2466
2661
|
}
|
|
2467
2662
|
/**
|
|
2468
2663
|
*
|
|
@@ -2745,6 +2940,12 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
|
|
|
2745
2940
|
* @memberof VPSV1VirtualMachineVirtualMachineResource
|
|
2746
2941
|
*/
|
|
2747
2942
|
'subscription_id': string | null;
|
|
2943
|
+
/**
|
|
2944
|
+
* Data center ID
|
|
2945
|
+
* @type {number}
|
|
2946
|
+
* @memberof VPSV1VirtualMachineVirtualMachineResource
|
|
2947
|
+
*/
|
|
2948
|
+
'data_center_id': number | null;
|
|
2748
2949
|
/**
|
|
2749
2950
|
* VPS plan name
|
|
2750
2951
|
* @type {string}
|
|
@@ -3402,6 +3603,82 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration?
|
|
|
3402
3603
|
options: localVarRequestOptions,
|
|
3403
3604
|
};
|
|
3404
3605
|
},
|
|
3606
|
+
/**
|
|
3607
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3608
|
+
* @summary Disable auto-renewal
|
|
3609
|
+
* @param {string} subscriptionId Subscription ID
|
|
3610
|
+
* @param {*} [options] Override http request option.
|
|
3611
|
+
* @throws {RequiredError}
|
|
3612
|
+
*/
|
|
3613
|
+
disableAutoRenewalV1: async (subscriptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3614
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
3615
|
+
assertParamExists('disableAutoRenewalV1', 'subscriptionId', subscriptionId)
|
|
3616
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
|
|
3617
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
3618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3619
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3620
|
+
let baseOptions;
|
|
3621
|
+
if (configuration) {
|
|
3622
|
+
baseOptions = configuration.baseOptions;
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3626
|
+
const localVarHeaderParameter = {} as any;
|
|
3627
|
+
const localVarQueryParameter = {} as any;
|
|
3628
|
+
|
|
3629
|
+
// authentication apiToken required
|
|
3630
|
+
// http bearer authentication required
|
|
3631
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3632
|
+
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3637
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3638
|
+
|
|
3639
|
+
return {
|
|
3640
|
+
url: toPathString(localVarUrlObj),
|
|
3641
|
+
options: localVarRequestOptions,
|
|
3642
|
+
};
|
|
3643
|
+
},
|
|
3644
|
+
/**
|
|
3645
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3646
|
+
* @summary Enable auto-renewal
|
|
3647
|
+
* @param {string} subscriptionId Subscription ID
|
|
3648
|
+
* @param {*} [options] Override http request option.
|
|
3649
|
+
* @throws {RequiredError}
|
|
3650
|
+
*/
|
|
3651
|
+
enableAutoRenewalV1: async (subscriptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3652
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
3653
|
+
assertParamExists('enableAutoRenewalV1', 'subscriptionId', subscriptionId)
|
|
3654
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
|
|
3655
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
3656
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3658
|
+
let baseOptions;
|
|
3659
|
+
if (configuration) {
|
|
3660
|
+
baseOptions = configuration.baseOptions;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3664
|
+
const localVarHeaderParameter = {} as any;
|
|
3665
|
+
const localVarQueryParameter = {} as any;
|
|
3666
|
+
|
|
3667
|
+
// authentication apiToken required
|
|
3668
|
+
// http bearer authentication required
|
|
3669
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3670
|
+
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3675
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3676
|
+
|
|
3677
|
+
return {
|
|
3678
|
+
url: toPathString(localVarUrlObj),
|
|
3679
|
+
options: localVarRequestOptions,
|
|
3680
|
+
};
|
|
3681
|
+
},
|
|
3405
3682
|
/**
|
|
3406
3683
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3407
3684
|
* @summary Get subscription list
|
|
@@ -3459,6 +3736,30 @@ export const BillingSubscriptionsApiFp = function(configuration?: Configuration)
|
|
|
3459
3736
|
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.cancelSubscriptionV1']?.[0]?.url;
|
|
3460
3737
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3461
3738
|
},
|
|
3739
|
+
/**
|
|
3740
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3741
|
+
* @summary Disable auto-renewal
|
|
3742
|
+
* @param {string} subscriptionId Subscription ID
|
|
3743
|
+
* @param {*} [options] Override http request option.
|
|
3744
|
+
* @throws {RequiredError}
|
|
3745
|
+
*/
|
|
3746
|
+
async disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>> {
|
|
3747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
|
|
3748
|
+
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']?.[0]?.url;
|
|
3749
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3750
|
+
},
|
|
3751
|
+
/**
|
|
3752
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3753
|
+
* @summary Enable auto-renewal
|
|
3754
|
+
* @param {string} subscriptionId Subscription ID
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
async enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>> {
|
|
3759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
|
|
3760
|
+
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']?.[0]?.url;
|
|
3761
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3762
|
+
},
|
|
3462
3763
|
/**
|
|
3463
3764
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3464
3765
|
* @summary Get subscription list
|
|
@@ -3491,6 +3792,26 @@ export const BillingSubscriptionsApiFactory = function (configuration?: Configur
|
|
|
3491
3792
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
3492
3793
|
return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
|
|
3493
3794
|
},
|
|
3795
|
+
/**
|
|
3796
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3797
|
+
* @summary Disable auto-renewal
|
|
3798
|
+
* @param {string} subscriptionId Subscription ID
|
|
3799
|
+
* @param {*} [options] Override http request option.
|
|
3800
|
+
* @throws {RequiredError}
|
|
3801
|
+
*/
|
|
3802
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource> {
|
|
3803
|
+
return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
3804
|
+
},
|
|
3805
|
+
/**
|
|
3806
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3807
|
+
* @summary Enable auto-renewal
|
|
3808
|
+
* @param {string} subscriptionId Subscription ID
|
|
3809
|
+
* @param {*} [options] Override http request option.
|
|
3810
|
+
* @throws {RequiredError}
|
|
3811
|
+
*/
|
|
3812
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource> {
|
|
3813
|
+
return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
3814
|
+
},
|
|
3494
3815
|
/**
|
|
3495
3816
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3496
3817
|
* @summary Get subscription list
|
|
@@ -3523,6 +3844,30 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
3523
3844
|
return BillingSubscriptionsApiFp(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3524
3845
|
}
|
|
3525
3846
|
|
|
3847
|
+
/**
|
|
3848
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3849
|
+
* @summary Disable auto-renewal
|
|
3850
|
+
* @param {string} subscriptionId Subscription ID
|
|
3851
|
+
* @param {*} [options] Override http request option.
|
|
3852
|
+
* @throws {RequiredError}
|
|
3853
|
+
* @memberof BillingSubscriptionsApi
|
|
3854
|
+
*/
|
|
3855
|
+
public disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig) {
|
|
3856
|
+
return BillingSubscriptionsApiFp(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
/**
|
|
3860
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3861
|
+
* @summary Enable auto-renewal
|
|
3862
|
+
* @param {string} subscriptionId Subscription ID
|
|
3863
|
+
* @param {*} [options] Override http request option.
|
|
3864
|
+
* @throws {RequiredError}
|
|
3865
|
+
* @memberof BillingSubscriptionsApi
|
|
3866
|
+
*/
|
|
3867
|
+
public enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig) {
|
|
3868
|
+
return BillingSubscriptionsApiFp(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3526
3871
|
/**
|
|
3527
3872
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3528
3873
|
* @summary Get subscription list
|
|
@@ -5632,6 +5977,353 @@ export class DomainsWHOISApi extends BaseAPI {
|
|
|
5632
5977
|
|
|
5633
5978
|
|
|
5634
5979
|
|
|
5980
|
+
/**
|
|
5981
|
+
* ReachContactsApi - axios parameter creator
|
|
5982
|
+
* @export
|
|
5983
|
+
*/
|
|
5984
|
+
export const ReachContactsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5985
|
+
return {
|
|
5986
|
+
/**
|
|
5987
|
+
* 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. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
|
|
5988
|
+
* @summary Create a new contact
|
|
5989
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
5990
|
+
* @param {*} [options] Override http request option.
|
|
5991
|
+
* @throws {RequiredError}
|
|
5992
|
+
*/
|
|
5993
|
+
createANewContactV1: async (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5994
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
5995
|
+
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
|
|
5996
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
5997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5998
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5999
|
+
let baseOptions;
|
|
6000
|
+
if (configuration) {
|
|
6001
|
+
baseOptions = configuration.baseOptions;
|
|
6002
|
+
}
|
|
6003
|
+
|
|
6004
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6005
|
+
const localVarHeaderParameter = {} as any;
|
|
6006
|
+
const localVarQueryParameter = {} as any;
|
|
6007
|
+
|
|
6008
|
+
// authentication apiToken required
|
|
6009
|
+
// http bearer authentication required
|
|
6010
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6011
|
+
|
|
6012
|
+
|
|
6013
|
+
|
|
6014
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6015
|
+
|
|
6016
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6017
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6018
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6019
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
|
|
6020
|
+
|
|
6021
|
+
return {
|
|
6022
|
+
url: toPathString(localVarUrlObj),
|
|
6023
|
+
options: localVarRequestOptions,
|
|
6024
|
+
};
|
|
6025
|
+
},
|
|
6026
|
+
/**
|
|
6027
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
6028
|
+
* @summary Delete a contact
|
|
6029
|
+
* @param {string} uuid UUID of the contact to delete
|
|
6030
|
+
* @param {*} [options] Override http request option.
|
|
6031
|
+
* @throws {RequiredError}
|
|
6032
|
+
*/
|
|
6033
|
+
deleteAContactV1: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6034
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
6035
|
+
assertParamExists('deleteAContactV1', 'uuid', uuid)
|
|
6036
|
+
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
6037
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
6038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6039
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6040
|
+
let baseOptions;
|
|
6041
|
+
if (configuration) {
|
|
6042
|
+
baseOptions = configuration.baseOptions;
|
|
6043
|
+
}
|
|
6044
|
+
|
|
6045
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
6046
|
+
const localVarHeaderParameter = {} as any;
|
|
6047
|
+
const localVarQueryParameter = {} as any;
|
|
6048
|
+
|
|
6049
|
+
// authentication apiToken required
|
|
6050
|
+
// http bearer authentication required
|
|
6051
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6052
|
+
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6056
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6057
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6058
|
+
|
|
6059
|
+
return {
|
|
6060
|
+
url: toPathString(localVarUrlObj),
|
|
6061
|
+
options: localVarRequestOptions,
|
|
6062
|
+
};
|
|
6063
|
+
},
|
|
6064
|
+
/**
|
|
6065
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
6066
|
+
* @summary List contact groups
|
|
6067
|
+
* @param {*} [options] Override http request option.
|
|
6068
|
+
* @throws {RequiredError}
|
|
6069
|
+
*/
|
|
6070
|
+
listContactGroupsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6071
|
+
const localVarPath = `/api/reach/v1/contacts/groups`;
|
|
6072
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6073
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6074
|
+
let baseOptions;
|
|
6075
|
+
if (configuration) {
|
|
6076
|
+
baseOptions = configuration.baseOptions;
|
|
6077
|
+
}
|
|
6078
|
+
|
|
6079
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6080
|
+
const localVarHeaderParameter = {} as any;
|
|
6081
|
+
const localVarQueryParameter = {} as any;
|
|
6082
|
+
|
|
6083
|
+
// authentication apiToken required
|
|
6084
|
+
// http bearer authentication required
|
|
6085
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6086
|
+
|
|
6087
|
+
|
|
6088
|
+
|
|
6089
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6090
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6091
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6092
|
+
|
|
6093
|
+
return {
|
|
6094
|
+
url: toPathString(localVarUrlObj),
|
|
6095
|
+
options: localVarRequestOptions,
|
|
6096
|
+
};
|
|
6097
|
+
},
|
|
6098
|
+
/**
|
|
6099
|
+
* 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.
|
|
6100
|
+
* @summary List contacts
|
|
6101
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
6102
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
6103
|
+
* @param {number} [page] Page number
|
|
6104
|
+
* @param {*} [options] Override http request option.
|
|
6105
|
+
* @throws {RequiredError}
|
|
6106
|
+
*/
|
|
6107
|
+
listContactsV1: async (groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6108
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
6109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6111
|
+
let baseOptions;
|
|
6112
|
+
if (configuration) {
|
|
6113
|
+
baseOptions = configuration.baseOptions;
|
|
6114
|
+
}
|
|
6115
|
+
|
|
6116
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6117
|
+
const localVarHeaderParameter = {} as any;
|
|
6118
|
+
const localVarQueryParameter = {} as any;
|
|
6119
|
+
|
|
6120
|
+
// authentication apiToken required
|
|
6121
|
+
// http bearer authentication required
|
|
6122
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6123
|
+
|
|
6124
|
+
if (groupUuid !== undefined) {
|
|
6125
|
+
localVarQueryParameter['group_uuid'] = groupUuid;
|
|
6126
|
+
}
|
|
6127
|
+
|
|
6128
|
+
if (subscriptionStatus !== undefined) {
|
|
6129
|
+
localVarQueryParameter['subscription_status'] = subscriptionStatus;
|
|
6130
|
+
}
|
|
6131
|
+
|
|
6132
|
+
if (page !== undefined) {
|
|
6133
|
+
localVarQueryParameter['page'] = page;
|
|
6134
|
+
}
|
|
6135
|
+
|
|
6136
|
+
|
|
6137
|
+
|
|
6138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6140
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6141
|
+
|
|
6142
|
+
return {
|
|
6143
|
+
url: toPathString(localVarUrlObj),
|
|
6144
|
+
options: localVarRequestOptions,
|
|
6145
|
+
};
|
|
6146
|
+
},
|
|
6147
|
+
}
|
|
6148
|
+
};
|
|
6149
|
+
|
|
6150
|
+
/**
|
|
6151
|
+
* ReachContactsApi - functional programming interface
|
|
6152
|
+
* @export
|
|
6153
|
+
*/
|
|
6154
|
+
export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
6155
|
+
const localVarAxiosParamCreator = ReachContactsApiAxiosParamCreator(configuration)
|
|
6156
|
+
return {
|
|
6157
|
+
/**
|
|
6158
|
+
* 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. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
|
|
6159
|
+
* @summary Create a new contact
|
|
6160
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6161
|
+
* @param {*} [options] Override http request option.
|
|
6162
|
+
* @throws {RequiredError}
|
|
6163
|
+
*/
|
|
6164
|
+
async createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsContactResource>> {
|
|
6165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactV1(reachV1ContactsStoreRequest, options);
|
|
6166
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createANewContactV1']?.[0]?.url;
|
|
6167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6168
|
+
},
|
|
6169
|
+
/**
|
|
6170
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
6171
|
+
* @summary Delete a contact
|
|
6172
|
+
* @param {string} uuid UUID of the contact to delete
|
|
6173
|
+
* @param {*} [options] Override http request option.
|
|
6174
|
+
* @throws {RequiredError}
|
|
6175
|
+
*/
|
|
6176
|
+
async deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
6177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAContactV1(uuid, options);
|
|
6178
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAContactV1']?.[0]?.url;
|
|
6179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6180
|
+
},
|
|
6181
|
+
/**
|
|
6182
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
6183
|
+
* @summary List contact groups
|
|
6184
|
+
* @param {*} [options] Override http request option.
|
|
6185
|
+
* @throws {RequiredError}
|
|
6186
|
+
*/
|
|
6187
|
+
async listContactGroupsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>>> {
|
|
6188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listContactGroupsV1(options);
|
|
6189
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactGroupsV1']?.[0]?.url;
|
|
6190
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6191
|
+
},
|
|
6192
|
+
/**
|
|
6193
|
+
* 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.
|
|
6194
|
+
* @summary List contacts
|
|
6195
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
6196
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
6197
|
+
* @param {number} [page] Page number
|
|
6198
|
+
* @param {*} [options] Override http request option.
|
|
6199
|
+
* @throws {RequiredError}
|
|
6200
|
+
*/
|
|
6201
|
+
async listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListContactsV1200Response>> {
|
|
6202
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listContactsV1(groupUuid, subscriptionStatus, page, options);
|
|
6203
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactsV1']?.[0]?.url;
|
|
6204
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6205
|
+
},
|
|
6206
|
+
}
|
|
6207
|
+
};
|
|
6208
|
+
|
|
6209
|
+
/**
|
|
6210
|
+
* ReachContactsApi - factory interface
|
|
6211
|
+
* @export
|
|
6212
|
+
*/
|
|
6213
|
+
export const ReachContactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6214
|
+
const localVarFp = ReachContactsApiFp(configuration)
|
|
6215
|
+
return {
|
|
6216
|
+
/**
|
|
6217
|
+
* 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. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
|
|
6218
|
+
* @summary Create a new contact
|
|
6219
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6220
|
+
* @param {*} [options] Override http request option.
|
|
6221
|
+
* @throws {RequiredError}
|
|
6222
|
+
*/
|
|
6223
|
+
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsContactResource> {
|
|
6224
|
+
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
6225
|
+
},
|
|
6226
|
+
/**
|
|
6227
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
6228
|
+
* @summary Delete a contact
|
|
6229
|
+
* @param {string} uuid UUID of the contact to delete
|
|
6230
|
+
* @param {*} [options] Override http request option.
|
|
6231
|
+
* @throws {RequiredError}
|
|
6232
|
+
*/
|
|
6233
|
+
deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
6234
|
+
return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
|
|
6235
|
+
},
|
|
6236
|
+
/**
|
|
6237
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
6238
|
+
* @summary List contact groups
|
|
6239
|
+
* @param {*} [options] Override http request option.
|
|
6240
|
+
* @throws {RequiredError}
|
|
6241
|
+
*/
|
|
6242
|
+
listContactGroupsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsGroupsContactGroupResource>> {
|
|
6243
|
+
return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
|
|
6244
|
+
},
|
|
6245
|
+
/**
|
|
6246
|
+
* 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.
|
|
6247
|
+
* @summary List contacts
|
|
6248
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
6249
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
6250
|
+
* @param {number} [page] Page number
|
|
6251
|
+
* @param {*} [options] Override http request option.
|
|
6252
|
+
* @throws {RequiredError}
|
|
6253
|
+
*/
|
|
6254
|
+
listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListContactsV1200Response> {
|
|
6255
|
+
return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
|
|
6256
|
+
},
|
|
6257
|
+
};
|
|
6258
|
+
};
|
|
6259
|
+
|
|
6260
|
+
/**
|
|
6261
|
+
* ReachContactsApi - object-oriented interface
|
|
6262
|
+
* @export
|
|
6263
|
+
* @class ReachContactsApi
|
|
6264
|
+
* @extends {BaseAPI}
|
|
6265
|
+
*/
|
|
6266
|
+
export class ReachContactsApi extends BaseAPI {
|
|
6267
|
+
/**
|
|
6268
|
+
* 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. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
|
|
6269
|
+
* @summary Create a new contact
|
|
6270
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
6271
|
+
* @param {*} [options] Override http request option.
|
|
6272
|
+
* @throws {RequiredError}
|
|
6273
|
+
* @memberof ReachContactsApi
|
|
6274
|
+
*/
|
|
6275
|
+
public createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) {
|
|
6276
|
+
return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6277
|
+
}
|
|
6278
|
+
|
|
6279
|
+
/**
|
|
6280
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
6281
|
+
* @summary Delete a contact
|
|
6282
|
+
* @param {string} uuid UUID of the contact to delete
|
|
6283
|
+
* @param {*} [options] Override http request option.
|
|
6284
|
+
* @throws {RequiredError}
|
|
6285
|
+
* @memberof ReachContactsApi
|
|
6286
|
+
*/
|
|
6287
|
+
public deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig) {
|
|
6288
|
+
return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
6289
|
+
}
|
|
6290
|
+
|
|
6291
|
+
/**
|
|
6292
|
+
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
6293
|
+
* @summary List contact groups
|
|
6294
|
+
* @param {*} [options] Override http request option.
|
|
6295
|
+
* @throws {RequiredError}
|
|
6296
|
+
* @memberof ReachContactsApi
|
|
6297
|
+
*/
|
|
6298
|
+
public listContactGroupsV1(options?: RawAxiosRequestConfig) {
|
|
6299
|
+
return ReachContactsApiFp(this.configuration).listContactGroupsV1(options).then((request) => request(this.axios, this.basePath));
|
|
6300
|
+
}
|
|
6301
|
+
|
|
6302
|
+
/**
|
|
6303
|
+
* 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.
|
|
6304
|
+
* @summary List contacts
|
|
6305
|
+
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
6306
|
+
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
6307
|
+
* @param {number} [page] Page number
|
|
6308
|
+
* @param {*} [options] Override http request option.
|
|
6309
|
+
* @throws {RequiredError}
|
|
6310
|
+
* @memberof ReachContactsApi
|
|
6311
|
+
*/
|
|
6312
|
+
public listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig) {
|
|
6313
|
+
return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
|
|
6314
|
+
}
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
/**
|
|
6318
|
+
* @export
|
|
6319
|
+
*/
|
|
6320
|
+
export const ListContactsV1SubscriptionStatusEnum = {
|
|
6321
|
+
Subscribed: 'subscribed',
|
|
6322
|
+
Unsubscribed: 'unsubscribed'
|
|
6323
|
+
} as const;
|
|
6324
|
+
export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1SubscriptionStatusEnum[keyof typeof ListContactsV1SubscriptionStatusEnum];
|
|
6325
|
+
|
|
6326
|
+
|
|
5635
6327
|
/**
|
|
5636
6328
|
* VPSActionsApi - axios parameter creator
|
|
5637
6329
|
* @export
|
|
@@ -6139,7 +6831,7 @@ export class VPSDataCentersApi extends BaseAPI {
|
|
|
6139
6831
|
export const VPSDockerManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6140
6832
|
return {
|
|
6141
6833
|
/**
|
|
6142
|
-
* 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 already exists,
|
|
6834
|
+
* 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.
|
|
6143
6835
|
* @summary Create new project
|
|
6144
6836
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6145
6837
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -6309,7 +7001,7 @@ export const VPSDockerManagerApiAxiosParamCreator = function (configuration?: Co
|
|
|
6309
7001
|
};
|
|
6310
7002
|
},
|
|
6311
7003
|
/**
|
|
6312
|
-
* 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, and
|
|
7004
|
+
* 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.
|
|
6313
7005
|
* @summary Get project list
|
|
6314
7006
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6315
7007
|
* @param {*} [options] Override http request option.
|
|
@@ -6567,7 +7259,7 @@ export const VPSDockerManagerApiFp = function(configuration?: Configuration) {
|
|
|
6567
7259
|
const localVarAxiosParamCreator = VPSDockerManagerApiAxiosParamCreator(configuration)
|
|
6568
7260
|
return {
|
|
6569
7261
|
/**
|
|
6570
|
-
* 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 already exists,
|
|
7262
|
+
* 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.
|
|
6571
7263
|
* @summary Create new project
|
|
6572
7264
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6573
7265
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -6619,7 +7311,7 @@ export const VPSDockerManagerApiFp = function(configuration?: Configuration) {
|
|
|
6619
7311
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6620
7312
|
},
|
|
6621
7313
|
/**
|
|
6622
|
-
* 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, and
|
|
7314
|
+
* 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.
|
|
6623
7315
|
* @summary Get project list
|
|
6624
7316
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6625
7317
|
* @param {*} [options] Override http request option.
|
|
@@ -6706,7 +7398,7 @@ export const VPSDockerManagerApiFactory = function (configuration?: Configuratio
|
|
|
6706
7398
|
const localVarFp = VPSDockerManagerApiFp(configuration)
|
|
6707
7399
|
return {
|
|
6708
7400
|
/**
|
|
6709
|
-
* 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 already exists,
|
|
7401
|
+
* 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.
|
|
6710
7402
|
* @summary Create new project
|
|
6711
7403
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6712
7404
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -6750,7 +7442,7 @@ export const VPSDockerManagerApiFactory = function (configuration?: Configuratio
|
|
|
6750
7442
|
return localVarFp.getProjectContentsV1(virtualMachineId, projectName, options).then((request) => request(axios, basePath));
|
|
6751
7443
|
},
|
|
6752
7444
|
/**
|
|
6753
|
-
* 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, and
|
|
7445
|
+
* 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.
|
|
6754
7446
|
* @summary Get project list
|
|
6755
7447
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6756
7448
|
* @param {*} [options] Override http request option.
|
|
@@ -6825,7 +7517,7 @@ export const VPSDockerManagerApiFactory = function (configuration?: Configuratio
|
|
|
6825
7517
|
*/
|
|
6826
7518
|
export class VPSDockerManagerApi extends BaseAPI {
|
|
6827
7519
|
/**
|
|
6828
|
-
* 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 already exists,
|
|
7520
|
+
* 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.
|
|
6829
7521
|
* @summary Create new project
|
|
6830
7522
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6831
7523
|
* @param {VPSV1VirtualMachineDockerManagerUpRequest} vPSV1VirtualMachineDockerManagerUpRequest
|
|
@@ -6877,7 +7569,7 @@ export class VPSDockerManagerApi extends BaseAPI {
|
|
|
6877
7569
|
}
|
|
6878
7570
|
|
|
6879
7571
|
/**
|
|
6880
|
-
* 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, and
|
|
7572
|
+
* 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.
|
|
6881
7573
|
* @summary Get project list
|
|
6882
7574
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6883
7575
|
* @param {*} [options] Override http request option.
|