@ember-home/unbound-ts-client 0.0.17 → 0.0.19
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/dist/index.d.mts +447 -63
- package/dist/index.d.ts +447 -63
- package/dist/index.js +584 -117
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +518 -51
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -75,16 +75,21 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/api.ts
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
Owner: "owner",
|
|
81
|
-
Lead: "lead",
|
|
82
|
-
Basic: "basic"
|
|
78
|
+
var ContactListingType = {
|
|
79
|
+
Owner: "OWNER"
|
|
83
80
|
};
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
var ContactSortBy = {
|
|
82
|
+
LastFirstCompany: "last_first_company",
|
|
83
|
+
FirstLastCompany: "first_last_company",
|
|
84
|
+
CompanyLastFirst: "company_last_first"
|
|
85
|
+
};
|
|
86
|
+
var PaginationDirection = {
|
|
87
|
+
Forward: "forward",
|
|
88
|
+
Backward: "backward"
|
|
89
|
+
};
|
|
90
|
+
var SortOrder = {
|
|
91
|
+
Asc: "asc",
|
|
92
|
+
Desc: "desc"
|
|
88
93
|
};
|
|
89
94
|
var AddressesApiAxiosParamCreator = function(configuration) {
|
|
90
95
|
return {
|
|
@@ -384,6 +389,38 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
384
389
|
options: localVarRequestOptions
|
|
385
390
|
};
|
|
386
391
|
},
|
|
392
|
+
/**
|
|
393
|
+
* Associates a contact with a listing with the OWNER type.
|
|
394
|
+
* @summary Create Contact Listing
|
|
395
|
+
* @param {string} contactId
|
|
396
|
+
* @param {string} listingId
|
|
397
|
+
* @param {CreateContactListing} createContactListing
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
contactsAddListing: async (contactId, listingId, createContactListing, options = {}) => {
|
|
402
|
+
assertParamExists("contactsAddListing", "contactId", contactId);
|
|
403
|
+
assertParamExists("contactsAddListing", "listingId", listingId);
|
|
404
|
+
assertParamExists("contactsAddListing", "createContactListing", createContactListing);
|
|
405
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
406
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
407
|
+
let baseOptions;
|
|
408
|
+
if (configuration) {
|
|
409
|
+
baseOptions = configuration.baseOptions;
|
|
410
|
+
}
|
|
411
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
412
|
+
const localVarHeaderParameter = {};
|
|
413
|
+
const localVarQueryParameter = {};
|
|
414
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
417
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
418
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContactListing, localVarRequestOptions, configuration);
|
|
419
|
+
return {
|
|
420
|
+
url: toPathString(localVarUrlObj),
|
|
421
|
+
options: localVarRequestOptions
|
|
422
|
+
};
|
|
423
|
+
},
|
|
387
424
|
/**
|
|
388
425
|
*
|
|
389
426
|
* @summary Contacts Create
|
|
@@ -467,14 +504,16 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
467
504
|
/**
|
|
468
505
|
*
|
|
469
506
|
* @summary Contacts List
|
|
470
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
471
507
|
* @param {string} [searchString]
|
|
508
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
472
509
|
* @param {number} [limit]
|
|
473
|
-
* @param {
|
|
510
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
511
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
512
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
474
513
|
* @param {*} [options] Override http request option.
|
|
475
514
|
* @throws {RequiredError}
|
|
476
515
|
*/
|
|
477
|
-
contactsList: async (
|
|
516
|
+
contactsList: async (searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
478
517
|
const localVarPath = `/contacts`;
|
|
479
518
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
480
519
|
let baseOptions;
|
|
@@ -484,17 +523,23 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
484
523
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
485
524
|
const localVarHeaderParameter = {};
|
|
486
525
|
const localVarQueryParameter = {};
|
|
487
|
-
if (contactTypes) {
|
|
488
|
-
localVarQueryParameter["contactTypes"] = contactTypes;
|
|
489
|
-
}
|
|
490
526
|
if (searchString !== void 0) {
|
|
491
527
|
localVarQueryParameter["searchString"] = searchString;
|
|
492
528
|
}
|
|
529
|
+
if (cursor !== void 0) {
|
|
530
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
531
|
+
}
|
|
493
532
|
if (limit !== void 0) {
|
|
494
533
|
localVarQueryParameter["limit"] = limit;
|
|
495
534
|
}
|
|
496
|
-
if (
|
|
497
|
-
localVarQueryParameter["
|
|
535
|
+
if (pageDir !== void 0) {
|
|
536
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
537
|
+
}
|
|
538
|
+
if (sortBy !== void 0) {
|
|
539
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
540
|
+
}
|
|
541
|
+
if (sortOrder !== void 0) {
|
|
542
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
498
543
|
}
|
|
499
544
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
500
545
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -504,6 +549,38 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
504
549
|
options: localVarRequestOptions
|
|
505
550
|
};
|
|
506
551
|
},
|
|
552
|
+
/**
|
|
553
|
+
* Removes an association between a contact and a listing.
|
|
554
|
+
* @summary Delete Contact Listing
|
|
555
|
+
* @param {string} contactId
|
|
556
|
+
* @param {string} listingId
|
|
557
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
contactsRemoveListing: async (contactId, listingId, deleteContactListing, options = {}) => {
|
|
562
|
+
assertParamExists("contactsRemoveListing", "contactId", contactId);
|
|
563
|
+
assertParamExists("contactsRemoveListing", "listingId", listingId);
|
|
564
|
+
assertParamExists("contactsRemoveListing", "deleteContactListing", deleteContactListing);
|
|
565
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
566
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
567
|
+
let baseOptions;
|
|
568
|
+
if (configuration) {
|
|
569
|
+
baseOptions = configuration.baseOptions;
|
|
570
|
+
}
|
|
571
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
572
|
+
const localVarHeaderParameter = {};
|
|
573
|
+
const localVarQueryParameter = {};
|
|
574
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
575
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
576
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
577
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
578
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteContactListing, localVarRequestOptions, configuration);
|
|
579
|
+
return {
|
|
580
|
+
url: toPathString(localVarUrlObj),
|
|
581
|
+
options: localVarRequestOptions
|
|
582
|
+
};
|
|
583
|
+
},
|
|
507
584
|
/**
|
|
508
585
|
*
|
|
509
586
|
* @summary Contacts Update
|
|
@@ -534,6 +611,38 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
534
611
|
options: localVarRequestOptions
|
|
535
612
|
};
|
|
536
613
|
},
|
|
614
|
+
/**
|
|
615
|
+
* Updates an association between a contact and a listing.
|
|
616
|
+
* @summary Update Contact Listing
|
|
617
|
+
* @param {string} contactId
|
|
618
|
+
* @param {string} listingId
|
|
619
|
+
* @param {UpdateContactListing} updateContactListing
|
|
620
|
+
* @param {*} [options] Override http request option.
|
|
621
|
+
* @throws {RequiredError}
|
|
622
|
+
*/
|
|
623
|
+
contactsUpdateListing: async (contactId, listingId, updateContactListing, options = {}) => {
|
|
624
|
+
assertParamExists("contactsUpdateListing", "contactId", contactId);
|
|
625
|
+
assertParamExists("contactsUpdateListing", "listingId", listingId);
|
|
626
|
+
assertParamExists("contactsUpdateListing", "updateContactListing", updateContactListing);
|
|
627
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
629
|
+
let baseOptions;
|
|
630
|
+
if (configuration) {
|
|
631
|
+
baseOptions = configuration.baseOptions;
|
|
632
|
+
}
|
|
633
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
634
|
+
const localVarHeaderParameter = {};
|
|
635
|
+
const localVarQueryParameter = {};
|
|
636
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
637
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
638
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
639
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
640
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContactListing, localVarRequestOptions, configuration);
|
|
641
|
+
return {
|
|
642
|
+
url: toPathString(localVarUrlObj),
|
|
643
|
+
options: localVarRequestOptions
|
|
644
|
+
};
|
|
645
|
+
},
|
|
537
646
|
/**
|
|
538
647
|
*
|
|
539
648
|
* @summary Emails Create
|
|
@@ -692,6 +801,21 @@ var ContactsApiFp = function(configuration) {
|
|
|
692
801
|
const localVarOperationServerBasePath = operationServerMap["ContactsApi.addressesUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
693
802
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
694
803
|
},
|
|
804
|
+
/**
|
|
805
|
+
* Associates a contact with a listing with the OWNER type.
|
|
806
|
+
* @summary Create Contact Listing
|
|
807
|
+
* @param {string} contactId
|
|
808
|
+
* @param {string} listingId
|
|
809
|
+
* @param {CreateContactListing} createContactListing
|
|
810
|
+
* @param {*} [options] Override http request option.
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
*/
|
|
813
|
+
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
814
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
815
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
816
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsAddListing"]?.[localVarOperationServerIndex]?.url;
|
|
817
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
818
|
+
},
|
|
695
819
|
/**
|
|
696
820
|
*
|
|
697
821
|
* @summary Contacts Create
|
|
@@ -734,19 +858,36 @@ var ContactsApiFp = function(configuration) {
|
|
|
734
858
|
/**
|
|
735
859
|
*
|
|
736
860
|
* @summary Contacts List
|
|
737
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
738
861
|
* @param {string} [searchString]
|
|
862
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
739
863
|
* @param {number} [limit]
|
|
740
|
-
* @param {
|
|
864
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
865
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
866
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
741
867
|
* @param {*} [options] Override http request option.
|
|
742
868
|
* @throws {RequiredError}
|
|
743
869
|
*/
|
|
744
|
-
async contactsList(
|
|
745
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(
|
|
870
|
+
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
871
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
746
872
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
747
873
|
const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsList"]?.[localVarOperationServerIndex]?.url;
|
|
748
874
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
749
875
|
},
|
|
876
|
+
/**
|
|
877
|
+
* Removes an association between a contact and a listing.
|
|
878
|
+
* @summary Delete Contact Listing
|
|
879
|
+
* @param {string} contactId
|
|
880
|
+
* @param {string} listingId
|
|
881
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
882
|
+
* @param {*} [options] Override http request option.
|
|
883
|
+
* @throws {RequiredError}
|
|
884
|
+
*/
|
|
885
|
+
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
886
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
887
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
888
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsRemoveListing"]?.[localVarOperationServerIndex]?.url;
|
|
889
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
890
|
+
},
|
|
750
891
|
/**
|
|
751
892
|
*
|
|
752
893
|
* @summary Contacts Update
|
|
@@ -761,6 +902,21 @@ var ContactsApiFp = function(configuration) {
|
|
|
761
902
|
const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
762
903
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
763
904
|
},
|
|
905
|
+
/**
|
|
906
|
+
* Updates an association between a contact and a listing.
|
|
907
|
+
* @summary Update Contact Listing
|
|
908
|
+
* @param {string} contactId
|
|
909
|
+
* @param {string} listingId
|
|
910
|
+
* @param {UpdateContactListing} updateContactListing
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
916
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
917
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
918
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
919
|
+
},
|
|
764
920
|
/**
|
|
765
921
|
*
|
|
766
922
|
* @summary Emails Create
|
|
@@ -852,6 +1008,18 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
852
1008
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
853
1009
|
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
854
1010
|
},
|
|
1011
|
+
/**
|
|
1012
|
+
* Associates a contact with a listing with the OWNER type.
|
|
1013
|
+
* @summary Create Contact Listing
|
|
1014
|
+
* @param {string} contactId
|
|
1015
|
+
* @param {string} listingId
|
|
1016
|
+
* @param {CreateContactListing} createContactListing
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
1021
|
+
return localVarFp.contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(axios, basePath));
|
|
1022
|
+
},
|
|
855
1023
|
/**
|
|
856
1024
|
*
|
|
857
1025
|
* @summary Contacts Create
|
|
@@ -885,15 +1053,29 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
885
1053
|
/**
|
|
886
1054
|
*
|
|
887
1055
|
* @summary Contacts List
|
|
888
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
889
1056
|
* @param {string} [searchString]
|
|
1057
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
890
1058
|
* @param {number} [limit]
|
|
891
|
-
* @param {
|
|
1059
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1060
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
1061
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
892
1062
|
* @param {*} [options] Override http request option.
|
|
893
1063
|
* @throws {RequiredError}
|
|
894
1064
|
*/
|
|
895
|
-
contactsList(
|
|
896
|
-
return localVarFp.contactsList(
|
|
1065
|
+
contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1066
|
+
return localVarFp.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
1067
|
+
},
|
|
1068
|
+
/**
|
|
1069
|
+
* Removes an association between a contact and a listing.
|
|
1070
|
+
* @summary Delete Contact Listing
|
|
1071
|
+
* @param {string} contactId
|
|
1072
|
+
* @param {string} listingId
|
|
1073
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
1074
|
+
* @param {*} [options] Override http request option.
|
|
1075
|
+
* @throws {RequiredError}
|
|
1076
|
+
*/
|
|
1077
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
1078
|
+
return localVarFp.contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(axios, basePath));
|
|
897
1079
|
},
|
|
898
1080
|
/**
|
|
899
1081
|
*
|
|
@@ -906,6 +1088,18 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
906
1088
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
907
1089
|
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
908
1090
|
},
|
|
1091
|
+
/**
|
|
1092
|
+
* Updates an association between a contact and a listing.
|
|
1093
|
+
* @summary Update Contact Listing
|
|
1094
|
+
* @param {string} contactId
|
|
1095
|
+
* @param {string} listingId
|
|
1096
|
+
* @param {UpdateContactListing} updateContactListing
|
|
1097
|
+
* @param {*} [options] Override http request option.
|
|
1098
|
+
* @throws {RequiredError}
|
|
1099
|
+
*/
|
|
1100
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
1101
|
+
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
1102
|
+
},
|
|
909
1103
|
/**
|
|
910
1104
|
*
|
|
911
1105
|
* @summary Emails Create
|
|
@@ -986,6 +1180,19 @@ var ContactsApi = class extends BaseAPI {
|
|
|
986
1180
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
987
1181
|
return ContactsApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
988
1182
|
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Associates a contact with a listing with the OWNER type.
|
|
1185
|
+
* @summary Create Contact Listing
|
|
1186
|
+
* @param {string} contactId
|
|
1187
|
+
* @param {string} listingId
|
|
1188
|
+
* @param {CreateContactListing} createContactListing
|
|
1189
|
+
* @param {*} [options] Override http request option.
|
|
1190
|
+
* @throws {RequiredError}
|
|
1191
|
+
* @memberof ContactsApi
|
|
1192
|
+
*/
|
|
1193
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
1194
|
+
return ContactsApiFp(this.configuration).contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
1195
|
+
}
|
|
989
1196
|
/**
|
|
990
1197
|
*
|
|
991
1198
|
* @summary Contacts Create
|
|
@@ -1022,16 +1229,31 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1022
1229
|
/**
|
|
1023
1230
|
*
|
|
1024
1231
|
* @summary Contacts List
|
|
1025
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
1026
1232
|
* @param {string} [searchString]
|
|
1233
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1027
1234
|
* @param {number} [limit]
|
|
1028
|
-
* @param {
|
|
1235
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1236
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
1237
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
* @memberof ContactsApi
|
|
1241
|
+
*/
|
|
1242
|
+
contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1243
|
+
return ContactsApiFp(this.configuration).contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* Removes an association between a contact and a listing.
|
|
1247
|
+
* @summary Delete Contact Listing
|
|
1248
|
+
* @param {string} contactId
|
|
1249
|
+
* @param {string} listingId
|
|
1250
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
1029
1251
|
* @param {*} [options] Override http request option.
|
|
1030
1252
|
* @throws {RequiredError}
|
|
1031
1253
|
* @memberof ContactsApi
|
|
1032
1254
|
*/
|
|
1033
|
-
|
|
1034
|
-
return ContactsApiFp(this.configuration).
|
|
1255
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
1256
|
+
return ContactsApiFp(this.configuration).contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
1035
1257
|
}
|
|
1036
1258
|
/**
|
|
1037
1259
|
*
|
|
@@ -1045,6 +1267,19 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1045
1267
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
1046
1268
|
return ContactsApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1047
1269
|
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Updates an association between a contact and a listing.
|
|
1272
|
+
* @summary Update Contact Listing
|
|
1273
|
+
* @param {string} contactId
|
|
1274
|
+
* @param {string} listingId
|
|
1275
|
+
* @param {UpdateContactListing} updateContactListing
|
|
1276
|
+
* @param {*} [options] Override http request option.
|
|
1277
|
+
* @throws {RequiredError}
|
|
1278
|
+
* @memberof ContactsApi
|
|
1279
|
+
*/
|
|
1280
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
1281
|
+
return ContactsApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
1282
|
+
}
|
|
1048
1283
|
/**
|
|
1049
1284
|
*
|
|
1050
1285
|
* @summary Emails Create
|
|
@@ -1779,6 +2014,38 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1779
2014
|
options: localVarRequestOptions
|
|
1780
2015
|
};
|
|
1781
2016
|
},
|
|
2017
|
+
/**
|
|
2018
|
+
* Associates a contact with a listing with the OWNER type.
|
|
2019
|
+
* @summary Create Contact Listing
|
|
2020
|
+
* @param {string} contactId
|
|
2021
|
+
* @param {string} listingId
|
|
2022
|
+
* @param {CreateContactListing} createContactListing
|
|
2023
|
+
* @param {*} [options] Override http request option.
|
|
2024
|
+
* @throws {RequiredError}
|
|
2025
|
+
*/
|
|
2026
|
+
contactsAddListing: async (contactId, listingId, createContactListing, options = {}) => {
|
|
2027
|
+
assertParamExists("contactsAddListing", "contactId", contactId);
|
|
2028
|
+
assertParamExists("contactsAddListing", "listingId", listingId);
|
|
2029
|
+
assertParamExists("contactsAddListing", "createContactListing", createContactListing);
|
|
2030
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
2031
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2032
|
+
let baseOptions;
|
|
2033
|
+
if (configuration) {
|
|
2034
|
+
baseOptions = configuration.baseOptions;
|
|
2035
|
+
}
|
|
2036
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
2037
|
+
const localVarHeaderParameter = {};
|
|
2038
|
+
const localVarQueryParameter = {};
|
|
2039
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2040
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2041
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2042
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2043
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContactListing, localVarRequestOptions, configuration);
|
|
2044
|
+
return {
|
|
2045
|
+
url: toPathString(localVarUrlObj),
|
|
2046
|
+
options: localVarRequestOptions
|
|
2047
|
+
};
|
|
2048
|
+
},
|
|
1782
2049
|
/**
|
|
1783
2050
|
*
|
|
1784
2051
|
* @summary Contacts Create
|
|
@@ -1862,14 +2129,16 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1862
2129
|
/**
|
|
1863
2130
|
*
|
|
1864
2131
|
* @summary Contacts List
|
|
1865
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
1866
2132
|
* @param {string} [searchString]
|
|
2133
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1867
2134
|
* @param {number} [limit]
|
|
1868
|
-
* @param {
|
|
2135
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2136
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
2137
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1869
2138
|
* @param {*} [options] Override http request option.
|
|
1870
2139
|
* @throws {RequiredError}
|
|
1871
2140
|
*/
|
|
1872
|
-
contactsList: async (
|
|
2141
|
+
contactsList: async (searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
1873
2142
|
const localVarPath = `/contacts`;
|
|
1874
2143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1875
2144
|
let baseOptions;
|
|
@@ -1879,17 +2148,23 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1879
2148
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1880
2149
|
const localVarHeaderParameter = {};
|
|
1881
2150
|
const localVarQueryParameter = {};
|
|
1882
|
-
if (contactTypes) {
|
|
1883
|
-
localVarQueryParameter["contactTypes"] = contactTypes;
|
|
1884
|
-
}
|
|
1885
2151
|
if (searchString !== void 0) {
|
|
1886
2152
|
localVarQueryParameter["searchString"] = searchString;
|
|
1887
2153
|
}
|
|
2154
|
+
if (cursor !== void 0) {
|
|
2155
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
2156
|
+
}
|
|
1888
2157
|
if (limit !== void 0) {
|
|
1889
2158
|
localVarQueryParameter["limit"] = limit;
|
|
1890
2159
|
}
|
|
1891
|
-
if (
|
|
1892
|
-
localVarQueryParameter["
|
|
2160
|
+
if (pageDir !== void 0) {
|
|
2161
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
2162
|
+
}
|
|
2163
|
+
if (sortBy !== void 0) {
|
|
2164
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
2165
|
+
}
|
|
2166
|
+
if (sortOrder !== void 0) {
|
|
2167
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1893
2168
|
}
|
|
1894
2169
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1895
2170
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1899,6 +2174,38 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1899
2174
|
options: localVarRequestOptions
|
|
1900
2175
|
};
|
|
1901
2176
|
},
|
|
2177
|
+
/**
|
|
2178
|
+
* Removes an association between a contact and a listing.
|
|
2179
|
+
* @summary Delete Contact Listing
|
|
2180
|
+
* @param {string} contactId
|
|
2181
|
+
* @param {string} listingId
|
|
2182
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2183
|
+
* @param {*} [options] Override http request option.
|
|
2184
|
+
* @throws {RequiredError}
|
|
2185
|
+
*/
|
|
2186
|
+
contactsRemoveListing: async (contactId, listingId, deleteContactListing, options = {}) => {
|
|
2187
|
+
assertParamExists("contactsRemoveListing", "contactId", contactId);
|
|
2188
|
+
assertParamExists("contactsRemoveListing", "listingId", listingId);
|
|
2189
|
+
assertParamExists("contactsRemoveListing", "deleteContactListing", deleteContactListing);
|
|
2190
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
2191
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2192
|
+
let baseOptions;
|
|
2193
|
+
if (configuration) {
|
|
2194
|
+
baseOptions = configuration.baseOptions;
|
|
2195
|
+
}
|
|
2196
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
2197
|
+
const localVarHeaderParameter = {};
|
|
2198
|
+
const localVarQueryParameter = {};
|
|
2199
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2200
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2201
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2202
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2203
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteContactListing, localVarRequestOptions, configuration);
|
|
2204
|
+
return {
|
|
2205
|
+
url: toPathString(localVarUrlObj),
|
|
2206
|
+
options: localVarRequestOptions
|
|
2207
|
+
};
|
|
2208
|
+
},
|
|
1902
2209
|
/**
|
|
1903
2210
|
*
|
|
1904
2211
|
* @summary Contacts Update
|
|
@@ -1929,6 +2236,38 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1929
2236
|
options: localVarRequestOptions
|
|
1930
2237
|
};
|
|
1931
2238
|
},
|
|
2239
|
+
/**
|
|
2240
|
+
* Updates an association between a contact and a listing.
|
|
2241
|
+
* @summary Update Contact Listing
|
|
2242
|
+
* @param {string} contactId
|
|
2243
|
+
* @param {string} listingId
|
|
2244
|
+
* @param {UpdateContactListing} updateContactListing
|
|
2245
|
+
* @param {*} [options] Override http request option.
|
|
2246
|
+
* @throws {RequiredError}
|
|
2247
|
+
*/
|
|
2248
|
+
contactsUpdateListing: async (contactId, listingId, updateContactListing, options = {}) => {
|
|
2249
|
+
assertParamExists("contactsUpdateListing", "contactId", contactId);
|
|
2250
|
+
assertParamExists("contactsUpdateListing", "listingId", listingId);
|
|
2251
|
+
assertParamExists("contactsUpdateListing", "updateContactListing", updateContactListing);
|
|
2252
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
2253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2254
|
+
let baseOptions;
|
|
2255
|
+
if (configuration) {
|
|
2256
|
+
baseOptions = configuration.baseOptions;
|
|
2257
|
+
}
|
|
2258
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2259
|
+
const localVarHeaderParameter = {};
|
|
2260
|
+
const localVarQueryParameter = {};
|
|
2261
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2264
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2265
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContactListing, localVarRequestOptions, configuration);
|
|
2266
|
+
return {
|
|
2267
|
+
url: toPathString(localVarUrlObj),
|
|
2268
|
+
options: localVarRequestOptions
|
|
2269
|
+
};
|
|
2270
|
+
},
|
|
1932
2271
|
/**
|
|
1933
2272
|
*
|
|
1934
2273
|
* @summary Emails Create
|
|
@@ -2200,6 +2539,21 @@ var UnboundApiFp = function(configuration) {
|
|
|
2200
2539
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.addressesUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2201
2540
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2202
2541
|
},
|
|
2542
|
+
/**
|
|
2543
|
+
* Associates a contact with a listing with the OWNER type.
|
|
2544
|
+
* @summary Create Contact Listing
|
|
2545
|
+
* @param {string} contactId
|
|
2546
|
+
* @param {string} listingId
|
|
2547
|
+
* @param {CreateContactListing} createContactListing
|
|
2548
|
+
* @param {*} [options] Override http request option.
|
|
2549
|
+
* @throws {RequiredError}
|
|
2550
|
+
*/
|
|
2551
|
+
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
2552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
2553
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2554
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsAddListing"]?.[localVarOperationServerIndex]?.url;
|
|
2555
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2556
|
+
},
|
|
2203
2557
|
/**
|
|
2204
2558
|
*
|
|
2205
2559
|
* @summary Contacts Create
|
|
@@ -2242,19 +2596,36 @@ var UnboundApiFp = function(configuration) {
|
|
|
2242
2596
|
/**
|
|
2243
2597
|
*
|
|
2244
2598
|
* @summary Contacts List
|
|
2245
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2246
2599
|
* @param {string} [searchString]
|
|
2600
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2247
2601
|
* @param {number} [limit]
|
|
2248
|
-
* @param {
|
|
2602
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2603
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
2604
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2249
2605
|
* @param {*} [options] Override http request option.
|
|
2250
2606
|
* @throws {RequiredError}
|
|
2251
2607
|
*/
|
|
2252
|
-
async contactsList(
|
|
2253
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(
|
|
2608
|
+
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2609
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2254
2610
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2255
2611
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsList"]?.[localVarOperationServerIndex]?.url;
|
|
2256
2612
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2257
2613
|
},
|
|
2614
|
+
/**
|
|
2615
|
+
* Removes an association between a contact and a listing.
|
|
2616
|
+
* @summary Delete Contact Listing
|
|
2617
|
+
* @param {string} contactId
|
|
2618
|
+
* @param {string} listingId
|
|
2619
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2620
|
+
* @param {*} [options] Override http request option.
|
|
2621
|
+
* @throws {RequiredError}
|
|
2622
|
+
*/
|
|
2623
|
+
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
2624
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
2625
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2626
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsRemoveListing"]?.[localVarOperationServerIndex]?.url;
|
|
2627
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2628
|
+
},
|
|
2258
2629
|
/**
|
|
2259
2630
|
*
|
|
2260
2631
|
* @summary Contacts Update
|
|
@@ -2269,6 +2640,21 @@ var UnboundApiFp = function(configuration) {
|
|
|
2269
2640
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2270
2641
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2271
2642
|
},
|
|
2643
|
+
/**
|
|
2644
|
+
* Updates an association between a contact and a listing.
|
|
2645
|
+
* @summary Update Contact Listing
|
|
2646
|
+
* @param {string} contactId
|
|
2647
|
+
* @param {string} listingId
|
|
2648
|
+
* @param {UpdateContactListing} updateContactListing
|
|
2649
|
+
* @param {*} [options] Override http request option.
|
|
2650
|
+
* @throws {RequiredError}
|
|
2651
|
+
*/
|
|
2652
|
+
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
2654
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2655
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
2656
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2657
|
+
},
|
|
2272
2658
|
/**
|
|
2273
2659
|
*
|
|
2274
2660
|
* @summary Emails Create
|
|
@@ -2412,6 +2798,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2412
2798
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
2413
2799
|
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
2414
2800
|
},
|
|
2801
|
+
/**
|
|
2802
|
+
* Associates a contact with a listing with the OWNER type.
|
|
2803
|
+
* @summary Create Contact Listing
|
|
2804
|
+
* @param {string} contactId
|
|
2805
|
+
* @param {string} listingId
|
|
2806
|
+
* @param {CreateContactListing} createContactListing
|
|
2807
|
+
* @param {*} [options] Override http request option.
|
|
2808
|
+
* @throws {RequiredError}
|
|
2809
|
+
*/
|
|
2810
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
2811
|
+
return localVarFp.contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(axios, basePath));
|
|
2812
|
+
},
|
|
2415
2813
|
/**
|
|
2416
2814
|
*
|
|
2417
2815
|
* @summary Contacts Create
|
|
@@ -2445,15 +2843,29 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2445
2843
|
/**
|
|
2446
2844
|
*
|
|
2447
2845
|
* @summary Contacts List
|
|
2448
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2449
2846
|
* @param {string} [searchString]
|
|
2847
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2450
2848
|
* @param {number} [limit]
|
|
2451
|
-
* @param {
|
|
2849
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2850
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
2851
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2452
2852
|
* @param {*} [options] Override http request option.
|
|
2453
2853
|
* @throws {RequiredError}
|
|
2454
2854
|
*/
|
|
2455
|
-
contactsList(
|
|
2456
|
-
return localVarFp.contactsList(
|
|
2855
|
+
contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2856
|
+
return localVarFp.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2857
|
+
},
|
|
2858
|
+
/**
|
|
2859
|
+
* Removes an association between a contact and a listing.
|
|
2860
|
+
* @summary Delete Contact Listing
|
|
2861
|
+
* @param {string} contactId
|
|
2862
|
+
* @param {string} listingId
|
|
2863
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2864
|
+
* @param {*} [options] Override http request option.
|
|
2865
|
+
* @throws {RequiredError}
|
|
2866
|
+
*/
|
|
2867
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
2868
|
+
return localVarFp.contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(axios, basePath));
|
|
2457
2869
|
},
|
|
2458
2870
|
/**
|
|
2459
2871
|
*
|
|
@@ -2466,6 +2878,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2466
2878
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
2467
2879
|
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
2468
2880
|
},
|
|
2881
|
+
/**
|
|
2882
|
+
* Updates an association between a contact and a listing.
|
|
2883
|
+
* @summary Update Contact Listing
|
|
2884
|
+
* @param {string} contactId
|
|
2885
|
+
* @param {string} listingId
|
|
2886
|
+
* @param {UpdateContactListing} updateContactListing
|
|
2887
|
+
* @param {*} [options] Override http request option.
|
|
2888
|
+
* @throws {RequiredError}
|
|
2889
|
+
*/
|
|
2890
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2891
|
+
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
2892
|
+
},
|
|
2469
2893
|
/**
|
|
2470
2894
|
*
|
|
2471
2895
|
* @summary Emails Create
|
|
@@ -2586,6 +3010,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2586
3010
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
2587
3011
|
return UnboundApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2588
3012
|
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Associates a contact with a listing with the OWNER type.
|
|
3015
|
+
* @summary Create Contact Listing
|
|
3016
|
+
* @param {string} contactId
|
|
3017
|
+
* @param {string} listingId
|
|
3018
|
+
* @param {CreateContactListing} createContactListing
|
|
3019
|
+
* @param {*} [options] Override http request option.
|
|
3020
|
+
* @throws {RequiredError}
|
|
3021
|
+
* @memberof UnboundApi
|
|
3022
|
+
*/
|
|
3023
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
3024
|
+
return UnboundApiFp(this.configuration).contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
3025
|
+
}
|
|
2589
3026
|
/**
|
|
2590
3027
|
*
|
|
2591
3028
|
* @summary Contacts Create
|
|
@@ -2622,16 +3059,31 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2622
3059
|
/**
|
|
2623
3060
|
*
|
|
2624
3061
|
* @summary Contacts List
|
|
2625
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2626
3062
|
* @param {string} [searchString]
|
|
3063
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2627
3064
|
* @param {number} [limit]
|
|
2628
|
-
* @param {
|
|
3065
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3066
|
+
* @param {ContactSortBy} [sortBy] Sort key
|
|
3067
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3068
|
+
* @param {*} [options] Override http request option.
|
|
3069
|
+
* @throws {RequiredError}
|
|
3070
|
+
* @memberof UnboundApi
|
|
3071
|
+
*/
|
|
3072
|
+
contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3073
|
+
return UnboundApiFp(this.configuration).contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3074
|
+
}
|
|
3075
|
+
/**
|
|
3076
|
+
* Removes an association between a contact and a listing.
|
|
3077
|
+
* @summary Delete Contact Listing
|
|
3078
|
+
* @param {string} contactId
|
|
3079
|
+
* @param {string} listingId
|
|
3080
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2629
3081
|
* @param {*} [options] Override http request option.
|
|
2630
3082
|
* @throws {RequiredError}
|
|
2631
3083
|
* @memberof UnboundApi
|
|
2632
3084
|
*/
|
|
2633
|
-
|
|
2634
|
-
return UnboundApiFp(this.configuration).
|
|
3085
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
3086
|
+
return UnboundApiFp(this.configuration).contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
2635
3087
|
}
|
|
2636
3088
|
/**
|
|
2637
3089
|
*
|
|
@@ -2645,6 +3097,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2645
3097
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
2646
3098
|
return UnboundApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2647
3099
|
}
|
|
3100
|
+
/**
|
|
3101
|
+
* Updates an association between a contact and a listing.
|
|
3102
|
+
* @summary Update Contact Listing
|
|
3103
|
+
* @param {string} contactId
|
|
3104
|
+
* @param {string} listingId
|
|
3105
|
+
* @param {UpdateContactListing} updateContactListing
|
|
3106
|
+
* @param {*} [options] Override http request option.
|
|
3107
|
+
* @throws {RequiredError}
|
|
3108
|
+
* @memberof UnboundApi
|
|
3109
|
+
*/
|
|
3110
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
3111
|
+
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
3112
|
+
}
|
|
2648
3113
|
/**
|
|
2649
3114
|
*
|
|
2650
3115
|
* @summary Emails Create
|
|
@@ -2831,12 +3296,12 @@ export {
|
|
|
2831
3296
|
AddressesApiFactory,
|
|
2832
3297
|
AddressesApiFp,
|
|
2833
3298
|
Configuration,
|
|
2834
|
-
|
|
3299
|
+
ContactListingType,
|
|
3300
|
+
ContactSortBy,
|
|
2835
3301
|
ContactsApi,
|
|
2836
3302
|
ContactsApiAxiosParamCreator,
|
|
2837
3303
|
ContactsApiFactory,
|
|
2838
3304
|
ContactsApiFp,
|
|
2839
|
-
DataSource,
|
|
2840
3305
|
EmailsApi,
|
|
2841
3306
|
EmailsApiAxiosParamCreator,
|
|
2842
3307
|
EmailsApiFactory,
|
|
@@ -2853,6 +3318,7 @@ export {
|
|
|
2853
3318
|
ListingsApiAxiosParamCreator,
|
|
2854
3319
|
ListingsApiFactory,
|
|
2855
3320
|
ListingsApiFp,
|
|
3321
|
+
PaginationDirection,
|
|
2856
3322
|
PhonesApi,
|
|
2857
3323
|
PhonesApiAxiosParamCreator,
|
|
2858
3324
|
PhonesApiFactory,
|
|
@@ -2861,6 +3327,7 @@ export {
|
|
|
2861
3327
|
ReservationsApiAxiosParamCreator,
|
|
2862
3328
|
ReservationsApiFactory,
|
|
2863
3329
|
ReservationsApiFp,
|
|
3330
|
+
SortOrder,
|
|
2864
3331
|
UnboundApi,
|
|
2865
3332
|
UnboundApiAxiosParamCreator,
|
|
2866
3333
|
UnboundApiFactory,
|