hostinger-api-sdk 1.28.0 → 1.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +788 -105
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +467 -61
- package/dist/api.js +563 -29
- 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 +467 -61
- package/dist/esm/api.js +555 -21
- 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/AgencyHostingWebsitesApi.md +4 -4
- package/docs/ReachListProfileSegmentsV1200Response.md +22 -0
- package/docs/ReachSegmentsApi.md +359 -4
- package/docs/ReachV1ContactsSegmentsProfileStoreRequest.md +25 -0
- package/docs/ReachV1ContactsSegmentsProfileStoreRequestConditionsInner.md +24 -0
- package/docs/ReachV1ContactsSegmentsProfileUpdateRequest.md +25 -0
- package/docs/ReachV1ContactsSegmentsSegmentContactsCountResource.md +20 -0
- package/docs/ReachV1ContactsSegmentsSegmentListItemResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +0 -28
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.30.1
|
|
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
|
|
@@ -421,6 +421,42 @@ export const ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum =
|
|
|
421
421
|
Confirmed: 'confirmed',
|
|
422
422
|
Pending: 'pending'
|
|
423
423
|
};
|
|
424
|
+
export const ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = {
|
|
425
|
+
And: 'AND',
|
|
426
|
+
Or: 'OR'
|
|
427
|
+
};
|
|
428
|
+
export const ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = {
|
|
429
|
+
Equals: 'equals',
|
|
430
|
+
NotEquals: 'not_equals',
|
|
431
|
+
Contains: 'contains',
|
|
432
|
+
NotContains: 'not_contains',
|
|
433
|
+
Gte: 'gte',
|
|
434
|
+
Lte: 'lte',
|
|
435
|
+
Exists: 'exists',
|
|
436
|
+
WithinLastDays: 'within_last_days',
|
|
437
|
+
NotWithinLastDays: 'not_within_last_days',
|
|
438
|
+
OlderThanDays: 'older_than_days',
|
|
439
|
+
Processed: 'processed',
|
|
440
|
+
NotProcessed: 'not_processed',
|
|
441
|
+
Delivered: 'delivered',
|
|
442
|
+
NotDelivered: 'not_delivered',
|
|
443
|
+
Dropped: 'dropped',
|
|
444
|
+
NotDropped: 'not_dropped',
|
|
445
|
+
Bounced: 'bounced',
|
|
446
|
+
NotBounced: 'not_bounced',
|
|
447
|
+
SoftBounced: 'soft_bounced',
|
|
448
|
+
NotSoftBounced: 'not_soft_bounced',
|
|
449
|
+
Opened: 'opened',
|
|
450
|
+
NotOpened: 'not_opened',
|
|
451
|
+
Clicked: 'clicked',
|
|
452
|
+
NotClicked: 'not_clicked',
|
|
453
|
+
Unsubscribed: 'unsubscribed',
|
|
454
|
+
NotUnsubscribed: 'not_unsubscribed'
|
|
455
|
+
};
|
|
456
|
+
export const ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = {
|
|
457
|
+
And: 'AND',
|
|
458
|
+
Or: 'OR'
|
|
459
|
+
};
|
|
424
460
|
export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
|
|
425
461
|
Subscribed: 'subscribed',
|
|
426
462
|
Unsubscribed: 'unsubscribed',
|
|
@@ -459,6 +495,8 @@ export const ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = {
|
|
|
459
495
|
NotDropped: 'not_dropped',
|
|
460
496
|
Bounced: 'bounced',
|
|
461
497
|
NotBounced: 'not_bounced',
|
|
498
|
+
SoftBounced: 'soft_bounced',
|
|
499
|
+
NotSoftBounced: 'not_soft_bounced',
|
|
462
500
|
Opened: 'opened',
|
|
463
501
|
NotOpened: 'not_opened',
|
|
464
502
|
Clicked: 'clicked',
|
|
@@ -2351,7 +2389,7 @@ export const AgencyHostingWebsitesApiAxiosParamCreator = function (configuration
|
|
|
2351
2389
|
};
|
|
2352
2390
|
}),
|
|
2353
2391
|
/**
|
|
2354
|
-
*
|
|
2392
|
+
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2355
2393
|
* @summary Delete Agency Plan website
|
|
2356
2394
|
* @param {string} websiteUid Agency Plan website UID
|
|
2357
2395
|
* @param {*} [options] Override http request option.
|
|
@@ -2472,7 +2510,7 @@ export const AgencyHostingWebsitesApiFp = function (configuration) {
|
|
|
2472
2510
|
});
|
|
2473
2511
|
},
|
|
2474
2512
|
/**
|
|
2475
|
-
*
|
|
2513
|
+
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2476
2514
|
* @summary Delete Agency Plan website
|
|
2477
2515
|
* @param {string} websiteUid Agency Plan website UID
|
|
2478
2516
|
* @param {*} [options] Override http request option.
|
|
@@ -2537,7 +2575,7 @@ export const AgencyHostingWebsitesApiFactory = function (configuration, basePath
|
|
|
2537
2575
|
return localVarFp.buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options).then((request) => request(axios, basePath));
|
|
2538
2576
|
},
|
|
2539
2577
|
/**
|
|
2540
|
-
*
|
|
2578
|
+
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2541
2579
|
* @summary Delete Agency Plan website
|
|
2542
2580
|
* @param {string} websiteUid Agency Plan website UID
|
|
2543
2581
|
* @param {*} [options] Override http request option.
|
|
@@ -2588,7 +2626,7 @@ export class AgencyHostingWebsitesApi extends BaseAPI {
|
|
|
2588
2626
|
return AgencyHostingWebsitesApiFp(this.configuration).buildAgencyPlanWebsiteNodeJSAssetsV1(websiteUid, agencyHostingV1WebsitesBuildAssetsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2589
2627
|
}
|
|
2590
2628
|
/**
|
|
2591
|
-
*
|
|
2629
|
+
* Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
|
|
2592
2630
|
* @summary Delete Agency Plan website
|
|
2593
2631
|
* @param {string} websiteUid Agency Plan website UID
|
|
2594
2632
|
* @param {*} [options] Override http request option.
|
|
@@ -16859,10 +16897,47 @@ export class ReachProfilesApi extends BaseAPI {
|
|
|
16859
16897
|
export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
16860
16898
|
return {
|
|
16861
16899
|
/**
|
|
16862
|
-
*
|
|
16900
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
16901
|
+
* @summary Count profile segment contacts
|
|
16902
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16903
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
16904
|
+
* @param {*} [options] Override http request option.
|
|
16905
|
+
* @throws {RequiredError}
|
|
16906
|
+
*/
|
|
16907
|
+
countProfileSegmentContactsV1: (profileUuid_1, segmentUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, ...args_1], void 0, function* (profileUuid, segmentUuid, options = {}) {
|
|
16908
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
16909
|
+
assertParamExists('countProfileSegmentContactsV1', 'profileUuid', profileUuid);
|
|
16910
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
16911
|
+
assertParamExists('countProfileSegmentContactsV1', 'segmentUuid', segmentUuid);
|
|
16912
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/count`
|
|
16913
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
16914
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
16915
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16916
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16917
|
+
let baseOptions;
|
|
16918
|
+
if (configuration) {
|
|
16919
|
+
baseOptions = configuration.baseOptions;
|
|
16920
|
+
}
|
|
16921
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16922
|
+
const localVarHeaderParameter = {};
|
|
16923
|
+
const localVarQueryParameter = {};
|
|
16924
|
+
// authentication apiToken required
|
|
16925
|
+
// http bearer authentication required
|
|
16926
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16927
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16928
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16929
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16930
|
+
return {
|
|
16931
|
+
url: toPathString(localVarUrlObj),
|
|
16932
|
+
options: localVarRequestOptions,
|
|
16933
|
+
};
|
|
16934
|
+
}),
|
|
16935
|
+
/**
|
|
16936
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
16863
16937
|
* @summary Create a new contact segment
|
|
16864
16938
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
16865
16939
|
* @param {*} [options] Override http request option.
|
|
16940
|
+
* @deprecated
|
|
16866
16941
|
* @throws {RequiredError}
|
|
16867
16942
|
*/
|
|
16868
16943
|
createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest_1, ...args_1) => __awaiter(this, [reachV1ContactsSegmentsStoreRequest_1, ...args_1], void 0, function* (reachV1ContactsSegmentsStoreRequest, options = {}) {
|
|
@@ -16892,10 +16967,120 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
16892
16967
|
};
|
|
16893
16968
|
}),
|
|
16894
16969
|
/**
|
|
16895
|
-
*
|
|
16970
|
+
* Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
|
|
16971
|
+
* @summary Create a profile segment
|
|
16972
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
16973
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
16974
|
+
* @param {*} [options] Override http request option.
|
|
16975
|
+
* @throws {RequiredError}
|
|
16976
|
+
*/
|
|
16977
|
+
createAProfileSegmentV1: (profileUuid_1, reachV1ContactsSegmentsProfileStoreRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, reachV1ContactsSegmentsProfileStoreRequest_1, ...args_1], void 0, function* (profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options = {}) {
|
|
16978
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
16979
|
+
assertParamExists('createAProfileSegmentV1', 'profileUuid', profileUuid);
|
|
16980
|
+
// verify required parameter 'reachV1ContactsSegmentsProfileStoreRequest' is not null or undefined
|
|
16981
|
+
assertParamExists('createAProfileSegmentV1', 'reachV1ContactsSegmentsProfileStoreRequest', reachV1ContactsSegmentsProfileStoreRequest);
|
|
16982
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments`
|
|
16983
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
16984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16986
|
+
let baseOptions;
|
|
16987
|
+
if (configuration) {
|
|
16988
|
+
baseOptions = configuration.baseOptions;
|
|
16989
|
+
}
|
|
16990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16991
|
+
const localVarHeaderParameter = {};
|
|
16992
|
+
const localVarQueryParameter = {};
|
|
16993
|
+
// authentication apiToken required
|
|
16994
|
+
// http bearer authentication required
|
|
16995
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16996
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16997
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16998
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16999
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17000
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsProfileStoreRequest, localVarRequestOptions, configuration);
|
|
17001
|
+
return {
|
|
17002
|
+
url: toPathString(localVarUrlObj),
|
|
17003
|
+
options: localVarRequestOptions,
|
|
17004
|
+
};
|
|
17005
|
+
}),
|
|
17006
|
+
/**
|
|
17007
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
17008
|
+
* @summary Delete a profile segment
|
|
17009
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17010
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17011
|
+
* @param {*} [options] Override http request option.
|
|
17012
|
+
* @throws {RequiredError}
|
|
17013
|
+
*/
|
|
17014
|
+
deleteAProfileSegmentV1: (profileUuid_1, segmentUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, ...args_1], void 0, function* (profileUuid, segmentUuid, options = {}) {
|
|
17015
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17016
|
+
assertParamExists('deleteAProfileSegmentV1', 'profileUuid', profileUuid);
|
|
17017
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
17018
|
+
assertParamExists('deleteAProfileSegmentV1', 'segmentUuid', segmentUuid);
|
|
17019
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
|
|
17020
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17021
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
17022
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17023
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17024
|
+
let baseOptions;
|
|
17025
|
+
if (configuration) {
|
|
17026
|
+
baseOptions = configuration.baseOptions;
|
|
17027
|
+
}
|
|
17028
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
17029
|
+
const localVarHeaderParameter = {};
|
|
17030
|
+
const localVarQueryParameter = {};
|
|
17031
|
+
// authentication apiToken required
|
|
17032
|
+
// http bearer authentication required
|
|
17033
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17036
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17037
|
+
return {
|
|
17038
|
+
url: toPathString(localVarUrlObj),
|
|
17039
|
+
options: localVarRequestOptions,
|
|
17040
|
+
};
|
|
17041
|
+
}),
|
|
17042
|
+
/**
|
|
17043
|
+
* Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
|
|
17044
|
+
* @summary Get profile segment details
|
|
17045
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17046
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17047
|
+
* @param {*} [options] Override http request option.
|
|
17048
|
+
* @throws {RequiredError}
|
|
17049
|
+
*/
|
|
17050
|
+
getProfileSegmentDetailsV1: (profileUuid_1, segmentUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, ...args_1], void 0, function* (profileUuid, segmentUuid, options = {}) {
|
|
17051
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17052
|
+
assertParamExists('getProfileSegmentDetailsV1', 'profileUuid', profileUuid);
|
|
17053
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
17054
|
+
assertParamExists('getProfileSegmentDetailsV1', 'segmentUuid', segmentUuid);
|
|
17055
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
|
|
17056
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17057
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
17058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17059
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17060
|
+
let baseOptions;
|
|
17061
|
+
if (configuration) {
|
|
17062
|
+
baseOptions = configuration.baseOptions;
|
|
17063
|
+
}
|
|
17064
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17065
|
+
const localVarHeaderParameter = {};
|
|
17066
|
+
const localVarQueryParameter = {};
|
|
17067
|
+
// authentication apiToken required
|
|
17068
|
+
// http bearer authentication required
|
|
17069
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17070
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17071
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17072
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17073
|
+
return {
|
|
17074
|
+
url: toPathString(localVarUrlObj),
|
|
17075
|
+
options: localVarRequestOptions,
|
|
17076
|
+
};
|
|
17077
|
+
}),
|
|
17078
|
+
/**
|
|
17079
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
|
|
16896
17080
|
* @summary Get segment details
|
|
16897
17081
|
* @param {string} segmentUuid Segment uuid parameter
|
|
16898
17082
|
* @param {*} [options] Override http request option.
|
|
17083
|
+
* @deprecated
|
|
16899
17084
|
* @throws {RequiredError}
|
|
16900
17085
|
*/
|
|
16901
17086
|
getSegmentDetailsV1: (segmentUuid_1, ...args_1) => __awaiter(this, [segmentUuid_1, ...args_1], void 0, function* (segmentUuid, options = {}) {
|
|
@@ -16968,12 +17153,57 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
16968
17153
|
};
|
|
16969
17154
|
}),
|
|
16970
17155
|
/**
|
|
16971
|
-
*
|
|
17156
|
+
* Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
|
|
17157
|
+
* @summary List profile segments
|
|
17158
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17159
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
17160
|
+
* @param {number} [page] Page number
|
|
17161
|
+
* @param {number} [perPage] Number of items per page
|
|
17162
|
+
* @param {*} [options] Override http request option.
|
|
17163
|
+
* @throws {RequiredError}
|
|
17164
|
+
*/
|
|
17165
|
+
listProfileSegmentsV1: (profileUuid_1, countType_1, page_1, perPage_1, ...args_1) => __awaiter(this, [profileUuid_1, countType_1, page_1, perPage_1, ...args_1], void 0, function* (profileUuid, countType, page, perPage, options = {}) {
|
|
17166
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17167
|
+
assertParamExists('listProfileSegmentsV1', 'profileUuid', profileUuid);
|
|
17168
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments`
|
|
17169
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
17170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17171
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17172
|
+
let baseOptions;
|
|
17173
|
+
if (configuration) {
|
|
17174
|
+
baseOptions = configuration.baseOptions;
|
|
17175
|
+
}
|
|
17176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17177
|
+
const localVarHeaderParameter = {};
|
|
17178
|
+
const localVarQueryParameter = {};
|
|
17179
|
+
// authentication apiToken required
|
|
17180
|
+
// http bearer authentication required
|
|
17181
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17182
|
+
if (countType !== undefined) {
|
|
17183
|
+
localVarQueryParameter['count_type'] = countType;
|
|
17184
|
+
}
|
|
17185
|
+
if (page !== undefined) {
|
|
17186
|
+
localVarQueryParameter['page'] = page;
|
|
17187
|
+
}
|
|
17188
|
+
if (perPage !== undefined) {
|
|
17189
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
17190
|
+
}
|
|
17191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17193
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17194
|
+
return {
|
|
17195
|
+
url: toPathString(localVarUrlObj),
|
|
17196
|
+
options: localVarRequestOptions,
|
|
17197
|
+
};
|
|
17198
|
+
}),
|
|
17199
|
+
/**
|
|
17200
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
|
|
16972
17201
|
* @summary List segment contacts
|
|
16973
17202
|
* @param {string} segmentUuid Segment uuid parameter
|
|
16974
17203
|
* @param {number} [page] Page number
|
|
16975
17204
|
* @param {number} [perPage] Number of items per page
|
|
16976
17205
|
* @param {*} [options] Override http request option.
|
|
17206
|
+
* @deprecated
|
|
16977
17207
|
* @throws {RequiredError}
|
|
16978
17208
|
*/
|
|
16979
17209
|
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 = {}) {
|
|
@@ -17008,9 +17238,10 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
17008
17238
|
};
|
|
17009
17239
|
}),
|
|
17010
17240
|
/**
|
|
17011
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17241
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17012
17242
|
* @summary List segments
|
|
17013
17243
|
* @param {*} [options] Override http request option.
|
|
17244
|
+
* @deprecated
|
|
17014
17245
|
* @throws {RequiredError}
|
|
17015
17246
|
*/
|
|
17016
17247
|
listSegmentsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
@@ -17035,6 +17266,47 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration) {
|
|
|
17035
17266
|
options: localVarRequestOptions,
|
|
17036
17267
|
};
|
|
17037
17268
|
}),
|
|
17269
|
+
/**
|
|
17270
|
+
* Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
|
|
17271
|
+
* @summary Update a profile segment
|
|
17272
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17273
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17274
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
17275
|
+
* @param {*} [options] Override http request option.
|
|
17276
|
+
* @throws {RequiredError}
|
|
17277
|
+
*/
|
|
17278
|
+
updateAProfileSegmentV1: (profileUuid_1, segmentUuid_1, reachV1ContactsSegmentsProfileUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, segmentUuid_1, reachV1ContactsSegmentsProfileUpdateRequest_1, ...args_1], void 0, function* (profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options = {}) {
|
|
17279
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
17280
|
+
assertParamExists('updateAProfileSegmentV1', 'profileUuid', profileUuid);
|
|
17281
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
17282
|
+
assertParamExists('updateAProfileSegmentV1', 'segmentUuid', segmentUuid);
|
|
17283
|
+
// verify required parameter 'reachV1ContactsSegmentsProfileUpdateRequest' is not null or undefined
|
|
17284
|
+
assertParamExists('updateAProfileSegmentV1', 'reachV1ContactsSegmentsProfileUpdateRequest', reachV1ContactsSegmentsProfileUpdateRequest);
|
|
17285
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
|
|
17286
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
17287
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
17288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17289
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17290
|
+
let baseOptions;
|
|
17291
|
+
if (configuration) {
|
|
17292
|
+
baseOptions = configuration.baseOptions;
|
|
17293
|
+
}
|
|
17294
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
17295
|
+
const localVarHeaderParameter = {};
|
|
17296
|
+
const localVarQueryParameter = {};
|
|
17297
|
+
// authentication apiToken required
|
|
17298
|
+
// http bearer authentication required
|
|
17299
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17300
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17301
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17303
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17304
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsProfileUpdateRequest, localVarRequestOptions, configuration);
|
|
17305
|
+
return {
|
|
17306
|
+
url: toPathString(localVarUrlObj),
|
|
17307
|
+
options: localVarRequestOptions,
|
|
17308
|
+
};
|
|
17309
|
+
}),
|
|
17038
17310
|
};
|
|
17039
17311
|
};
|
|
17040
17312
|
/**
|
|
@@ -17045,10 +17317,27 @@ export const ReachSegmentsApiFp = function (configuration) {
|
|
|
17045
17317
|
const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration);
|
|
17046
17318
|
return {
|
|
17047
17319
|
/**
|
|
17048
|
-
*
|
|
17320
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
17321
|
+
* @summary Count profile segment contacts
|
|
17322
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17323
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17324
|
+
* @param {*} [options] Override http request option.
|
|
17325
|
+
* @throws {RequiredError}
|
|
17326
|
+
*/
|
|
17327
|
+
countProfileSegmentContactsV1(profileUuid, segmentUuid, options) {
|
|
17328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17329
|
+
var _a, _b;
|
|
17330
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.countProfileSegmentContactsV1(profileUuid, segmentUuid, options);
|
|
17331
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.countProfileSegmentContactsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17332
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17333
|
+
});
|
|
17334
|
+
},
|
|
17335
|
+
/**
|
|
17336
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17049
17337
|
* @summary Create a new contact segment
|
|
17050
17338
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17051
17339
|
* @param {*} [options] Override http request option.
|
|
17340
|
+
* @deprecated
|
|
17052
17341
|
* @throws {RequiredError}
|
|
17053
17342
|
*/
|
|
17054
17343
|
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
@@ -17060,10 +17349,59 @@ export const ReachSegmentsApiFp = function (configuration) {
|
|
|
17060
17349
|
});
|
|
17061
17350
|
},
|
|
17062
17351
|
/**
|
|
17063
|
-
*
|
|
17352
|
+
* Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
|
|
17353
|
+
* @summary Create a profile segment
|
|
17354
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17355
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
17356
|
+
* @param {*} [options] Override http request option.
|
|
17357
|
+
* @throws {RequiredError}
|
|
17358
|
+
*/
|
|
17359
|
+
createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
|
|
17360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17361
|
+
var _a, _b;
|
|
17362
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options);
|
|
17363
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.createAProfileSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17364
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17365
|
+
});
|
|
17366
|
+
},
|
|
17367
|
+
/**
|
|
17368
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
17369
|
+
* @summary Delete a profile segment
|
|
17370
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17371
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17372
|
+
* @param {*} [options] Override http request option.
|
|
17373
|
+
* @throws {RequiredError}
|
|
17374
|
+
*/
|
|
17375
|
+
deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
|
|
17376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17377
|
+
var _a, _b;
|
|
17378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAProfileSegmentV1(profileUuid, segmentUuid, options);
|
|
17379
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.deleteAProfileSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17380
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17381
|
+
});
|
|
17382
|
+
},
|
|
17383
|
+
/**
|
|
17384
|
+
* Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
|
|
17385
|
+
* @summary Get profile segment details
|
|
17386
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17387
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17388
|
+
* @param {*} [options] Override http request option.
|
|
17389
|
+
* @throws {RequiredError}
|
|
17390
|
+
*/
|
|
17391
|
+
getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
|
|
17392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17393
|
+
var _a, _b;
|
|
17394
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfileSegmentDetailsV1(profileUuid, segmentUuid, options);
|
|
17395
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.getProfileSegmentDetailsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17396
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17397
|
+
});
|
|
17398
|
+
},
|
|
17399
|
+
/**
|
|
17400
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
|
|
17064
17401
|
* @summary Get segment details
|
|
17065
17402
|
* @param {string} segmentUuid Segment uuid parameter
|
|
17066
17403
|
* @param {*} [options] Override http request option.
|
|
17404
|
+
* @deprecated
|
|
17067
17405
|
* @throws {RequiredError}
|
|
17068
17406
|
*/
|
|
17069
17407
|
getSegmentDetailsV1(segmentUuid, options) {
|
|
@@ -17093,12 +17431,31 @@ export const ReachSegmentsApiFp = function (configuration) {
|
|
|
17093
17431
|
});
|
|
17094
17432
|
},
|
|
17095
17433
|
/**
|
|
17096
|
-
*
|
|
17434
|
+
* Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
|
|
17435
|
+
* @summary List profile segments
|
|
17436
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17437
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
17438
|
+
* @param {number} [page] Page number
|
|
17439
|
+
* @param {number} [perPage] Number of items per page
|
|
17440
|
+
* @param {*} [options] Override http request option.
|
|
17441
|
+
* @throws {RequiredError}
|
|
17442
|
+
*/
|
|
17443
|
+
listProfileSegmentsV1(profileUuid, countType, page, perPage, options) {
|
|
17444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17445
|
+
var _a, _b;
|
|
17446
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProfileSegmentsV1(profileUuid, countType, page, perPage, options);
|
|
17447
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.listProfileSegmentsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17448
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17449
|
+
});
|
|
17450
|
+
},
|
|
17451
|
+
/**
|
|
17452
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
|
|
17097
17453
|
* @summary List segment contacts
|
|
17098
17454
|
* @param {string} segmentUuid Segment uuid parameter
|
|
17099
17455
|
* @param {number} [page] Page number
|
|
17100
17456
|
* @param {number} [perPage] Number of items per page
|
|
17101
17457
|
* @param {*} [options] Override http request option.
|
|
17458
|
+
* @deprecated
|
|
17102
17459
|
* @throws {RequiredError}
|
|
17103
17460
|
*/
|
|
17104
17461
|
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
@@ -17110,9 +17467,10 @@ export const ReachSegmentsApiFp = function (configuration) {
|
|
|
17110
17467
|
});
|
|
17111
17468
|
},
|
|
17112
17469
|
/**
|
|
17113
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17470
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17114
17471
|
* @summary List segments
|
|
17115
17472
|
* @param {*} [options] Override http request option.
|
|
17473
|
+
* @deprecated
|
|
17116
17474
|
* @throws {RequiredError}
|
|
17117
17475
|
*/
|
|
17118
17476
|
listSegmentsV1(options) {
|
|
@@ -17123,6 +17481,23 @@ export const ReachSegmentsApiFp = function (configuration) {
|
|
|
17123
17481
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17124
17482
|
});
|
|
17125
17483
|
},
|
|
17484
|
+
/**
|
|
17485
|
+
* Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
|
|
17486
|
+
* @summary Update a profile segment
|
|
17487
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17488
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17489
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
17490
|
+
* @param {*} [options] Override http request option.
|
|
17491
|
+
* @throws {RequiredError}
|
|
17492
|
+
*/
|
|
17493
|
+
updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options) {
|
|
17494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17495
|
+
var _a, _b;
|
|
17496
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options);
|
|
17497
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachSegmentsApi.updateAProfileSegmentV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
17498
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17499
|
+
});
|
|
17500
|
+
},
|
|
17126
17501
|
};
|
|
17127
17502
|
};
|
|
17128
17503
|
/**
|
|
@@ -17133,20 +17508,66 @@ export const ReachSegmentsApiFactory = function (configuration, basePath, axios)
|
|
|
17133
17508
|
const localVarFp = ReachSegmentsApiFp(configuration);
|
|
17134
17509
|
return {
|
|
17135
17510
|
/**
|
|
17136
|
-
*
|
|
17511
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
17512
|
+
* @summary Count profile segment contacts
|
|
17513
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17514
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17515
|
+
* @param {*} [options] Override http request option.
|
|
17516
|
+
* @throws {RequiredError}
|
|
17517
|
+
*/
|
|
17518
|
+
countProfileSegmentContactsV1(profileUuid, segmentUuid, options) {
|
|
17519
|
+
return localVarFp.countProfileSegmentContactsV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
|
|
17520
|
+
},
|
|
17521
|
+
/**
|
|
17522
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17137
17523
|
* @summary Create a new contact segment
|
|
17138
17524
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17139
17525
|
* @param {*} [options] Override http request option.
|
|
17526
|
+
* @deprecated
|
|
17140
17527
|
* @throws {RequiredError}
|
|
17141
17528
|
*/
|
|
17142
17529
|
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options) {
|
|
17143
17530
|
return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
|
|
17144
17531
|
},
|
|
17145
17532
|
/**
|
|
17146
|
-
*
|
|
17533
|
+
* Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
|
|
17534
|
+
* @summary Create a profile segment
|
|
17535
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17536
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
17537
|
+
* @param {*} [options] Override http request option.
|
|
17538
|
+
* @throws {RequiredError}
|
|
17539
|
+
*/
|
|
17540
|
+
createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
|
|
17541
|
+
return localVarFp.createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options).then((request) => request(axios, basePath));
|
|
17542
|
+
},
|
|
17543
|
+
/**
|
|
17544
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
17545
|
+
* @summary Delete a profile segment
|
|
17546
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17547
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17548
|
+
* @param {*} [options] Override http request option.
|
|
17549
|
+
* @throws {RequiredError}
|
|
17550
|
+
*/
|
|
17551
|
+
deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
|
|
17552
|
+
return localVarFp.deleteAProfileSegmentV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
|
|
17553
|
+
},
|
|
17554
|
+
/**
|
|
17555
|
+
* Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
|
|
17556
|
+
* @summary Get profile segment details
|
|
17557
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17558
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17559
|
+
* @param {*} [options] Override http request option.
|
|
17560
|
+
* @throws {RequiredError}
|
|
17561
|
+
*/
|
|
17562
|
+
getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
|
|
17563
|
+
return localVarFp.getProfileSegmentDetailsV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
|
|
17564
|
+
},
|
|
17565
|
+
/**
|
|
17566
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
|
|
17147
17567
|
* @summary Get segment details
|
|
17148
17568
|
* @param {string} segmentUuid Segment uuid parameter
|
|
17149
17569
|
* @param {*} [options] Override http request option.
|
|
17570
|
+
* @deprecated
|
|
17150
17571
|
* @throws {RequiredError}
|
|
17151
17572
|
*/
|
|
17152
17573
|
getSegmentDetailsV1(segmentUuid, options) {
|
|
@@ -17166,26 +17587,53 @@ export const ReachSegmentsApiFactory = function (configuration, basePath, axios)
|
|
|
17166
17587
|
return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
17167
17588
|
},
|
|
17168
17589
|
/**
|
|
17169
|
-
*
|
|
17590
|
+
* Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
|
|
17591
|
+
* @summary List profile segments
|
|
17592
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17593
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
17594
|
+
* @param {number} [page] Page number
|
|
17595
|
+
* @param {number} [perPage] Number of items per page
|
|
17596
|
+
* @param {*} [options] Override http request option.
|
|
17597
|
+
* @throws {RequiredError}
|
|
17598
|
+
*/
|
|
17599
|
+
listProfileSegmentsV1(profileUuid, countType, page, perPage, options) {
|
|
17600
|
+
return localVarFp.listProfileSegmentsV1(profileUuid, countType, page, perPage, options).then((request) => request(axios, basePath));
|
|
17601
|
+
},
|
|
17602
|
+
/**
|
|
17603
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
|
|
17170
17604
|
* @summary List segment contacts
|
|
17171
17605
|
* @param {string} segmentUuid Segment uuid parameter
|
|
17172
17606
|
* @param {number} [page] Page number
|
|
17173
17607
|
* @param {number} [perPage] Number of items per page
|
|
17174
17608
|
* @param {*} [options] Override http request option.
|
|
17609
|
+
* @deprecated
|
|
17175
17610
|
* @throws {RequiredError}
|
|
17176
17611
|
*/
|
|
17177
17612
|
listSegmentContactsV1(segmentUuid, page, perPage, options) {
|
|
17178
17613
|
return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
17179
17614
|
},
|
|
17180
17615
|
/**
|
|
17181
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17616
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17182
17617
|
* @summary List segments
|
|
17183
17618
|
* @param {*} [options] Override http request option.
|
|
17619
|
+
* @deprecated
|
|
17184
17620
|
* @throws {RequiredError}
|
|
17185
17621
|
*/
|
|
17186
17622
|
listSegmentsV1(options) {
|
|
17187
17623
|
return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
|
|
17188
17624
|
},
|
|
17625
|
+
/**
|
|
17626
|
+
* Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
|
|
17627
|
+
* @summary Update a profile segment
|
|
17628
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17629
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17630
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
17631
|
+
* @param {*} [options] Override http request option.
|
|
17632
|
+
* @throws {RequiredError}
|
|
17633
|
+
*/
|
|
17634
|
+
updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options) {
|
|
17635
|
+
return localVarFp.updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options).then((request) => request(axios, basePath));
|
|
17636
|
+
},
|
|
17189
17637
|
};
|
|
17190
17638
|
};
|
|
17191
17639
|
/**
|
|
@@ -17196,10 +17644,23 @@ export const ReachSegmentsApiFactory = function (configuration, basePath, axios)
|
|
|
17196
17644
|
*/
|
|
17197
17645
|
export class ReachSegmentsApi extends BaseAPI {
|
|
17198
17646
|
/**
|
|
17199
|
-
*
|
|
17647
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
17648
|
+
* @summary Count profile segment contacts
|
|
17649
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17650
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17651
|
+
* @param {*} [options] Override http request option.
|
|
17652
|
+
* @throws {RequiredError}
|
|
17653
|
+
* @memberof ReachSegmentsApi
|
|
17654
|
+
*/
|
|
17655
|
+
countProfileSegmentContactsV1(profileUuid, segmentUuid, options) {
|
|
17656
|
+
return ReachSegmentsApiFp(this.configuration).countProfileSegmentContactsV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17657
|
+
}
|
|
17658
|
+
/**
|
|
17659
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot create segments in any other profile. Use `POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17200
17660
|
* @summary Create a new contact segment
|
|
17201
17661
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
17202
17662
|
* @param {*} [options] Override http request option.
|
|
17663
|
+
* @deprecated
|
|
17203
17664
|
* @throws {RequiredError}
|
|
17204
17665
|
* @memberof ReachSegmentsApi
|
|
17205
17666
|
*/
|
|
@@ -17207,10 +17668,47 @@ export class ReachSegmentsApi extends BaseAPI {
|
|
|
17207
17668
|
return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17208
17669
|
}
|
|
17209
17670
|
/**
|
|
17210
|
-
*
|
|
17671
|
+
* Create a segment in a profile. A segment is a saved set of conditions rather than a fixed list, so its membership changes as contacts change. Creating one does not modify any contact.
|
|
17672
|
+
* @summary Create a profile segment
|
|
17673
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17674
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
17675
|
+
* @param {*} [options] Override http request option.
|
|
17676
|
+
* @throws {RequiredError}
|
|
17677
|
+
* @memberof ReachSegmentsApi
|
|
17678
|
+
*/
|
|
17679
|
+
createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options) {
|
|
17680
|
+
return ReachSegmentsApiFp(this.configuration).createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17681
|
+
}
|
|
17682
|
+
/**
|
|
17683
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
17684
|
+
* @summary Delete a profile segment
|
|
17685
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17686
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17687
|
+
* @param {*} [options] Override http request option.
|
|
17688
|
+
* @throws {RequiredError}
|
|
17689
|
+
* @memberof ReachSegmentsApi
|
|
17690
|
+
*/
|
|
17691
|
+
deleteAProfileSegmentV1(profileUuid, segmentUuid, options) {
|
|
17692
|
+
return ReachSegmentsApiFp(this.configuration).deleteAProfileSegmentV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17693
|
+
}
|
|
17694
|
+
/**
|
|
17695
|
+
* Get a single segment of a profile, including the conditions that define it. To retrieve the contacts currently matching those conditions, use the segment contacts endpoint instead.
|
|
17696
|
+
* @summary Get profile segment details
|
|
17697
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17698
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17699
|
+
* @param {*} [options] Override http request option.
|
|
17700
|
+
* @throws {RequiredError}
|
|
17701
|
+
* @memberof ReachSegmentsApi
|
|
17702
|
+
*/
|
|
17703
|
+
getProfileSegmentDetailsV1(profileUuid, segmentUuid, options) {
|
|
17704
|
+
return ReachSegmentsApiFp(this.configuration).getProfileSegmentDetailsV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
17705
|
+
}
|
|
17706
|
+
/**
|
|
17707
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}` instead.
|
|
17211
17708
|
* @summary Get segment details
|
|
17212
17709
|
* @param {string} segmentUuid Segment uuid parameter
|
|
17213
17710
|
* @param {*} [options] Override http request option.
|
|
17711
|
+
* @deprecated
|
|
17214
17712
|
* @throws {RequiredError}
|
|
17215
17713
|
* @memberof ReachSegmentsApi
|
|
17216
17714
|
*/
|
|
@@ -17232,12 +17730,27 @@ export class ReachSegmentsApi extends BaseAPI {
|
|
|
17232
17730
|
return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
17233
17731
|
}
|
|
17234
17732
|
/**
|
|
17235
|
-
*
|
|
17733
|
+
* Get a paginated list of the segments defined in a profile. Each entry carries the number of contacts currently matching it, which is recalculated on read rather than stored. Use `count_type` to count either every matching contact or only the subscribed ones.
|
|
17734
|
+
* @summary List profile segments
|
|
17735
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17736
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
17737
|
+
* @param {number} [page] Page number
|
|
17738
|
+
* @param {number} [perPage] Number of items per page
|
|
17739
|
+
* @param {*} [options] Override http request option.
|
|
17740
|
+
* @throws {RequiredError}
|
|
17741
|
+
* @memberof ReachSegmentsApi
|
|
17742
|
+
*/
|
|
17743
|
+
listProfileSegmentsV1(profileUuid, countType, page, perPage, options) {
|
|
17744
|
+
return ReachSegmentsApiFp(this.configuration).listProfileSegmentsV1(profileUuid, countType, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
17745
|
+
}
|
|
17746
|
+
/**
|
|
17747
|
+
* 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. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot read segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts` instead.
|
|
17236
17748
|
* @summary List segment contacts
|
|
17237
17749
|
* @param {string} segmentUuid Segment uuid parameter
|
|
17238
17750
|
* @param {number} [page] Page number
|
|
17239
17751
|
* @param {number} [perPage] Number of items per page
|
|
17240
17752
|
* @param {*} [options] Override http request option.
|
|
17753
|
+
* @deprecated
|
|
17241
17754
|
* @throws {RequiredError}
|
|
17242
17755
|
* @memberof ReachSegmentsApi
|
|
17243
17756
|
*/
|
|
@@ -17245,16 +17758,37 @@ export class ReachSegmentsApi extends BaseAPI {
|
|
|
17245
17758
|
return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
17246
17759
|
}
|
|
17247
17760
|
/**
|
|
17248
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
17761
|
+
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list the segments of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.
|
|
17249
17762
|
* @summary List segments
|
|
17250
17763
|
* @param {*} [options] Override http request option.
|
|
17764
|
+
* @deprecated
|
|
17251
17765
|
* @throws {RequiredError}
|
|
17252
17766
|
* @memberof ReachSegmentsApi
|
|
17253
17767
|
*/
|
|
17254
17768
|
listSegmentsV1(options) {
|
|
17255
17769
|
return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
|
|
17256
17770
|
}
|
|
17771
|
+
/**
|
|
17772
|
+
* Rename a segment and/or replace the conditions that define it. `name` is always required. Omit `conditions` to rename without touching the conditions; supply them and they replace the existing set entirely rather than being merged into it. Contacts are never modified, but which of them match the segment can change immediately.
|
|
17773
|
+
* @summary Update a profile segment
|
|
17774
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
17775
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
17776
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
17777
|
+
* @param {*} [options] Override http request option.
|
|
17778
|
+
* @throws {RequiredError}
|
|
17779
|
+
* @memberof ReachSegmentsApi
|
|
17780
|
+
*/
|
|
17781
|
+
updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options) {
|
|
17782
|
+
return ReachSegmentsApiFp(this.configuration).updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17783
|
+
}
|
|
17257
17784
|
}
|
|
17785
|
+
/**
|
|
17786
|
+
* @export
|
|
17787
|
+
*/
|
|
17788
|
+
export const ListProfileSegmentsV1CountTypeEnum = {
|
|
17789
|
+
All: 'all',
|
|
17790
|
+
Subscribed: 'subscribed'
|
|
17791
|
+
};
|
|
17258
17792
|
/**
|
|
17259
17793
|
* ReachTagsApi - axios parameter creator
|
|
17260
17794
|
* @export
|