hostinger-api-sdk 1.28.0 → 1.29.0
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 +801 -81
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +460 -17
- package/dist/api.js +559 -25
- 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 +460 -17
- package/dist/esm/api.js +551 -17
- 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/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/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.30.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -7494,6 +7494,25 @@ export interface ReachListProfileSegmentContactsV1200Response {
|
|
|
7494
7494
|
*/
|
|
7495
7495
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7496
7496
|
}
|
|
7497
|
+
/**
|
|
7498
|
+
*
|
|
7499
|
+
* @export
|
|
7500
|
+
* @interface ReachListProfileSegmentsV1200Response
|
|
7501
|
+
*/
|
|
7502
|
+
export interface ReachListProfileSegmentsV1200Response {
|
|
7503
|
+
/**
|
|
7504
|
+
* Array of [`Reach.V1.Contacts.Segments.SegmentListItemResource`](#model/reachv1contactssegmentssegmentlistitemresource)
|
|
7505
|
+
* @type {Array<ReachV1ContactsSegmentsSegmentListItemResource>}
|
|
7506
|
+
* @memberof ReachListProfileSegmentsV1200Response
|
|
7507
|
+
*/
|
|
7508
|
+
'data': Array<ReachV1ContactsSegmentsSegmentListItemResource>;
|
|
7509
|
+
/**
|
|
7510
|
+
*
|
|
7511
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
7512
|
+
* @memberof ReachListProfileSegmentsV1200Response
|
|
7513
|
+
*/
|
|
7514
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
7515
|
+
}
|
|
7497
7516
|
/**
|
|
7498
7517
|
* Create many contacts in one call
|
|
7499
7518
|
* @export
|
|
@@ -8130,6 +8149,170 @@ export interface ReachV1ContactsSegmentsContactSegmentResource {
|
|
|
8130
8149
|
*/
|
|
8131
8150
|
'updated_at': string;
|
|
8132
8151
|
}
|
|
8152
|
+
/**
|
|
8153
|
+
* Create a segment from a set of conditions
|
|
8154
|
+
* @export
|
|
8155
|
+
* @interface ReachV1ContactsSegmentsProfileStoreRequest
|
|
8156
|
+
*/
|
|
8157
|
+
export interface ReachV1ContactsSegmentsProfileStoreRequest {
|
|
8158
|
+
/**
|
|
8159
|
+
*
|
|
8160
|
+
* @type {string}
|
|
8161
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequest
|
|
8162
|
+
*/
|
|
8163
|
+
'name': string;
|
|
8164
|
+
/**
|
|
8165
|
+
* Conditions a contact must satisfy to fall into the segment
|
|
8166
|
+
* @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
|
|
8167
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequest
|
|
8168
|
+
*/
|
|
8169
|
+
'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
|
|
8170
|
+
/**
|
|
8171
|
+
* How to combine multiple conditions
|
|
8172
|
+
* @type {string}
|
|
8173
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequest
|
|
8174
|
+
*/
|
|
8175
|
+
'logic': ReachV1ContactsSegmentsProfileStoreRequestLogicEnum;
|
|
8176
|
+
}
|
|
8177
|
+
export declare const ReachV1ContactsSegmentsProfileStoreRequestLogicEnum: {
|
|
8178
|
+
readonly And: "AND";
|
|
8179
|
+
readonly Or: "OR";
|
|
8180
|
+
};
|
|
8181
|
+
export type ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum];
|
|
8182
|
+
/**
|
|
8183
|
+
*
|
|
8184
|
+
* @export
|
|
8185
|
+
* @interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8186
|
+
*/
|
|
8187
|
+
export interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner {
|
|
8188
|
+
/**
|
|
8189
|
+
* A built-in contact attribute, or `cf:{fieldUuid}` to target a custom contact field. Custom fields are addressed by field UUID; their slug is not accepted. Built-in attributes: `email`, `note`, `domain`, `source`, `opt_in_method`, `subscription_status`, `subscribed_at`, `unsubscribed_at`, `created_at`, `tag`, `campaigns`, `processed`, `opened`, `clicked`, `delivered`, `bounced`, `soft_bounced`, `dropped`. Which operators are accepted depends on the attribute.
|
|
8190
|
+
* @type {string}
|
|
8191
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8192
|
+
*/
|
|
8193
|
+
'attribute': string;
|
|
8194
|
+
/**
|
|
8195
|
+
*
|
|
8196
|
+
* @type {string}
|
|
8197
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8198
|
+
*/
|
|
8199
|
+
'operator': ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum;
|
|
8200
|
+
/**
|
|
8201
|
+
* Always a string, including for numeric and date comparisons
|
|
8202
|
+
* @type {string}
|
|
8203
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8204
|
+
*/
|
|
8205
|
+
'value': string;
|
|
8206
|
+
}
|
|
8207
|
+
export declare const ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum: {
|
|
8208
|
+
readonly Equals: "equals";
|
|
8209
|
+
readonly NotEquals: "not_equals";
|
|
8210
|
+
readonly Contains: "contains";
|
|
8211
|
+
readonly NotContains: "not_contains";
|
|
8212
|
+
readonly Gte: "gte";
|
|
8213
|
+
readonly Lte: "lte";
|
|
8214
|
+
readonly Exists: "exists";
|
|
8215
|
+
readonly WithinLastDays: "within_last_days";
|
|
8216
|
+
readonly NotWithinLastDays: "not_within_last_days";
|
|
8217
|
+
readonly OlderThanDays: "older_than_days";
|
|
8218
|
+
readonly Processed: "processed";
|
|
8219
|
+
readonly NotProcessed: "not_processed";
|
|
8220
|
+
readonly Delivered: "delivered";
|
|
8221
|
+
readonly NotDelivered: "not_delivered";
|
|
8222
|
+
readonly Dropped: "dropped";
|
|
8223
|
+
readonly NotDropped: "not_dropped";
|
|
8224
|
+
readonly Bounced: "bounced";
|
|
8225
|
+
readonly NotBounced: "not_bounced";
|
|
8226
|
+
readonly SoftBounced: "soft_bounced";
|
|
8227
|
+
readonly NotSoftBounced: "not_soft_bounced";
|
|
8228
|
+
readonly Opened: "opened";
|
|
8229
|
+
readonly NotOpened: "not_opened";
|
|
8230
|
+
readonly Clicked: "clicked";
|
|
8231
|
+
readonly NotClicked: "not_clicked";
|
|
8232
|
+
readonly Unsubscribed: "unsubscribed";
|
|
8233
|
+
readonly NotUnsubscribed: "not_unsubscribed";
|
|
8234
|
+
};
|
|
8235
|
+
export type ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum];
|
|
8236
|
+
/**
|
|
8237
|
+
* Rename a segment and/or replace the conditions that define it
|
|
8238
|
+
* @export
|
|
8239
|
+
* @interface ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8240
|
+
*/
|
|
8241
|
+
export interface ReachV1ContactsSegmentsProfileUpdateRequest {
|
|
8242
|
+
/**
|
|
8243
|
+
*
|
|
8244
|
+
* @type {string}
|
|
8245
|
+
* @memberof ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8246
|
+
*/
|
|
8247
|
+
'name': string;
|
|
8248
|
+
/**
|
|
8249
|
+
* Replaces the existing conditions entirely. Omit to keep the current ones.
|
|
8250
|
+
* @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
|
|
8251
|
+
* @memberof ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8252
|
+
*/
|
|
8253
|
+
'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
|
|
8254
|
+
/**
|
|
8255
|
+
* How to combine multiple conditions. Required when conditions are given.
|
|
8256
|
+
* @type {string}
|
|
8257
|
+
* @memberof ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8258
|
+
*/
|
|
8259
|
+
'logic': ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum;
|
|
8260
|
+
}
|
|
8261
|
+
export declare const ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum: {
|
|
8262
|
+
readonly And: "AND";
|
|
8263
|
+
readonly Or: "OR";
|
|
8264
|
+
};
|
|
8265
|
+
export type ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum];
|
|
8266
|
+
/**
|
|
8267
|
+
*
|
|
8268
|
+
* @export
|
|
8269
|
+
* @interface ReachV1ContactsSegmentsSegmentContactsCountResource
|
|
8270
|
+
*/
|
|
8271
|
+
export interface ReachV1ContactsSegmentsSegmentContactsCountResource {
|
|
8272
|
+
/**
|
|
8273
|
+
* Contacts currently matching the segment conditions
|
|
8274
|
+
* @type {number}
|
|
8275
|
+
* @memberof ReachV1ContactsSegmentsSegmentContactsCountResource
|
|
8276
|
+
*/
|
|
8277
|
+
'count': number;
|
|
8278
|
+
}
|
|
8279
|
+
/**
|
|
8280
|
+
*
|
|
8281
|
+
* @export
|
|
8282
|
+
* @interface ReachV1ContactsSegmentsSegmentListItemResource
|
|
8283
|
+
*/
|
|
8284
|
+
export interface ReachV1ContactsSegmentsSegmentListItemResource {
|
|
8285
|
+
/**
|
|
8286
|
+
*
|
|
8287
|
+
* @type {string}
|
|
8288
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8289
|
+
*/
|
|
8290
|
+
'uuid': string;
|
|
8291
|
+
/**
|
|
8292
|
+
*
|
|
8293
|
+
* @type {string}
|
|
8294
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8295
|
+
*/
|
|
8296
|
+
'name': string;
|
|
8297
|
+
/**
|
|
8298
|
+
* Contacts currently matching the segment conditions
|
|
8299
|
+
* @type {number}
|
|
8300
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8301
|
+
*/
|
|
8302
|
+
'contacts_count': number;
|
|
8303
|
+
/**
|
|
8304
|
+
*
|
|
8305
|
+
* @type {string}
|
|
8306
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8307
|
+
*/
|
|
8308
|
+
'created_at': string;
|
|
8309
|
+
/**
|
|
8310
|
+
*
|
|
8311
|
+
* @type {string}
|
|
8312
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8313
|
+
*/
|
|
8314
|
+
'updated_at': string;
|
|
8315
|
+
}
|
|
8133
8316
|
/**
|
|
8134
8317
|
*
|
|
8135
8318
|
* @export
|
|
@@ -8313,6 +8496,8 @@ export declare const ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorE
|
|
|
8313
8496
|
readonly NotDropped: "not_dropped";
|
|
8314
8497
|
readonly Bounced: "bounced";
|
|
8315
8498
|
readonly NotBounced: "not_bounced";
|
|
8499
|
+
readonly SoftBounced: "soft_bounced";
|
|
8500
|
+
readonly NotSoftBounced: "not_soft_bounced";
|
|
8316
8501
|
readonly Opened: "opened";
|
|
8317
8502
|
readonly NotOpened: "not_opened";
|
|
8318
8503
|
readonly Clicked: "clicked";
|
|
@@ -19830,18 +20015,56 @@ export declare class ReachProfilesApi extends BaseAPI {
|
|
|
19830
20015
|
*/
|
|
19831
20016
|
export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19832
20017
|
/**
|
|
19833
|
-
*
|
|
20018
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
20019
|
+
* @summary Count profile segment contacts
|
|
20020
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20021
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20022
|
+
* @param {*} [options] Override http request option.
|
|
20023
|
+
* @throws {RequiredError}
|
|
20024
|
+
*/
|
|
20025
|
+
countProfileSegmentContactsV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20026
|
+
/**
|
|
20027
|
+
* 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.
|
|
19834
20028
|
* @summary Create a new contact segment
|
|
19835
20029
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
19836
20030
|
* @param {*} [options] Override http request option.
|
|
20031
|
+
* @deprecated
|
|
19837
20032
|
* @throws {RequiredError}
|
|
19838
20033
|
*/
|
|
19839
20034
|
createANewContactSegmentV1: (reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19840
20035
|
/**
|
|
19841
|
-
*
|
|
20036
|
+
* 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.
|
|
20037
|
+
* @summary Create a profile segment
|
|
20038
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20039
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
20040
|
+
* @param {*} [options] Override http request option.
|
|
20041
|
+
* @throws {RequiredError}
|
|
20042
|
+
*/
|
|
20043
|
+
createAProfileSegmentV1: (profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20044
|
+
/**
|
|
20045
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
20046
|
+
* @summary Delete a profile segment
|
|
20047
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20048
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20049
|
+
* @param {*} [options] Override http request option.
|
|
20050
|
+
* @throws {RequiredError}
|
|
20051
|
+
*/
|
|
20052
|
+
deleteAProfileSegmentV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20053
|
+
/**
|
|
20054
|
+
* 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.
|
|
20055
|
+
* @summary Get profile segment details
|
|
20056
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20057
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20058
|
+
* @param {*} [options] Override http request option.
|
|
20059
|
+
* @throws {RequiredError}
|
|
20060
|
+
*/
|
|
20061
|
+
getProfileSegmentDetailsV1: (profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20062
|
+
/**
|
|
20063
|
+
* 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.
|
|
19842
20064
|
* @summary Get segment details
|
|
19843
20065
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19844
20066
|
* @param {*} [options] Override http request option.
|
|
20067
|
+
* @deprecated
|
|
19845
20068
|
* @throws {RequiredError}
|
|
19846
20069
|
*/
|
|
19847
20070
|
getSegmentDetailsV1: (segmentUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -19857,22 +20080,45 @@ export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configu
|
|
|
19857
20080
|
*/
|
|
19858
20081
|
listProfileSegmentContactsV1: (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19859
20082
|
/**
|
|
19860
|
-
*
|
|
20083
|
+
* 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.
|
|
20084
|
+
* @summary List profile segments
|
|
20085
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20086
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
20087
|
+
* @param {number} [page] Page number
|
|
20088
|
+
* @param {number} [perPage] Number of items per page
|
|
20089
|
+
* @param {*} [options] Override http request option.
|
|
20090
|
+
* @throws {RequiredError}
|
|
20091
|
+
*/
|
|
20092
|
+
listProfileSegmentsV1: (profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20093
|
+
/**
|
|
20094
|
+
* 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.
|
|
19861
20095
|
* @summary List segment contacts
|
|
19862
20096
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19863
20097
|
* @param {number} [page] Page number
|
|
19864
20098
|
* @param {number} [perPage] Number of items per page
|
|
19865
20099
|
* @param {*} [options] Override http request option.
|
|
20100
|
+
* @deprecated
|
|
19866
20101
|
* @throws {RequiredError}
|
|
19867
20102
|
*/
|
|
19868
20103
|
listSegmentContactsV1: (segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19869
20104
|
/**
|
|
19870
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
20105
|
+
* 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.
|
|
19871
20106
|
* @summary List segments
|
|
19872
20107
|
* @param {*} [options] Override http request option.
|
|
20108
|
+
* @deprecated
|
|
19873
20109
|
* @throws {RequiredError}
|
|
19874
20110
|
*/
|
|
19875
20111
|
listSegmentsV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20112
|
+
/**
|
|
20113
|
+
* 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.
|
|
20114
|
+
* @summary Update a profile segment
|
|
20115
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20116
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20117
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
20118
|
+
* @param {*} [options] Override http request option.
|
|
20119
|
+
* @throws {RequiredError}
|
|
20120
|
+
*/
|
|
20121
|
+
updateAProfileSegmentV1: (profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19876
20122
|
};
|
|
19877
20123
|
/**
|
|
19878
20124
|
* ReachSegmentsApi - functional programming interface
|
|
@@ -19880,18 +20126,56 @@ export declare const ReachSegmentsApiAxiosParamCreator: (configuration?: Configu
|
|
|
19880
20126
|
*/
|
|
19881
20127
|
export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
|
|
19882
20128
|
/**
|
|
19883
|
-
*
|
|
20129
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
20130
|
+
* @summary Count profile segment contacts
|
|
20131
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20132
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20133
|
+
* @param {*} [options] Override http request option.
|
|
20134
|
+
* @throws {RequiredError}
|
|
20135
|
+
*/
|
|
20136
|
+
countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>>;
|
|
20137
|
+
/**
|
|
20138
|
+
* 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.
|
|
19884
20139
|
* @summary Create a new contact segment
|
|
19885
20140
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
19886
20141
|
* @param {*} [options] Override http request option.
|
|
20142
|
+
* @deprecated
|
|
19887
20143
|
* @throws {RequiredError}
|
|
19888
20144
|
*/
|
|
19889
20145
|
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
|
|
19890
20146
|
/**
|
|
19891
|
-
*
|
|
20147
|
+
* 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.
|
|
20148
|
+
* @summary Create a profile segment
|
|
20149
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20150
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
20151
|
+
* @param {*} [options] Override http request option.
|
|
20152
|
+
* @throws {RequiredError}
|
|
20153
|
+
*/
|
|
20154
|
+
createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
|
|
20155
|
+
/**
|
|
20156
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
20157
|
+
* @summary Delete a profile segment
|
|
20158
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20159
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20160
|
+
* @param {*} [options] Override http request option.
|
|
20161
|
+
* @throws {RequiredError}
|
|
20162
|
+
*/
|
|
20163
|
+
deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
20164
|
+
/**
|
|
20165
|
+
* 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.
|
|
20166
|
+
* @summary Get profile segment details
|
|
20167
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20168
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20169
|
+
* @param {*} [options] Override http request option.
|
|
20170
|
+
* @throws {RequiredError}
|
|
20171
|
+
*/
|
|
20172
|
+
getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
|
|
20173
|
+
/**
|
|
20174
|
+
* 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.
|
|
19892
20175
|
* @summary Get segment details
|
|
19893
20176
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19894
20177
|
* @param {*} [options] Override http request option.
|
|
20178
|
+
* @deprecated
|
|
19895
20179
|
* @throws {RequiredError}
|
|
19896
20180
|
*/
|
|
19897
20181
|
getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
|
|
@@ -19907,22 +20191,45 @@ export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
|
|
|
19907
20191
|
*/
|
|
19908
20192
|
listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>>;
|
|
19909
20193
|
/**
|
|
19910
|
-
*
|
|
20194
|
+
* 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.
|
|
20195
|
+
* @summary List profile segments
|
|
20196
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20197
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
20198
|
+
* @param {number} [page] Page number
|
|
20199
|
+
* @param {number} [perPage] Number of items per page
|
|
20200
|
+
* @param {*} [options] Override http request option.
|
|
20201
|
+
* @throws {RequiredError}
|
|
20202
|
+
*/
|
|
20203
|
+
listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentsV1200Response>>;
|
|
20204
|
+
/**
|
|
20205
|
+
* 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.
|
|
19911
20206
|
* @summary List segment contacts
|
|
19912
20207
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19913
20208
|
* @param {number} [page] Page number
|
|
19914
20209
|
* @param {number} [perPage] Number of items per page
|
|
19915
20210
|
* @param {*} [options] Override http request option.
|
|
20211
|
+
* @deprecated
|
|
19916
20212
|
* @throws {RequiredError}
|
|
19917
20213
|
*/
|
|
19918
20214
|
listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>>;
|
|
19919
20215
|
/**
|
|
19920
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
20216
|
+
* 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.
|
|
19921
20217
|
* @summary List segments
|
|
19922
20218
|
* @param {*} [options] Override http request option.
|
|
20219
|
+
* @deprecated
|
|
19923
20220
|
* @throws {RequiredError}
|
|
19924
20221
|
*/
|
|
19925
20222
|
listSegmentsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>>;
|
|
20223
|
+
/**
|
|
20224
|
+
* 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.
|
|
20225
|
+
* @summary Update a profile segment
|
|
20226
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20227
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20228
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
20229
|
+
* @param {*} [options] Override http request option.
|
|
20230
|
+
* @throws {RequiredError}
|
|
20231
|
+
*/
|
|
20232
|
+
updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>>;
|
|
19926
20233
|
};
|
|
19927
20234
|
/**
|
|
19928
20235
|
* ReachSegmentsApi - factory interface
|
|
@@ -19930,18 +20237,56 @@ export declare const ReachSegmentsApiFp: (configuration?: Configuration) => {
|
|
|
19930
20237
|
*/
|
|
19931
20238
|
export declare const ReachSegmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
19932
20239
|
/**
|
|
19933
|
-
*
|
|
20240
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
20241
|
+
* @summary Count profile segment contacts
|
|
20242
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20243
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20244
|
+
* @param {*} [options] Override http request option.
|
|
20245
|
+
* @throws {RequiredError}
|
|
20246
|
+
*/
|
|
20247
|
+
countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>;
|
|
20248
|
+
/**
|
|
20249
|
+
* 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.
|
|
19934
20250
|
* @summary Create a new contact segment
|
|
19935
20251
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
19936
20252
|
* @param {*} [options] Override http request option.
|
|
20253
|
+
* @deprecated
|
|
19937
20254
|
* @throws {RequiredError}
|
|
19938
20255
|
*/
|
|
19939
20256
|
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
|
|
19940
20257
|
/**
|
|
19941
|
-
*
|
|
20258
|
+
* 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.
|
|
20259
|
+
* @summary Create a profile segment
|
|
20260
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20261
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
20262
|
+
* @param {*} [options] Override http request option.
|
|
20263
|
+
* @throws {RequiredError}
|
|
20264
|
+
*/
|
|
20265
|
+
createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
|
|
20266
|
+
/**
|
|
20267
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
20268
|
+
* @summary Delete a profile segment
|
|
20269
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20270
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20271
|
+
* @param {*} [options] Override http request option.
|
|
20272
|
+
* @throws {RequiredError}
|
|
20273
|
+
*/
|
|
20274
|
+
deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
20275
|
+
/**
|
|
20276
|
+
* 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.
|
|
20277
|
+
* @summary Get profile segment details
|
|
20278
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20279
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20280
|
+
* @param {*} [options] Override http request option.
|
|
20281
|
+
* @throws {RequiredError}
|
|
20282
|
+
*/
|
|
20283
|
+
getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
|
|
20284
|
+
/**
|
|
20285
|
+
* 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.
|
|
19942
20286
|
* @summary Get segment details
|
|
19943
20287
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19944
20288
|
* @param {*} [options] Override http request option.
|
|
20289
|
+
* @deprecated
|
|
19945
20290
|
* @throws {RequiredError}
|
|
19946
20291
|
*/
|
|
19947
20292
|
getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
|
|
@@ -19957,22 +20302,45 @@ export declare const ReachSegmentsApiFactory: (configuration?: Configuration, ba
|
|
|
19957
20302
|
*/
|
|
19958
20303
|
listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response>;
|
|
19959
20304
|
/**
|
|
19960
|
-
*
|
|
20305
|
+
* 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.
|
|
20306
|
+
* @summary List profile segments
|
|
20307
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20308
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
20309
|
+
* @param {number} [page] Page number
|
|
20310
|
+
* @param {number} [perPage] Number of items per page
|
|
20311
|
+
* @param {*} [options] Override http request option.
|
|
20312
|
+
* @throws {RequiredError}
|
|
20313
|
+
*/
|
|
20314
|
+
listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentsV1200Response>;
|
|
20315
|
+
/**
|
|
20316
|
+
* 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.
|
|
19961
20317
|
* @summary List segment contacts
|
|
19962
20318
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19963
20319
|
* @param {number} [page] Page number
|
|
19964
20320
|
* @param {number} [perPage] Number of items per page
|
|
19965
20321
|
* @param {*} [options] Override http request option.
|
|
20322
|
+
* @deprecated
|
|
19966
20323
|
* @throws {RequiredError}
|
|
19967
20324
|
*/
|
|
19968
20325
|
listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response>;
|
|
19969
20326
|
/**
|
|
19970
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
20327
|
+
* 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.
|
|
19971
20328
|
* @summary List segments
|
|
19972
20329
|
* @param {*} [options] Override http request option.
|
|
20330
|
+
* @deprecated
|
|
19973
20331
|
* @throws {RequiredError}
|
|
19974
20332
|
*/
|
|
19975
20333
|
listSegmentsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>;
|
|
20334
|
+
/**
|
|
20335
|
+
* 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.
|
|
20336
|
+
* @summary Update a profile segment
|
|
20337
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20338
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20339
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
20340
|
+
* @param {*} [options] Override http request option.
|
|
20341
|
+
* @throws {RequiredError}
|
|
20342
|
+
*/
|
|
20343
|
+
updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource>;
|
|
19976
20344
|
};
|
|
19977
20345
|
/**
|
|
19978
20346
|
* ReachSegmentsApi - object-oriented interface
|
|
@@ -19982,19 +20350,61 @@ export declare const ReachSegmentsApiFactory: (configuration?: Configuration, ba
|
|
|
19982
20350
|
*/
|
|
19983
20351
|
export declare class ReachSegmentsApi extends BaseAPI {
|
|
19984
20352
|
/**
|
|
19985
|
-
*
|
|
20353
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
20354
|
+
* @summary Count profile segment contacts
|
|
20355
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20356
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20357
|
+
* @param {*} [options] Override http request option.
|
|
20358
|
+
* @throws {RequiredError}
|
|
20359
|
+
* @memberof ReachSegmentsApi
|
|
20360
|
+
*/
|
|
20361
|
+
countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentContactsCountResource, any, {}, any>>;
|
|
20362
|
+
/**
|
|
20363
|
+
* 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.
|
|
19986
20364
|
* @summary Create a new contact segment
|
|
19987
20365
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
19988
20366
|
* @param {*} [options] Override http request option.
|
|
20367
|
+
* @deprecated
|
|
19989
20368
|
* @throws {RequiredError}
|
|
19990
20369
|
* @memberof ReachSegmentsApi
|
|
19991
20370
|
*/
|
|
19992
20371
|
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
|
|
19993
20372
|
/**
|
|
19994
|
-
*
|
|
20373
|
+
* 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.
|
|
20374
|
+
* @summary Create a profile segment
|
|
20375
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20376
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
20377
|
+
* @param {*} [options] Override http request option.
|
|
20378
|
+
* @throws {RequiredError}
|
|
20379
|
+
* @memberof ReachSegmentsApi
|
|
20380
|
+
*/
|
|
20381
|
+
createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
|
|
20382
|
+
/**
|
|
20383
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
20384
|
+
* @summary Delete a profile segment
|
|
20385
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20386
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20387
|
+
* @param {*} [options] Override http request option.
|
|
20388
|
+
* @throws {RequiredError}
|
|
20389
|
+
* @memberof ReachSegmentsApi
|
|
20390
|
+
*/
|
|
20391
|
+
deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
20392
|
+
/**
|
|
20393
|
+
* 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.
|
|
20394
|
+
* @summary Get profile segment details
|
|
20395
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20396
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20397
|
+
* @param {*} [options] Override http request option.
|
|
20398
|
+
* @throws {RequiredError}
|
|
20399
|
+
* @memberof ReachSegmentsApi
|
|
20400
|
+
*/
|
|
20401
|
+
getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
|
|
20402
|
+
/**
|
|
20403
|
+
* 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.
|
|
19995
20404
|
* @summary Get segment details
|
|
19996
20405
|
* @param {string} segmentUuid Segment uuid parameter
|
|
19997
20406
|
* @param {*} [options] Override http request option.
|
|
20407
|
+
* @deprecated
|
|
19998
20408
|
* @throws {RequiredError}
|
|
19999
20409
|
* @memberof ReachSegmentsApi
|
|
20000
20410
|
*/
|
|
@@ -20012,25 +20422,58 @@ export declare class ReachSegmentsApi extends BaseAPI {
|
|
|
20012
20422
|
*/
|
|
20013
20423
|
listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentContactsV1200Response, any, {}, any>>;
|
|
20014
20424
|
/**
|
|
20015
|
-
*
|
|
20425
|
+
* 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.
|
|
20426
|
+
* @summary List profile segments
|
|
20427
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20428
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
20429
|
+
* @param {number} [page] Page number
|
|
20430
|
+
* @param {number} [perPage] Number of items per page
|
|
20431
|
+
* @param {*} [options] Override http request option.
|
|
20432
|
+
* @throws {RequiredError}
|
|
20433
|
+
* @memberof ReachSegmentsApi
|
|
20434
|
+
*/
|
|
20435
|
+
listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentsV1200Response, any, {}, any>>;
|
|
20436
|
+
/**
|
|
20437
|
+
* 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.
|
|
20016
20438
|
* @summary List segment contacts
|
|
20017
20439
|
* @param {string} segmentUuid Segment uuid parameter
|
|
20018
20440
|
* @param {number} [page] Page number
|
|
20019
20441
|
* @param {number} [perPage] Number of items per page
|
|
20020
20442
|
* @param {*} [options] Override http request option.
|
|
20443
|
+
* @deprecated
|
|
20021
20444
|
* @throws {RequiredError}
|
|
20022
20445
|
* @memberof ReachSegmentsApi
|
|
20023
20446
|
*/
|
|
20024
20447
|
listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListProfileSegmentContactsV1200Response, any, {}, any>>;
|
|
20025
20448
|
/**
|
|
20026
|
-
* Get a list of all contact segments. This endpoint returns a list of contact segments that can be used to organize contacts.
|
|
20449
|
+
* 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.
|
|
20027
20450
|
* @summary List segments
|
|
20028
20451
|
* @param {*} [options] Override http request option.
|
|
20452
|
+
* @deprecated
|
|
20029
20453
|
* @throws {RequiredError}
|
|
20030
20454
|
* @memberof ReachSegmentsApi
|
|
20031
20455
|
*/
|
|
20032
20456
|
listSegmentsV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsContactSegmentResource[], any, {}, any>>;
|
|
20457
|
+
/**
|
|
20458
|
+
* 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.
|
|
20459
|
+
* @summary Update a profile segment
|
|
20460
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
20461
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
20462
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
20463
|
+
* @param {*} [options] Override http request option.
|
|
20464
|
+
* @throws {RequiredError}
|
|
20465
|
+
* @memberof ReachSegmentsApi
|
|
20466
|
+
*/
|
|
20467
|
+
updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1ContactsSegmentsSegmentResource, any, {}, any>>;
|
|
20033
20468
|
}
|
|
20469
|
+
/**
|
|
20470
|
+
* @export
|
|
20471
|
+
*/
|
|
20472
|
+
export declare const ListProfileSegmentsV1CountTypeEnum: {
|
|
20473
|
+
readonly All: "all";
|
|
20474
|
+
readonly Subscribed: "subscribed";
|
|
20475
|
+
};
|
|
20476
|
+
export type ListProfileSegmentsV1CountTypeEnum = typeof ListProfileSegmentsV1CountTypeEnum[keyof typeof ListProfileSegmentsV1CountTypeEnum];
|
|
20034
20477
|
/**
|
|
20035
20478
|
* ReachTagsApi - axios parameter creator
|
|
20036
20479
|
* @export
|