hostinger-api-sdk 1.27.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 +1622 -150
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +843 -17
- package/dist/api.js +1248 -44
- 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 +843 -17
- package/dist/esm/api.js +1236 -36
- 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/ReachTagsApi.md +483 -0
- 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/docs/ReachV1ContactsTagsManageContactsRequest.md +23 -0
- package/docs/ReachV1ContactsTagsStoreRequest.md +21 -0
- package/docs/ReachV1ContactsTagsUpdateRequest.md +21 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.30.0
|
|
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
|
|
@@ -7650,6 +7650,25 @@ export interface ReachListProfileSegmentContactsV1200Response {
|
|
|
7650
7650
|
*/
|
|
7651
7651
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7652
7652
|
}
|
|
7653
|
+
/**
|
|
7654
|
+
*
|
|
7655
|
+
* @export
|
|
7656
|
+
* @interface ReachListProfileSegmentsV1200Response
|
|
7657
|
+
*/
|
|
7658
|
+
export interface ReachListProfileSegmentsV1200Response {
|
|
7659
|
+
/**
|
|
7660
|
+
* Array of [`Reach.V1.Contacts.Segments.SegmentListItemResource`](#model/reachv1contactssegmentssegmentlistitemresource)
|
|
7661
|
+
* @type {Array<ReachV1ContactsSegmentsSegmentListItemResource>}
|
|
7662
|
+
* @memberof ReachListProfileSegmentsV1200Response
|
|
7663
|
+
*/
|
|
7664
|
+
'data': Array<ReachV1ContactsSegmentsSegmentListItemResource>;
|
|
7665
|
+
/**
|
|
7666
|
+
*
|
|
7667
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
7668
|
+
* @memberof ReachListProfileSegmentsV1200Response
|
|
7669
|
+
*/
|
|
7670
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
7671
|
+
}
|
|
7653
7672
|
/**
|
|
7654
7673
|
* Create many contacts in one call
|
|
7655
7674
|
* @export
|
|
@@ -8310,6 +8329,179 @@ export interface ReachV1ContactsSegmentsContactSegmentResource {
|
|
|
8310
8329
|
*/
|
|
8311
8330
|
'updated_at': string;
|
|
8312
8331
|
}
|
|
8332
|
+
/**
|
|
8333
|
+
* Create a segment from a set of conditions
|
|
8334
|
+
* @export
|
|
8335
|
+
* @interface ReachV1ContactsSegmentsProfileStoreRequest
|
|
8336
|
+
*/
|
|
8337
|
+
export interface ReachV1ContactsSegmentsProfileStoreRequest {
|
|
8338
|
+
/**
|
|
8339
|
+
*
|
|
8340
|
+
* @type {string}
|
|
8341
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequest
|
|
8342
|
+
*/
|
|
8343
|
+
'name': string;
|
|
8344
|
+
/**
|
|
8345
|
+
* Conditions a contact must satisfy to fall into the segment
|
|
8346
|
+
* @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
|
|
8347
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequest
|
|
8348
|
+
*/
|
|
8349
|
+
'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
|
|
8350
|
+
/**
|
|
8351
|
+
* How to combine multiple conditions
|
|
8352
|
+
* @type {string}
|
|
8353
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequest
|
|
8354
|
+
*/
|
|
8355
|
+
'logic': ReachV1ContactsSegmentsProfileStoreRequestLogicEnum;
|
|
8356
|
+
}
|
|
8357
|
+
|
|
8358
|
+
export const ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = {
|
|
8359
|
+
And: 'AND',
|
|
8360
|
+
Or: 'OR'
|
|
8361
|
+
} as const;
|
|
8362
|
+
|
|
8363
|
+
export type ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestLogicEnum];
|
|
8364
|
+
|
|
8365
|
+
/**
|
|
8366
|
+
*
|
|
8367
|
+
* @export
|
|
8368
|
+
* @interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8369
|
+
*/
|
|
8370
|
+
export interface ReachV1ContactsSegmentsProfileStoreRequestConditionsInner {
|
|
8371
|
+
/**
|
|
8372
|
+
* 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.
|
|
8373
|
+
* @type {string}
|
|
8374
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8375
|
+
*/
|
|
8376
|
+
'attribute': string;
|
|
8377
|
+
/**
|
|
8378
|
+
*
|
|
8379
|
+
* @type {string}
|
|
8380
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8381
|
+
*/
|
|
8382
|
+
'operator': ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum;
|
|
8383
|
+
/**
|
|
8384
|
+
* Always a string, including for numeric and date comparisons
|
|
8385
|
+
* @type {string}
|
|
8386
|
+
* @memberof ReachV1ContactsSegmentsProfileStoreRequestConditionsInner
|
|
8387
|
+
*/
|
|
8388
|
+
'value': string;
|
|
8389
|
+
}
|
|
8390
|
+
|
|
8391
|
+
export const ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = {
|
|
8392
|
+
Equals: 'equals',
|
|
8393
|
+
NotEquals: 'not_equals',
|
|
8394
|
+
Contains: 'contains',
|
|
8395
|
+
NotContains: 'not_contains',
|
|
8396
|
+
Gte: 'gte',
|
|
8397
|
+
Lte: 'lte',
|
|
8398
|
+
Exists: 'exists',
|
|
8399
|
+
WithinLastDays: 'within_last_days',
|
|
8400
|
+
NotWithinLastDays: 'not_within_last_days',
|
|
8401
|
+
OlderThanDays: 'older_than_days',
|
|
8402
|
+
Processed: 'processed',
|
|
8403
|
+
NotProcessed: 'not_processed',
|
|
8404
|
+
Delivered: 'delivered',
|
|
8405
|
+
NotDelivered: 'not_delivered',
|
|
8406
|
+
Dropped: 'dropped',
|
|
8407
|
+
NotDropped: 'not_dropped',
|
|
8408
|
+
Bounced: 'bounced',
|
|
8409
|
+
NotBounced: 'not_bounced',
|
|
8410
|
+
SoftBounced: 'soft_bounced',
|
|
8411
|
+
NotSoftBounced: 'not_soft_bounced',
|
|
8412
|
+
Opened: 'opened',
|
|
8413
|
+
NotOpened: 'not_opened',
|
|
8414
|
+
Clicked: 'clicked',
|
|
8415
|
+
NotClicked: 'not_clicked',
|
|
8416
|
+
Unsubscribed: 'unsubscribed',
|
|
8417
|
+
NotUnsubscribed: 'not_unsubscribed'
|
|
8418
|
+
} as const;
|
|
8419
|
+
|
|
8420
|
+
export type ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum[keyof typeof ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum];
|
|
8421
|
+
|
|
8422
|
+
/**
|
|
8423
|
+
* Rename a segment and/or replace the conditions that define it
|
|
8424
|
+
* @export
|
|
8425
|
+
* @interface ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8426
|
+
*/
|
|
8427
|
+
export interface ReachV1ContactsSegmentsProfileUpdateRequest {
|
|
8428
|
+
/**
|
|
8429
|
+
*
|
|
8430
|
+
* @type {string}
|
|
8431
|
+
* @memberof ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8432
|
+
*/
|
|
8433
|
+
'name': string;
|
|
8434
|
+
/**
|
|
8435
|
+
* Replaces the existing conditions entirely. Omit to keep the current ones.
|
|
8436
|
+
* @type {Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>}
|
|
8437
|
+
* @memberof ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8438
|
+
*/
|
|
8439
|
+
'conditions': Array<ReachV1ContactsSegmentsProfileStoreRequestConditionsInner>;
|
|
8440
|
+
/**
|
|
8441
|
+
* How to combine multiple conditions. Required when conditions are given.
|
|
8442
|
+
* @type {string}
|
|
8443
|
+
* @memberof ReachV1ContactsSegmentsProfileUpdateRequest
|
|
8444
|
+
*/
|
|
8445
|
+
'logic': ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum;
|
|
8446
|
+
}
|
|
8447
|
+
|
|
8448
|
+
export const ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = {
|
|
8449
|
+
And: 'AND',
|
|
8450
|
+
Or: 'OR'
|
|
8451
|
+
} as const;
|
|
8452
|
+
|
|
8453
|
+
export type ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum[keyof typeof ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum];
|
|
8454
|
+
|
|
8455
|
+
/**
|
|
8456
|
+
*
|
|
8457
|
+
* @export
|
|
8458
|
+
* @interface ReachV1ContactsSegmentsSegmentContactsCountResource
|
|
8459
|
+
*/
|
|
8460
|
+
export interface ReachV1ContactsSegmentsSegmentContactsCountResource {
|
|
8461
|
+
/**
|
|
8462
|
+
* Contacts currently matching the segment conditions
|
|
8463
|
+
* @type {number}
|
|
8464
|
+
* @memberof ReachV1ContactsSegmentsSegmentContactsCountResource
|
|
8465
|
+
*/
|
|
8466
|
+
'count': number;
|
|
8467
|
+
}
|
|
8468
|
+
/**
|
|
8469
|
+
*
|
|
8470
|
+
* @export
|
|
8471
|
+
* @interface ReachV1ContactsSegmentsSegmentListItemResource
|
|
8472
|
+
*/
|
|
8473
|
+
export interface ReachV1ContactsSegmentsSegmentListItemResource {
|
|
8474
|
+
/**
|
|
8475
|
+
*
|
|
8476
|
+
* @type {string}
|
|
8477
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8478
|
+
*/
|
|
8479
|
+
'uuid': string;
|
|
8480
|
+
/**
|
|
8481
|
+
*
|
|
8482
|
+
* @type {string}
|
|
8483
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8484
|
+
*/
|
|
8485
|
+
'name': string;
|
|
8486
|
+
/**
|
|
8487
|
+
* Contacts currently matching the segment conditions
|
|
8488
|
+
* @type {number}
|
|
8489
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8490
|
+
*/
|
|
8491
|
+
'contacts_count': number;
|
|
8492
|
+
/**
|
|
8493
|
+
*
|
|
8494
|
+
* @type {string}
|
|
8495
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8496
|
+
*/
|
|
8497
|
+
'created_at': string;
|
|
8498
|
+
/**
|
|
8499
|
+
*
|
|
8500
|
+
* @type {string}
|
|
8501
|
+
* @memberof ReachV1ContactsSegmentsSegmentListItemResource
|
|
8502
|
+
*/
|
|
8503
|
+
'updated_at': string;
|
|
8504
|
+
}
|
|
8313
8505
|
/**
|
|
8314
8506
|
*
|
|
8315
8507
|
* @export
|
|
@@ -8501,6 +8693,8 @@ export const ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = {
|
|
|
8501
8693
|
NotDropped: 'not_dropped',
|
|
8502
8694
|
Bounced: 'bounced',
|
|
8503
8695
|
NotBounced: 'not_bounced',
|
|
8696
|
+
SoftBounced: 'soft_bounced',
|
|
8697
|
+
NotSoftBounced: 'not_soft_bounced',
|
|
8504
8698
|
Opened: 'opened',
|
|
8505
8699
|
NotOpened: 'not_opened',
|
|
8506
8700
|
Clicked: 'clicked',
|
|
@@ -8578,6 +8772,38 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
8578
8772
|
*/
|
|
8579
8773
|
'note': string | null;
|
|
8580
8774
|
}
|
|
8775
|
+
/**
|
|
8776
|
+
* Contacts to assign to, or remove from, a tag
|
|
8777
|
+
* @export
|
|
8778
|
+
* @interface ReachV1ContactsTagsManageContactsRequest
|
|
8779
|
+
*/
|
|
8780
|
+
export interface ReachV1ContactsTagsManageContactsRequest {
|
|
8781
|
+
/**
|
|
8782
|
+
* Contacts to apply the change to. Required unless all_contacts is true.
|
|
8783
|
+
* @type {Array<string>}
|
|
8784
|
+
* @memberof ReachV1ContactsTagsManageContactsRequest
|
|
8785
|
+
*/
|
|
8786
|
+
'contact_uuids': Array<string>;
|
|
8787
|
+
/**
|
|
8788
|
+
* Apply to every contact in the profile
|
|
8789
|
+
* @type {boolean}
|
|
8790
|
+
* @memberof ReachV1ContactsTagsManageContactsRequest
|
|
8791
|
+
*/
|
|
8792
|
+
'all_contacts': boolean;
|
|
8793
|
+
}
|
|
8794
|
+
/**
|
|
8795
|
+
* Names to create. Names that already exist in the profile are returned as they are.
|
|
8796
|
+
* @export
|
|
8797
|
+
* @interface ReachV1ContactsTagsStoreRequest
|
|
8798
|
+
*/
|
|
8799
|
+
export interface ReachV1ContactsTagsStoreRequest {
|
|
8800
|
+
/**
|
|
8801
|
+
*
|
|
8802
|
+
* @type {Array<string>}
|
|
8803
|
+
* @memberof ReachV1ContactsTagsStoreRequest
|
|
8804
|
+
*/
|
|
8805
|
+
'names': Array<string>;
|
|
8806
|
+
}
|
|
8581
8807
|
/**
|
|
8582
8808
|
*
|
|
8583
8809
|
* @export
|
|
@@ -8617,6 +8843,19 @@ export const ReachV1ContactsTagsTagResourceTypeEnum = {
|
|
|
8617
8843
|
|
|
8618
8844
|
export type ReachV1ContactsTagsTagResourceTypeEnum = typeof ReachV1ContactsTagsTagResourceTypeEnum[keyof typeof ReachV1ContactsTagsTagResourceTypeEnum];
|
|
8619
8845
|
|
|
8846
|
+
/**
|
|
8847
|
+
* Rename a tag
|
|
8848
|
+
* @export
|
|
8849
|
+
* @interface ReachV1ContactsTagsUpdateRequest
|
|
8850
|
+
*/
|
|
8851
|
+
export interface ReachV1ContactsTagsUpdateRequest {
|
|
8852
|
+
/**
|
|
8853
|
+
* New tag name
|
|
8854
|
+
* @type {string}
|
|
8855
|
+
* @memberof ReachV1ContactsTagsUpdateRequest
|
|
8856
|
+
*/
|
|
8857
|
+
'value': string;
|
|
8858
|
+
}
|
|
8620
8859
|
/**
|
|
8621
8860
|
* Fields to change on a contact. Omitted properties are left untouched.
|
|
8622
8861
|
* @export
|
|
@@ -28943,10 +29182,53 @@ export class ReachProfilesApi extends BaseAPI {
|
|
|
28943
29182
|
export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28944
29183
|
return {
|
|
28945
29184
|
/**
|
|
28946
|
-
*
|
|
29185
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
29186
|
+
* @summary Count profile segment contacts
|
|
29187
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29188
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29189
|
+
* @param {*} [options] Override http request option.
|
|
29190
|
+
* @throws {RequiredError}
|
|
29191
|
+
*/
|
|
29192
|
+
countProfileSegmentContactsV1: async (profileUuid: string, segmentUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29193
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29194
|
+
assertParamExists('countProfileSegmentContactsV1', 'profileUuid', profileUuid)
|
|
29195
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29196
|
+
assertParamExists('countProfileSegmentContactsV1', 'segmentUuid', segmentUuid)
|
|
29197
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/count`
|
|
29198
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29199
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29202
|
+
let baseOptions;
|
|
29203
|
+
if (configuration) {
|
|
29204
|
+
baseOptions = configuration.baseOptions;
|
|
29205
|
+
}
|
|
29206
|
+
|
|
29207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29208
|
+
const localVarHeaderParameter = {} as any;
|
|
29209
|
+
const localVarQueryParameter = {} as any;
|
|
29210
|
+
|
|
29211
|
+
// authentication apiToken required
|
|
29212
|
+
// http bearer authentication required
|
|
29213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29214
|
+
|
|
29215
|
+
|
|
29216
|
+
|
|
29217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29219
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29220
|
+
|
|
29221
|
+
return {
|
|
29222
|
+
url: toPathString(localVarUrlObj),
|
|
29223
|
+
options: localVarRequestOptions,
|
|
29224
|
+
};
|
|
29225
|
+
},
|
|
29226
|
+
/**
|
|
29227
|
+
* 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.
|
|
28947
29228
|
* @summary Create a new contact segment
|
|
28948
29229
|
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
28949
29230
|
* @param {*} [options] Override http request option.
|
|
29231
|
+
* @deprecated
|
|
28950
29232
|
* @throws {RequiredError}
|
|
28951
29233
|
*/
|
|
28952
29234
|
createANewContactSegmentV1: async (reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -28983,17 +29265,20 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
28983
29265
|
};
|
|
28984
29266
|
},
|
|
28985
29267
|
/**
|
|
28986
|
-
*
|
|
28987
|
-
* @summary
|
|
28988
|
-
* @param {string}
|
|
29268
|
+
* 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.
|
|
29269
|
+
* @summary Create a profile segment
|
|
29270
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29271
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
28989
29272
|
* @param {*} [options] Override http request option.
|
|
28990
29273
|
* @throws {RequiredError}
|
|
28991
29274
|
*/
|
|
28992
|
-
|
|
28993
|
-
// verify required parameter '
|
|
28994
|
-
assertParamExists('
|
|
28995
|
-
|
|
28996
|
-
|
|
29275
|
+
createAProfileSegmentV1: async (profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29276
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29277
|
+
assertParamExists('createAProfileSegmentV1', 'profileUuid', profileUuid)
|
|
29278
|
+
// verify required parameter 'reachV1ContactsSegmentsProfileStoreRequest' is not null or undefined
|
|
29279
|
+
assertParamExists('createAProfileSegmentV1', 'reachV1ContactsSegmentsProfileStoreRequest', reachV1ContactsSegmentsProfileStoreRequest)
|
|
29280
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments`
|
|
29281
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
28997
29282
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28998
29283
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28999
29284
|
let baseOptions;
|
|
@@ -29001,7 +29286,7 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29001
29286
|
baseOptions = configuration.baseOptions;
|
|
29002
29287
|
}
|
|
29003
29288
|
|
|
29004
|
-
const localVarRequestOptions = { method: '
|
|
29289
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29005
29290
|
const localVarHeaderParameter = {} as any;
|
|
29006
29291
|
const localVarQueryParameter = {} as any;
|
|
29007
29292
|
|
|
@@ -29011,9 +29296,12 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29011
29296
|
|
|
29012
29297
|
|
|
29013
29298
|
|
|
29299
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29300
|
+
|
|
29014
29301
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29015
29302
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29016
29303
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29304
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsProfileStoreRequest, localVarRequestOptions, configuration)
|
|
29017
29305
|
|
|
29018
29306
|
return {
|
|
29019
29307
|
url: toPathString(localVarUrlObj),
|
|
@@ -29021,21 +29309,19 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29021
29309
|
};
|
|
29022
29310
|
},
|
|
29023
29311
|
/**
|
|
29024
|
-
*
|
|
29025
|
-
* @summary
|
|
29312
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
29313
|
+
* @summary Delete a profile segment
|
|
29026
29314
|
* @param {string} profileUuid Profile uuid parameter
|
|
29027
29315
|
* @param {string} segmentUuid Segment uuid parameter
|
|
29028
|
-
* @param {number} [page] Page number
|
|
29029
|
-
* @param {number} [perPage] Number of items per page
|
|
29030
29316
|
* @param {*} [options] Override http request option.
|
|
29031
29317
|
* @throws {RequiredError}
|
|
29032
29318
|
*/
|
|
29033
|
-
|
|
29319
|
+
deleteAProfileSegmentV1: async (profileUuid: string, segmentUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29034
29320
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
29035
|
-
assertParamExists('
|
|
29321
|
+
assertParamExists('deleteAProfileSegmentV1', 'profileUuid', profileUuid)
|
|
29036
29322
|
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29037
|
-
assertParamExists('
|
|
29038
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}
|
|
29323
|
+
assertParamExists('deleteAProfileSegmentV1', 'segmentUuid', segmentUuid)
|
|
29324
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
|
|
29039
29325
|
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29040
29326
|
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29041
29327
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -29045,7 +29331,7 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29045
29331
|
baseOptions = configuration.baseOptions;
|
|
29046
29332
|
}
|
|
29047
29333
|
|
|
29048
|
-
const localVarRequestOptions = { method: '
|
|
29334
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
29049
29335
|
const localVarHeaderParameter = {} as any;
|
|
29050
29336
|
const localVarQueryParameter = {} as any;
|
|
29051
29337
|
|
|
@@ -29053,14 +29339,6 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29053
29339
|
// http bearer authentication required
|
|
29054
29340
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29055
29341
|
|
|
29056
|
-
if (page !== undefined) {
|
|
29057
|
-
localVarQueryParameter['page'] = page;
|
|
29058
|
-
}
|
|
29059
|
-
|
|
29060
|
-
if (perPage !== undefined) {
|
|
29061
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
29062
|
-
}
|
|
29063
|
-
|
|
29064
29342
|
|
|
29065
29343
|
|
|
29066
29344
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29073,18 +29351,20 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29073
29351
|
};
|
|
29074
29352
|
},
|
|
29075
29353
|
/**
|
|
29076
|
-
*
|
|
29077
|
-
* @summary
|
|
29354
|
+
* 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.
|
|
29355
|
+
* @summary Get profile segment details
|
|
29356
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29078
29357
|
* @param {string} segmentUuid Segment uuid parameter
|
|
29079
|
-
* @param {number} [page] Page number
|
|
29080
|
-
* @param {number} [perPage] Number of items per page
|
|
29081
29358
|
* @param {*} [options] Override http request option.
|
|
29082
29359
|
* @throws {RequiredError}
|
|
29083
29360
|
*/
|
|
29084
|
-
|
|
29361
|
+
getProfileSegmentDetailsV1: async (profileUuid: string, segmentUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29362
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29363
|
+
assertParamExists('getProfileSegmentDetailsV1', 'profileUuid', profileUuid)
|
|
29085
29364
|
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29086
|
-
assertParamExists('
|
|
29087
|
-
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}
|
|
29365
|
+
assertParamExists('getProfileSegmentDetailsV1', 'segmentUuid', segmentUuid)
|
|
29366
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
|
|
29367
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29088
29368
|
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29089
29369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29090
29370
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -29101,14 +29381,6 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29101
29381
|
// http bearer authentication required
|
|
29102
29382
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29103
29383
|
|
|
29104
|
-
if (page !== undefined) {
|
|
29105
|
-
localVarQueryParameter['page'] = page;
|
|
29106
|
-
}
|
|
29107
|
-
|
|
29108
|
-
if (perPage !== undefined) {
|
|
29109
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
29110
|
-
}
|
|
29111
|
-
|
|
29112
29384
|
|
|
29113
29385
|
|
|
29114
29386
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29121,13 +29393,18 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29121
29393
|
};
|
|
29122
29394
|
},
|
|
29123
29395
|
/**
|
|
29124
|
-
* Get
|
|
29125
|
-
* @summary
|
|
29396
|
+
* 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.
|
|
29397
|
+
* @summary Get segment details
|
|
29398
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29126
29399
|
* @param {*} [options] Override http request option.
|
|
29400
|
+
* @deprecated
|
|
29127
29401
|
* @throws {RequiredError}
|
|
29128
29402
|
*/
|
|
29129
|
-
|
|
29130
|
-
|
|
29403
|
+
getSegmentDetailsV1: async (segmentUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29404
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29405
|
+
assertParamExists('getSegmentDetailsV1', 'segmentUuid', segmentUuid)
|
|
29406
|
+
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}`
|
|
29407
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29131
29408
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29132
29409
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29133
29410
|
let baseOptions;
|
|
@@ -29149,6 +29426,1075 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29149
29426
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29150
29427
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29151
29428
|
|
|
29429
|
+
return {
|
|
29430
|
+
url: toPathString(localVarUrlObj),
|
|
29431
|
+
options: localVarRequestOptions,
|
|
29432
|
+
};
|
|
29433
|
+
},
|
|
29434
|
+
/**
|
|
29435
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
29436
|
+
* @summary List profile segment contacts
|
|
29437
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29438
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29439
|
+
* @param {number} [page] Page number
|
|
29440
|
+
* @param {number} [perPage] Number of items per page
|
|
29441
|
+
* @param {*} [options] Override http request option.
|
|
29442
|
+
* @throws {RequiredError}
|
|
29443
|
+
*/
|
|
29444
|
+
listProfileSegmentContactsV1: async (profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29445
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29446
|
+
assertParamExists('listProfileSegmentContactsV1', 'profileUuid', profileUuid)
|
|
29447
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29448
|
+
assertParamExists('listProfileSegmentContactsV1', 'segmentUuid', segmentUuid)
|
|
29449
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}/contacts`
|
|
29450
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29451
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29452
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29453
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29454
|
+
let baseOptions;
|
|
29455
|
+
if (configuration) {
|
|
29456
|
+
baseOptions = configuration.baseOptions;
|
|
29457
|
+
}
|
|
29458
|
+
|
|
29459
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29460
|
+
const localVarHeaderParameter = {} as any;
|
|
29461
|
+
const localVarQueryParameter = {} as any;
|
|
29462
|
+
|
|
29463
|
+
// authentication apiToken required
|
|
29464
|
+
// http bearer authentication required
|
|
29465
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29466
|
+
|
|
29467
|
+
if (page !== undefined) {
|
|
29468
|
+
localVarQueryParameter['page'] = page;
|
|
29469
|
+
}
|
|
29470
|
+
|
|
29471
|
+
if (perPage !== undefined) {
|
|
29472
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
29473
|
+
}
|
|
29474
|
+
|
|
29475
|
+
|
|
29476
|
+
|
|
29477
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29478
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29479
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29480
|
+
|
|
29481
|
+
return {
|
|
29482
|
+
url: toPathString(localVarUrlObj),
|
|
29483
|
+
options: localVarRequestOptions,
|
|
29484
|
+
};
|
|
29485
|
+
},
|
|
29486
|
+
/**
|
|
29487
|
+
* 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.
|
|
29488
|
+
* @summary List profile segments
|
|
29489
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29490
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
29491
|
+
* @param {number} [page] Page number
|
|
29492
|
+
* @param {number} [perPage] Number of items per page
|
|
29493
|
+
* @param {*} [options] Override http request option.
|
|
29494
|
+
* @throws {RequiredError}
|
|
29495
|
+
*/
|
|
29496
|
+
listProfileSegmentsV1: async (profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29497
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29498
|
+
assertParamExists('listProfileSegmentsV1', 'profileUuid', profileUuid)
|
|
29499
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments`
|
|
29500
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
29501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29502
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29503
|
+
let baseOptions;
|
|
29504
|
+
if (configuration) {
|
|
29505
|
+
baseOptions = configuration.baseOptions;
|
|
29506
|
+
}
|
|
29507
|
+
|
|
29508
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29509
|
+
const localVarHeaderParameter = {} as any;
|
|
29510
|
+
const localVarQueryParameter = {} as any;
|
|
29511
|
+
|
|
29512
|
+
// authentication apiToken required
|
|
29513
|
+
// http bearer authentication required
|
|
29514
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29515
|
+
|
|
29516
|
+
if (countType !== undefined) {
|
|
29517
|
+
localVarQueryParameter['count_type'] = countType;
|
|
29518
|
+
}
|
|
29519
|
+
|
|
29520
|
+
if (page !== undefined) {
|
|
29521
|
+
localVarQueryParameter['page'] = page;
|
|
29522
|
+
}
|
|
29523
|
+
|
|
29524
|
+
if (perPage !== undefined) {
|
|
29525
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
29526
|
+
}
|
|
29527
|
+
|
|
29528
|
+
|
|
29529
|
+
|
|
29530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29532
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29533
|
+
|
|
29534
|
+
return {
|
|
29535
|
+
url: toPathString(localVarUrlObj),
|
|
29536
|
+
options: localVarRequestOptions,
|
|
29537
|
+
};
|
|
29538
|
+
},
|
|
29539
|
+
/**
|
|
29540
|
+
* 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.
|
|
29541
|
+
* @summary List segment contacts
|
|
29542
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29543
|
+
* @param {number} [page] Page number
|
|
29544
|
+
* @param {number} [perPage] Number of items per page
|
|
29545
|
+
* @param {*} [options] Override http request option.
|
|
29546
|
+
* @deprecated
|
|
29547
|
+
* @throws {RequiredError}
|
|
29548
|
+
*/
|
|
29549
|
+
listSegmentContactsV1: async (segmentUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29550
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29551
|
+
assertParamExists('listSegmentContactsV1', 'segmentUuid', segmentUuid)
|
|
29552
|
+
const localVarPath = `/api/reach/v1/segmentation/segments/{segmentUuid}/contacts`
|
|
29553
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29554
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29555
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29556
|
+
let baseOptions;
|
|
29557
|
+
if (configuration) {
|
|
29558
|
+
baseOptions = configuration.baseOptions;
|
|
29559
|
+
}
|
|
29560
|
+
|
|
29561
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29562
|
+
const localVarHeaderParameter = {} as any;
|
|
29563
|
+
const localVarQueryParameter = {} as any;
|
|
29564
|
+
|
|
29565
|
+
// authentication apiToken required
|
|
29566
|
+
// http bearer authentication required
|
|
29567
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29568
|
+
|
|
29569
|
+
if (page !== undefined) {
|
|
29570
|
+
localVarQueryParameter['page'] = page;
|
|
29571
|
+
}
|
|
29572
|
+
|
|
29573
|
+
if (perPage !== undefined) {
|
|
29574
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
29575
|
+
}
|
|
29576
|
+
|
|
29577
|
+
|
|
29578
|
+
|
|
29579
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29580
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29581
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29582
|
+
|
|
29583
|
+
return {
|
|
29584
|
+
url: toPathString(localVarUrlObj),
|
|
29585
|
+
options: localVarRequestOptions,
|
|
29586
|
+
};
|
|
29587
|
+
},
|
|
29588
|
+
/**
|
|
29589
|
+
* 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.
|
|
29590
|
+
* @summary List segments
|
|
29591
|
+
* @param {*} [options] Override http request option.
|
|
29592
|
+
* @deprecated
|
|
29593
|
+
* @throws {RequiredError}
|
|
29594
|
+
*/
|
|
29595
|
+
listSegmentsV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29596
|
+
const localVarPath = `/api/reach/v1/segmentation/segments`;
|
|
29597
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29598
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29599
|
+
let baseOptions;
|
|
29600
|
+
if (configuration) {
|
|
29601
|
+
baseOptions = configuration.baseOptions;
|
|
29602
|
+
}
|
|
29603
|
+
|
|
29604
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29605
|
+
const localVarHeaderParameter = {} as any;
|
|
29606
|
+
const localVarQueryParameter = {} as any;
|
|
29607
|
+
|
|
29608
|
+
// authentication apiToken required
|
|
29609
|
+
// http bearer authentication required
|
|
29610
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29611
|
+
|
|
29612
|
+
|
|
29613
|
+
|
|
29614
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29616
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29617
|
+
|
|
29618
|
+
return {
|
|
29619
|
+
url: toPathString(localVarUrlObj),
|
|
29620
|
+
options: localVarRequestOptions,
|
|
29621
|
+
};
|
|
29622
|
+
},
|
|
29623
|
+
/**
|
|
29624
|
+
* 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.
|
|
29625
|
+
* @summary Update a profile segment
|
|
29626
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29627
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29628
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
29629
|
+
* @param {*} [options] Override http request option.
|
|
29630
|
+
* @throws {RequiredError}
|
|
29631
|
+
*/
|
|
29632
|
+
updateAProfileSegmentV1: async (profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29633
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29634
|
+
assertParamExists('updateAProfileSegmentV1', 'profileUuid', profileUuid)
|
|
29635
|
+
// verify required parameter 'segmentUuid' is not null or undefined
|
|
29636
|
+
assertParamExists('updateAProfileSegmentV1', 'segmentUuid', segmentUuid)
|
|
29637
|
+
// verify required parameter 'reachV1ContactsSegmentsProfileUpdateRequest' is not null or undefined
|
|
29638
|
+
assertParamExists('updateAProfileSegmentV1', 'reachV1ContactsSegmentsProfileUpdateRequest', reachV1ContactsSegmentsProfileUpdateRequest)
|
|
29639
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/segmentation/segments/{segmentUuid}`
|
|
29640
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29641
|
+
.replace(`{${"segmentUuid"}}`, encodeURIComponent(String(segmentUuid)));
|
|
29642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29643
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29644
|
+
let baseOptions;
|
|
29645
|
+
if (configuration) {
|
|
29646
|
+
baseOptions = configuration.baseOptions;
|
|
29647
|
+
}
|
|
29648
|
+
|
|
29649
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
29650
|
+
const localVarHeaderParameter = {} as any;
|
|
29651
|
+
const localVarQueryParameter = {} as any;
|
|
29652
|
+
|
|
29653
|
+
// authentication apiToken required
|
|
29654
|
+
// http bearer authentication required
|
|
29655
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29656
|
+
|
|
29657
|
+
|
|
29658
|
+
|
|
29659
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29660
|
+
|
|
29661
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29662
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29663
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29664
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsSegmentsProfileUpdateRequest, localVarRequestOptions, configuration)
|
|
29665
|
+
|
|
29666
|
+
return {
|
|
29667
|
+
url: toPathString(localVarUrlObj),
|
|
29668
|
+
options: localVarRequestOptions,
|
|
29669
|
+
};
|
|
29670
|
+
},
|
|
29671
|
+
}
|
|
29672
|
+
};
|
|
29673
|
+
|
|
29674
|
+
/**
|
|
29675
|
+
* ReachSegmentsApi - functional programming interface
|
|
29676
|
+
* @export
|
|
29677
|
+
*/
|
|
29678
|
+
export const ReachSegmentsApiFp = function(configuration?: Configuration) {
|
|
29679
|
+
const localVarAxiosParamCreator = ReachSegmentsApiAxiosParamCreator(configuration)
|
|
29680
|
+
return {
|
|
29681
|
+
/**
|
|
29682
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
29683
|
+
* @summary Count profile segment contacts
|
|
29684
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29685
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29686
|
+
* @param {*} [options] Override http request option.
|
|
29687
|
+
* @throws {RequiredError}
|
|
29688
|
+
*/
|
|
29689
|
+
async countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource>> {
|
|
29690
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.countProfileSegmentContactsV1(profileUuid, segmentUuid, options);
|
|
29691
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.countProfileSegmentContactsV1']?.[0]?.url;
|
|
29692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29693
|
+
},
|
|
29694
|
+
/**
|
|
29695
|
+
* 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.
|
|
29696
|
+
* @summary Create a new contact segment
|
|
29697
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
29698
|
+
* @param {*} [options] Override http request option.
|
|
29699
|
+
* @deprecated
|
|
29700
|
+
* @throws {RequiredError}
|
|
29701
|
+
*/
|
|
29702
|
+
async createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
|
|
29703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options);
|
|
29704
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.createANewContactSegmentV1']?.[0]?.url;
|
|
29705
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29706
|
+
},
|
|
29707
|
+
/**
|
|
29708
|
+
* 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.
|
|
29709
|
+
* @summary Create a profile segment
|
|
29710
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29711
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
29712
|
+
* @param {*} [options] Override http request option.
|
|
29713
|
+
* @throws {RequiredError}
|
|
29714
|
+
*/
|
|
29715
|
+
async createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
|
|
29716
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options);
|
|
29717
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.createAProfileSegmentV1']?.[0]?.url;
|
|
29718
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29719
|
+
},
|
|
29720
|
+
/**
|
|
29721
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
29722
|
+
* @summary Delete a profile segment
|
|
29723
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29724
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29725
|
+
* @param {*} [options] Override http request option.
|
|
29726
|
+
* @throws {RequiredError}
|
|
29727
|
+
*/
|
|
29728
|
+
async deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
29729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAProfileSegmentV1(profileUuid, segmentUuid, options);
|
|
29730
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.deleteAProfileSegmentV1']?.[0]?.url;
|
|
29731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29732
|
+
},
|
|
29733
|
+
/**
|
|
29734
|
+
* 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.
|
|
29735
|
+
* @summary Get profile segment details
|
|
29736
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29737
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29738
|
+
* @param {*} [options] Override http request option.
|
|
29739
|
+
* @throws {RequiredError}
|
|
29740
|
+
*/
|
|
29741
|
+
async getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
|
|
29742
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileSegmentDetailsV1(profileUuid, segmentUuid, options);
|
|
29743
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.getProfileSegmentDetailsV1']?.[0]?.url;
|
|
29744
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29745
|
+
},
|
|
29746
|
+
/**
|
|
29747
|
+
* 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.
|
|
29748
|
+
* @summary Get segment details
|
|
29749
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29750
|
+
* @param {*} [options] Override http request option.
|
|
29751
|
+
* @deprecated
|
|
29752
|
+
* @throws {RequiredError}
|
|
29753
|
+
*/
|
|
29754
|
+
async getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
|
|
29755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSegmentDetailsV1(segmentUuid, options);
|
|
29756
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.getSegmentDetailsV1']?.[0]?.url;
|
|
29757
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29758
|
+
},
|
|
29759
|
+
/**
|
|
29760
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
29761
|
+
* @summary List profile segment contacts
|
|
29762
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29763
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29764
|
+
* @param {number} [page] Page number
|
|
29765
|
+
* @param {number} [perPage] Number of items per page
|
|
29766
|
+
* @param {*} [options] Override http request option.
|
|
29767
|
+
* @throws {RequiredError}
|
|
29768
|
+
*/
|
|
29769
|
+
async listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
|
|
29770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options);
|
|
29771
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listProfileSegmentContactsV1']?.[0]?.url;
|
|
29772
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29773
|
+
},
|
|
29774
|
+
/**
|
|
29775
|
+
* 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.
|
|
29776
|
+
* @summary List profile segments
|
|
29777
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29778
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
29779
|
+
* @param {number} [page] Page number
|
|
29780
|
+
* @param {number} [perPage] Number of items per page
|
|
29781
|
+
* @param {*} [options] Override http request option.
|
|
29782
|
+
* @throws {RequiredError}
|
|
29783
|
+
*/
|
|
29784
|
+
async listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentsV1200Response>> {
|
|
29785
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileSegmentsV1(profileUuid, countType, page, perPage, options);
|
|
29786
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listProfileSegmentsV1']?.[0]?.url;
|
|
29787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29788
|
+
},
|
|
29789
|
+
/**
|
|
29790
|
+
* 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.
|
|
29791
|
+
* @summary List segment contacts
|
|
29792
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29793
|
+
* @param {number} [page] Page number
|
|
29794
|
+
* @param {number} [perPage] Number of items per page
|
|
29795
|
+
* @param {*} [options] Override http request option.
|
|
29796
|
+
* @deprecated
|
|
29797
|
+
* @throws {RequiredError}
|
|
29798
|
+
*/
|
|
29799
|
+
async listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileSegmentContactsV1200Response>> {
|
|
29800
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentContactsV1(segmentUuid, page, perPage, options);
|
|
29801
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentContactsV1']?.[0]?.url;
|
|
29802
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29803
|
+
},
|
|
29804
|
+
/**
|
|
29805
|
+
* 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.
|
|
29806
|
+
* @summary List segments
|
|
29807
|
+
* @param {*} [options] Override http request option.
|
|
29808
|
+
* @deprecated
|
|
29809
|
+
* @throws {RequiredError}
|
|
29810
|
+
*/
|
|
29811
|
+
async listSegmentsV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>>> {
|
|
29812
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSegmentsV1(options);
|
|
29813
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.listSegmentsV1']?.[0]?.url;
|
|
29814
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29815
|
+
},
|
|
29816
|
+
/**
|
|
29817
|
+
* 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.
|
|
29818
|
+
* @summary Update a profile segment
|
|
29819
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29820
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29821
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
29822
|
+
* @param {*} [options] Override http request option.
|
|
29823
|
+
* @throws {RequiredError}
|
|
29824
|
+
*/
|
|
29825
|
+
async updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsSegmentsSegmentResource>> {
|
|
29826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options);
|
|
29827
|
+
const localVarOperationServerBasePath = operationServerMap['ReachSegmentsApi.updateAProfileSegmentV1']?.[0]?.url;
|
|
29828
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29829
|
+
},
|
|
29830
|
+
}
|
|
29831
|
+
};
|
|
29832
|
+
|
|
29833
|
+
/**
|
|
29834
|
+
* ReachSegmentsApi - factory interface
|
|
29835
|
+
* @export
|
|
29836
|
+
*/
|
|
29837
|
+
export const ReachSegmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
29838
|
+
const localVarFp = ReachSegmentsApiFp(configuration)
|
|
29839
|
+
return {
|
|
29840
|
+
/**
|
|
29841
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
29842
|
+
* @summary Count profile segment contacts
|
|
29843
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29844
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29845
|
+
* @param {*} [options] Override http request option.
|
|
29846
|
+
* @throws {RequiredError}
|
|
29847
|
+
*/
|
|
29848
|
+
countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentContactsCountResource> {
|
|
29849
|
+
return localVarFp.countProfileSegmentContactsV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
|
|
29850
|
+
},
|
|
29851
|
+
/**
|
|
29852
|
+
* 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.
|
|
29853
|
+
* @summary Create a new contact segment
|
|
29854
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
29855
|
+
* @param {*} [options] Override http request option.
|
|
29856
|
+
* @deprecated
|
|
29857
|
+
* @throws {RequiredError}
|
|
29858
|
+
*/
|
|
29859
|
+
createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
|
|
29860
|
+
return localVarFp.createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(axios, basePath));
|
|
29861
|
+
},
|
|
29862
|
+
/**
|
|
29863
|
+
* 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.
|
|
29864
|
+
* @summary Create a profile segment
|
|
29865
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29866
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
29867
|
+
* @param {*} [options] Override http request option.
|
|
29868
|
+
* @throws {RequiredError}
|
|
29869
|
+
*/
|
|
29870
|
+
createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
|
|
29871
|
+
return localVarFp.createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options).then((request) => request(axios, basePath));
|
|
29872
|
+
},
|
|
29873
|
+
/**
|
|
29874
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
29875
|
+
* @summary Delete a profile segment
|
|
29876
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29877
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29878
|
+
* @param {*} [options] Override http request option.
|
|
29879
|
+
* @throws {RequiredError}
|
|
29880
|
+
*/
|
|
29881
|
+
deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
29882
|
+
return localVarFp.deleteAProfileSegmentV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
|
|
29883
|
+
},
|
|
29884
|
+
/**
|
|
29885
|
+
* 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.
|
|
29886
|
+
* @summary Get profile segment details
|
|
29887
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29888
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29889
|
+
* @param {*} [options] Override http request option.
|
|
29890
|
+
* @throws {RequiredError}
|
|
29891
|
+
*/
|
|
29892
|
+
getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
|
|
29893
|
+
return localVarFp.getProfileSegmentDetailsV1(profileUuid, segmentUuid, options).then((request) => request(axios, basePath));
|
|
29894
|
+
},
|
|
29895
|
+
/**
|
|
29896
|
+
* 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.
|
|
29897
|
+
* @summary Get segment details
|
|
29898
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29899
|
+
* @param {*} [options] Override http request option.
|
|
29900
|
+
* @deprecated
|
|
29901
|
+
* @throws {RequiredError}
|
|
29902
|
+
*/
|
|
29903
|
+
getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
|
|
29904
|
+
return localVarFp.getSegmentDetailsV1(segmentUuid, options).then((request) => request(axios, basePath));
|
|
29905
|
+
},
|
|
29906
|
+
/**
|
|
29907
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
29908
|
+
* @summary List profile segment contacts
|
|
29909
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29910
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29911
|
+
* @param {number} [page] Page number
|
|
29912
|
+
* @param {number} [perPage] Number of items per page
|
|
29913
|
+
* @param {*} [options] Override http request option.
|
|
29914
|
+
* @throws {RequiredError}
|
|
29915
|
+
*/
|
|
29916
|
+
listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
|
|
29917
|
+
return localVarFp.listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
29918
|
+
},
|
|
29919
|
+
/**
|
|
29920
|
+
* 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.
|
|
29921
|
+
* @summary List profile segments
|
|
29922
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29923
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
29924
|
+
* @param {number} [page] Page number
|
|
29925
|
+
* @param {number} [perPage] Number of items per page
|
|
29926
|
+
* @param {*} [options] Override http request option.
|
|
29927
|
+
* @throws {RequiredError}
|
|
29928
|
+
*/
|
|
29929
|
+
listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentsV1200Response> {
|
|
29930
|
+
return localVarFp.listProfileSegmentsV1(profileUuid, countType, page, perPage, options).then((request) => request(axios, basePath));
|
|
29931
|
+
},
|
|
29932
|
+
/**
|
|
29933
|
+
* 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.
|
|
29934
|
+
* @summary List segment contacts
|
|
29935
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29936
|
+
* @param {number} [page] Page number
|
|
29937
|
+
* @param {number} [perPage] Number of items per page
|
|
29938
|
+
* @param {*} [options] Override http request option.
|
|
29939
|
+
* @deprecated
|
|
29940
|
+
* @throws {RequiredError}
|
|
29941
|
+
*/
|
|
29942
|
+
listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileSegmentContactsV1200Response> {
|
|
29943
|
+
return localVarFp.listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
29944
|
+
},
|
|
29945
|
+
/**
|
|
29946
|
+
* 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.
|
|
29947
|
+
* @summary List segments
|
|
29948
|
+
* @param {*} [options] Override http request option.
|
|
29949
|
+
* @deprecated
|
|
29950
|
+
* @throws {RequiredError}
|
|
29951
|
+
*/
|
|
29952
|
+
listSegmentsV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsSegmentsContactSegmentResource>> {
|
|
29953
|
+
return localVarFp.listSegmentsV1(options).then((request) => request(axios, basePath));
|
|
29954
|
+
},
|
|
29955
|
+
/**
|
|
29956
|
+
* 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.
|
|
29957
|
+
* @summary Update a profile segment
|
|
29958
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29959
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29960
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
29961
|
+
* @param {*} [options] Override http request option.
|
|
29962
|
+
* @throws {RequiredError}
|
|
29963
|
+
*/
|
|
29964
|
+
updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsSegmentsSegmentResource> {
|
|
29965
|
+
return localVarFp.updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options).then((request) => request(axios, basePath));
|
|
29966
|
+
},
|
|
29967
|
+
};
|
|
29968
|
+
};
|
|
29969
|
+
|
|
29970
|
+
/**
|
|
29971
|
+
* ReachSegmentsApi - object-oriented interface
|
|
29972
|
+
* @export
|
|
29973
|
+
* @class ReachSegmentsApi
|
|
29974
|
+
* @extends {BaseAPI}
|
|
29975
|
+
*/
|
|
29976
|
+
export class ReachSegmentsApi extends BaseAPI {
|
|
29977
|
+
/**
|
|
29978
|
+
* Count the contacts currently matching a segment without listing them. Cheaper than paging through the segment contacts endpoint when only the size is needed.
|
|
29979
|
+
* @summary Count profile segment contacts
|
|
29980
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29981
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
29982
|
+
* @param {*} [options] Override http request option.
|
|
29983
|
+
* @throws {RequiredError}
|
|
29984
|
+
* @memberof ReachSegmentsApi
|
|
29985
|
+
*/
|
|
29986
|
+
public countProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) {
|
|
29987
|
+
return ReachSegmentsApiFp(this.configuration).countProfileSegmentContactsV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
29988
|
+
}
|
|
29989
|
+
|
|
29990
|
+
/**
|
|
29991
|
+
* 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.
|
|
29992
|
+
* @summary Create a new contact segment
|
|
29993
|
+
* @param {ReachV1ContactsSegmentsStoreRequest} reachV1ContactsSegmentsStoreRequest
|
|
29994
|
+
* @param {*} [options] Override http request option.
|
|
29995
|
+
* @deprecated
|
|
29996
|
+
* @throws {RequiredError}
|
|
29997
|
+
* @memberof ReachSegmentsApi
|
|
29998
|
+
*/
|
|
29999
|
+
public createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest: ReachV1ContactsSegmentsStoreRequest, options?: RawAxiosRequestConfig) {
|
|
30000
|
+
return ReachSegmentsApiFp(this.configuration).createANewContactSegmentV1(reachV1ContactsSegmentsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30001
|
+
}
|
|
30002
|
+
|
|
30003
|
+
/**
|
|
30004
|
+
* 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.
|
|
30005
|
+
* @summary Create a profile segment
|
|
30006
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30007
|
+
* @param {ReachV1ContactsSegmentsProfileStoreRequest} reachV1ContactsSegmentsProfileStoreRequest
|
|
30008
|
+
* @param {*} [options] Override http request option.
|
|
30009
|
+
* @throws {RequiredError}
|
|
30010
|
+
* @memberof ReachSegmentsApi
|
|
30011
|
+
*/
|
|
30012
|
+
public createAProfileSegmentV1(profileUuid: string, reachV1ContactsSegmentsProfileStoreRequest: ReachV1ContactsSegmentsProfileStoreRequest, options?: RawAxiosRequestConfig) {
|
|
30013
|
+
return ReachSegmentsApiFp(this.configuration).createAProfileSegmentV1(profileUuid, reachV1ContactsSegmentsProfileStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30014
|
+
}
|
|
30015
|
+
|
|
30016
|
+
/**
|
|
30017
|
+
* Delete a segment. Only the segment definition is removed. The contacts that matched it are left untouched.
|
|
30018
|
+
* @summary Delete a profile segment
|
|
30019
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30020
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
30021
|
+
* @param {*} [options] Override http request option.
|
|
30022
|
+
* @throws {RequiredError}
|
|
30023
|
+
* @memberof ReachSegmentsApi
|
|
30024
|
+
*/
|
|
30025
|
+
public deleteAProfileSegmentV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) {
|
|
30026
|
+
return ReachSegmentsApiFp(this.configuration).deleteAProfileSegmentV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30027
|
+
}
|
|
30028
|
+
|
|
30029
|
+
/**
|
|
30030
|
+
* 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.
|
|
30031
|
+
* @summary Get profile segment details
|
|
30032
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30033
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
30034
|
+
* @param {*} [options] Override http request option.
|
|
30035
|
+
* @throws {RequiredError}
|
|
30036
|
+
* @memberof ReachSegmentsApi
|
|
30037
|
+
*/
|
|
30038
|
+
public getProfileSegmentDetailsV1(profileUuid: string, segmentUuid: string, options?: RawAxiosRequestConfig) {
|
|
30039
|
+
return ReachSegmentsApiFp(this.configuration).getProfileSegmentDetailsV1(profileUuid, segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30040
|
+
}
|
|
30041
|
+
|
|
30042
|
+
/**
|
|
30043
|
+
* 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.
|
|
30044
|
+
* @summary Get segment details
|
|
30045
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
30046
|
+
* @param {*} [options] Override http request option.
|
|
30047
|
+
* @deprecated
|
|
30048
|
+
* @throws {RequiredError}
|
|
30049
|
+
* @memberof ReachSegmentsApi
|
|
30050
|
+
*/
|
|
30051
|
+
public getSegmentDetailsV1(segmentUuid: string, options?: RawAxiosRequestConfig) {
|
|
30052
|
+
return ReachSegmentsApiFp(this.configuration).getSegmentDetailsV1(segmentUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30053
|
+
}
|
|
30054
|
+
|
|
30055
|
+
/**
|
|
30056
|
+
* Retrieve contacts associated with a specific segment for a given profile. This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID, scoped to a specific profile.
|
|
30057
|
+
* @summary List profile segment contacts
|
|
30058
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30059
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
30060
|
+
* @param {number} [page] Page number
|
|
30061
|
+
* @param {number} [perPage] Number of items per page
|
|
30062
|
+
* @param {*} [options] Override http request option.
|
|
30063
|
+
* @throws {RequiredError}
|
|
30064
|
+
* @memberof ReachSegmentsApi
|
|
30065
|
+
*/
|
|
30066
|
+
public listProfileSegmentContactsV1(profileUuid: string, segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
30067
|
+
return ReachSegmentsApiFp(this.configuration).listProfileSegmentContactsV1(profileUuid, segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
30068
|
+
}
|
|
30069
|
+
|
|
30070
|
+
/**
|
|
30071
|
+
* 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.
|
|
30072
|
+
* @summary List profile segments
|
|
30073
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30074
|
+
* @param {ListProfileSegmentsV1CountTypeEnum} [countType] Which matching contacts to count for each segment
|
|
30075
|
+
* @param {number} [page] Page number
|
|
30076
|
+
* @param {number} [perPage] Number of items per page
|
|
30077
|
+
* @param {*} [options] Override http request option.
|
|
30078
|
+
* @throws {RequiredError}
|
|
30079
|
+
* @memberof ReachSegmentsApi
|
|
30080
|
+
*/
|
|
30081
|
+
public listProfileSegmentsV1(profileUuid: string, countType?: ListProfileSegmentsV1CountTypeEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
30082
|
+
return ReachSegmentsApiFp(this.configuration).listProfileSegmentsV1(profileUuid, countType, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
30083
|
+
}
|
|
30084
|
+
|
|
30085
|
+
/**
|
|
30086
|
+
* 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.
|
|
30087
|
+
* @summary List segment contacts
|
|
30088
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
30089
|
+
* @param {number} [page] Page number
|
|
30090
|
+
* @param {number} [perPage] Number of items per page
|
|
30091
|
+
* @param {*} [options] Override http request option.
|
|
30092
|
+
* @deprecated
|
|
30093
|
+
* @throws {RequiredError}
|
|
30094
|
+
* @memberof ReachSegmentsApi
|
|
30095
|
+
*/
|
|
30096
|
+
public listSegmentContactsV1(segmentUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
30097
|
+
return ReachSegmentsApiFp(this.configuration).listSegmentContactsV1(segmentUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
30098
|
+
}
|
|
30099
|
+
|
|
30100
|
+
/**
|
|
30101
|
+
* 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.
|
|
30102
|
+
* @summary List segments
|
|
30103
|
+
* @param {*} [options] Override http request option.
|
|
30104
|
+
* @deprecated
|
|
30105
|
+
* @throws {RequiredError}
|
|
30106
|
+
* @memberof ReachSegmentsApi
|
|
30107
|
+
*/
|
|
30108
|
+
public listSegmentsV1(options?: RawAxiosRequestConfig) {
|
|
30109
|
+
return ReachSegmentsApiFp(this.configuration).listSegmentsV1(options).then((request) => request(this.axios, this.basePath));
|
|
30110
|
+
}
|
|
30111
|
+
|
|
30112
|
+
/**
|
|
30113
|
+
* 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.
|
|
30114
|
+
* @summary Update a profile segment
|
|
30115
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30116
|
+
* @param {string} segmentUuid Segment uuid parameter
|
|
30117
|
+
* @param {ReachV1ContactsSegmentsProfileUpdateRequest} reachV1ContactsSegmentsProfileUpdateRequest
|
|
30118
|
+
* @param {*} [options] Override http request option.
|
|
30119
|
+
* @throws {RequiredError}
|
|
30120
|
+
* @memberof ReachSegmentsApi
|
|
30121
|
+
*/
|
|
30122
|
+
public updateAProfileSegmentV1(profileUuid: string, segmentUuid: string, reachV1ContactsSegmentsProfileUpdateRequest: ReachV1ContactsSegmentsProfileUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
30123
|
+
return ReachSegmentsApiFp(this.configuration).updateAProfileSegmentV1(profileUuid, segmentUuid, reachV1ContactsSegmentsProfileUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30124
|
+
}
|
|
30125
|
+
}
|
|
30126
|
+
|
|
30127
|
+
/**
|
|
30128
|
+
* @export
|
|
30129
|
+
*/
|
|
30130
|
+
export const ListProfileSegmentsV1CountTypeEnum = {
|
|
30131
|
+
All: 'all',
|
|
30132
|
+
Subscribed: 'subscribed'
|
|
30133
|
+
} as const;
|
|
30134
|
+
export type ListProfileSegmentsV1CountTypeEnum = typeof ListProfileSegmentsV1CountTypeEnum[keyof typeof ListProfileSegmentsV1CountTypeEnum];
|
|
30135
|
+
|
|
30136
|
+
|
|
30137
|
+
/**
|
|
30138
|
+
* ReachTagsApi - axios parameter creator
|
|
30139
|
+
* @export
|
|
30140
|
+
*/
|
|
30141
|
+
export const ReachTagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30142
|
+
return {
|
|
30143
|
+
/**
|
|
30144
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
30145
|
+
* @summary Assign a contact to a tag
|
|
30146
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30147
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30148
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30149
|
+
* @param {*} [options] Override http request option.
|
|
30150
|
+
* @throws {RequiredError}
|
|
30151
|
+
*/
|
|
30152
|
+
assignAContactToATagV1: async (profileUuid: string, tagUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30153
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30154
|
+
assertParamExists('assignAContactToATagV1', 'profileUuid', profileUuid)
|
|
30155
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
30156
|
+
assertParamExists('assignAContactToATagV1', 'tagUuid', tagUuid)
|
|
30157
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
30158
|
+
assertParamExists('assignAContactToATagV1', 'contactUuid', contactUuid)
|
|
30159
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
|
|
30160
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
30161
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
|
|
30162
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
30163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30165
|
+
let baseOptions;
|
|
30166
|
+
if (configuration) {
|
|
30167
|
+
baseOptions = configuration.baseOptions;
|
|
30168
|
+
}
|
|
30169
|
+
|
|
30170
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30171
|
+
const localVarHeaderParameter = {} as any;
|
|
30172
|
+
const localVarQueryParameter = {} as any;
|
|
30173
|
+
|
|
30174
|
+
// authentication apiToken required
|
|
30175
|
+
// http bearer authentication required
|
|
30176
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30177
|
+
|
|
30178
|
+
|
|
30179
|
+
|
|
30180
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30181
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30182
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30183
|
+
|
|
30184
|
+
return {
|
|
30185
|
+
url: toPathString(localVarUrlObj),
|
|
30186
|
+
options: localVarRequestOptions,
|
|
30187
|
+
};
|
|
30188
|
+
},
|
|
30189
|
+
/**
|
|
30190
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
30191
|
+
* @summary Assign contacts to a tag
|
|
30192
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30193
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30194
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30195
|
+
* @param {*} [options] Override http request option.
|
|
30196
|
+
* @throws {RequiredError}
|
|
30197
|
+
*/
|
|
30198
|
+
assignContactsToATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30199
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30200
|
+
assertParamExists('assignContactsToATagV1', 'profileUuid', profileUuid)
|
|
30201
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
30202
|
+
assertParamExists('assignContactsToATagV1', 'tagUuid', tagUuid)
|
|
30203
|
+
// verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
|
|
30204
|
+
assertParamExists('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest)
|
|
30205
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
|
|
30206
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
30207
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
30208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30210
|
+
let baseOptions;
|
|
30211
|
+
if (configuration) {
|
|
30212
|
+
baseOptions = configuration.baseOptions;
|
|
30213
|
+
}
|
|
30214
|
+
|
|
30215
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30216
|
+
const localVarHeaderParameter = {} as any;
|
|
30217
|
+
const localVarQueryParameter = {} as any;
|
|
30218
|
+
|
|
30219
|
+
// authentication apiToken required
|
|
30220
|
+
// http bearer authentication required
|
|
30221
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30222
|
+
|
|
30223
|
+
|
|
30224
|
+
|
|
30225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30226
|
+
|
|
30227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30230
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration)
|
|
30231
|
+
|
|
30232
|
+
return {
|
|
30233
|
+
url: toPathString(localVarUrlObj),
|
|
30234
|
+
options: localVarRequestOptions,
|
|
30235
|
+
};
|
|
30236
|
+
},
|
|
30237
|
+
/**
|
|
30238
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
30239
|
+
* @summary Create or find tags
|
|
30240
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30241
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
30242
|
+
* @param {*} [options] Override http request option.
|
|
30243
|
+
* @throws {RequiredError}
|
|
30244
|
+
*/
|
|
30245
|
+
createOrFindTagsV1: async (profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30246
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30247
|
+
assertParamExists('createOrFindTagsV1', 'profileUuid', profileUuid)
|
|
30248
|
+
// verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
|
|
30249
|
+
assertParamExists('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest)
|
|
30250
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
|
|
30251
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
30252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30254
|
+
let baseOptions;
|
|
30255
|
+
if (configuration) {
|
|
30256
|
+
baseOptions = configuration.baseOptions;
|
|
30257
|
+
}
|
|
30258
|
+
|
|
30259
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30260
|
+
const localVarHeaderParameter = {} as any;
|
|
30261
|
+
const localVarQueryParameter = {} as any;
|
|
30262
|
+
|
|
30263
|
+
// authentication apiToken required
|
|
30264
|
+
// http bearer authentication required
|
|
30265
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30266
|
+
|
|
30267
|
+
|
|
30268
|
+
|
|
30269
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30270
|
+
|
|
30271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30273
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30274
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration)
|
|
30275
|
+
|
|
30276
|
+
return {
|
|
30277
|
+
url: toPathString(localVarUrlObj),
|
|
30278
|
+
options: localVarRequestOptions,
|
|
30279
|
+
};
|
|
30280
|
+
},
|
|
30281
|
+
/**
|
|
30282
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
30283
|
+
* @summary Delete a tag
|
|
30284
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30285
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30286
|
+
* @param {*} [options] Override http request option.
|
|
30287
|
+
* @throws {RequiredError}
|
|
30288
|
+
*/
|
|
30289
|
+
deleteATagV1: async (profileUuid: string, tagUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30290
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30291
|
+
assertParamExists('deleteATagV1', 'profileUuid', profileUuid)
|
|
30292
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
30293
|
+
assertParamExists('deleteATagV1', 'tagUuid', tagUuid)
|
|
30294
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
|
|
30295
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
30296
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
30297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30299
|
+
let baseOptions;
|
|
30300
|
+
if (configuration) {
|
|
30301
|
+
baseOptions = configuration.baseOptions;
|
|
30302
|
+
}
|
|
30303
|
+
|
|
30304
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
30305
|
+
const localVarHeaderParameter = {} as any;
|
|
30306
|
+
const localVarQueryParameter = {} as any;
|
|
30307
|
+
|
|
30308
|
+
// authentication apiToken required
|
|
30309
|
+
// http bearer authentication required
|
|
30310
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30311
|
+
|
|
30312
|
+
|
|
30313
|
+
|
|
30314
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30316
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30317
|
+
|
|
30318
|
+
return {
|
|
30319
|
+
url: toPathString(localVarUrlObj),
|
|
30320
|
+
options: localVarRequestOptions,
|
|
30321
|
+
};
|
|
30322
|
+
},
|
|
30323
|
+
/**
|
|
30324
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
30325
|
+
* @summary List profile tags
|
|
30326
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30327
|
+
* @param {*} [options] Override http request option.
|
|
30328
|
+
* @throws {RequiredError}
|
|
30329
|
+
*/
|
|
30330
|
+
listProfileTagsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30331
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30332
|
+
assertParamExists('listProfileTagsV1', 'profileUuid', profileUuid)
|
|
30333
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
|
|
30334
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
30335
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30336
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30337
|
+
let baseOptions;
|
|
30338
|
+
if (configuration) {
|
|
30339
|
+
baseOptions = configuration.baseOptions;
|
|
30340
|
+
}
|
|
30341
|
+
|
|
30342
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
30343
|
+
const localVarHeaderParameter = {} as any;
|
|
30344
|
+
const localVarQueryParameter = {} as any;
|
|
30345
|
+
|
|
30346
|
+
// authentication apiToken required
|
|
30347
|
+
// http bearer authentication required
|
|
30348
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30349
|
+
|
|
30350
|
+
|
|
30351
|
+
|
|
30352
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30354
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30355
|
+
|
|
30356
|
+
return {
|
|
30357
|
+
url: toPathString(localVarUrlObj),
|
|
30358
|
+
options: localVarRequestOptions,
|
|
30359
|
+
};
|
|
30360
|
+
},
|
|
30361
|
+
/**
|
|
30362
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
30363
|
+
* @summary Remove a contact from a tag
|
|
30364
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30365
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30366
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30367
|
+
* @param {*} [options] Override http request option.
|
|
30368
|
+
* @throws {RequiredError}
|
|
30369
|
+
*/
|
|
30370
|
+
removeAContactFromATagV1: async (profileUuid: string, tagUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30371
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30372
|
+
assertParamExists('removeAContactFromATagV1', 'profileUuid', profileUuid)
|
|
30373
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
30374
|
+
assertParamExists('removeAContactFromATagV1', 'tagUuid', tagUuid)
|
|
30375
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
30376
|
+
assertParamExists('removeAContactFromATagV1', 'contactUuid', contactUuid)
|
|
30377
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
|
|
30378
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
30379
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
|
|
30380
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
30381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30382
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30383
|
+
let baseOptions;
|
|
30384
|
+
if (configuration) {
|
|
30385
|
+
baseOptions = configuration.baseOptions;
|
|
30386
|
+
}
|
|
30387
|
+
|
|
30388
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
30389
|
+
const localVarHeaderParameter = {} as any;
|
|
30390
|
+
const localVarQueryParameter = {} as any;
|
|
30391
|
+
|
|
30392
|
+
// authentication apiToken required
|
|
30393
|
+
// http bearer authentication required
|
|
30394
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30395
|
+
|
|
30396
|
+
|
|
30397
|
+
|
|
30398
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30399
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30400
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30401
|
+
|
|
30402
|
+
return {
|
|
30403
|
+
url: toPathString(localVarUrlObj),
|
|
30404
|
+
options: localVarRequestOptions,
|
|
30405
|
+
};
|
|
30406
|
+
},
|
|
30407
|
+
/**
|
|
30408
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
30409
|
+
* @summary Remove contacts from a tag
|
|
30410
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30411
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30412
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30413
|
+
* @param {*} [options] Override http request option.
|
|
30414
|
+
* @throws {RequiredError}
|
|
30415
|
+
*/
|
|
30416
|
+
removeContactsFromATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30417
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30418
|
+
assertParamExists('removeContactsFromATagV1', 'profileUuid', profileUuid)
|
|
30419
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
30420
|
+
assertParamExists('removeContactsFromATagV1', 'tagUuid', tagUuid)
|
|
30421
|
+
// verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
|
|
30422
|
+
assertParamExists('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest)
|
|
30423
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
|
|
30424
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
30425
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
30426
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30427
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30428
|
+
let baseOptions;
|
|
30429
|
+
if (configuration) {
|
|
30430
|
+
baseOptions = configuration.baseOptions;
|
|
30431
|
+
}
|
|
30432
|
+
|
|
30433
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
30434
|
+
const localVarHeaderParameter = {} as any;
|
|
30435
|
+
const localVarQueryParameter = {} as any;
|
|
30436
|
+
|
|
30437
|
+
// authentication apiToken required
|
|
30438
|
+
// http bearer authentication required
|
|
30439
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30440
|
+
|
|
30441
|
+
|
|
30442
|
+
|
|
30443
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30444
|
+
|
|
30445
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30446
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30447
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30448
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration)
|
|
30449
|
+
|
|
30450
|
+
return {
|
|
30451
|
+
url: toPathString(localVarUrlObj),
|
|
30452
|
+
options: localVarRequestOptions,
|
|
30453
|
+
};
|
|
30454
|
+
},
|
|
30455
|
+
/**
|
|
30456
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
30457
|
+
* @summary Rename a tag
|
|
30458
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30459
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30460
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
30461
|
+
* @param {*} [options] Override http request option.
|
|
30462
|
+
* @throws {RequiredError}
|
|
30463
|
+
*/
|
|
30464
|
+
renameATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30465
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
30466
|
+
assertParamExists('renameATagV1', 'profileUuid', profileUuid)
|
|
30467
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
30468
|
+
assertParamExists('renameATagV1', 'tagUuid', tagUuid)
|
|
30469
|
+
// verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
|
|
30470
|
+
assertParamExists('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest)
|
|
30471
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
|
|
30472
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
30473
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
30474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30476
|
+
let baseOptions;
|
|
30477
|
+
if (configuration) {
|
|
30478
|
+
baseOptions = configuration.baseOptions;
|
|
30479
|
+
}
|
|
30480
|
+
|
|
30481
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
30482
|
+
const localVarHeaderParameter = {} as any;
|
|
30483
|
+
const localVarQueryParameter = {} as any;
|
|
30484
|
+
|
|
30485
|
+
// authentication apiToken required
|
|
30486
|
+
// http bearer authentication required
|
|
30487
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30488
|
+
|
|
30489
|
+
|
|
30490
|
+
|
|
30491
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30492
|
+
|
|
30493
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30495
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30496
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration)
|
|
30497
|
+
|
|
29152
30498
|
return {
|
|
29153
30499
|
url: toPathString(localVarUrlObj),
|
|
29154
30500
|
options: localVarRequestOptions,
|
|
@@ -29158,212 +30504,338 @@ export const ReachSegmentsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29158
30504
|
};
|
|
29159
30505
|
|
|
29160
30506
|
/**
|
|
29161
|
-
*
|
|
30507
|
+
* ReachTagsApi - functional programming interface
|
|
29162
30508
|
* @export
|
|
29163
30509
|
*/
|
|
29164
|
-
export const
|
|
29165
|
-
const localVarAxiosParamCreator =
|
|
30510
|
+
export const ReachTagsApiFp = function(configuration?: Configuration) {
|
|
30511
|
+
const localVarAxiosParamCreator = ReachTagsApiAxiosParamCreator(configuration)
|
|
29166
30512
|
return {
|
|
29167
30513
|
/**
|
|
29168
|
-
*
|
|
29169
|
-
* @summary
|
|
29170
|
-
* @param {
|
|
30514
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
30515
|
+
* @summary Assign a contact to a tag
|
|
30516
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30517
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30518
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29171
30519
|
* @param {*} [options] Override http request option.
|
|
29172
30520
|
* @throws {RequiredError}
|
|
29173
30521
|
*/
|
|
29174
|
-
async
|
|
29175
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
29176
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
30522
|
+
async assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>> {
|
|
30523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
|
|
30524
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.assignAContactToATagV1']?.[0]?.url;
|
|
29177
30525
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29178
30526
|
},
|
|
29179
30527
|
/**
|
|
29180
|
-
*
|
|
29181
|
-
* @summary
|
|
29182
|
-
* @param {string}
|
|
30528
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
30529
|
+
* @summary Assign contacts to a tag
|
|
30530
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30531
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30532
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29183
30533
|
* @param {*} [options] Override http request option.
|
|
29184
30534
|
* @throws {RequiredError}
|
|
29185
30535
|
*/
|
|
29186
|
-
async
|
|
29187
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
29188
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
30536
|
+
async assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
30537
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
|
|
30538
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.assignContactsToATagV1']?.[0]?.url;
|
|
29189
30539
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29190
30540
|
},
|
|
29191
30541
|
/**
|
|
29192
|
-
*
|
|
29193
|
-
* @summary
|
|
30542
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
30543
|
+
* @summary Create or find tags
|
|
29194
30544
|
* @param {string} profileUuid Profile uuid parameter
|
|
29195
|
-
* @param {
|
|
29196
|
-
* @param {number} [page] Page number
|
|
29197
|
-
* @param {number} [perPage] Number of items per page
|
|
30545
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
29198
30546
|
* @param {*} [options] Override http request option.
|
|
29199
30547
|
* @throws {RequiredError}
|
|
29200
30548
|
*/
|
|
29201
|
-
async
|
|
29202
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
29203
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
30549
|
+
async createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>> {
|
|
30550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
|
|
30551
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.createOrFindTagsV1']?.[0]?.url;
|
|
29204
30552
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29205
30553
|
},
|
|
29206
30554
|
/**
|
|
29207
|
-
*
|
|
29208
|
-
* @summary
|
|
29209
|
-
* @param {string}
|
|
29210
|
-
* @param {
|
|
29211
|
-
* @param {number} [perPage] Number of items per page
|
|
30555
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
30556
|
+
* @summary Delete a tag
|
|
30557
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30558
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29212
30559
|
* @param {*} [options] Override http request option.
|
|
29213
30560
|
* @throws {RequiredError}
|
|
29214
30561
|
*/
|
|
29215
|
-
async
|
|
29216
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
29217
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
30562
|
+
async deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
30563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
|
|
30564
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.deleteATagV1']?.[0]?.url;
|
|
29218
30565
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29219
30566
|
},
|
|
29220
30567
|
/**
|
|
29221
|
-
* Get
|
|
29222
|
-
* @summary List
|
|
30568
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
30569
|
+
* @summary List profile tags
|
|
30570
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29223
30571
|
* @param {*} [options] Override http request option.
|
|
29224
30572
|
* @throws {RequiredError}
|
|
29225
30573
|
*/
|
|
29226
|
-
async
|
|
29227
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
29228
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
30574
|
+
async listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>> {
|
|
30575
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
|
|
30576
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.listProfileTagsV1']?.[0]?.url;
|
|
30577
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30578
|
+
},
|
|
30579
|
+
/**
|
|
30580
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
30581
|
+
* @summary Remove a contact from a tag
|
|
30582
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30583
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30584
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30585
|
+
* @param {*} [options] Override http request option.
|
|
30586
|
+
* @throws {RequiredError}
|
|
30587
|
+
*/
|
|
30588
|
+
async removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
30589
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
|
|
30590
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.removeAContactFromATagV1']?.[0]?.url;
|
|
30591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30592
|
+
},
|
|
30593
|
+
/**
|
|
30594
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
30595
|
+
* @summary Remove contacts from a tag
|
|
30596
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30597
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30598
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30599
|
+
* @param {*} [options] Override http request option.
|
|
30600
|
+
* @throws {RequiredError}
|
|
30601
|
+
*/
|
|
30602
|
+
async removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
30603
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
|
|
30604
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.removeContactsFromATagV1']?.[0]?.url;
|
|
30605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30606
|
+
},
|
|
30607
|
+
/**
|
|
30608
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
30609
|
+
* @summary Rename a tag
|
|
30610
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30611
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30612
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
30613
|
+
* @param {*} [options] Override http request option.
|
|
30614
|
+
* @throws {RequiredError}
|
|
30615
|
+
*/
|
|
30616
|
+
async renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>> {
|
|
30617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
|
|
30618
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.renameATagV1']?.[0]?.url;
|
|
29229
30619
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29230
30620
|
},
|
|
29231
30621
|
}
|
|
29232
30622
|
};
|
|
29233
30623
|
|
|
29234
30624
|
/**
|
|
29235
|
-
*
|
|
30625
|
+
* ReachTagsApi - factory interface
|
|
29236
30626
|
* @export
|
|
29237
30627
|
*/
|
|
29238
|
-
export const
|
|
29239
|
-
const localVarFp =
|
|
30628
|
+
export const ReachTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30629
|
+
const localVarFp = ReachTagsApiFp(configuration)
|
|
29240
30630
|
return {
|
|
29241
30631
|
/**
|
|
29242
|
-
*
|
|
29243
|
-
* @summary
|
|
29244
|
-
* @param {
|
|
30632
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
30633
|
+
* @summary Assign a contact to a tag
|
|
30634
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30635
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30636
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29245
30637
|
* @param {*} [options] Override http request option.
|
|
29246
30638
|
* @throws {RequiredError}
|
|
29247
30639
|
*/
|
|
29248
|
-
|
|
29249
|
-
return localVarFp.
|
|
30640
|
+
assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource> {
|
|
30641
|
+
return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
29250
30642
|
},
|
|
29251
30643
|
/**
|
|
29252
|
-
*
|
|
29253
|
-
* @summary
|
|
29254
|
-
* @param {string}
|
|
30644
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
30645
|
+
* @summary Assign contacts to a tag
|
|
30646
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30647
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30648
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29255
30649
|
* @param {*} [options] Override http request option.
|
|
29256
30650
|
* @throws {RequiredError}
|
|
29257
30651
|
*/
|
|
29258
|
-
|
|
29259
|
-
return localVarFp.
|
|
30652
|
+
assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
30653
|
+
return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
|
|
29260
30654
|
},
|
|
29261
30655
|
/**
|
|
29262
|
-
*
|
|
29263
|
-
* @summary
|
|
30656
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
30657
|
+
* @summary Create or find tags
|
|
29264
30658
|
* @param {string} profileUuid Profile uuid parameter
|
|
29265
|
-
* @param {
|
|
29266
|
-
* @param {number} [page] Page number
|
|
29267
|
-
* @param {number} [perPage] Number of items per page
|
|
30659
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
29268
30660
|
* @param {*} [options] Override http request option.
|
|
29269
30661
|
* @throws {RequiredError}
|
|
29270
30662
|
*/
|
|
29271
|
-
|
|
29272
|
-
return localVarFp.
|
|
30663
|
+
createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>> {
|
|
30664
|
+
return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
|
|
29273
30665
|
},
|
|
29274
30666
|
/**
|
|
29275
|
-
*
|
|
29276
|
-
* @summary
|
|
29277
|
-
* @param {string}
|
|
29278
|
-
* @param {
|
|
29279
|
-
* @param {number} [perPage] Number of items per page
|
|
30667
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
30668
|
+
* @summary Delete a tag
|
|
30669
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30670
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29280
30671
|
* @param {*} [options] Override http request option.
|
|
29281
30672
|
* @throws {RequiredError}
|
|
29282
30673
|
*/
|
|
29283
|
-
|
|
29284
|
-
return localVarFp.
|
|
30674
|
+
deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
30675
|
+
return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
|
|
29285
30676
|
},
|
|
29286
30677
|
/**
|
|
29287
|
-
* Get
|
|
29288
|
-
* @summary List
|
|
30678
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
30679
|
+
* @summary List profile tags
|
|
30680
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29289
30681
|
* @param {*} [options] Override http request option.
|
|
29290
30682
|
* @throws {RequiredError}
|
|
29291
30683
|
*/
|
|
29292
|
-
|
|
29293
|
-
return localVarFp.
|
|
30684
|
+
listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>> {
|
|
30685
|
+
return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
30686
|
+
},
|
|
30687
|
+
/**
|
|
30688
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
30689
|
+
* @summary Remove a contact from a tag
|
|
30690
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30691
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30692
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30693
|
+
* @param {*} [options] Override http request option.
|
|
30694
|
+
* @throws {RequiredError}
|
|
30695
|
+
*/
|
|
30696
|
+
removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
30697
|
+
return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
30698
|
+
},
|
|
30699
|
+
/**
|
|
30700
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
30701
|
+
* @summary Remove contacts from a tag
|
|
30702
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30703
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30704
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30705
|
+
* @param {*} [options] Override http request option.
|
|
30706
|
+
* @throws {RequiredError}
|
|
30707
|
+
*/
|
|
30708
|
+
removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
30709
|
+
return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
|
|
30710
|
+
},
|
|
30711
|
+
/**
|
|
30712
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
30713
|
+
* @summary Rename a tag
|
|
30714
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30715
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30716
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
30717
|
+
* @param {*} [options] Override http request option.
|
|
30718
|
+
* @throws {RequiredError}
|
|
30719
|
+
*/
|
|
30720
|
+
renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource> {
|
|
30721
|
+
return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
29294
30722
|
},
|
|
29295
30723
|
};
|
|
29296
30724
|
};
|
|
29297
30725
|
|
|
29298
30726
|
/**
|
|
29299
|
-
*
|
|
30727
|
+
* ReachTagsApi - object-oriented interface
|
|
29300
30728
|
* @export
|
|
29301
|
-
* @class
|
|
30729
|
+
* @class ReachTagsApi
|
|
29302
30730
|
* @extends {BaseAPI}
|
|
29303
30731
|
*/
|
|
29304
|
-
export class
|
|
30732
|
+
export class ReachTagsApi extends BaseAPI {
|
|
29305
30733
|
/**
|
|
29306
|
-
*
|
|
29307
|
-
* @summary
|
|
29308
|
-
* @param {
|
|
30734
|
+
* Assign a tag to a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Assigning a tag the contact already carries succeeds without duplicating it.
|
|
30735
|
+
* @summary Assign a contact to a tag
|
|
30736
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30737
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30738
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29309
30739
|
* @param {*} [options] Override http request option.
|
|
29310
30740
|
* @throws {RequiredError}
|
|
29311
|
-
* @memberof
|
|
30741
|
+
* @memberof ReachTagsApi
|
|
29312
30742
|
*/
|
|
29313
|
-
public
|
|
29314
|
-
return
|
|
30743
|
+
public assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
|
|
30744
|
+
return ReachTagsApiFp(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
29315
30745
|
}
|
|
29316
30746
|
|
|
29317
30747
|
/**
|
|
29318
|
-
*
|
|
29319
|
-
* @summary
|
|
29320
|
-
* @param {string}
|
|
30748
|
+
* Assign a tag to many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. Contacts that already carry the tag are left alone.
|
|
30749
|
+
* @summary Assign contacts to a tag
|
|
30750
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30751
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30752
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29321
30753
|
* @param {*} [options] Override http request option.
|
|
29322
30754
|
* @throws {RequiredError}
|
|
29323
|
-
* @memberof
|
|
30755
|
+
* @memberof ReachTagsApi
|
|
29324
30756
|
*/
|
|
29325
|
-
public
|
|
29326
|
-
return
|
|
30757
|
+
public assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) {
|
|
30758
|
+
return ReachTagsApiFp(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29327
30759
|
}
|
|
29328
30760
|
|
|
29329
30761
|
/**
|
|
29330
|
-
*
|
|
29331
|
-
* @summary
|
|
30762
|
+
* Create tags in a profile. Names that already exist in the profile are not duplicated: the existing tag is returned instead, so the call is safe to repeat. Every tag in the request is returned, whether it was created now or already existed.
|
|
30763
|
+
* @summary Create or find tags
|
|
29332
30764
|
* @param {string} profileUuid Profile uuid parameter
|
|
29333
|
-
* @param {
|
|
29334
|
-
* @param {number} [page] Page number
|
|
29335
|
-
* @param {number} [perPage] Number of items per page
|
|
30765
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
29336
30766
|
* @param {*} [options] Override http request option.
|
|
29337
30767
|
* @throws {RequiredError}
|
|
29338
|
-
* @memberof
|
|
30768
|
+
* @memberof ReachTagsApi
|
|
29339
30769
|
*/
|
|
29340
|
-
public
|
|
29341
|
-
return
|
|
30770
|
+
public createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig) {
|
|
30771
|
+
return ReachTagsApiFp(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29342
30772
|
}
|
|
29343
30773
|
|
|
29344
30774
|
/**
|
|
29345
|
-
*
|
|
29346
|
-
* @summary
|
|
29347
|
-
* @param {string}
|
|
29348
|
-
* @param {
|
|
29349
|
-
* @param {number} [perPage] Number of items per page
|
|
30775
|
+
* Delete a tag and remove it from every contact carrying it. The contacts themselves are not deleted. This is idempotent: deleting a tag that does not exist in the profile still succeeds.
|
|
30776
|
+
* @summary Delete a tag
|
|
30777
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30778
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29350
30779
|
* @param {*} [options] Override http request option.
|
|
29351
30780
|
* @throws {RequiredError}
|
|
29352
|
-
* @memberof
|
|
30781
|
+
* @memberof ReachTagsApi
|
|
29353
30782
|
*/
|
|
29354
|
-
public
|
|
29355
|
-
return
|
|
30783
|
+
public deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig) {
|
|
30784
|
+
return ReachTagsApiFp(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
|
|
29356
30785
|
}
|
|
29357
30786
|
|
|
29358
30787
|
/**
|
|
29359
|
-
* Get
|
|
29360
|
-
* @summary List
|
|
30788
|
+
* Get all tags defined in a profile. Tags are the way contacts are grouped in Reach, and can be used to filter the contact list or to build segments.
|
|
30789
|
+
* @summary List profile tags
|
|
30790
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29361
30791
|
* @param {*} [options] Override http request option.
|
|
29362
30792
|
* @throws {RequiredError}
|
|
29363
|
-
* @memberof
|
|
30793
|
+
* @memberof ReachTagsApi
|
|
29364
30794
|
*/
|
|
29365
|
-
public
|
|
29366
|
-
return
|
|
30795
|
+
public listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig) {
|
|
30796
|
+
return ReachTagsApiFp(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30797
|
+
}
|
|
30798
|
+
|
|
30799
|
+
/**
|
|
30800
|
+
* Remove a tag from a single contact. Unlike the bulk endpoint this is applied immediately rather than queued. Neither the tag nor the contact is deleted.
|
|
30801
|
+
* @summary Remove a contact from a tag
|
|
30802
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30803
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30804
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30805
|
+
* @param {*} [options] Override http request option.
|
|
30806
|
+
* @throws {RequiredError}
|
|
30807
|
+
* @memberof ReachTagsApi
|
|
30808
|
+
*/
|
|
30809
|
+
public removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
|
|
30810
|
+
return ReachTagsApiFp(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30811
|
+
}
|
|
30812
|
+
|
|
30813
|
+
/**
|
|
30814
|
+
* Remove a tag from many contacts at once. Pass `contact_uuids` to target specific contacts, or `all_contacts` to target every contact in the profile. The work is queued, so a success response means it was accepted rather than finished. The tag itself and the contacts are not deleted.
|
|
30815
|
+
* @summary Remove contacts from a tag
|
|
30816
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30817
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30818
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30819
|
+
* @param {*} [options] Override http request option.
|
|
30820
|
+
* @throws {RequiredError}
|
|
30821
|
+
* @memberof ReachTagsApi
|
|
30822
|
+
*/
|
|
30823
|
+
public removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) {
|
|
30824
|
+
return ReachTagsApiFp(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30825
|
+
}
|
|
30826
|
+
|
|
30827
|
+
/**
|
|
30828
|
+
* Rename a tag. The contacts assigned to the tag are unaffected. Names are unique within a profile, so renaming a tag to a name that is already taken is rejected.
|
|
30829
|
+
* @summary Rename a tag
|
|
30830
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30831
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30832
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
30833
|
+
* @param {*} [options] Override http request option.
|
|
30834
|
+
* @throws {RequiredError}
|
|
30835
|
+
* @memberof ReachTagsApi
|
|
30836
|
+
*/
|
|
30837
|
+
public renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
30838
|
+
return ReachTagsApiFp(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29367
30839
|
}
|
|
29368
30840
|
}
|
|
29369
30841
|
|