hostinger-api-sdk 1.27.0 → 1.28.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 +753 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +384 -1
- package/dist/api.js +674 -4
- 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 +384 -1
- package/dist/esm/api.js +667 -1
- 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/ReachTagsApi.md +483 -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.29.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
|
|
@@ -8578,6 +8578,38 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
8578
8578
|
*/
|
|
8579
8579
|
'note': string | null;
|
|
8580
8580
|
}
|
|
8581
|
+
/**
|
|
8582
|
+
* Contacts to assign to, or remove from, a tag
|
|
8583
|
+
* @export
|
|
8584
|
+
* @interface ReachV1ContactsTagsManageContactsRequest
|
|
8585
|
+
*/
|
|
8586
|
+
export interface ReachV1ContactsTagsManageContactsRequest {
|
|
8587
|
+
/**
|
|
8588
|
+
* Contacts to apply the change to. Required unless all_contacts is true.
|
|
8589
|
+
* @type {Array<string>}
|
|
8590
|
+
* @memberof ReachV1ContactsTagsManageContactsRequest
|
|
8591
|
+
*/
|
|
8592
|
+
'contact_uuids': Array<string>;
|
|
8593
|
+
/**
|
|
8594
|
+
* Apply to every contact in the profile
|
|
8595
|
+
* @type {boolean}
|
|
8596
|
+
* @memberof ReachV1ContactsTagsManageContactsRequest
|
|
8597
|
+
*/
|
|
8598
|
+
'all_contacts': boolean;
|
|
8599
|
+
}
|
|
8600
|
+
/**
|
|
8601
|
+
* Names to create. Names that already exist in the profile are returned as they are.
|
|
8602
|
+
* @export
|
|
8603
|
+
* @interface ReachV1ContactsTagsStoreRequest
|
|
8604
|
+
*/
|
|
8605
|
+
export interface ReachV1ContactsTagsStoreRequest {
|
|
8606
|
+
/**
|
|
8607
|
+
*
|
|
8608
|
+
* @type {Array<string>}
|
|
8609
|
+
* @memberof ReachV1ContactsTagsStoreRequest
|
|
8610
|
+
*/
|
|
8611
|
+
'names': Array<string>;
|
|
8612
|
+
}
|
|
8581
8613
|
/**
|
|
8582
8614
|
*
|
|
8583
8615
|
* @export
|
|
@@ -8617,6 +8649,19 @@ export const ReachV1ContactsTagsTagResourceTypeEnum = {
|
|
|
8617
8649
|
|
|
8618
8650
|
export type ReachV1ContactsTagsTagResourceTypeEnum = typeof ReachV1ContactsTagsTagResourceTypeEnum[keyof typeof ReachV1ContactsTagsTagResourceTypeEnum];
|
|
8619
8651
|
|
|
8652
|
+
/**
|
|
8653
|
+
* Rename a tag
|
|
8654
|
+
* @export
|
|
8655
|
+
* @interface ReachV1ContactsTagsUpdateRequest
|
|
8656
|
+
*/
|
|
8657
|
+
export interface ReachV1ContactsTagsUpdateRequest {
|
|
8658
|
+
/**
|
|
8659
|
+
* New tag name
|
|
8660
|
+
* @type {string}
|
|
8661
|
+
* @memberof ReachV1ContactsTagsUpdateRequest
|
|
8662
|
+
*/
|
|
8663
|
+
'value': string;
|
|
8664
|
+
}
|
|
8620
8665
|
/**
|
|
8621
8666
|
* Fields to change on a contact. Omitted properties are left untouched.
|
|
8622
8667
|
* @export
|
|
@@ -29369,6 +29414,713 @@ export class ReachSegmentsApi extends BaseAPI {
|
|
|
29369
29414
|
|
|
29370
29415
|
|
|
29371
29416
|
|
|
29417
|
+
/**
|
|
29418
|
+
* ReachTagsApi - axios parameter creator
|
|
29419
|
+
* @export
|
|
29420
|
+
*/
|
|
29421
|
+
export const ReachTagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
29422
|
+
return {
|
|
29423
|
+
/**
|
|
29424
|
+
* 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.
|
|
29425
|
+
* @summary Assign a contact to a tag
|
|
29426
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29427
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29428
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29429
|
+
* @param {*} [options] Override http request option.
|
|
29430
|
+
* @throws {RequiredError}
|
|
29431
|
+
*/
|
|
29432
|
+
assignAContactToATagV1: async (profileUuid: string, tagUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29433
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29434
|
+
assertParamExists('assignAContactToATagV1', 'profileUuid', profileUuid)
|
|
29435
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
29436
|
+
assertParamExists('assignAContactToATagV1', 'tagUuid', tagUuid)
|
|
29437
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
29438
|
+
assertParamExists('assignAContactToATagV1', 'contactUuid', contactUuid)
|
|
29439
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
|
|
29440
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29441
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
|
|
29442
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
29443
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29444
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29445
|
+
let baseOptions;
|
|
29446
|
+
if (configuration) {
|
|
29447
|
+
baseOptions = configuration.baseOptions;
|
|
29448
|
+
}
|
|
29449
|
+
|
|
29450
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29451
|
+
const localVarHeaderParameter = {} as any;
|
|
29452
|
+
const localVarQueryParameter = {} as any;
|
|
29453
|
+
|
|
29454
|
+
// authentication apiToken required
|
|
29455
|
+
// http bearer authentication required
|
|
29456
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29457
|
+
|
|
29458
|
+
|
|
29459
|
+
|
|
29460
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29461
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29462
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29463
|
+
|
|
29464
|
+
return {
|
|
29465
|
+
url: toPathString(localVarUrlObj),
|
|
29466
|
+
options: localVarRequestOptions,
|
|
29467
|
+
};
|
|
29468
|
+
},
|
|
29469
|
+
/**
|
|
29470
|
+
* 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.
|
|
29471
|
+
* @summary Assign contacts to a tag
|
|
29472
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29473
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29474
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29475
|
+
* @param {*} [options] Override http request option.
|
|
29476
|
+
* @throws {RequiredError}
|
|
29477
|
+
*/
|
|
29478
|
+
assignContactsToATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29479
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29480
|
+
assertParamExists('assignContactsToATagV1', 'profileUuid', profileUuid)
|
|
29481
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
29482
|
+
assertParamExists('assignContactsToATagV1', 'tagUuid', tagUuid)
|
|
29483
|
+
// verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
|
|
29484
|
+
assertParamExists('assignContactsToATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest)
|
|
29485
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
|
|
29486
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29487
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
29488
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29489
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29490
|
+
let baseOptions;
|
|
29491
|
+
if (configuration) {
|
|
29492
|
+
baseOptions = configuration.baseOptions;
|
|
29493
|
+
}
|
|
29494
|
+
|
|
29495
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29496
|
+
const localVarHeaderParameter = {} as any;
|
|
29497
|
+
const localVarQueryParameter = {} as any;
|
|
29498
|
+
|
|
29499
|
+
// authentication apiToken required
|
|
29500
|
+
// http bearer authentication required
|
|
29501
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29502
|
+
|
|
29503
|
+
|
|
29504
|
+
|
|
29505
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29506
|
+
|
|
29507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29509
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29510
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration)
|
|
29511
|
+
|
|
29512
|
+
return {
|
|
29513
|
+
url: toPathString(localVarUrlObj),
|
|
29514
|
+
options: localVarRequestOptions,
|
|
29515
|
+
};
|
|
29516
|
+
},
|
|
29517
|
+
/**
|
|
29518
|
+
* 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.
|
|
29519
|
+
* @summary Create or find tags
|
|
29520
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29521
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
29522
|
+
* @param {*} [options] Override http request option.
|
|
29523
|
+
* @throws {RequiredError}
|
|
29524
|
+
*/
|
|
29525
|
+
createOrFindTagsV1: async (profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29526
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29527
|
+
assertParamExists('createOrFindTagsV1', 'profileUuid', profileUuid)
|
|
29528
|
+
// verify required parameter 'reachV1ContactsTagsStoreRequest' is not null or undefined
|
|
29529
|
+
assertParamExists('createOrFindTagsV1', 'reachV1ContactsTagsStoreRequest', reachV1ContactsTagsStoreRequest)
|
|
29530
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
|
|
29531
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
29532
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29533
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29534
|
+
let baseOptions;
|
|
29535
|
+
if (configuration) {
|
|
29536
|
+
baseOptions = configuration.baseOptions;
|
|
29537
|
+
}
|
|
29538
|
+
|
|
29539
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29540
|
+
const localVarHeaderParameter = {} as any;
|
|
29541
|
+
const localVarQueryParameter = {} as any;
|
|
29542
|
+
|
|
29543
|
+
// authentication apiToken required
|
|
29544
|
+
// http bearer authentication required
|
|
29545
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29546
|
+
|
|
29547
|
+
|
|
29548
|
+
|
|
29549
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29550
|
+
|
|
29551
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29553
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29554
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsStoreRequest, localVarRequestOptions, configuration)
|
|
29555
|
+
|
|
29556
|
+
return {
|
|
29557
|
+
url: toPathString(localVarUrlObj),
|
|
29558
|
+
options: localVarRequestOptions,
|
|
29559
|
+
};
|
|
29560
|
+
},
|
|
29561
|
+
/**
|
|
29562
|
+
* 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.
|
|
29563
|
+
* @summary Delete a tag
|
|
29564
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29565
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29566
|
+
* @param {*} [options] Override http request option.
|
|
29567
|
+
* @throws {RequiredError}
|
|
29568
|
+
*/
|
|
29569
|
+
deleteATagV1: async (profileUuid: string, tagUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29570
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29571
|
+
assertParamExists('deleteATagV1', 'profileUuid', profileUuid)
|
|
29572
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
29573
|
+
assertParamExists('deleteATagV1', 'tagUuid', tagUuid)
|
|
29574
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
|
|
29575
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29576
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
29577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29578
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29579
|
+
let baseOptions;
|
|
29580
|
+
if (configuration) {
|
|
29581
|
+
baseOptions = configuration.baseOptions;
|
|
29582
|
+
}
|
|
29583
|
+
|
|
29584
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
29585
|
+
const localVarHeaderParameter = {} as any;
|
|
29586
|
+
const localVarQueryParameter = {} as any;
|
|
29587
|
+
|
|
29588
|
+
// authentication apiToken required
|
|
29589
|
+
// http bearer authentication required
|
|
29590
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29591
|
+
|
|
29592
|
+
|
|
29593
|
+
|
|
29594
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29595
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29596
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29597
|
+
|
|
29598
|
+
return {
|
|
29599
|
+
url: toPathString(localVarUrlObj),
|
|
29600
|
+
options: localVarRequestOptions,
|
|
29601
|
+
};
|
|
29602
|
+
},
|
|
29603
|
+
/**
|
|
29604
|
+
* 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.
|
|
29605
|
+
* @summary List profile tags
|
|
29606
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29607
|
+
* @param {*} [options] Override http request option.
|
|
29608
|
+
* @throws {RequiredError}
|
|
29609
|
+
*/
|
|
29610
|
+
listProfileTagsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29611
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29612
|
+
assertParamExists('listProfileTagsV1', 'profileUuid', profileUuid)
|
|
29613
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags`
|
|
29614
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
29615
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29616
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29617
|
+
let baseOptions;
|
|
29618
|
+
if (configuration) {
|
|
29619
|
+
baseOptions = configuration.baseOptions;
|
|
29620
|
+
}
|
|
29621
|
+
|
|
29622
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29623
|
+
const localVarHeaderParameter = {} as any;
|
|
29624
|
+
const localVarQueryParameter = {} as any;
|
|
29625
|
+
|
|
29626
|
+
// authentication apiToken required
|
|
29627
|
+
// http bearer authentication required
|
|
29628
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29629
|
+
|
|
29630
|
+
|
|
29631
|
+
|
|
29632
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29634
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29635
|
+
|
|
29636
|
+
return {
|
|
29637
|
+
url: toPathString(localVarUrlObj),
|
|
29638
|
+
options: localVarRequestOptions,
|
|
29639
|
+
};
|
|
29640
|
+
},
|
|
29641
|
+
/**
|
|
29642
|
+
* 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.
|
|
29643
|
+
* @summary Remove a contact from a tag
|
|
29644
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29645
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29646
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29647
|
+
* @param {*} [options] Override http request option.
|
|
29648
|
+
* @throws {RequiredError}
|
|
29649
|
+
*/
|
|
29650
|
+
removeAContactFromATagV1: async (profileUuid: string, tagUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29651
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29652
|
+
assertParamExists('removeAContactFromATagV1', 'profileUuid', profileUuid)
|
|
29653
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
29654
|
+
assertParamExists('removeAContactFromATagV1', 'tagUuid', tagUuid)
|
|
29655
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
29656
|
+
assertParamExists('removeAContactFromATagV1', 'contactUuid', contactUuid)
|
|
29657
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts/{contactUuid}`
|
|
29658
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29659
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)))
|
|
29660
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
29661
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29662
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29663
|
+
let baseOptions;
|
|
29664
|
+
if (configuration) {
|
|
29665
|
+
baseOptions = configuration.baseOptions;
|
|
29666
|
+
}
|
|
29667
|
+
|
|
29668
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
29669
|
+
const localVarHeaderParameter = {} as any;
|
|
29670
|
+
const localVarQueryParameter = {} as any;
|
|
29671
|
+
|
|
29672
|
+
// authentication apiToken required
|
|
29673
|
+
// http bearer authentication required
|
|
29674
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29675
|
+
|
|
29676
|
+
|
|
29677
|
+
|
|
29678
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29680
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29681
|
+
|
|
29682
|
+
return {
|
|
29683
|
+
url: toPathString(localVarUrlObj),
|
|
29684
|
+
options: localVarRequestOptions,
|
|
29685
|
+
};
|
|
29686
|
+
},
|
|
29687
|
+
/**
|
|
29688
|
+
* 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.
|
|
29689
|
+
* @summary Remove contacts from a tag
|
|
29690
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29691
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29692
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29693
|
+
* @param {*} [options] Override http request option.
|
|
29694
|
+
* @throws {RequiredError}
|
|
29695
|
+
*/
|
|
29696
|
+
removeContactsFromATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29697
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29698
|
+
assertParamExists('removeContactsFromATagV1', 'profileUuid', profileUuid)
|
|
29699
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
29700
|
+
assertParamExists('removeContactsFromATagV1', 'tagUuid', tagUuid)
|
|
29701
|
+
// verify required parameter 'reachV1ContactsTagsManageContactsRequest' is not null or undefined
|
|
29702
|
+
assertParamExists('removeContactsFromATagV1', 'reachV1ContactsTagsManageContactsRequest', reachV1ContactsTagsManageContactsRequest)
|
|
29703
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}/contacts`
|
|
29704
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29705
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
29706
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29707
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29708
|
+
let baseOptions;
|
|
29709
|
+
if (configuration) {
|
|
29710
|
+
baseOptions = configuration.baseOptions;
|
|
29711
|
+
}
|
|
29712
|
+
|
|
29713
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
29714
|
+
const localVarHeaderParameter = {} as any;
|
|
29715
|
+
const localVarQueryParameter = {} as any;
|
|
29716
|
+
|
|
29717
|
+
// authentication apiToken required
|
|
29718
|
+
// http bearer authentication required
|
|
29719
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29720
|
+
|
|
29721
|
+
|
|
29722
|
+
|
|
29723
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29724
|
+
|
|
29725
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29727
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29728
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsManageContactsRequest, localVarRequestOptions, configuration)
|
|
29729
|
+
|
|
29730
|
+
return {
|
|
29731
|
+
url: toPathString(localVarUrlObj),
|
|
29732
|
+
options: localVarRequestOptions,
|
|
29733
|
+
};
|
|
29734
|
+
},
|
|
29735
|
+
/**
|
|
29736
|
+
* 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.
|
|
29737
|
+
* @summary Rename a tag
|
|
29738
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29739
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29740
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
29741
|
+
* @param {*} [options] Override http request option.
|
|
29742
|
+
* @throws {RequiredError}
|
|
29743
|
+
*/
|
|
29744
|
+
renameATagV1: async (profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29745
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
29746
|
+
assertParamExists('renameATagV1', 'profileUuid', profileUuid)
|
|
29747
|
+
// verify required parameter 'tagUuid' is not null or undefined
|
|
29748
|
+
assertParamExists('renameATagV1', 'tagUuid', tagUuid)
|
|
29749
|
+
// verify required parameter 'reachV1ContactsTagsUpdateRequest' is not null or undefined
|
|
29750
|
+
assertParamExists('renameATagV1', 'reachV1ContactsTagsUpdateRequest', reachV1ContactsTagsUpdateRequest)
|
|
29751
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/tags/{tagUuid}`
|
|
29752
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
29753
|
+
.replace(`{${"tagUuid"}}`, encodeURIComponent(String(tagUuid)));
|
|
29754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29756
|
+
let baseOptions;
|
|
29757
|
+
if (configuration) {
|
|
29758
|
+
baseOptions = configuration.baseOptions;
|
|
29759
|
+
}
|
|
29760
|
+
|
|
29761
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
29762
|
+
const localVarHeaderParameter = {} as any;
|
|
29763
|
+
const localVarQueryParameter = {} as any;
|
|
29764
|
+
|
|
29765
|
+
// authentication apiToken required
|
|
29766
|
+
// http bearer authentication required
|
|
29767
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29768
|
+
|
|
29769
|
+
|
|
29770
|
+
|
|
29771
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29772
|
+
|
|
29773
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29774
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29775
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29776
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsTagsUpdateRequest, localVarRequestOptions, configuration)
|
|
29777
|
+
|
|
29778
|
+
return {
|
|
29779
|
+
url: toPathString(localVarUrlObj),
|
|
29780
|
+
options: localVarRequestOptions,
|
|
29781
|
+
};
|
|
29782
|
+
},
|
|
29783
|
+
}
|
|
29784
|
+
};
|
|
29785
|
+
|
|
29786
|
+
/**
|
|
29787
|
+
* ReachTagsApi - functional programming interface
|
|
29788
|
+
* @export
|
|
29789
|
+
*/
|
|
29790
|
+
export const ReachTagsApiFp = function(configuration?: Configuration) {
|
|
29791
|
+
const localVarAxiosParamCreator = ReachTagsApiAxiosParamCreator(configuration)
|
|
29792
|
+
return {
|
|
29793
|
+
/**
|
|
29794
|
+
* 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.
|
|
29795
|
+
* @summary Assign a contact to a tag
|
|
29796
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29797
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29798
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29799
|
+
* @param {*} [options] Override http request option.
|
|
29800
|
+
* @throws {RequiredError}
|
|
29801
|
+
*/
|
|
29802
|
+
async assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>> {
|
|
29803
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options);
|
|
29804
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.assignAContactToATagV1']?.[0]?.url;
|
|
29805
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29806
|
+
},
|
|
29807
|
+
/**
|
|
29808
|
+
* 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.
|
|
29809
|
+
* @summary Assign contacts to a tag
|
|
29810
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29811
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29812
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29813
|
+
* @param {*} [options] Override http request option.
|
|
29814
|
+
* @throws {RequiredError}
|
|
29815
|
+
*/
|
|
29816
|
+
async assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
29817
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
|
|
29818
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.assignContactsToATagV1']?.[0]?.url;
|
|
29819
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29820
|
+
},
|
|
29821
|
+
/**
|
|
29822
|
+
* 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.
|
|
29823
|
+
* @summary Create or find tags
|
|
29824
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29825
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
29826
|
+
* @param {*} [options] Override http request option.
|
|
29827
|
+
* @throws {RequiredError}
|
|
29828
|
+
*/
|
|
29829
|
+
async createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>> {
|
|
29830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options);
|
|
29831
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.createOrFindTagsV1']?.[0]?.url;
|
|
29832
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29833
|
+
},
|
|
29834
|
+
/**
|
|
29835
|
+
* 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.
|
|
29836
|
+
* @summary Delete a tag
|
|
29837
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29838
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29839
|
+
* @param {*} [options] Override http request option.
|
|
29840
|
+
* @throws {RequiredError}
|
|
29841
|
+
*/
|
|
29842
|
+
async deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
29843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteATagV1(profileUuid, tagUuid, options);
|
|
29844
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.deleteATagV1']?.[0]?.url;
|
|
29845
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29846
|
+
},
|
|
29847
|
+
/**
|
|
29848
|
+
* 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.
|
|
29849
|
+
* @summary List profile tags
|
|
29850
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29851
|
+
* @param {*} [options] Override http request option.
|
|
29852
|
+
* @throws {RequiredError}
|
|
29853
|
+
*/
|
|
29854
|
+
async listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsTagsTagResource>>> {
|
|
29855
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileTagsV1(profileUuid, options);
|
|
29856
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.listProfileTagsV1']?.[0]?.url;
|
|
29857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29858
|
+
},
|
|
29859
|
+
/**
|
|
29860
|
+
* 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.
|
|
29861
|
+
* @summary Remove a contact from a tag
|
|
29862
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29863
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29864
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29865
|
+
* @param {*} [options] Override http request option.
|
|
29866
|
+
* @throws {RequiredError}
|
|
29867
|
+
*/
|
|
29868
|
+
async removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
29869
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options);
|
|
29870
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.removeAContactFromATagV1']?.[0]?.url;
|
|
29871
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29872
|
+
},
|
|
29873
|
+
/**
|
|
29874
|
+
* 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.
|
|
29875
|
+
* @summary Remove contacts from a tag
|
|
29876
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29877
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29878
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29879
|
+
* @param {*} [options] Override http request option.
|
|
29880
|
+
* @throws {RequiredError}
|
|
29881
|
+
*/
|
|
29882
|
+
async removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
29883
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options);
|
|
29884
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.removeContactsFromATagV1']?.[0]?.url;
|
|
29885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29886
|
+
},
|
|
29887
|
+
/**
|
|
29888
|
+
* 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.
|
|
29889
|
+
* @summary Rename a tag
|
|
29890
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29891
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29892
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
29893
|
+
* @param {*} [options] Override http request option.
|
|
29894
|
+
* @throws {RequiredError}
|
|
29895
|
+
*/
|
|
29896
|
+
async renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsTagsTagResource>> {
|
|
29897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options);
|
|
29898
|
+
const localVarOperationServerBasePath = operationServerMap['ReachTagsApi.renameATagV1']?.[0]?.url;
|
|
29899
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29900
|
+
},
|
|
29901
|
+
}
|
|
29902
|
+
};
|
|
29903
|
+
|
|
29904
|
+
/**
|
|
29905
|
+
* ReachTagsApi - factory interface
|
|
29906
|
+
* @export
|
|
29907
|
+
*/
|
|
29908
|
+
export const ReachTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
29909
|
+
const localVarFp = ReachTagsApiFp(configuration)
|
|
29910
|
+
return {
|
|
29911
|
+
/**
|
|
29912
|
+
* 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.
|
|
29913
|
+
* @summary Assign a contact to a tag
|
|
29914
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29915
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29916
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29917
|
+
* @param {*} [options] Override http request option.
|
|
29918
|
+
* @throws {RequiredError}
|
|
29919
|
+
*/
|
|
29920
|
+
assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource> {
|
|
29921
|
+
return localVarFp.assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
29922
|
+
},
|
|
29923
|
+
/**
|
|
29924
|
+
* 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.
|
|
29925
|
+
* @summary Assign contacts to a tag
|
|
29926
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29927
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29928
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29929
|
+
* @param {*} [options] Override http request option.
|
|
29930
|
+
* @throws {RequiredError}
|
|
29931
|
+
*/
|
|
29932
|
+
assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
29933
|
+
return localVarFp.assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
|
|
29934
|
+
},
|
|
29935
|
+
/**
|
|
29936
|
+
* 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.
|
|
29937
|
+
* @summary Create or find tags
|
|
29938
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29939
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
29940
|
+
* @param {*} [options] Override http request option.
|
|
29941
|
+
* @throws {RequiredError}
|
|
29942
|
+
*/
|
|
29943
|
+
createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>> {
|
|
29944
|
+
return localVarFp.createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(axios, basePath));
|
|
29945
|
+
},
|
|
29946
|
+
/**
|
|
29947
|
+
* 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.
|
|
29948
|
+
* @summary Delete a tag
|
|
29949
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29950
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29951
|
+
* @param {*} [options] Override http request option.
|
|
29952
|
+
* @throws {RequiredError}
|
|
29953
|
+
*/
|
|
29954
|
+
deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
29955
|
+
return localVarFp.deleteATagV1(profileUuid, tagUuid, options).then((request) => request(axios, basePath));
|
|
29956
|
+
},
|
|
29957
|
+
/**
|
|
29958
|
+
* 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.
|
|
29959
|
+
* @summary List profile tags
|
|
29960
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29961
|
+
* @param {*} [options] Override http request option.
|
|
29962
|
+
* @throws {RequiredError}
|
|
29963
|
+
*/
|
|
29964
|
+
listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsTagsTagResource>> {
|
|
29965
|
+
return localVarFp.listProfileTagsV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
29966
|
+
},
|
|
29967
|
+
/**
|
|
29968
|
+
* 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.
|
|
29969
|
+
* @summary Remove a contact from a tag
|
|
29970
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29971
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29972
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
29973
|
+
* @param {*} [options] Override http request option.
|
|
29974
|
+
* @throws {RequiredError}
|
|
29975
|
+
*/
|
|
29976
|
+
removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
29977
|
+
return localVarFp.removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
29978
|
+
},
|
|
29979
|
+
/**
|
|
29980
|
+
* 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.
|
|
29981
|
+
* @summary Remove contacts from a tag
|
|
29982
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29983
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29984
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
29985
|
+
* @param {*} [options] Override http request option.
|
|
29986
|
+
* @throws {RequiredError}
|
|
29987
|
+
*/
|
|
29988
|
+
removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
29989
|
+
return localVarFp.removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(axios, basePath));
|
|
29990
|
+
},
|
|
29991
|
+
/**
|
|
29992
|
+
* 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.
|
|
29993
|
+
* @summary Rename a tag
|
|
29994
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
29995
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
29996
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
29997
|
+
* @param {*} [options] Override http request option.
|
|
29998
|
+
* @throws {RequiredError}
|
|
29999
|
+
*/
|
|
30000
|
+
renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsTagsTagResource> {
|
|
30001
|
+
return localVarFp.renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
30002
|
+
},
|
|
30003
|
+
};
|
|
30004
|
+
};
|
|
30005
|
+
|
|
30006
|
+
/**
|
|
30007
|
+
* ReachTagsApi - object-oriented interface
|
|
30008
|
+
* @export
|
|
30009
|
+
* @class ReachTagsApi
|
|
30010
|
+
* @extends {BaseAPI}
|
|
30011
|
+
*/
|
|
30012
|
+
export class ReachTagsApi extends BaseAPI {
|
|
30013
|
+
/**
|
|
30014
|
+
* 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.
|
|
30015
|
+
* @summary Assign a contact to a tag
|
|
30016
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30017
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30018
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30019
|
+
* @param {*} [options] Override http request option.
|
|
30020
|
+
* @throws {RequiredError}
|
|
30021
|
+
* @memberof ReachTagsApi
|
|
30022
|
+
*/
|
|
30023
|
+
public assignAContactToATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
|
|
30024
|
+
return ReachTagsApiFp(this.configuration).assignAContactToATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30025
|
+
}
|
|
30026
|
+
|
|
30027
|
+
/**
|
|
30028
|
+
* 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.
|
|
30029
|
+
* @summary Assign contacts to a tag
|
|
30030
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30031
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30032
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30033
|
+
* @param {*} [options] Override http request option.
|
|
30034
|
+
* @throws {RequiredError}
|
|
30035
|
+
* @memberof ReachTagsApi
|
|
30036
|
+
*/
|
|
30037
|
+
public assignContactsToATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) {
|
|
30038
|
+
return ReachTagsApiFp(this.configuration).assignContactsToATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30039
|
+
}
|
|
30040
|
+
|
|
30041
|
+
/**
|
|
30042
|
+
* 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.
|
|
30043
|
+
* @summary Create or find tags
|
|
30044
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30045
|
+
* @param {ReachV1ContactsTagsStoreRequest} reachV1ContactsTagsStoreRequest
|
|
30046
|
+
* @param {*} [options] Override http request option.
|
|
30047
|
+
* @throws {RequiredError}
|
|
30048
|
+
* @memberof ReachTagsApi
|
|
30049
|
+
*/
|
|
30050
|
+
public createOrFindTagsV1(profileUuid: string, reachV1ContactsTagsStoreRequest: ReachV1ContactsTagsStoreRequest, options?: RawAxiosRequestConfig) {
|
|
30051
|
+
return ReachTagsApiFp(this.configuration).createOrFindTagsV1(profileUuid, reachV1ContactsTagsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30052
|
+
}
|
|
30053
|
+
|
|
30054
|
+
/**
|
|
30055
|
+
* 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.
|
|
30056
|
+
* @summary Delete a tag
|
|
30057
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30058
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30059
|
+
* @param {*} [options] Override http request option.
|
|
30060
|
+
* @throws {RequiredError}
|
|
30061
|
+
* @memberof ReachTagsApi
|
|
30062
|
+
*/
|
|
30063
|
+
public deleteATagV1(profileUuid: string, tagUuid: string, options?: RawAxiosRequestConfig) {
|
|
30064
|
+
return ReachTagsApiFp(this.configuration).deleteATagV1(profileUuid, tagUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30065
|
+
}
|
|
30066
|
+
|
|
30067
|
+
/**
|
|
30068
|
+
* 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.
|
|
30069
|
+
* @summary List profile tags
|
|
30070
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30071
|
+
* @param {*} [options] Override http request option.
|
|
30072
|
+
* @throws {RequiredError}
|
|
30073
|
+
* @memberof ReachTagsApi
|
|
30074
|
+
*/
|
|
30075
|
+
public listProfileTagsV1(profileUuid: string, options?: RawAxiosRequestConfig) {
|
|
30076
|
+
return ReachTagsApiFp(this.configuration).listProfileTagsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30077
|
+
}
|
|
30078
|
+
|
|
30079
|
+
/**
|
|
30080
|
+
* 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.
|
|
30081
|
+
* @summary Remove a contact from a tag
|
|
30082
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30083
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30084
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
30085
|
+
* @param {*} [options] Override http request option.
|
|
30086
|
+
* @throws {RequiredError}
|
|
30087
|
+
* @memberof ReachTagsApi
|
|
30088
|
+
*/
|
|
30089
|
+
public removeAContactFromATagV1(profileUuid: string, tagUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
|
|
30090
|
+
return ReachTagsApiFp(this.configuration).removeAContactFromATagV1(profileUuid, tagUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
30091
|
+
}
|
|
30092
|
+
|
|
30093
|
+
/**
|
|
30094
|
+
* 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.
|
|
30095
|
+
* @summary Remove contacts from a tag
|
|
30096
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30097
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30098
|
+
* @param {ReachV1ContactsTagsManageContactsRequest} reachV1ContactsTagsManageContactsRequest
|
|
30099
|
+
* @param {*} [options] Override http request option.
|
|
30100
|
+
* @throws {RequiredError}
|
|
30101
|
+
* @memberof ReachTagsApi
|
|
30102
|
+
*/
|
|
30103
|
+
public removeContactsFromATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsManageContactsRequest: ReachV1ContactsTagsManageContactsRequest, options?: RawAxiosRequestConfig) {
|
|
30104
|
+
return ReachTagsApiFp(this.configuration).removeContactsFromATagV1(profileUuid, tagUuid, reachV1ContactsTagsManageContactsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30105
|
+
}
|
|
30106
|
+
|
|
30107
|
+
/**
|
|
30108
|
+
* 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.
|
|
30109
|
+
* @summary Rename a tag
|
|
30110
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
30111
|
+
* @param {string} tagUuid Tag uuid parameter
|
|
30112
|
+
* @param {ReachV1ContactsTagsUpdateRequest} reachV1ContactsTagsUpdateRequest
|
|
30113
|
+
* @param {*} [options] Override http request option.
|
|
30114
|
+
* @throws {RequiredError}
|
|
30115
|
+
* @memberof ReachTagsApi
|
|
30116
|
+
*/
|
|
30117
|
+
public renameATagV1(profileUuid: string, tagUuid: string, reachV1ContactsTagsUpdateRequest: ReachV1ContactsTagsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
30118
|
+
return ReachTagsApiFp(this.configuration).renameATagV1(profileUuid, tagUuid, reachV1ContactsTagsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30119
|
+
}
|
|
30120
|
+
}
|
|
30121
|
+
|
|
30122
|
+
|
|
30123
|
+
|
|
29372
30124
|
/**
|
|
29373
30125
|
* VPSActionsApi - axios parameter creator
|
|
29374
30126
|
* @export
|