hostinger-api-sdk 1.26.0 → 1.27.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 +1625 -119
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1074 -13
- package/dist/api.js +1067 -216
- 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 +1074 -13
- package/dist/esm/api.js +1051 -205
- 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/ReachContactFieldsApi.md +239 -0
- package/docs/ReachContactsApi.md +308 -4
- package/docs/ReachListProfileContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsBulkStoreRequest.md +25 -0
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +26 -0
- package/docs/ReachV1ContactsContactDetailsResource.md +46 -0
- package/docs/ReachV1ContactsFieldsContactFieldOptionResource.md +24 -0
- package/docs/ReachV1ContactsFieldsContactFieldResource.md +30 -0
- package/docs/ReachV1ContactsFieldsContactFieldValueResource.md +33 -0
- package/docs/ReachV1ContactsFieldsStoreRequest.md +25 -0
- package/docs/ReachV1ContactsFieldsUpdateRequest.md +23 -0
- package/docs/ReachV1ContactsFieldsUpdateRequestOptionsInner.md +22 -0
- package/docs/ReachV1ContactsProfileContactResource.md +38 -0
- package/docs/ReachV1ContactsProfileContactUpdateResource.md +34 -0
- package/docs/ReachV1ContactsTagsTagResource.md +26 -0
- package/docs/ReachV1ContactsUpdateRequest.md +33 -0
- package/docs/ReachV1ContactsUpdateRequestFieldsInner.md +24 -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.28.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
|
|
@@ -7612,6 +7612,25 @@ export interface ReachListContactsV1200Response {
|
|
|
7612
7612
|
*/
|
|
7613
7613
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7614
7614
|
}
|
|
7615
|
+
/**
|
|
7616
|
+
*
|
|
7617
|
+
* @export
|
|
7618
|
+
* @interface ReachListProfileContactsV1200Response
|
|
7619
|
+
*/
|
|
7620
|
+
export interface ReachListProfileContactsV1200Response {
|
|
7621
|
+
/**
|
|
7622
|
+
* Array of [`Reach.V1.Contacts.ProfileContactResource`](#model/reachv1contactsprofilecontactresource)
|
|
7623
|
+
* @type {Array<ReachV1ContactsProfileContactResource>}
|
|
7624
|
+
* @memberof ReachListProfileContactsV1200Response
|
|
7625
|
+
*/
|
|
7626
|
+
'data': Array<ReachV1ContactsProfileContactResource>;
|
|
7627
|
+
/**
|
|
7628
|
+
*
|
|
7629
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
7630
|
+
* @memberof ReachListProfileContactsV1200Response
|
|
7631
|
+
*/
|
|
7632
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
7633
|
+
}
|
|
7615
7634
|
/**
|
|
7616
7635
|
*
|
|
7617
7636
|
* @export
|
|
@@ -7631,6 +7650,174 @@ export interface ReachListProfileSegmentContactsV1200Response {
|
|
|
7631
7650
|
*/
|
|
7632
7651
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
7633
7652
|
}
|
|
7653
|
+
/**
|
|
7654
|
+
* Create many contacts in one call
|
|
7655
|
+
* @export
|
|
7656
|
+
* @interface ReachV1ContactsBulkStoreRequest
|
|
7657
|
+
*/
|
|
7658
|
+
export interface ReachV1ContactsBulkStoreRequest {
|
|
7659
|
+
/**
|
|
7660
|
+
*
|
|
7661
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInner>}
|
|
7662
|
+
* @memberof ReachV1ContactsBulkStoreRequest
|
|
7663
|
+
*/
|
|
7664
|
+
'contacts': Array<ReachV1ContactsBulkStoreRequestContactsInner>;
|
|
7665
|
+
/**
|
|
7666
|
+
* Existing tags to attach to every created contact
|
|
7667
|
+
* @type {Array<string>}
|
|
7668
|
+
* @memberof ReachV1ContactsBulkStoreRequest
|
|
7669
|
+
*/
|
|
7670
|
+
'tag_uuids': Array<string>;
|
|
7671
|
+
/**
|
|
7672
|
+
* Note applied to every created contact
|
|
7673
|
+
* @type {string}
|
|
7674
|
+
* @memberof ReachV1ContactsBulkStoreRequest
|
|
7675
|
+
*/
|
|
7676
|
+
'note': string | null;
|
|
7677
|
+
}
|
|
7678
|
+
/**
|
|
7679
|
+
*
|
|
7680
|
+
* @export
|
|
7681
|
+
* @interface ReachV1ContactsBulkStoreRequestContactsInner
|
|
7682
|
+
*/
|
|
7683
|
+
export interface ReachV1ContactsBulkStoreRequestContactsInner {
|
|
7684
|
+
/**
|
|
7685
|
+
*
|
|
7686
|
+
* @type {string}
|
|
7687
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
7688
|
+
*/
|
|
7689
|
+
'email': string;
|
|
7690
|
+
/**
|
|
7691
|
+
*
|
|
7692
|
+
* @type {string}
|
|
7693
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
7694
|
+
*/
|
|
7695
|
+
'name': string | null;
|
|
7696
|
+
/**
|
|
7697
|
+
*
|
|
7698
|
+
* @type {string}
|
|
7699
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
7700
|
+
*/
|
|
7701
|
+
'surname': string | null;
|
|
7702
|
+
/**
|
|
7703
|
+
* Phone number in E.164 format (leading \"+\" then 7-15 digits)
|
|
7704
|
+
* @type {string}
|
|
7705
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
7706
|
+
*/
|
|
7707
|
+
'phone': string | null;
|
|
7708
|
+
}
|
|
7709
|
+
/**
|
|
7710
|
+
*
|
|
7711
|
+
* @export
|
|
7712
|
+
* @interface ReachV1ContactsContactDetailsResource
|
|
7713
|
+
*/
|
|
7714
|
+
export interface ReachV1ContactsContactDetailsResource {
|
|
7715
|
+
/**
|
|
7716
|
+
*
|
|
7717
|
+
* @type {string}
|
|
7718
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7719
|
+
*/
|
|
7720
|
+
'uuid': string;
|
|
7721
|
+
/**
|
|
7722
|
+
*
|
|
7723
|
+
* @type {string}
|
|
7724
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7725
|
+
*/
|
|
7726
|
+
'email': string;
|
|
7727
|
+
/**
|
|
7728
|
+
*
|
|
7729
|
+
* @type {string}
|
|
7730
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7731
|
+
*/
|
|
7732
|
+
'name': string | null;
|
|
7733
|
+
/**
|
|
7734
|
+
*
|
|
7735
|
+
* @type {string}
|
|
7736
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7737
|
+
*/
|
|
7738
|
+
'surname': string | null;
|
|
7739
|
+
/**
|
|
7740
|
+
*
|
|
7741
|
+
* @type {string}
|
|
7742
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7743
|
+
*/
|
|
7744
|
+
'phone': string | null;
|
|
7745
|
+
/**
|
|
7746
|
+
*
|
|
7747
|
+
* @type {string}
|
|
7748
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7749
|
+
*/
|
|
7750
|
+
'subscription_status': ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum;
|
|
7751
|
+
/**
|
|
7752
|
+
*
|
|
7753
|
+
* @type {string}
|
|
7754
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7755
|
+
*/
|
|
7756
|
+
'subscribed_at': string | null;
|
|
7757
|
+
/**
|
|
7758
|
+
*
|
|
7759
|
+
* @type {string}
|
|
7760
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7761
|
+
*/
|
|
7762
|
+
'unsubscribed_at': string | null;
|
|
7763
|
+
/**
|
|
7764
|
+
*
|
|
7765
|
+
* @type {string}
|
|
7766
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7767
|
+
*/
|
|
7768
|
+
'created_at': string | null;
|
|
7769
|
+
/**
|
|
7770
|
+
*
|
|
7771
|
+
* @type {string}
|
|
7772
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7773
|
+
*/
|
|
7774
|
+
'domain': string | null;
|
|
7775
|
+
/**
|
|
7776
|
+
*
|
|
7777
|
+
* @type {string}
|
|
7778
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7779
|
+
*/
|
|
7780
|
+
'source': ReachV1ContactsContactDetailsResourceSourceEnum | null;
|
|
7781
|
+
/**
|
|
7782
|
+
*
|
|
7783
|
+
* @type {string}
|
|
7784
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7785
|
+
*/
|
|
7786
|
+
'note': string | null;
|
|
7787
|
+
/**
|
|
7788
|
+
*
|
|
7789
|
+
* @type {Array<ReachV1ContactsTagsTagResource>}
|
|
7790
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7791
|
+
*/
|
|
7792
|
+
'tags': Array<ReachV1ContactsTagsTagResource>;
|
|
7793
|
+
/**
|
|
7794
|
+
* Custom field values held by this contact
|
|
7795
|
+
* @type {Array<ReachV1ContactsFieldsContactFieldValueResource>}
|
|
7796
|
+
* @memberof ReachV1ContactsContactDetailsResource
|
|
7797
|
+
*/
|
|
7798
|
+
'fields': Array<ReachV1ContactsFieldsContactFieldValueResource>;
|
|
7799
|
+
}
|
|
7800
|
+
|
|
7801
|
+
export const ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = {
|
|
7802
|
+
Subscribed: 'subscribed',
|
|
7803
|
+
Unsubscribed: 'unsubscribed',
|
|
7804
|
+
Confirmed: 'confirmed',
|
|
7805
|
+
Pending: 'pending'
|
|
7806
|
+
} as const;
|
|
7807
|
+
|
|
7808
|
+
export type ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = typeof ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum];
|
|
7809
|
+
export const ReachV1ContactsContactDetailsResourceSourceEnum = {
|
|
7810
|
+
Sync: 'sync',
|
|
7811
|
+
Import: 'import',
|
|
7812
|
+
Manual: 'manual',
|
|
7813
|
+
Api: 'api',
|
|
7814
|
+
Form: 'form',
|
|
7815
|
+
Checkout: 'checkout',
|
|
7816
|
+
Horizons: 'horizons'
|
|
7817
|
+
} as const;
|
|
7818
|
+
|
|
7819
|
+
export type ReachV1ContactsContactDetailsResourceSourceEnum = typeof ReachV1ContactsContactDetailsResourceSourceEnum[keyof typeof ReachV1ContactsContactDetailsResourceSourceEnum];
|
|
7820
|
+
|
|
7634
7821
|
/**
|
|
7635
7822
|
*
|
|
7636
7823
|
* @export
|
|
@@ -7689,14 +7876,20 @@ export interface ReachV1ContactsContactResource {
|
|
|
7689
7876
|
|
|
7690
7877
|
export const ReachV1ContactsContactResourceSubscriptionStatusEnum = {
|
|
7691
7878
|
Subscribed: 'subscribed',
|
|
7692
|
-
Unsubscribed: 'unsubscribed'
|
|
7879
|
+
Unsubscribed: 'unsubscribed',
|
|
7880
|
+
Confirmed: 'confirmed',
|
|
7881
|
+
Pending: 'pending'
|
|
7693
7882
|
} as const;
|
|
7694
7883
|
|
|
7695
7884
|
export type ReachV1ContactsContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsContactResourceSubscriptionStatusEnum];
|
|
7696
7885
|
export const ReachV1ContactsContactResourceSourceEnum = {
|
|
7697
7886
|
Sync: 'sync',
|
|
7698
7887
|
Import: 'import',
|
|
7699
|
-
Manual: 'manual'
|
|
7888
|
+
Manual: 'manual',
|
|
7889
|
+
Api: 'api',
|
|
7890
|
+
Form: 'form',
|
|
7891
|
+
Checkout: 'checkout',
|
|
7892
|
+
Horizons: 'horizons'
|
|
7700
7893
|
} as const;
|
|
7701
7894
|
|
|
7702
7895
|
export type ReachV1ContactsContactResourceSourceEnum = typeof ReachV1ContactsContactResourceSourceEnum[keyof typeof ReachV1ContactsContactResourceSourceEnum];
|
|
@@ -7704,184 +7897,556 @@ export type ReachV1ContactsContactResourceSourceEnum = typeof ReachV1ContactsCon
|
|
|
7704
7897
|
/**
|
|
7705
7898
|
*
|
|
7706
7899
|
* @export
|
|
7707
|
-
* @interface
|
|
7900
|
+
* @interface ReachV1ContactsFieldsContactFieldOptionResource
|
|
7708
7901
|
*/
|
|
7709
|
-
export interface
|
|
7902
|
+
export interface ReachV1ContactsFieldsContactFieldOptionResource {
|
|
7710
7903
|
/**
|
|
7711
7904
|
*
|
|
7712
7905
|
* @type {string}
|
|
7713
|
-
* @memberof
|
|
7906
|
+
* @memberof ReachV1ContactsFieldsContactFieldOptionResource
|
|
7714
7907
|
*/
|
|
7715
7908
|
'uuid': string;
|
|
7716
7909
|
/**
|
|
7717
7910
|
*
|
|
7718
7911
|
* @type {string}
|
|
7719
|
-
* @memberof
|
|
7912
|
+
* @memberof ReachV1ContactsFieldsContactFieldOptionResource
|
|
7720
7913
|
*/
|
|
7721
|
-
'
|
|
7914
|
+
'label': string;
|
|
7915
|
+
/**
|
|
7916
|
+
*
|
|
7917
|
+
* @type {number}
|
|
7918
|
+
* @memberof ReachV1ContactsFieldsContactFieldOptionResource
|
|
7919
|
+
*/
|
|
7920
|
+
'sort_order': number;
|
|
7722
7921
|
}
|
|
7723
7922
|
/**
|
|
7724
7923
|
*
|
|
7725
7924
|
* @export
|
|
7726
|
-
* @interface
|
|
7925
|
+
* @interface ReachV1ContactsFieldsContactFieldResource
|
|
7727
7926
|
*/
|
|
7728
|
-
export interface
|
|
7927
|
+
export interface ReachV1ContactsFieldsContactFieldResource {
|
|
7729
7928
|
/**
|
|
7730
7929
|
*
|
|
7731
7930
|
* @type {string}
|
|
7732
|
-
* @memberof
|
|
7931
|
+
* @memberof ReachV1ContactsFieldsContactFieldResource
|
|
7733
7932
|
*/
|
|
7734
7933
|
'uuid': string;
|
|
7735
7934
|
/**
|
|
7736
7935
|
*
|
|
7737
7936
|
* @type {string}
|
|
7738
|
-
* @memberof
|
|
7937
|
+
* @memberof ReachV1ContactsFieldsContactFieldResource
|
|
7739
7938
|
*/
|
|
7740
|
-
'
|
|
7939
|
+
'type': ReachV1ContactsFieldsContactFieldResourceTypeEnum;
|
|
7741
7940
|
/**
|
|
7742
7941
|
*
|
|
7743
7942
|
* @type {string}
|
|
7744
|
-
* @memberof
|
|
7943
|
+
* @memberof ReachV1ContactsFieldsContactFieldResource
|
|
7745
7944
|
*/
|
|
7746
|
-
'
|
|
7945
|
+
'label': string;
|
|
7946
|
+
/**
|
|
7947
|
+
* Derived from the label on creation and immutable afterwards
|
|
7948
|
+
* @type {string}
|
|
7949
|
+
* @memberof ReachV1ContactsFieldsContactFieldResource
|
|
7950
|
+
*/
|
|
7951
|
+
'slug': string;
|
|
7952
|
+
/**
|
|
7953
|
+
* Available choices. Always empty for the scalar field types.
|
|
7954
|
+
* @type {Array<ReachV1ContactsFieldsContactFieldOptionResource>}
|
|
7955
|
+
* @memberof ReachV1ContactsFieldsContactFieldResource
|
|
7956
|
+
*/
|
|
7957
|
+
'options': Array<ReachV1ContactsFieldsContactFieldOptionResource>;
|
|
7747
7958
|
/**
|
|
7748
7959
|
*
|
|
7749
7960
|
* @type {string}
|
|
7750
|
-
* @memberof
|
|
7961
|
+
* @memberof ReachV1ContactsFieldsContactFieldResource
|
|
7751
7962
|
*/
|
|
7752
|
-
'
|
|
7963
|
+
'created_at': string;
|
|
7753
7964
|
}
|
|
7965
|
+
|
|
7966
|
+
export const ReachV1ContactsFieldsContactFieldResourceTypeEnum = {
|
|
7967
|
+
Text: 'text',
|
|
7968
|
+
Number: 'number',
|
|
7969
|
+
Date: 'date',
|
|
7970
|
+
SingleChoice: 'single_choice',
|
|
7971
|
+
MultiChoice: 'multi_choice'
|
|
7972
|
+
} as const;
|
|
7973
|
+
|
|
7974
|
+
export type ReachV1ContactsFieldsContactFieldResourceTypeEnum = typeof ReachV1ContactsFieldsContactFieldResourceTypeEnum[keyof typeof ReachV1ContactsFieldsContactFieldResourceTypeEnum];
|
|
7975
|
+
|
|
7754
7976
|
/**
|
|
7755
|
-
*
|
|
7977
|
+
* A custom contact field together with the value held by one contact
|
|
7756
7978
|
* @export
|
|
7757
|
-
* @interface
|
|
7979
|
+
* @interface ReachV1ContactsFieldsContactFieldValueResource
|
|
7758
7980
|
*/
|
|
7759
|
-
export interface
|
|
7981
|
+
export interface ReachV1ContactsFieldsContactFieldValueResource {
|
|
7760
7982
|
/**
|
|
7761
7983
|
*
|
|
7762
7984
|
* @type {string}
|
|
7763
|
-
* @memberof
|
|
7985
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
7764
7986
|
*/
|
|
7765
7987
|
'uuid': string;
|
|
7766
7988
|
/**
|
|
7767
7989
|
*
|
|
7768
7990
|
* @type {string}
|
|
7769
|
-
* @memberof
|
|
7991
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
7770
7992
|
*/
|
|
7771
|
-
'
|
|
7993
|
+
'type': ReachV1ContactsFieldsContactFieldValueResourceTypeEnum;
|
|
7772
7994
|
/**
|
|
7773
7995
|
*
|
|
7774
|
-
* @type {
|
|
7775
|
-
* @memberof
|
|
7996
|
+
* @type {string}
|
|
7997
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
7776
7998
|
*/
|
|
7777
|
-
'
|
|
7999
|
+
'label': string;
|
|
7778
8000
|
/**
|
|
7779
8001
|
*
|
|
7780
8002
|
* @type {string}
|
|
7781
|
-
* @memberof
|
|
8003
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
7782
8004
|
*/
|
|
7783
|
-
'
|
|
8005
|
+
'slug': string;
|
|
7784
8006
|
/**
|
|
7785
|
-
*
|
|
8007
|
+
* Set for the scalar field types, null for the choice types
|
|
7786
8008
|
* @type {string}
|
|
7787
|
-
* @memberof
|
|
8009
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
7788
8010
|
*/
|
|
7789
|
-
'
|
|
8011
|
+
'value': string | null;
|
|
8012
|
+
/**
|
|
8013
|
+
* Chosen options for the choice field types, empty for the scalar types
|
|
8014
|
+
* @type {Array<string>}
|
|
8015
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
8016
|
+
*/
|
|
8017
|
+
'selected_option_uuids': Array<string>;
|
|
8018
|
+
/**
|
|
8019
|
+
* Every option the field offers, not only the selected ones
|
|
8020
|
+
* @type {Array<ReachV1ContactsFieldsContactFieldOptionResource>}
|
|
8021
|
+
* @memberof ReachV1ContactsFieldsContactFieldValueResource
|
|
8022
|
+
*/
|
|
8023
|
+
'options': Array<ReachV1ContactsFieldsContactFieldOptionResource>;
|
|
7790
8024
|
}
|
|
8025
|
+
|
|
8026
|
+
export const ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = {
|
|
8027
|
+
Text: 'text',
|
|
8028
|
+
Number: 'number',
|
|
8029
|
+
Date: 'date',
|
|
8030
|
+
SingleChoice: 'single_choice',
|
|
8031
|
+
MultiChoice: 'multi_choice'
|
|
8032
|
+
} as const;
|
|
8033
|
+
|
|
8034
|
+
export type ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = typeof ReachV1ContactsFieldsContactFieldValueResourceTypeEnum[keyof typeof ReachV1ContactsFieldsContactFieldValueResourceTypeEnum];
|
|
8035
|
+
|
|
7791
8036
|
/**
|
|
7792
|
-
*
|
|
8037
|
+
* Define a custom contact field for the profile
|
|
7793
8038
|
* @export
|
|
7794
|
-
* @interface
|
|
8039
|
+
* @interface ReachV1ContactsFieldsStoreRequest
|
|
7795
8040
|
*/
|
|
7796
|
-
export interface
|
|
8041
|
+
export interface ReachV1ContactsFieldsStoreRequest {
|
|
7797
8042
|
/**
|
|
7798
|
-
*
|
|
8043
|
+
* Immutable once the field exists
|
|
7799
8044
|
* @type {string}
|
|
7800
|
-
* @memberof
|
|
8045
|
+
* @memberof ReachV1ContactsFieldsStoreRequest
|
|
7801
8046
|
*/
|
|
7802
|
-
'
|
|
8047
|
+
'type': ReachV1ContactsFieldsStoreRequestTypeEnum;
|
|
7803
8048
|
/**
|
|
7804
8049
|
*
|
|
7805
8050
|
* @type {string}
|
|
7806
|
-
* @memberof
|
|
8051
|
+
* @memberof ReachV1ContactsFieldsStoreRequest
|
|
7807
8052
|
*/
|
|
7808
|
-
'
|
|
8053
|
+
'label': string;
|
|
7809
8054
|
/**
|
|
7810
|
-
*
|
|
7811
|
-
* @type {string}
|
|
7812
|
-
* @memberof
|
|
8055
|
+
* Required for single_choice and multi_choice, ignored for the scalar types. Labels must be unique regardless of casing.
|
|
8056
|
+
* @type {Array<string>}
|
|
8057
|
+
* @memberof ReachV1ContactsFieldsStoreRequest
|
|
7813
8058
|
*/
|
|
7814
|
-
'
|
|
8059
|
+
'options': Array<string>;
|
|
8060
|
+
}
|
|
8061
|
+
|
|
8062
|
+
export const ReachV1ContactsFieldsStoreRequestTypeEnum = {
|
|
8063
|
+
Text: 'text',
|
|
8064
|
+
Number: 'number',
|
|
8065
|
+
Date: 'date',
|
|
8066
|
+
SingleChoice: 'single_choice',
|
|
8067
|
+
MultiChoice: 'multi_choice'
|
|
8068
|
+
} as const;
|
|
8069
|
+
|
|
8070
|
+
export type ReachV1ContactsFieldsStoreRequestTypeEnum = typeof ReachV1ContactsFieldsStoreRequestTypeEnum[keyof typeof ReachV1ContactsFieldsStoreRequestTypeEnum];
|
|
8071
|
+
|
|
8072
|
+
/**
|
|
8073
|
+
* Rename a custom contact field and, for the choice types, replace its option set. The field type and slug are immutable.
|
|
8074
|
+
* @export
|
|
8075
|
+
* @interface ReachV1ContactsFieldsUpdateRequest
|
|
8076
|
+
*/
|
|
8077
|
+
export interface ReachV1ContactsFieldsUpdateRequest {
|
|
7815
8078
|
/**
|
|
7816
8079
|
*
|
|
7817
8080
|
* @type {string}
|
|
7818
|
-
* @memberof
|
|
8081
|
+
* @memberof ReachV1ContactsFieldsUpdateRequest
|
|
7819
8082
|
*/
|
|
7820
|
-
'
|
|
8083
|
+
'label': string;
|
|
8084
|
+
/**
|
|
8085
|
+
* Replaces the option set when provided. Entries carrying a uuid are kept and relabelled, entries without one are created, and any existing option missing from the list is deleted along with the values contacts hold for it.
|
|
8086
|
+
* @type {Array<ReachV1ContactsFieldsUpdateRequestOptionsInner>}
|
|
8087
|
+
* @memberof ReachV1ContactsFieldsUpdateRequest
|
|
8088
|
+
*/
|
|
8089
|
+
'options': Array<ReachV1ContactsFieldsUpdateRequestOptionsInner> | null;
|
|
8090
|
+
}
|
|
8091
|
+
/**
|
|
8092
|
+
*
|
|
8093
|
+
* @export
|
|
8094
|
+
* @interface ReachV1ContactsFieldsUpdateRequestOptionsInner
|
|
8095
|
+
*/
|
|
8096
|
+
export interface ReachV1ContactsFieldsUpdateRequestOptionsInner {
|
|
7821
8097
|
/**
|
|
7822
8098
|
*
|
|
7823
8099
|
* @type {string}
|
|
7824
|
-
* @memberof
|
|
8100
|
+
* @memberof ReachV1ContactsFieldsUpdateRequestOptionsInner
|
|
7825
8101
|
*/
|
|
7826
|
-
'
|
|
8102
|
+
'uuid': string | null;
|
|
7827
8103
|
/**
|
|
7828
8104
|
*
|
|
7829
8105
|
* @type {string}
|
|
7830
|
-
* @memberof
|
|
8106
|
+
* @memberof ReachV1ContactsFieldsUpdateRequestOptionsInner
|
|
7831
8107
|
*/
|
|
7832
|
-
'
|
|
8108
|
+
'label': string;
|
|
8109
|
+
}
|
|
8110
|
+
/**
|
|
8111
|
+
*
|
|
8112
|
+
* @export
|
|
8113
|
+
* @interface ReachV1ContactsGroupsContactGroupResource
|
|
8114
|
+
*/
|
|
8115
|
+
export interface ReachV1ContactsGroupsContactGroupResource {
|
|
7833
8116
|
/**
|
|
7834
8117
|
*
|
|
7835
8118
|
* @type {string}
|
|
7836
|
-
* @memberof
|
|
8119
|
+
* @memberof ReachV1ContactsGroupsContactGroupResource
|
|
7837
8120
|
*/
|
|
7838
|
-
'
|
|
8121
|
+
'uuid': string;
|
|
7839
8122
|
/**
|
|
7840
8123
|
*
|
|
7841
8124
|
* @type {string}
|
|
7842
|
-
* @memberof
|
|
8125
|
+
* @memberof ReachV1ContactsGroupsContactGroupResource
|
|
7843
8126
|
*/
|
|
7844
|
-
'
|
|
8127
|
+
'title': string;
|
|
7845
8128
|
}
|
|
7846
|
-
|
|
7847
|
-
export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
|
|
7848
|
-
Subscribed: 'subscribed',
|
|
7849
|
-
Unsubscribed: 'unsubscribed'
|
|
7850
|
-
} as const;
|
|
7851
|
-
|
|
7852
|
-
export type ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum];
|
|
7853
|
-
export const ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
|
|
7854
|
-
Sync: 'sync',
|
|
7855
|
-
Import: 'import',
|
|
7856
|
-
Manual: 'manual'
|
|
7857
|
-
} as const;
|
|
7858
|
-
|
|
7859
|
-
export type ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum];
|
|
7860
|
-
|
|
7861
8129
|
/**
|
|
7862
8130
|
*
|
|
7863
8131
|
* @export
|
|
7864
|
-
* @interface
|
|
8132
|
+
* @interface ReachV1ContactsProfileContactResource
|
|
7865
8133
|
*/
|
|
7866
|
-
export interface
|
|
8134
|
+
export interface ReachV1ContactsProfileContactResource {
|
|
7867
8135
|
/**
|
|
7868
8136
|
*
|
|
7869
8137
|
* @type {string}
|
|
7870
|
-
* @memberof
|
|
8138
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
7871
8139
|
*/
|
|
7872
|
-
'
|
|
8140
|
+
'uuid': string;
|
|
7873
8141
|
/**
|
|
7874
8142
|
*
|
|
7875
|
-
* @type {
|
|
7876
|
-
* @memberof
|
|
8143
|
+
* @type {string}
|
|
8144
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
7877
8145
|
*/
|
|
7878
|
-
'
|
|
8146
|
+
'name': string | null;
|
|
7879
8147
|
/**
|
|
7880
8148
|
*
|
|
7881
8149
|
* @type {string}
|
|
7882
|
-
* @memberof
|
|
8150
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
7883
8151
|
*/
|
|
7884
|
-
'
|
|
8152
|
+
'surname': string | null;
|
|
8153
|
+
/**
|
|
8154
|
+
*
|
|
8155
|
+
* @type {string}
|
|
8156
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8157
|
+
*/
|
|
8158
|
+
'email': string;
|
|
8159
|
+
/**
|
|
8160
|
+
*
|
|
8161
|
+
* @type {string}
|
|
8162
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8163
|
+
*/
|
|
8164
|
+
'phone': string | null;
|
|
8165
|
+
/**
|
|
8166
|
+
*
|
|
8167
|
+
* @type {string}
|
|
8168
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8169
|
+
*/
|
|
8170
|
+
'subscription_status': ReachV1ContactsProfileContactResourceSubscriptionStatusEnum;
|
|
8171
|
+
/**
|
|
8172
|
+
*
|
|
8173
|
+
* @type {string}
|
|
8174
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8175
|
+
*/
|
|
8176
|
+
'subscribed_at': string | null;
|
|
8177
|
+
/**
|
|
8178
|
+
*
|
|
8179
|
+
* @type {string}
|
|
8180
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8181
|
+
*/
|
|
8182
|
+
'unsubscribed_at': string | null;
|
|
8183
|
+
/**
|
|
8184
|
+
*
|
|
8185
|
+
* @type {string}
|
|
8186
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8187
|
+
*/
|
|
8188
|
+
'source': ReachV1ContactsProfileContactResourceSourceEnum | null;
|
|
8189
|
+
/**
|
|
8190
|
+
*
|
|
8191
|
+
* @type {string}
|
|
8192
|
+
* @memberof ReachV1ContactsProfileContactResource
|
|
8193
|
+
*/
|
|
8194
|
+
'note': string | null;
|
|
8195
|
+
}
|
|
8196
|
+
|
|
8197
|
+
export const ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = {
|
|
8198
|
+
Subscribed: 'subscribed',
|
|
8199
|
+
Unsubscribed: 'unsubscribed',
|
|
8200
|
+
Confirmed: 'confirmed',
|
|
8201
|
+
Pending: 'pending'
|
|
8202
|
+
} as const;
|
|
8203
|
+
|
|
8204
|
+
export type ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsProfileContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsProfileContactResourceSubscriptionStatusEnum];
|
|
8205
|
+
export const ReachV1ContactsProfileContactResourceSourceEnum = {
|
|
8206
|
+
Sync: 'sync',
|
|
8207
|
+
Import: 'import',
|
|
8208
|
+
Manual: 'manual',
|
|
8209
|
+
Api: 'api',
|
|
8210
|
+
Form: 'form',
|
|
8211
|
+
Checkout: 'checkout',
|
|
8212
|
+
Horizons: 'horizons'
|
|
8213
|
+
} as const;
|
|
8214
|
+
|
|
8215
|
+
export type ReachV1ContactsProfileContactResourceSourceEnum = typeof ReachV1ContactsProfileContactResourceSourceEnum[keyof typeof ReachV1ContactsProfileContactResourceSourceEnum];
|
|
8216
|
+
|
|
8217
|
+
/**
|
|
8218
|
+
*
|
|
8219
|
+
* @export
|
|
8220
|
+
* @interface ReachV1ContactsProfileContactUpdateResource
|
|
8221
|
+
*/
|
|
8222
|
+
export interface ReachV1ContactsProfileContactUpdateResource {
|
|
8223
|
+
/**
|
|
8224
|
+
*
|
|
8225
|
+
* @type {string}
|
|
8226
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8227
|
+
*/
|
|
8228
|
+
'uuid': string;
|
|
8229
|
+
/**
|
|
8230
|
+
*
|
|
8231
|
+
* @type {string}
|
|
8232
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8233
|
+
*/
|
|
8234
|
+
'name': string | null;
|
|
8235
|
+
/**
|
|
8236
|
+
*
|
|
8237
|
+
* @type {string}
|
|
8238
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8239
|
+
*/
|
|
8240
|
+
'surname': string | null;
|
|
8241
|
+
/**
|
|
8242
|
+
*
|
|
8243
|
+
* @type {string}
|
|
8244
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8245
|
+
*/
|
|
8246
|
+
'email': string;
|
|
8247
|
+
/**
|
|
8248
|
+
*
|
|
8249
|
+
* @type {string}
|
|
8250
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8251
|
+
*/
|
|
8252
|
+
'phone': string | null;
|
|
8253
|
+
/**
|
|
8254
|
+
*
|
|
8255
|
+
* @type {string}
|
|
8256
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8257
|
+
*/
|
|
8258
|
+
'subscription_status': ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum;
|
|
8259
|
+
/**
|
|
8260
|
+
*
|
|
8261
|
+
* @type {string}
|
|
8262
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8263
|
+
*/
|
|
8264
|
+
'subscribed_at': string | null;
|
|
8265
|
+
/**
|
|
8266
|
+
*
|
|
8267
|
+
* @type {string}
|
|
8268
|
+
* @memberof ReachV1ContactsProfileContactUpdateResource
|
|
8269
|
+
*/
|
|
8270
|
+
'unsubscribed_at': string | null;
|
|
8271
|
+
}
|
|
8272
|
+
|
|
8273
|
+
export const ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = {
|
|
8274
|
+
Subscribed: 'subscribed',
|
|
8275
|
+
Unsubscribed: 'unsubscribed',
|
|
8276
|
+
Confirmed: 'confirmed',
|
|
8277
|
+
Pending: 'pending'
|
|
8278
|
+
} as const;
|
|
8279
|
+
|
|
8280
|
+
export type ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = typeof ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum];
|
|
8281
|
+
|
|
8282
|
+
/**
|
|
8283
|
+
*
|
|
8284
|
+
* @export
|
|
8285
|
+
* @interface ReachV1ContactsSegmentsContactSegmentResource
|
|
8286
|
+
*/
|
|
8287
|
+
export interface ReachV1ContactsSegmentsContactSegmentResource {
|
|
8288
|
+
/**
|
|
8289
|
+
*
|
|
8290
|
+
* @type {string}
|
|
8291
|
+
* @memberof ReachV1ContactsSegmentsContactSegmentResource
|
|
8292
|
+
*/
|
|
8293
|
+
'uuid': string;
|
|
8294
|
+
/**
|
|
8295
|
+
*
|
|
8296
|
+
* @type {string}
|
|
8297
|
+
* @memberof ReachV1ContactsSegmentsContactSegmentResource
|
|
8298
|
+
*/
|
|
8299
|
+
'name': string;
|
|
8300
|
+
/**
|
|
8301
|
+
*
|
|
8302
|
+
* @type {string}
|
|
8303
|
+
* @memberof ReachV1ContactsSegmentsContactSegmentResource
|
|
8304
|
+
*/
|
|
8305
|
+
'created_at': string;
|
|
8306
|
+
/**
|
|
8307
|
+
*
|
|
8308
|
+
* @type {string}
|
|
8309
|
+
* @memberof ReachV1ContactsSegmentsContactSegmentResource
|
|
8310
|
+
*/
|
|
8311
|
+
'updated_at': string;
|
|
8312
|
+
}
|
|
8313
|
+
/**
|
|
8314
|
+
*
|
|
8315
|
+
* @export
|
|
8316
|
+
* @interface ReachV1ContactsSegmentsSegmentResource
|
|
8317
|
+
*/
|
|
8318
|
+
export interface ReachV1ContactsSegmentsSegmentResource {
|
|
8319
|
+
/**
|
|
8320
|
+
*
|
|
8321
|
+
* @type {string}
|
|
8322
|
+
* @memberof ReachV1ContactsSegmentsSegmentResource
|
|
8323
|
+
*/
|
|
8324
|
+
'uuid': string;
|
|
8325
|
+
/**
|
|
8326
|
+
*
|
|
8327
|
+
* @type {string}
|
|
8328
|
+
* @memberof ReachV1ContactsSegmentsSegmentResource
|
|
8329
|
+
*/
|
|
8330
|
+
'name': string;
|
|
8331
|
+
/**
|
|
8332
|
+
*
|
|
8333
|
+
* @type {Array<any>}
|
|
8334
|
+
* @memberof ReachV1ContactsSegmentsSegmentResource
|
|
8335
|
+
*/
|
|
8336
|
+
'query': Array<any>;
|
|
8337
|
+
/**
|
|
8338
|
+
*
|
|
8339
|
+
* @type {string}
|
|
8340
|
+
* @memberof ReachV1ContactsSegmentsSegmentResource
|
|
8341
|
+
*/
|
|
8342
|
+
'created_at': string;
|
|
8343
|
+
/**
|
|
8344
|
+
*
|
|
8345
|
+
* @type {string}
|
|
8346
|
+
* @memberof ReachV1ContactsSegmentsSegmentResource
|
|
8347
|
+
*/
|
|
8348
|
+
'updated_at': string;
|
|
8349
|
+
}
|
|
8350
|
+
/**
|
|
8351
|
+
*
|
|
8352
|
+
* @export
|
|
8353
|
+
* @interface ReachV1ContactsSegmentsSegmentationContactResource
|
|
8354
|
+
*/
|
|
8355
|
+
export interface ReachV1ContactsSegmentsSegmentationContactResource {
|
|
8356
|
+
/**
|
|
8357
|
+
*
|
|
8358
|
+
* @type {string}
|
|
8359
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8360
|
+
*/
|
|
8361
|
+
'uuid': string;
|
|
8362
|
+
/**
|
|
8363
|
+
*
|
|
8364
|
+
* @type {string}
|
|
8365
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8366
|
+
*/
|
|
8367
|
+
'name': string | null;
|
|
8368
|
+
/**
|
|
8369
|
+
*
|
|
8370
|
+
* @type {string}
|
|
8371
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8372
|
+
*/
|
|
8373
|
+
'surname': string | null;
|
|
8374
|
+
/**
|
|
8375
|
+
*
|
|
8376
|
+
* @type {string}
|
|
8377
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8378
|
+
*/
|
|
8379
|
+
'email': string;
|
|
8380
|
+
/**
|
|
8381
|
+
*
|
|
8382
|
+
* @type {string}
|
|
8383
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8384
|
+
*/
|
|
8385
|
+
'subscription_status': ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum;
|
|
8386
|
+
/**
|
|
8387
|
+
*
|
|
8388
|
+
* @type {string}
|
|
8389
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8390
|
+
*/
|
|
8391
|
+
'subscribed_at': string;
|
|
8392
|
+
/**
|
|
8393
|
+
*
|
|
8394
|
+
* @type {string}
|
|
8395
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8396
|
+
*/
|
|
8397
|
+
'source': ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum | null;
|
|
8398
|
+
/**
|
|
8399
|
+
*
|
|
8400
|
+
* @type {string}
|
|
8401
|
+
* @memberof ReachV1ContactsSegmentsSegmentationContactResource
|
|
8402
|
+
*/
|
|
8403
|
+
'note': string | null;
|
|
8404
|
+
}
|
|
8405
|
+
|
|
8406
|
+
export const ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = {
|
|
8407
|
+
Subscribed: 'subscribed',
|
|
8408
|
+
Unsubscribed: 'unsubscribed',
|
|
8409
|
+
Confirmed: 'confirmed',
|
|
8410
|
+
Pending: 'pending'
|
|
8411
|
+
} as const;
|
|
8412
|
+
|
|
8413
|
+
export type ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum];
|
|
8414
|
+
export const ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = {
|
|
8415
|
+
Sync: 'sync',
|
|
8416
|
+
Import: 'import',
|
|
8417
|
+
Manual: 'manual',
|
|
8418
|
+
Api: 'api',
|
|
8419
|
+
Form: 'form',
|
|
8420
|
+
Checkout: 'checkout',
|
|
8421
|
+
Horizons: 'horizons'
|
|
8422
|
+
} as const;
|
|
8423
|
+
|
|
8424
|
+
export type ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum[keyof typeof ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum];
|
|
8425
|
+
|
|
8426
|
+
/**
|
|
8427
|
+
*
|
|
8428
|
+
* @export
|
|
8429
|
+
* @interface ReachV1ContactsSegmentsStoreRequest
|
|
8430
|
+
*/
|
|
8431
|
+
export interface ReachV1ContactsSegmentsStoreRequest {
|
|
8432
|
+
/**
|
|
8433
|
+
*
|
|
8434
|
+
* @type {string}
|
|
8435
|
+
* @memberof ReachV1ContactsSegmentsStoreRequest
|
|
8436
|
+
*/
|
|
8437
|
+
'name': string;
|
|
8438
|
+
/**
|
|
8439
|
+
*
|
|
8440
|
+
* @type {Array<ReachV1ContactsSegmentsStoreRequestConditionsInner>}
|
|
8441
|
+
* @memberof ReachV1ContactsSegmentsStoreRequest
|
|
8442
|
+
*/
|
|
8443
|
+
'conditions': Array<ReachV1ContactsSegmentsStoreRequestConditionsInner>;
|
|
8444
|
+
/**
|
|
8445
|
+
*
|
|
8446
|
+
* @type {string}
|
|
8447
|
+
* @memberof ReachV1ContactsSegmentsStoreRequest
|
|
8448
|
+
*/
|
|
8449
|
+
'logic': ReachV1ContactsSegmentsStoreRequestLogicEnum;
|
|
7885
8450
|
}
|
|
7886
8451
|
|
|
7887
8452
|
export const ReachV1ContactsSegmentsStoreRequestLogicEnum = {
|
|
@@ -8016,13 +8581,136 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
8016
8581
|
/**
|
|
8017
8582
|
*
|
|
8018
8583
|
* @export
|
|
8019
|
-
* @interface
|
|
8584
|
+
* @interface ReachV1ContactsTagsTagResource
|
|
8020
8585
|
*/
|
|
8021
|
-
export interface
|
|
8586
|
+
export interface ReachV1ContactsTagsTagResource {
|
|
8022
8587
|
/**
|
|
8023
8588
|
*
|
|
8024
|
-
* @type {
|
|
8025
|
-
* @memberof
|
|
8589
|
+
* @type {string}
|
|
8590
|
+
* @memberof ReachV1ContactsTagsTagResource
|
|
8591
|
+
*/
|
|
8592
|
+
'uuid': string;
|
|
8593
|
+
/**
|
|
8594
|
+
* How the tag came about. `custom` covers the tags you create yourself, `form` covers the ones Reach creates for its forms.
|
|
8595
|
+
* @type {string}
|
|
8596
|
+
* @memberof ReachV1ContactsTagsTagResource
|
|
8597
|
+
*/
|
|
8598
|
+
'type': ReachV1ContactsTagsTagResourceTypeEnum;
|
|
8599
|
+
/**
|
|
8600
|
+
*
|
|
8601
|
+
* @type {string}
|
|
8602
|
+
* @memberof ReachV1ContactsTagsTagResource
|
|
8603
|
+
*/
|
|
8604
|
+
'value': string;
|
|
8605
|
+
/**
|
|
8606
|
+
*
|
|
8607
|
+
* @type {string}
|
|
8608
|
+
* @memberof ReachV1ContactsTagsTagResource
|
|
8609
|
+
*/
|
|
8610
|
+
'created_at': string;
|
|
8611
|
+
}
|
|
8612
|
+
|
|
8613
|
+
export const ReachV1ContactsTagsTagResourceTypeEnum = {
|
|
8614
|
+
Form: 'form',
|
|
8615
|
+
Custom: 'custom'
|
|
8616
|
+
} as const;
|
|
8617
|
+
|
|
8618
|
+
export type ReachV1ContactsTagsTagResourceTypeEnum = typeof ReachV1ContactsTagsTagResourceTypeEnum[keyof typeof ReachV1ContactsTagsTagResourceTypeEnum];
|
|
8619
|
+
|
|
8620
|
+
/**
|
|
8621
|
+
* Fields to change on a contact. Omitted properties are left untouched.
|
|
8622
|
+
* @export
|
|
8623
|
+
* @interface ReachV1ContactsUpdateRequest
|
|
8624
|
+
*/
|
|
8625
|
+
export interface ReachV1ContactsUpdateRequest {
|
|
8626
|
+
/**
|
|
8627
|
+
*
|
|
8628
|
+
* @type {string}
|
|
8629
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8630
|
+
*/
|
|
8631
|
+
'email': string | null;
|
|
8632
|
+
/**
|
|
8633
|
+
*
|
|
8634
|
+
* @type {string}
|
|
8635
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8636
|
+
*/
|
|
8637
|
+
'name': string | null;
|
|
8638
|
+
/**
|
|
8639
|
+
*
|
|
8640
|
+
* @type {string}
|
|
8641
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8642
|
+
*/
|
|
8643
|
+
'surname': string | null;
|
|
8644
|
+
/**
|
|
8645
|
+
* Phone number in E.164 format (leading \"+\" then 7-15 digits)
|
|
8646
|
+
* @type {string}
|
|
8647
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8648
|
+
*/
|
|
8649
|
+
'phone': string | null;
|
|
8650
|
+
/**
|
|
8651
|
+
*
|
|
8652
|
+
* @type {string}
|
|
8653
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8654
|
+
*/
|
|
8655
|
+
'subscription_status': ReachV1ContactsUpdateRequestSubscriptionStatusEnum | null;
|
|
8656
|
+
/**
|
|
8657
|
+
*
|
|
8658
|
+
* @type {string}
|
|
8659
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8660
|
+
*/
|
|
8661
|
+
'note': string | null;
|
|
8662
|
+
/**
|
|
8663
|
+
* Set custom field values. Omit to leave untouched, send an empty array to clear them all.
|
|
8664
|
+
* @type {Array<ReachV1ContactsUpdateRequestFieldsInner>}
|
|
8665
|
+
* @memberof ReachV1ContactsUpdateRequest
|
|
8666
|
+
*/
|
|
8667
|
+
'fields': Array<ReachV1ContactsUpdateRequestFieldsInner>;
|
|
8668
|
+
}
|
|
8669
|
+
|
|
8670
|
+
export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
|
|
8671
|
+
Subscribed: 'subscribed',
|
|
8672
|
+
Unsubscribed: 'unsubscribed',
|
|
8673
|
+
Confirmed: 'confirmed',
|
|
8674
|
+
Pending: 'pending'
|
|
8675
|
+
} as const;
|
|
8676
|
+
|
|
8677
|
+
export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
|
|
8678
|
+
|
|
8679
|
+
/**
|
|
8680
|
+
*
|
|
8681
|
+
* @export
|
|
8682
|
+
* @interface ReachV1ContactsUpdateRequestFieldsInner
|
|
8683
|
+
*/
|
|
8684
|
+
export interface ReachV1ContactsUpdateRequestFieldsInner {
|
|
8685
|
+
/**
|
|
8686
|
+
*
|
|
8687
|
+
* @type {string}
|
|
8688
|
+
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
8689
|
+
*/
|
|
8690
|
+
'uuid': string;
|
|
8691
|
+
/**
|
|
8692
|
+
* For the scalar field types
|
|
8693
|
+
* @type {string}
|
|
8694
|
+
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
8695
|
+
*/
|
|
8696
|
+
'value': string | null;
|
|
8697
|
+
/**
|
|
8698
|
+
* For the choice field types
|
|
8699
|
+
* @type {Array<string>}
|
|
8700
|
+
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
8701
|
+
*/
|
|
8702
|
+
'selected_option_uuids': Array<string>;
|
|
8703
|
+
}
|
|
8704
|
+
/**
|
|
8705
|
+
*
|
|
8706
|
+
* @export
|
|
8707
|
+
* @interface ReachV1ProfilesDomainsDnsRecordStatus
|
|
8708
|
+
*/
|
|
8709
|
+
export interface ReachV1ProfilesDomainsDnsRecordStatus {
|
|
8710
|
+
/**
|
|
8711
|
+
*
|
|
8712
|
+
* @type {Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>}
|
|
8713
|
+
* @memberof ReachV1ProfilesDomainsDnsRecordStatus
|
|
8026
8714
|
*/
|
|
8027
8715
|
'actual': Array<ReachV1ProfilesDomainsDnsRecordStatusActualInner>;
|
|
8028
8716
|
/**
|
|
@@ -26818,6 +27506,365 @@ export const ListWebhooksV1StatusEnum = {
|
|
|
26818
27506
|
export type ListWebhooksV1StatusEnum = typeof ListWebhooksV1StatusEnum[keyof typeof ListWebhooksV1StatusEnum];
|
|
26819
27507
|
|
|
26820
27508
|
|
|
27509
|
+
/**
|
|
27510
|
+
* ReachContactFieldsApi - axios parameter creator
|
|
27511
|
+
* @export
|
|
27512
|
+
*/
|
|
27513
|
+
export const ReachContactFieldsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
27514
|
+
return {
|
|
27515
|
+
/**
|
|
27516
|
+
* Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
|
|
27517
|
+
* @summary Create a contact field
|
|
27518
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27519
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
27520
|
+
* @param {*} [options] Override http request option.
|
|
27521
|
+
* @throws {RequiredError}
|
|
27522
|
+
*/
|
|
27523
|
+
createAContactFieldV1: async (profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27524
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
27525
|
+
assertParamExists('createAContactFieldV1', 'profileUuid', profileUuid)
|
|
27526
|
+
// verify required parameter 'reachV1ContactsFieldsStoreRequest' is not null or undefined
|
|
27527
|
+
assertParamExists('createAContactFieldV1', 'reachV1ContactsFieldsStoreRequest', reachV1ContactsFieldsStoreRequest)
|
|
27528
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
|
|
27529
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
27530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27532
|
+
let baseOptions;
|
|
27533
|
+
if (configuration) {
|
|
27534
|
+
baseOptions = configuration.baseOptions;
|
|
27535
|
+
}
|
|
27536
|
+
|
|
27537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27538
|
+
const localVarHeaderParameter = {} as any;
|
|
27539
|
+
const localVarQueryParameter = {} as any;
|
|
27540
|
+
|
|
27541
|
+
// authentication apiToken required
|
|
27542
|
+
// http bearer authentication required
|
|
27543
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27544
|
+
|
|
27545
|
+
|
|
27546
|
+
|
|
27547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27548
|
+
|
|
27549
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27551
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsFieldsStoreRequest, localVarRequestOptions, configuration)
|
|
27553
|
+
|
|
27554
|
+
return {
|
|
27555
|
+
url: toPathString(localVarUrlObj),
|
|
27556
|
+
options: localVarRequestOptions,
|
|
27557
|
+
};
|
|
27558
|
+
},
|
|
27559
|
+
/**
|
|
27560
|
+
* Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
|
|
27561
|
+
* @summary Delete a contact field
|
|
27562
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27563
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27564
|
+
* @param {*} [options] Override http request option.
|
|
27565
|
+
* @throws {RequiredError}
|
|
27566
|
+
*/
|
|
27567
|
+
deleteAContactFieldV1: async (profileUuid: string, fieldUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27568
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
27569
|
+
assertParamExists('deleteAContactFieldV1', 'profileUuid', profileUuid)
|
|
27570
|
+
// verify required parameter 'fieldUuid' is not null or undefined
|
|
27571
|
+
assertParamExists('deleteAContactFieldV1', 'fieldUuid', fieldUuid)
|
|
27572
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
|
|
27573
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
27574
|
+
.replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
|
|
27575
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27576
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27577
|
+
let baseOptions;
|
|
27578
|
+
if (configuration) {
|
|
27579
|
+
baseOptions = configuration.baseOptions;
|
|
27580
|
+
}
|
|
27581
|
+
|
|
27582
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
27583
|
+
const localVarHeaderParameter = {} as any;
|
|
27584
|
+
const localVarQueryParameter = {} as any;
|
|
27585
|
+
|
|
27586
|
+
// authentication apiToken required
|
|
27587
|
+
// http bearer authentication required
|
|
27588
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27589
|
+
|
|
27590
|
+
|
|
27591
|
+
|
|
27592
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27593
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27594
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27595
|
+
|
|
27596
|
+
return {
|
|
27597
|
+
url: toPathString(localVarUrlObj),
|
|
27598
|
+
options: localVarRequestOptions,
|
|
27599
|
+
};
|
|
27600
|
+
},
|
|
27601
|
+
/**
|
|
27602
|
+
* Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
|
|
27603
|
+
* @summary List contact fields
|
|
27604
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27605
|
+
* @param {*} [options] Override http request option.
|
|
27606
|
+
* @throws {RequiredError}
|
|
27607
|
+
*/
|
|
27608
|
+
listContactFieldsV1: async (profileUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27609
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
27610
|
+
assertParamExists('listContactFieldsV1', 'profileUuid', profileUuid)
|
|
27611
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields`
|
|
27612
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
27613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27614
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27615
|
+
let baseOptions;
|
|
27616
|
+
if (configuration) {
|
|
27617
|
+
baseOptions = configuration.baseOptions;
|
|
27618
|
+
}
|
|
27619
|
+
|
|
27620
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27621
|
+
const localVarHeaderParameter = {} as any;
|
|
27622
|
+
const localVarQueryParameter = {} as any;
|
|
27623
|
+
|
|
27624
|
+
// authentication apiToken required
|
|
27625
|
+
// http bearer authentication required
|
|
27626
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27627
|
+
|
|
27628
|
+
|
|
27629
|
+
|
|
27630
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27632
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27633
|
+
|
|
27634
|
+
return {
|
|
27635
|
+
url: toPathString(localVarUrlObj),
|
|
27636
|
+
options: localVarRequestOptions,
|
|
27637
|
+
};
|
|
27638
|
+
},
|
|
27639
|
+
/**
|
|
27640
|
+
* Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
|
|
27641
|
+
* @summary Update a contact field
|
|
27642
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27643
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27644
|
+
* @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
|
|
27645
|
+
* @param {*} [options] Override http request option.
|
|
27646
|
+
* @throws {RequiredError}
|
|
27647
|
+
*/
|
|
27648
|
+
updateAContactFieldV1: async (profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27649
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
27650
|
+
assertParamExists('updateAContactFieldV1', 'profileUuid', profileUuid)
|
|
27651
|
+
// verify required parameter 'fieldUuid' is not null or undefined
|
|
27652
|
+
assertParamExists('updateAContactFieldV1', 'fieldUuid', fieldUuid)
|
|
27653
|
+
// verify required parameter 'reachV1ContactsFieldsUpdateRequest' is not null or undefined
|
|
27654
|
+
assertParamExists('updateAContactFieldV1', 'reachV1ContactsFieldsUpdateRequest', reachV1ContactsFieldsUpdateRequest)
|
|
27655
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/fields/{fieldUuid}`
|
|
27656
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
27657
|
+
.replace(`{${"fieldUuid"}}`, encodeURIComponent(String(fieldUuid)));
|
|
27658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27660
|
+
let baseOptions;
|
|
27661
|
+
if (configuration) {
|
|
27662
|
+
baseOptions = configuration.baseOptions;
|
|
27663
|
+
}
|
|
27664
|
+
|
|
27665
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
27666
|
+
const localVarHeaderParameter = {} as any;
|
|
27667
|
+
const localVarQueryParameter = {} as any;
|
|
27668
|
+
|
|
27669
|
+
// authentication apiToken required
|
|
27670
|
+
// http bearer authentication required
|
|
27671
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27672
|
+
|
|
27673
|
+
|
|
27674
|
+
|
|
27675
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27676
|
+
|
|
27677
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27678
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27679
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27680
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsFieldsUpdateRequest, localVarRequestOptions, configuration)
|
|
27681
|
+
|
|
27682
|
+
return {
|
|
27683
|
+
url: toPathString(localVarUrlObj),
|
|
27684
|
+
options: localVarRequestOptions,
|
|
27685
|
+
};
|
|
27686
|
+
},
|
|
27687
|
+
}
|
|
27688
|
+
};
|
|
27689
|
+
|
|
27690
|
+
/**
|
|
27691
|
+
* ReachContactFieldsApi - functional programming interface
|
|
27692
|
+
* @export
|
|
27693
|
+
*/
|
|
27694
|
+
export const ReachContactFieldsApiFp = function(configuration?: Configuration) {
|
|
27695
|
+
const localVarAxiosParamCreator = ReachContactFieldsApiAxiosParamCreator(configuration)
|
|
27696
|
+
return {
|
|
27697
|
+
/**
|
|
27698
|
+
* Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
|
|
27699
|
+
* @summary Create a contact field
|
|
27700
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27701
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
27702
|
+
* @param {*} [options] Override http request option.
|
|
27703
|
+
* @throws {RequiredError}
|
|
27704
|
+
*/
|
|
27705
|
+
async createAContactFieldV1(profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsFieldsContactFieldResource>> {
|
|
27706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options);
|
|
27707
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.createAContactFieldV1']?.[0]?.url;
|
|
27708
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27709
|
+
},
|
|
27710
|
+
/**
|
|
27711
|
+
* Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
|
|
27712
|
+
* @summary Delete a contact field
|
|
27713
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27714
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27715
|
+
* @param {*} [options] Override http request option.
|
|
27716
|
+
* @throws {RequiredError}
|
|
27717
|
+
*/
|
|
27718
|
+
async deleteAContactFieldV1(profileUuid: string, fieldUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
27719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAContactFieldV1(profileUuid, fieldUuid, options);
|
|
27720
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.deleteAContactFieldV1']?.[0]?.url;
|
|
27721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27722
|
+
},
|
|
27723
|
+
/**
|
|
27724
|
+
* Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
|
|
27725
|
+
* @summary List contact fields
|
|
27726
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27727
|
+
* @param {*} [options] Override http request option.
|
|
27728
|
+
* @throws {RequiredError}
|
|
27729
|
+
*/
|
|
27730
|
+
async listContactFieldsV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1ContactsFieldsContactFieldResource>>> {
|
|
27731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listContactFieldsV1(profileUuid, options);
|
|
27732
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.listContactFieldsV1']?.[0]?.url;
|
|
27733
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27734
|
+
},
|
|
27735
|
+
/**
|
|
27736
|
+
* Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
|
|
27737
|
+
* @summary Update a contact field
|
|
27738
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27739
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27740
|
+
* @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
|
|
27741
|
+
* @param {*} [options] Override http request option.
|
|
27742
|
+
* @throws {RequiredError}
|
|
27743
|
+
*/
|
|
27744
|
+
async updateAContactFieldV1(profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsFieldsContactFieldResource>> {
|
|
27745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options);
|
|
27746
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactFieldsApi.updateAContactFieldV1']?.[0]?.url;
|
|
27747
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27748
|
+
},
|
|
27749
|
+
}
|
|
27750
|
+
};
|
|
27751
|
+
|
|
27752
|
+
/**
|
|
27753
|
+
* ReachContactFieldsApi - factory interface
|
|
27754
|
+
* @export
|
|
27755
|
+
*/
|
|
27756
|
+
export const ReachContactFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
27757
|
+
const localVarFp = ReachContactFieldsApiFp(configuration)
|
|
27758
|
+
return {
|
|
27759
|
+
/**
|
|
27760
|
+
* Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
|
|
27761
|
+
* @summary Create a contact field
|
|
27762
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27763
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
27764
|
+
* @param {*} [options] Override http request option.
|
|
27765
|
+
* @throws {RequiredError}
|
|
27766
|
+
*/
|
|
27767
|
+
createAContactFieldV1(profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsFieldsContactFieldResource> {
|
|
27768
|
+
return localVarFp.createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(axios, basePath));
|
|
27769
|
+
},
|
|
27770
|
+
/**
|
|
27771
|
+
* Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
|
|
27772
|
+
* @summary Delete a contact field
|
|
27773
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27774
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27775
|
+
* @param {*} [options] Override http request option.
|
|
27776
|
+
* @throws {RequiredError}
|
|
27777
|
+
*/
|
|
27778
|
+
deleteAContactFieldV1(profileUuid: string, fieldUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
27779
|
+
return localVarFp.deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(axios, basePath));
|
|
27780
|
+
},
|
|
27781
|
+
/**
|
|
27782
|
+
* Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
|
|
27783
|
+
* @summary List contact fields
|
|
27784
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27785
|
+
* @param {*} [options] Override http request option.
|
|
27786
|
+
* @throws {RequiredError}
|
|
27787
|
+
*/
|
|
27788
|
+
listContactFieldsV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1ContactsFieldsContactFieldResource>> {
|
|
27789
|
+
return localVarFp.listContactFieldsV1(profileUuid, options).then((request) => request(axios, basePath));
|
|
27790
|
+
},
|
|
27791
|
+
/**
|
|
27792
|
+
* Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
|
|
27793
|
+
* @summary Update a contact field
|
|
27794
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27795
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27796
|
+
* @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
|
|
27797
|
+
* @param {*} [options] Override http request option.
|
|
27798
|
+
* @throws {RequiredError}
|
|
27799
|
+
*/
|
|
27800
|
+
updateAContactFieldV1(profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsFieldsContactFieldResource> {
|
|
27801
|
+
return localVarFp.updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
27802
|
+
},
|
|
27803
|
+
};
|
|
27804
|
+
};
|
|
27805
|
+
|
|
27806
|
+
/**
|
|
27807
|
+
* ReachContactFieldsApi - object-oriented interface
|
|
27808
|
+
* @export
|
|
27809
|
+
* @class ReachContactFieldsApi
|
|
27810
|
+
* @extends {BaseAPI}
|
|
27811
|
+
*/
|
|
27812
|
+
export class ReachContactFieldsApi extends BaseAPI {
|
|
27813
|
+
/**
|
|
27814
|
+
* Define a new custom contact field in a profile. The `slug` is derived from the label and, like the field type, cannot be changed later. Use the returned uuid to set values on contacts.
|
|
27815
|
+
* @summary Create a contact field
|
|
27816
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27817
|
+
* @param {ReachV1ContactsFieldsStoreRequest} reachV1ContactsFieldsStoreRequest
|
|
27818
|
+
* @param {*} [options] Override http request option.
|
|
27819
|
+
* @throws {RequiredError}
|
|
27820
|
+
* @memberof ReachContactFieldsApi
|
|
27821
|
+
*/
|
|
27822
|
+
public createAContactFieldV1(profileUuid: string, reachV1ContactsFieldsStoreRequest: ReachV1ContactsFieldsStoreRequest, options?: RawAxiosRequestConfig) {
|
|
27823
|
+
return ReachContactFieldsApiFp(this.configuration).createAContactFieldV1(profileUuid, reachV1ContactsFieldsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27824
|
+
}
|
|
27825
|
+
|
|
27826
|
+
/**
|
|
27827
|
+
* Delete a custom contact field. Every value contacts hold for the field is deleted with it, and for the choice types so are its options. The contacts themselves are not affected.
|
|
27828
|
+
* @summary Delete a contact field
|
|
27829
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27830
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27831
|
+
* @param {*} [options] Override http request option.
|
|
27832
|
+
* @throws {RequiredError}
|
|
27833
|
+
* @memberof ReachContactFieldsApi
|
|
27834
|
+
*/
|
|
27835
|
+
public deleteAContactFieldV1(profileUuid: string, fieldUuid: string, options?: RawAxiosRequestConfig) {
|
|
27836
|
+
return ReachContactFieldsApiFp(this.configuration).deleteAContactFieldV1(profileUuid, fieldUuid, options).then((request) => request(this.axios, this.basePath));
|
|
27837
|
+
}
|
|
27838
|
+
|
|
27839
|
+
/**
|
|
27840
|
+
* Get the custom contact fields defined in a profile. Custom fields let you store your own attributes on contacts. The returned uuids are what you pass to the contact update endpoint to set values, and choice fields also list the options available to pick from.
|
|
27841
|
+
* @summary List contact fields
|
|
27842
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27843
|
+
* @param {*} [options] Override http request option.
|
|
27844
|
+
* @throws {RequiredError}
|
|
27845
|
+
* @memberof ReachContactFieldsApi
|
|
27846
|
+
*/
|
|
27847
|
+
public listContactFieldsV1(profileUuid: string, options?: RawAxiosRequestConfig) {
|
|
27848
|
+
return ReachContactFieldsApiFp(this.configuration).listContactFieldsV1(profileUuid, options).then((request) => request(this.axios, this.basePath));
|
|
27849
|
+
}
|
|
27850
|
+
|
|
27851
|
+
/**
|
|
27852
|
+
* Rename a custom contact field and, for the choice types, replace its option set. Options carrying a uuid are kept and relabelled, options without one are created, and any existing option left out of the list is deleted along with the values contacts hold for it. The field type and slug cannot be changed.
|
|
27853
|
+
* @summary Update a contact field
|
|
27854
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27855
|
+
* @param {string} fieldUuid Contact field uuid parameter
|
|
27856
|
+
* @param {ReachV1ContactsFieldsUpdateRequest} reachV1ContactsFieldsUpdateRequest
|
|
27857
|
+
* @param {*} [options] Override http request option.
|
|
27858
|
+
* @throws {RequiredError}
|
|
27859
|
+
* @memberof ReachContactFieldsApi
|
|
27860
|
+
*/
|
|
27861
|
+
public updateAContactFieldV1(profileUuid: string, fieldUuid: string, reachV1ContactsFieldsUpdateRequest: ReachV1ContactsFieldsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
27862
|
+
return ReachContactFieldsApiFp(this.configuration).updateAContactFieldV1(profileUuid, fieldUuid, reachV1ContactsFieldsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27863
|
+
}
|
|
27864
|
+
}
|
|
27865
|
+
|
|
27866
|
+
|
|
27867
|
+
|
|
26821
27868
|
/**
|
|
26822
27869
|
* ReachContactsApi - axios parameter creator
|
|
26823
27870
|
* @export
|
|
@@ -26832,10 +27879,140 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26832
27879
|
* @deprecated
|
|
26833
27880
|
* @throws {RequiredError}
|
|
26834
27881
|
*/
|
|
26835
|
-
createANewContactV1: async (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26836
|
-
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
26837
|
-
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
|
|
26838
|
-
const localVarPath = `/api/reach/v1/contacts`;
|
|
27882
|
+
createANewContactV1: async (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27883
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
27884
|
+
assertParamExists('createANewContactV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
|
|
27885
|
+
const localVarPath = `/api/reach/v1/contacts`;
|
|
27886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27887
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27888
|
+
let baseOptions;
|
|
27889
|
+
if (configuration) {
|
|
27890
|
+
baseOptions = configuration.baseOptions;
|
|
27891
|
+
}
|
|
27892
|
+
|
|
27893
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27894
|
+
const localVarHeaderParameter = {} as any;
|
|
27895
|
+
const localVarQueryParameter = {} as any;
|
|
27896
|
+
|
|
27897
|
+
// authentication apiToken required
|
|
27898
|
+
// http bearer authentication required
|
|
27899
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27900
|
+
|
|
27901
|
+
|
|
27902
|
+
|
|
27903
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27904
|
+
|
|
27905
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27906
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27907
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27908
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
|
|
27909
|
+
|
|
27910
|
+
return {
|
|
27911
|
+
url: toPathString(localVarUrlObj),
|
|
27912
|
+
options: localVarRequestOptions,
|
|
27913
|
+
};
|
|
27914
|
+
},
|
|
27915
|
+
/**
|
|
27916
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
27917
|
+
* @summary Create contacts in bulk
|
|
27918
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27919
|
+
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
27920
|
+
* @param {*} [options] Override http request option.
|
|
27921
|
+
* @throws {RequiredError}
|
|
27922
|
+
*/
|
|
27923
|
+
createContactsInBulkV1: async (profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27924
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
27925
|
+
assertParamExists('createContactsInBulkV1', 'profileUuid', profileUuid)
|
|
27926
|
+
// verify required parameter 'reachV1ContactsBulkStoreRequest' is not null or undefined
|
|
27927
|
+
assertParamExists('createContactsInBulkV1', 'reachV1ContactsBulkStoreRequest', reachV1ContactsBulkStoreRequest)
|
|
27928
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/bulk`
|
|
27929
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
27930
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27931
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27932
|
+
let baseOptions;
|
|
27933
|
+
if (configuration) {
|
|
27934
|
+
baseOptions = configuration.baseOptions;
|
|
27935
|
+
}
|
|
27936
|
+
|
|
27937
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27938
|
+
const localVarHeaderParameter = {} as any;
|
|
27939
|
+
const localVarQueryParameter = {} as any;
|
|
27940
|
+
|
|
27941
|
+
// authentication apiToken required
|
|
27942
|
+
// http bearer authentication required
|
|
27943
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27944
|
+
|
|
27945
|
+
|
|
27946
|
+
|
|
27947
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27948
|
+
|
|
27949
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27951
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27952
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsBulkStoreRequest, localVarRequestOptions, configuration)
|
|
27953
|
+
|
|
27954
|
+
return {
|
|
27955
|
+
url: toPathString(localVarUrlObj),
|
|
27956
|
+
options: localVarRequestOptions,
|
|
27957
|
+
};
|
|
27958
|
+
},
|
|
27959
|
+
/**
|
|
27960
|
+
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
27961
|
+
* @summary Create new contacts
|
|
27962
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
27963
|
+
* @param {ReachV1ContactsStoreRequest} reachV1ContactsStoreRequest
|
|
27964
|
+
* @param {*} [options] Override http request option.
|
|
27965
|
+
* @throws {RequiredError}
|
|
27966
|
+
*/
|
|
27967
|
+
createNewContactsV1: async (profileUuid: string, reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27968
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
27969
|
+
assertParamExists('createNewContactsV1', 'profileUuid', profileUuid)
|
|
27970
|
+
// verify required parameter 'reachV1ContactsStoreRequest' is not null or undefined
|
|
27971
|
+
assertParamExists('createNewContactsV1', 'reachV1ContactsStoreRequest', reachV1ContactsStoreRequest)
|
|
27972
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
27973
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
27974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27976
|
+
let baseOptions;
|
|
27977
|
+
if (configuration) {
|
|
27978
|
+
baseOptions = configuration.baseOptions;
|
|
27979
|
+
}
|
|
27980
|
+
|
|
27981
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27982
|
+
const localVarHeaderParameter = {} as any;
|
|
27983
|
+
const localVarQueryParameter = {} as any;
|
|
27984
|
+
|
|
27985
|
+
// authentication apiToken required
|
|
27986
|
+
// http bearer authentication required
|
|
27987
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27988
|
+
|
|
27989
|
+
|
|
27990
|
+
|
|
27991
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27992
|
+
|
|
27993
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27994
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27995
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27996
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
|
|
27997
|
+
|
|
27998
|
+
return {
|
|
27999
|
+
url: toPathString(localVarUrlObj),
|
|
28000
|
+
options: localVarRequestOptions,
|
|
28001
|
+
};
|
|
28002
|
+
},
|
|
28003
|
+
/**
|
|
28004
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
|
|
28005
|
+
* @summary Delete a contact
|
|
28006
|
+
* @param {string} uuid UUID of the contact to delete
|
|
28007
|
+
* @param {*} [options] Override http request option.
|
|
28008
|
+
* @deprecated
|
|
28009
|
+
* @throws {RequiredError}
|
|
28010
|
+
*/
|
|
28011
|
+
deleteAContactV1: async (uuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28012
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
28013
|
+
assertParamExists('deleteAContactV1', 'uuid', uuid)
|
|
28014
|
+
const localVarPath = `/api/reach/v1/contacts/{uuid}`
|
|
28015
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
26839
28016
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26840
28017
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26841
28018
|
let baseOptions;
|
|
@@ -26843,7 +28020,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26843
28020
|
baseOptions = configuration.baseOptions;
|
|
26844
28021
|
}
|
|
26845
28022
|
|
|
26846
|
-
const localVarRequestOptions = { method: '
|
|
28023
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
26847
28024
|
const localVarHeaderParameter = {} as any;
|
|
26848
28025
|
const localVarQueryParameter = {} as any;
|
|
26849
28026
|
|
|
@@ -26853,12 +28030,9 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26853
28030
|
|
|
26854
28031
|
|
|
26855
28032
|
|
|
26856
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26857
|
-
|
|
26858
28033
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26859
28034
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26860
28035
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26861
|
-
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
|
|
26862
28036
|
|
|
26863
28037
|
return {
|
|
26864
28038
|
url: toPathString(localVarUrlObj),
|
|
@@ -26866,20 +28040,21 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26866
28040
|
};
|
|
26867
28041
|
},
|
|
26868
28042
|
/**
|
|
26869
|
-
*
|
|
26870
|
-
* @summary
|
|
28043
|
+
* Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
|
|
28044
|
+
* @summary Delete a profile contact
|
|
26871
28045
|
* @param {string} profileUuid Profile uuid parameter
|
|
26872
|
-
* @param {
|
|
28046
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
26873
28047
|
* @param {*} [options] Override http request option.
|
|
26874
28048
|
* @throws {RequiredError}
|
|
26875
28049
|
*/
|
|
26876
|
-
|
|
28050
|
+
deleteAProfileContactV1: async (profileUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26877
28051
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
26878
|
-
assertParamExists('
|
|
26879
|
-
// verify required parameter '
|
|
26880
|
-
assertParamExists('
|
|
26881
|
-
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
26882
|
-
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
28052
|
+
assertParamExists('deleteAProfileContactV1', 'profileUuid', profileUuid)
|
|
28053
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
28054
|
+
assertParamExists('deleteAProfileContactV1', 'contactUuid', contactUuid)
|
|
28055
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
|
|
28056
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
28057
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
26883
28058
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26884
28059
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26885
28060
|
let baseOptions;
|
|
@@ -26887,7 +28062,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26887
28062
|
baseOptions = configuration.baseOptions;
|
|
26888
28063
|
}
|
|
26889
28064
|
|
|
26890
|
-
const localVarRequestOptions = { method: '
|
|
28065
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
26891
28066
|
const localVarHeaderParameter = {} as any;
|
|
26892
28067
|
const localVarQueryParameter = {} as any;
|
|
26893
28068
|
|
|
@@ -26897,12 +28072,9 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26897
28072
|
|
|
26898
28073
|
|
|
26899
28074
|
|
|
26900
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26901
|
-
|
|
26902
28075
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26903
28076
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26904
28077
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26905
|
-
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsStoreRequest, localVarRequestOptions, configuration)
|
|
26906
28078
|
|
|
26907
28079
|
return {
|
|
26908
28080
|
url: toPathString(localVarUrlObj),
|
|
@@ -26910,17 +28082,21 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26910
28082
|
};
|
|
26911
28083
|
},
|
|
26912
28084
|
/**
|
|
26913
|
-
*
|
|
26914
|
-
* @summary
|
|
26915
|
-
* @param {string}
|
|
28085
|
+
* Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
|
|
28086
|
+
* @summary Get contact details
|
|
28087
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28088
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
26916
28089
|
* @param {*} [options] Override http request option.
|
|
26917
28090
|
* @throws {RequiredError}
|
|
26918
28091
|
*/
|
|
26919
|
-
|
|
26920
|
-
// verify required parameter '
|
|
26921
|
-
assertParamExists('
|
|
26922
|
-
|
|
26923
|
-
|
|
28092
|
+
getContactDetailsV1: async (profileUuid: string, contactUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28093
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
28094
|
+
assertParamExists('getContactDetailsV1', 'profileUuid', profileUuid)
|
|
28095
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
28096
|
+
assertParamExists('getContactDetailsV1', 'contactUuid', contactUuid)
|
|
28097
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
|
|
28098
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
28099
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
26924
28100
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26925
28101
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26926
28102
|
let baseOptions;
|
|
@@ -26928,7 +28104,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26928
28104
|
baseOptions = configuration.baseOptions;
|
|
26929
28105
|
}
|
|
26930
28106
|
|
|
26931
|
-
const localVarRequestOptions = { method: '
|
|
28107
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26932
28108
|
const localVarHeaderParameter = {} as any;
|
|
26933
28109
|
const localVarQueryParameter = {} as any;
|
|
26934
28110
|
|
|
@@ -26983,12 +28159,13 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
26983
28159
|
};
|
|
26984
28160
|
},
|
|
26985
28161
|
/**
|
|
26986
|
-
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
28162
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
|
|
26987
28163
|
* @summary List contacts
|
|
26988
28164
|
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
26989
28165
|
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
26990
28166
|
* @param {number} [page] Page number
|
|
26991
28167
|
* @param {*} [options] Override http request option.
|
|
28168
|
+
* @deprecated
|
|
26992
28169
|
* @throws {RequiredError}
|
|
26993
28170
|
*/
|
|
26994
28171
|
listContactsV1: async (groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -27026,6 +28203,117 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
27026
28203
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27027
28204
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27028
28205
|
|
|
28206
|
+
return {
|
|
28207
|
+
url: toPathString(localVarUrlObj),
|
|
28208
|
+
options: localVarRequestOptions,
|
|
28209
|
+
};
|
|
28210
|
+
},
|
|
28211
|
+
/**
|
|
28212
|
+
* Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
|
|
28213
|
+
* @summary List profile contacts
|
|
28214
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28215
|
+
* @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
28216
|
+
* @param {string} [tagUuid] Filter contacts by tag UUID
|
|
28217
|
+
* @param {string} [search] Search contacts by email
|
|
28218
|
+
* @param {number} [page] Page number
|
|
28219
|
+
* @param {number} [perPage] Number of items per page
|
|
28220
|
+
* @param {*} [options] Override http request option.
|
|
28221
|
+
* @throws {RequiredError}
|
|
28222
|
+
*/
|
|
28223
|
+
listProfileContactsV1: async (profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28224
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
28225
|
+
assertParamExists('listProfileContactsV1', 'profileUuid', profileUuid)
|
|
28226
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts`
|
|
28227
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
28228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28230
|
+
let baseOptions;
|
|
28231
|
+
if (configuration) {
|
|
28232
|
+
baseOptions = configuration.baseOptions;
|
|
28233
|
+
}
|
|
28234
|
+
|
|
28235
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28236
|
+
const localVarHeaderParameter = {} as any;
|
|
28237
|
+
const localVarQueryParameter = {} as any;
|
|
28238
|
+
|
|
28239
|
+
// authentication apiToken required
|
|
28240
|
+
// http bearer authentication required
|
|
28241
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28242
|
+
|
|
28243
|
+
if (subscriptionStatus !== undefined) {
|
|
28244
|
+
localVarQueryParameter['subscription_status'] = subscriptionStatus;
|
|
28245
|
+
}
|
|
28246
|
+
|
|
28247
|
+
if (tagUuid !== undefined) {
|
|
28248
|
+
localVarQueryParameter['tag_uuid'] = tagUuid;
|
|
28249
|
+
}
|
|
28250
|
+
|
|
28251
|
+
if (search !== undefined) {
|
|
28252
|
+
localVarQueryParameter['search'] = search;
|
|
28253
|
+
}
|
|
28254
|
+
|
|
28255
|
+
if (page !== undefined) {
|
|
28256
|
+
localVarQueryParameter['page'] = page;
|
|
28257
|
+
}
|
|
28258
|
+
|
|
28259
|
+
if (perPage !== undefined) {
|
|
28260
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
28261
|
+
}
|
|
28262
|
+
|
|
28263
|
+
|
|
28264
|
+
|
|
28265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28267
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28268
|
+
|
|
28269
|
+
return {
|
|
28270
|
+
url: toPathString(localVarUrlObj),
|
|
28271
|
+
options: localVarRequestOptions,
|
|
28272
|
+
};
|
|
28273
|
+
},
|
|
28274
|
+
/**
|
|
28275
|
+
* Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
|
|
28276
|
+
* @summary Update a contact
|
|
28277
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28278
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28279
|
+
* @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
|
|
28280
|
+
* @param {*} [options] Override http request option.
|
|
28281
|
+
* @throws {RequiredError}
|
|
28282
|
+
*/
|
|
28283
|
+
updateAContactV1: async (profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28284
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
28285
|
+
assertParamExists('updateAContactV1', 'profileUuid', profileUuid)
|
|
28286
|
+
// verify required parameter 'contactUuid' is not null or undefined
|
|
28287
|
+
assertParamExists('updateAContactV1', 'contactUuid', contactUuid)
|
|
28288
|
+
// verify required parameter 'reachV1ContactsUpdateRequest' is not null or undefined
|
|
28289
|
+
assertParamExists('updateAContactV1', 'reachV1ContactsUpdateRequest', reachV1ContactsUpdateRequest)
|
|
28290
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`
|
|
28291
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
28292
|
+
.replace(`{${"contactUuid"}}`, encodeURIComponent(String(contactUuid)));
|
|
28293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28294
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28295
|
+
let baseOptions;
|
|
28296
|
+
if (configuration) {
|
|
28297
|
+
baseOptions = configuration.baseOptions;
|
|
28298
|
+
}
|
|
28299
|
+
|
|
28300
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
28301
|
+
const localVarHeaderParameter = {} as any;
|
|
28302
|
+
const localVarQueryParameter = {} as any;
|
|
28303
|
+
|
|
28304
|
+
// authentication apiToken required
|
|
28305
|
+
// http bearer authentication required
|
|
28306
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28307
|
+
|
|
28308
|
+
|
|
28309
|
+
|
|
28310
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28311
|
+
|
|
28312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28314
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28315
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1ContactsUpdateRequest, localVarRequestOptions, configuration)
|
|
28316
|
+
|
|
27029
28317
|
return {
|
|
27030
28318
|
url: toPathString(localVarUrlObj),
|
|
27031
28319
|
options: localVarRequestOptions,
|
|
@@ -27054,6 +28342,19 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
27054
28342
|
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createANewContactV1']?.[0]?.url;
|
|
27055
28343
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27056
28344
|
},
|
|
28345
|
+
/**
|
|
28346
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
28347
|
+
* @summary Create contacts in bulk
|
|
28348
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28349
|
+
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
28350
|
+
* @param {*} [options] Override http request option.
|
|
28351
|
+
* @throws {RequiredError}
|
|
28352
|
+
*/
|
|
28353
|
+
async createContactsInBulkV1(profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
28354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options);
|
|
28355
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.createContactsInBulkV1']?.[0]?.url;
|
|
28356
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28357
|
+
},
|
|
27057
28358
|
/**
|
|
27058
28359
|
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
27059
28360
|
* @summary Create new contacts
|
|
@@ -27068,10 +28369,11 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
27068
28369
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27069
28370
|
},
|
|
27070
28371
|
/**
|
|
27071
|
-
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
28372
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
|
|
27072
28373
|
* @summary Delete a contact
|
|
27073
28374
|
* @param {string} uuid UUID of the contact to delete
|
|
27074
28375
|
* @param {*} [options] Override http request option.
|
|
28376
|
+
* @deprecated
|
|
27075
28377
|
* @throws {RequiredError}
|
|
27076
28378
|
*/
|
|
27077
28379
|
async deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
@@ -27079,6 +28381,32 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
27079
28381
|
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAContactV1']?.[0]?.url;
|
|
27080
28382
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27081
28383
|
},
|
|
28384
|
+
/**
|
|
28385
|
+
* Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
|
|
28386
|
+
* @summary Delete a profile contact
|
|
28387
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28388
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28389
|
+
* @param {*} [options] Override http request option.
|
|
28390
|
+
* @throws {RequiredError}
|
|
28391
|
+
*/
|
|
28392
|
+
async deleteAProfileContactV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
28393
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAProfileContactV1(profileUuid, contactUuid, options);
|
|
28394
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.deleteAProfileContactV1']?.[0]?.url;
|
|
28395
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28396
|
+
},
|
|
28397
|
+
/**
|
|
28398
|
+
* Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
|
|
28399
|
+
* @summary Get contact details
|
|
28400
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28401
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28402
|
+
* @param {*} [options] Override http request option.
|
|
28403
|
+
* @throws {RequiredError}
|
|
28404
|
+
*/
|
|
28405
|
+
async getContactDetailsV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsContactDetailsResource>> {
|
|
28406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContactDetailsV1(profileUuid, contactUuid, options);
|
|
28407
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.getContactDetailsV1']?.[0]?.url;
|
|
28408
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28409
|
+
},
|
|
27082
28410
|
/**
|
|
27083
28411
|
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
27084
28412
|
* @summary List contact groups
|
|
@@ -27092,12 +28420,13 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
27092
28420
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27093
28421
|
},
|
|
27094
28422
|
/**
|
|
27095
|
-
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
28423
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
|
|
27096
28424
|
* @summary List contacts
|
|
27097
28425
|
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
27098
28426
|
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
27099
28427
|
* @param {number} [page] Page number
|
|
27100
28428
|
* @param {*} [options] Override http request option.
|
|
28429
|
+
* @deprecated
|
|
27101
28430
|
* @throws {RequiredError}
|
|
27102
28431
|
*/
|
|
27103
28432
|
async listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListContactsV1200Response>> {
|
|
@@ -27105,6 +28434,37 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
27105
28434
|
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listContactsV1']?.[0]?.url;
|
|
27106
28435
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27107
28436
|
},
|
|
28437
|
+
/**
|
|
28438
|
+
* Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
|
|
28439
|
+
* @summary List profile contacts
|
|
28440
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28441
|
+
* @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
28442
|
+
* @param {string} [tagUuid] Filter contacts by tag UUID
|
|
28443
|
+
* @param {string} [search] Search contacts by email
|
|
28444
|
+
* @param {number} [page] Page number
|
|
28445
|
+
* @param {number} [perPage] Number of items per page
|
|
28446
|
+
* @param {*} [options] Override http request option.
|
|
28447
|
+
* @throws {RequiredError}
|
|
28448
|
+
*/
|
|
28449
|
+
async listProfileContactsV1(profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListProfileContactsV1200Response>> {
|
|
28450
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options);
|
|
28451
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.listProfileContactsV1']?.[0]?.url;
|
|
28452
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28453
|
+
},
|
|
28454
|
+
/**
|
|
28455
|
+
* Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
|
|
28456
|
+
* @summary Update a contact
|
|
28457
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28458
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28459
|
+
* @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
|
|
28460
|
+
* @param {*} [options] Override http request option.
|
|
28461
|
+
* @throws {RequiredError}
|
|
28462
|
+
*/
|
|
28463
|
+
async updateAContactV1(profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1ContactsProfileContactUpdateResource>> {
|
|
28464
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options);
|
|
28465
|
+
const localVarOperationServerBasePath = operationServerMap['ReachContactsApi.updateAContactV1']?.[0]?.url;
|
|
28466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28467
|
+
},
|
|
27108
28468
|
}
|
|
27109
28469
|
};
|
|
27110
28470
|
|
|
@@ -27126,6 +28486,17 @@ export const ReachContactsApiFactory = function (configuration?: Configuration,
|
|
|
27126
28486
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
27127
28487
|
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
27128
28488
|
},
|
|
28489
|
+
/**
|
|
28490
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
28491
|
+
* @summary Create contacts in bulk
|
|
28492
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28493
|
+
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
28494
|
+
* @param {*} [options] Override http request option.
|
|
28495
|
+
* @throws {RequiredError}
|
|
28496
|
+
*/
|
|
28497
|
+
createContactsInBulkV1(profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
28498
|
+
return localVarFp.createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(axios, basePath));
|
|
28499
|
+
},
|
|
27129
28500
|
/**
|
|
27130
28501
|
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
27131
28502
|
* @summary Create new contacts
|
|
@@ -27138,15 +28509,38 @@ export const ReachContactsApiFactory = function (configuration?: Configuration,
|
|
|
27138
28509
|
return localVarFp.createNewContactsV1(profileUuid, reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
27139
28510
|
},
|
|
27140
28511
|
/**
|
|
27141
|
-
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
28512
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
|
|
27142
28513
|
* @summary Delete a contact
|
|
27143
28514
|
* @param {string} uuid UUID of the contact to delete
|
|
27144
28515
|
* @param {*} [options] Override http request option.
|
|
28516
|
+
* @deprecated
|
|
27145
28517
|
* @throws {RequiredError}
|
|
27146
28518
|
*/
|
|
27147
28519
|
deleteAContactV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
27148
28520
|
return localVarFp.deleteAContactV1(uuid, options).then((request) => request(axios, basePath));
|
|
27149
28521
|
},
|
|
28522
|
+
/**
|
|
28523
|
+
* Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
|
|
28524
|
+
* @summary Delete a profile contact
|
|
28525
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28526
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28527
|
+
* @param {*} [options] Override http request option.
|
|
28528
|
+
* @throws {RequiredError}
|
|
28529
|
+
*/
|
|
28530
|
+
deleteAProfileContactV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
28531
|
+
return localVarFp.deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
28532
|
+
},
|
|
28533
|
+
/**
|
|
28534
|
+
* Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
|
|
28535
|
+
* @summary Get contact details
|
|
28536
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28537
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28538
|
+
* @param {*} [options] Override http request option.
|
|
28539
|
+
* @throws {RequiredError}
|
|
28540
|
+
*/
|
|
28541
|
+
getContactDetailsV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsContactDetailsResource> {
|
|
28542
|
+
return localVarFp.getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(axios, basePath));
|
|
28543
|
+
},
|
|
27150
28544
|
/**
|
|
27151
28545
|
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
27152
28546
|
* @summary List contact groups
|
|
@@ -27158,17 +28552,45 @@ export const ReachContactsApiFactory = function (configuration?: Configuration,
|
|
|
27158
28552
|
return localVarFp.listContactGroupsV1(options).then((request) => request(axios, basePath));
|
|
27159
28553
|
},
|
|
27160
28554
|
/**
|
|
27161
|
-
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
28555
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
|
|
27162
28556
|
* @summary List contacts
|
|
27163
28557
|
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
27164
28558
|
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
27165
28559
|
* @param {number} [page] Page number
|
|
27166
28560
|
* @param {*} [options] Override http request option.
|
|
28561
|
+
* @deprecated
|
|
27167
28562
|
* @throws {RequiredError}
|
|
27168
28563
|
*/
|
|
27169
28564
|
listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListContactsV1200Response> {
|
|
27170
28565
|
return localVarFp.listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(axios, basePath));
|
|
27171
28566
|
},
|
|
28567
|
+
/**
|
|
28568
|
+
* Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
|
|
28569
|
+
* @summary List profile contacts
|
|
28570
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28571
|
+
* @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
28572
|
+
* @param {string} [tagUuid] Filter contacts by tag UUID
|
|
28573
|
+
* @param {string} [search] Search contacts by email
|
|
28574
|
+
* @param {number} [page] Page number
|
|
28575
|
+
* @param {number} [perPage] Number of items per page
|
|
28576
|
+
* @param {*} [options] Override http request option.
|
|
28577
|
+
* @throws {RequiredError}
|
|
28578
|
+
*/
|
|
28579
|
+
listProfileContactsV1(profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListProfileContactsV1200Response> {
|
|
28580
|
+
return localVarFp.listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(axios, basePath));
|
|
28581
|
+
},
|
|
28582
|
+
/**
|
|
28583
|
+
* Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
|
|
28584
|
+
* @summary Update a contact
|
|
28585
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28586
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28587
|
+
* @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
|
|
28588
|
+
* @param {*} [options] Override http request option.
|
|
28589
|
+
* @throws {RequiredError}
|
|
28590
|
+
*/
|
|
28591
|
+
updateAContactV1(profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1ContactsProfileContactUpdateResource> {
|
|
28592
|
+
return localVarFp.updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
28593
|
+
},
|
|
27172
28594
|
};
|
|
27173
28595
|
};
|
|
27174
28596
|
|
|
@@ -27192,6 +28614,19 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
27192
28614
|
return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27193
28615
|
}
|
|
27194
28616
|
|
|
28617
|
+
/**
|
|
28618
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are left as they are. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
28619
|
+
* @summary Create contacts in bulk
|
|
28620
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28621
|
+
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
28622
|
+
* @param {*} [options] Override http request option.
|
|
28623
|
+
* @throws {RequiredError}
|
|
28624
|
+
* @memberof ReachContactsApi
|
|
28625
|
+
*/
|
|
28626
|
+
public createContactsInBulkV1(profileUuid: string, reachV1ContactsBulkStoreRequest: ReachV1ContactsBulkStoreRequest, options?: RawAxiosRequestConfig) {
|
|
28627
|
+
return ReachContactsApiFp(this.configuration).createContactsInBulkV1(profileUuid, reachV1ContactsBulkStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28628
|
+
}
|
|
28629
|
+
|
|
27195
28630
|
/**
|
|
27196
28631
|
* Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
|
|
27197
28632
|
* @summary Create new contacts
|
|
@@ -27206,10 +28641,11 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
27206
28641
|
}
|
|
27207
28642
|
|
|
27208
28643
|
/**
|
|
27209
|
-
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
|
|
28644
|
+
* Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot delete contacts of any other profile. Use `DELETE /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}` instead.
|
|
27210
28645
|
* @summary Delete a contact
|
|
27211
28646
|
* @param {string} uuid UUID of the contact to delete
|
|
27212
28647
|
* @param {*} [options] Override http request option.
|
|
28648
|
+
* @deprecated
|
|
27213
28649
|
* @throws {RequiredError}
|
|
27214
28650
|
* @memberof ReachContactsApi
|
|
27215
28651
|
*/
|
|
@@ -27217,6 +28653,32 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
27217
28653
|
return ReachContactsApiFp(this.configuration).deleteAContactV1(uuid, options).then((request) => request(this.axios, this.basePath));
|
|
27218
28654
|
}
|
|
27219
28655
|
|
|
28656
|
+
/**
|
|
28657
|
+
* Permanently delete a contact from a profile. The contact is removed together with its custom field values and tag assignments.
|
|
28658
|
+
* @summary Delete a profile contact
|
|
28659
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28660
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28661
|
+
* @param {*} [options] Override http request option.
|
|
28662
|
+
* @throws {RequiredError}
|
|
28663
|
+
* @memberof ReachContactsApi
|
|
28664
|
+
*/
|
|
28665
|
+
public deleteAProfileContactV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
|
|
28666
|
+
return ReachContactsApiFp(this.configuration).deleteAProfileContactV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
28667
|
+
}
|
|
28668
|
+
|
|
28669
|
+
/**
|
|
28670
|
+
* Get the full details of a single contact. Alongside the contact\'s own attributes this returns the tags assigned to it and the values it holds for the profile\'s custom contact fields.
|
|
28671
|
+
* @summary Get contact details
|
|
28672
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28673
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28674
|
+
* @param {*} [options] Override http request option.
|
|
28675
|
+
* @throws {RequiredError}
|
|
28676
|
+
* @memberof ReachContactsApi
|
|
28677
|
+
*/
|
|
28678
|
+
public getContactDetailsV1(profileUuid: string, contactUuid: string, options?: RawAxiosRequestConfig) {
|
|
28679
|
+
return ReachContactsApiFp(this.configuration).getContactDetailsV1(profileUuid, contactUuid, options).then((request) => request(this.axios, this.basePath));
|
|
28680
|
+
}
|
|
28681
|
+
|
|
27220
28682
|
/**
|
|
27221
28683
|
* Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
|
|
27222
28684
|
* @summary List contact groups
|
|
@@ -27230,18 +28692,50 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
27230
28692
|
}
|
|
27231
28693
|
|
|
27232
28694
|
/**
|
|
27233
|
-
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
|
|
28695
|
+
* Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status. **Deprecated.** This endpoint cannot target a profile, so it always falls back to the client\'s default profile and cannot list contacts of any other profile. Use `GET /api/reach/v1/profiles/{profileUuid}/contacts` instead, which also replaces the group filter with a tag filter.
|
|
27234
28696
|
* @summary List contacts
|
|
27235
28697
|
* @param {string} [groupUuid] Filter contacts by group UUID
|
|
27236
28698
|
* @param {ListContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
27237
28699
|
* @param {number} [page] Page number
|
|
27238
28700
|
* @param {*} [options] Override http request option.
|
|
28701
|
+
* @deprecated
|
|
27239
28702
|
* @throws {RequiredError}
|
|
27240
28703
|
* @memberof ReachContactsApi
|
|
27241
28704
|
*/
|
|
27242
28705
|
public listContactsV1(groupUuid?: string, subscriptionStatus?: ListContactsV1SubscriptionStatusEnum, page?: number, options?: RawAxiosRequestConfig) {
|
|
27243
28706
|
return ReachContactsApiFp(this.configuration).listContactsV1(groupUuid, subscriptionStatus, page, options).then((request) => request(this.axios, this.basePath));
|
|
27244
28707
|
}
|
|
28708
|
+
|
|
28709
|
+
/**
|
|
28710
|
+
* Get a paginated list of contacts belonging to a profile. Contacts can be filtered by subscription status, by tag, and by an email search term. The `meta.total` field of the response is the number of contacts matching the filters, so calling this endpoint without filters gives the profile\'s total contact count.
|
|
28711
|
+
* @summary List profile contacts
|
|
28712
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28713
|
+
* @param {ListProfileContactsV1SubscriptionStatusEnum} [subscriptionStatus] Filter contacts by subscription status
|
|
28714
|
+
* @param {string} [tagUuid] Filter contacts by tag UUID
|
|
28715
|
+
* @param {string} [search] Search contacts by email
|
|
28716
|
+
* @param {number} [page] Page number
|
|
28717
|
+
* @param {number} [perPage] Number of items per page
|
|
28718
|
+
* @param {*} [options] Override http request option.
|
|
28719
|
+
* @throws {RequiredError}
|
|
28720
|
+
* @memberof ReachContactsApi
|
|
28721
|
+
*/
|
|
28722
|
+
public listProfileContactsV1(profileUuid: string, subscriptionStatus?: ListProfileContactsV1SubscriptionStatusEnum, tagUuid?: string, search?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
28723
|
+
return ReachContactsApiFp(this.configuration).listProfileContactsV1(profileUuid, subscriptionStatus, tagUuid, search, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
28724
|
+
}
|
|
28725
|
+
|
|
28726
|
+
/**
|
|
28727
|
+
* Update a contact\'s attributes and custom field values. Only the properties present in the request body are changed, so a partial body is enough to change a single attribute. Sending a property as `null` clears it. The response carries the contact\'s core attributes. Read back its tags, custom field values, source and note with `GET /api/reach/v1/profiles/{profileUuid}/contacts/{contactUuid}`.
|
|
28728
|
+
* @summary Update a contact
|
|
28729
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
28730
|
+
* @param {string} contactUuid Contact uuid parameter
|
|
28731
|
+
* @param {ReachV1ContactsUpdateRequest} reachV1ContactsUpdateRequest
|
|
28732
|
+
* @param {*} [options] Override http request option.
|
|
28733
|
+
* @throws {RequiredError}
|
|
28734
|
+
* @memberof ReachContactsApi
|
|
28735
|
+
*/
|
|
28736
|
+
public updateAContactV1(profileUuid: string, contactUuid: string, reachV1ContactsUpdateRequest: ReachV1ContactsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
28737
|
+
return ReachContactsApiFp(this.configuration).updateAContactV1(profileUuid, contactUuid, reachV1ContactsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
28738
|
+
}
|
|
27245
28739
|
}
|
|
27246
28740
|
|
|
27247
28741
|
/**
|
|
@@ -27249,9 +28743,21 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
27249
28743
|
*/
|
|
27250
28744
|
export const ListContactsV1SubscriptionStatusEnum = {
|
|
27251
28745
|
Subscribed: 'subscribed',
|
|
27252
|
-
Unsubscribed: 'unsubscribed'
|
|
28746
|
+
Unsubscribed: 'unsubscribed',
|
|
28747
|
+
Confirmed: 'confirmed',
|
|
28748
|
+
Pending: 'pending'
|
|
27253
28749
|
} as const;
|
|
27254
28750
|
export type ListContactsV1SubscriptionStatusEnum = typeof ListContactsV1SubscriptionStatusEnum[keyof typeof ListContactsV1SubscriptionStatusEnum];
|
|
28751
|
+
/**
|
|
28752
|
+
* @export
|
|
28753
|
+
*/
|
|
28754
|
+
export const ListProfileContactsV1SubscriptionStatusEnum = {
|
|
28755
|
+
Subscribed: 'subscribed',
|
|
28756
|
+
Unsubscribed: 'unsubscribed',
|
|
28757
|
+
Confirmed: 'confirmed',
|
|
28758
|
+
Pending: 'pending'
|
|
28759
|
+
} as const;
|
|
28760
|
+
export type ListProfileContactsV1SubscriptionStatusEnum = typeof ListProfileContactsV1SubscriptionStatusEnum[keyof typeof ListProfileContactsV1SubscriptionStatusEnum];
|
|
27255
28761
|
|
|
27256
28762
|
|
|
27257
28763
|
/**
|