@ember-home/unbound-ts-client 0.0.16 → 0.0.18
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 +862 -414
- package/dist/index.d.ts +862 -414
- package/dist/index.js +694 -127
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +632 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,16 +75,8 @@ 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"
|
|
83
|
-
};
|
|
84
|
-
var DataSource = {
|
|
85
|
-
Hostaway: "HOSTAWAY",
|
|
86
|
-
Guesty: "GUESTY",
|
|
87
|
-
Manual: "MANUAL"
|
|
78
|
+
var ContactListingType = {
|
|
79
|
+
Owner: "OWNER"
|
|
88
80
|
};
|
|
89
81
|
var AddressesApiAxiosParamCreator = function(configuration) {
|
|
90
82
|
return {
|
|
@@ -384,6 +376,38 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
384
376
|
options: localVarRequestOptions
|
|
385
377
|
};
|
|
386
378
|
},
|
|
379
|
+
/**
|
|
380
|
+
* Associates a contact with a listing with the OWNER type.
|
|
381
|
+
* @summary Create Contact Listing
|
|
382
|
+
* @param {string} contactId
|
|
383
|
+
* @param {string} listingId
|
|
384
|
+
* @param {CreateContactListing} createContactListing
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
contactsAddListing: async (contactId, listingId, createContactListing, options = {}) => {
|
|
389
|
+
assertParamExists("contactsAddListing", "contactId", contactId);
|
|
390
|
+
assertParamExists("contactsAddListing", "listingId", listingId);
|
|
391
|
+
assertParamExists("contactsAddListing", "createContactListing", createContactListing);
|
|
392
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
if (configuration) {
|
|
396
|
+
baseOptions = configuration.baseOptions;
|
|
397
|
+
}
|
|
398
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
399
|
+
const localVarHeaderParameter = {};
|
|
400
|
+
const localVarQueryParameter = {};
|
|
401
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
402
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
403
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
404
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
405
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContactListing, localVarRequestOptions, configuration);
|
|
406
|
+
return {
|
|
407
|
+
url: toPathString(localVarUrlObj),
|
|
408
|
+
options: localVarRequestOptions
|
|
409
|
+
};
|
|
410
|
+
},
|
|
387
411
|
/**
|
|
388
412
|
*
|
|
389
413
|
* @summary Contacts Create
|
|
@@ -467,12 +491,13 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
467
491
|
/**
|
|
468
492
|
*
|
|
469
493
|
* @summary Contacts List
|
|
470
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
471
494
|
* @param {string} [searchString]
|
|
495
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
496
|
+
* @param {number} [limit]
|
|
472
497
|
* @param {*} [options] Override http request option.
|
|
473
498
|
* @throws {RequiredError}
|
|
474
499
|
*/
|
|
475
|
-
contactsList: async (
|
|
500
|
+
contactsList: async (searchString, after, limit, options = {}) => {
|
|
476
501
|
const localVarPath = `/contacts`;
|
|
477
502
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
478
503
|
let baseOptions;
|
|
@@ -482,12 +507,15 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
482
507
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
483
508
|
const localVarHeaderParameter = {};
|
|
484
509
|
const localVarQueryParameter = {};
|
|
485
|
-
if (contactTypes) {
|
|
486
|
-
localVarQueryParameter["contactTypes"] = contactTypes;
|
|
487
|
-
}
|
|
488
510
|
if (searchString !== void 0) {
|
|
489
511
|
localVarQueryParameter["searchString"] = searchString;
|
|
490
512
|
}
|
|
513
|
+
if (after !== void 0) {
|
|
514
|
+
localVarQueryParameter["after"] = after;
|
|
515
|
+
}
|
|
516
|
+
if (limit !== void 0) {
|
|
517
|
+
localVarQueryParameter["limit"] = limit;
|
|
518
|
+
}
|
|
491
519
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
492
520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
493
521
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -496,6 +524,38 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
496
524
|
options: localVarRequestOptions
|
|
497
525
|
};
|
|
498
526
|
},
|
|
527
|
+
/**
|
|
528
|
+
* Removes an association between a contact and a listing.
|
|
529
|
+
* @summary Delete Contact Listing
|
|
530
|
+
* @param {string} contactId
|
|
531
|
+
* @param {string} listingId
|
|
532
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
contactsRemoveListing: async (contactId, listingId, deleteContactListing, options = {}) => {
|
|
537
|
+
assertParamExists("contactsRemoveListing", "contactId", contactId);
|
|
538
|
+
assertParamExists("contactsRemoveListing", "listingId", listingId);
|
|
539
|
+
assertParamExists("contactsRemoveListing", "deleteContactListing", deleteContactListing);
|
|
540
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
541
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
542
|
+
let baseOptions;
|
|
543
|
+
if (configuration) {
|
|
544
|
+
baseOptions = configuration.baseOptions;
|
|
545
|
+
}
|
|
546
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
547
|
+
const localVarHeaderParameter = {};
|
|
548
|
+
const localVarQueryParameter = {};
|
|
549
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
550
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
551
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
552
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
553
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteContactListing, localVarRequestOptions, configuration);
|
|
554
|
+
return {
|
|
555
|
+
url: toPathString(localVarUrlObj),
|
|
556
|
+
options: localVarRequestOptions
|
|
557
|
+
};
|
|
558
|
+
},
|
|
499
559
|
/**
|
|
500
560
|
*
|
|
501
561
|
* @summary Contacts Update
|
|
@@ -526,6 +586,38 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
526
586
|
options: localVarRequestOptions
|
|
527
587
|
};
|
|
528
588
|
},
|
|
589
|
+
/**
|
|
590
|
+
* Updates an association between a contact and a listing.
|
|
591
|
+
* @summary Update Contact Listing
|
|
592
|
+
* @param {string} contactId
|
|
593
|
+
* @param {string} listingId
|
|
594
|
+
* @param {UpdateContactListing} updateContactListing
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
contactsUpdateListing: async (contactId, listingId, updateContactListing, options = {}) => {
|
|
599
|
+
assertParamExists("contactsUpdateListing", "contactId", contactId);
|
|
600
|
+
assertParamExists("contactsUpdateListing", "listingId", listingId);
|
|
601
|
+
assertParamExists("contactsUpdateListing", "updateContactListing", updateContactListing);
|
|
602
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
603
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
|
+
let baseOptions;
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
609
|
+
const localVarHeaderParameter = {};
|
|
610
|
+
const localVarQueryParameter = {};
|
|
611
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
612
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
613
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
614
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
615
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContactListing, localVarRequestOptions, configuration);
|
|
616
|
+
return {
|
|
617
|
+
url: toPathString(localVarUrlObj),
|
|
618
|
+
options: localVarRequestOptions
|
|
619
|
+
};
|
|
620
|
+
},
|
|
529
621
|
/**
|
|
530
622
|
*
|
|
531
623
|
* @summary Emails Create
|
|
@@ -684,6 +776,21 @@ var ContactsApiFp = function(configuration) {
|
|
|
684
776
|
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _23 => _23["ContactsApi.addressesUpdate"], 'optionalAccess', _24 => _24[localVarOperationServerIndex], 'optionalAccess', _25 => _25.url]);
|
|
685
777
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
686
778
|
},
|
|
779
|
+
/**
|
|
780
|
+
* Associates a contact with a listing with the OWNER type.
|
|
781
|
+
* @summary Create Contact Listing
|
|
782
|
+
* @param {string} contactId
|
|
783
|
+
* @param {string} listingId
|
|
784
|
+
* @param {CreateContactListing} createContactListing
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
790
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _26 => _26.serverIndex]), () => ( 0));
|
|
791
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _27 => _27["ContactsApi.contactsAddListing"], 'optionalAccess', _28 => _28[localVarOperationServerIndex], 'optionalAccess', _29 => _29.url]);
|
|
792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
|
+
},
|
|
687
794
|
/**
|
|
688
795
|
*
|
|
689
796
|
* @summary Contacts Create
|
|
@@ -693,8 +800,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
693
800
|
*/
|
|
694
801
|
async contactsCreate(contactCreate, options) {
|
|
695
802
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
696
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
697
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
803
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _30 => _30.serverIndex]), () => ( 0));
|
|
804
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _31 => _31["ContactsApi.contactsCreate"], 'optionalAccess', _32 => _32[localVarOperationServerIndex], 'optionalAccess', _33 => _33.url]);
|
|
698
805
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
699
806
|
},
|
|
700
807
|
/**
|
|
@@ -706,8 +813,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
706
813
|
*/
|
|
707
814
|
async contactsDelete(contactId, options) {
|
|
708
815
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
709
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
710
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
816
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _34 => _34.serverIndex]), () => ( 0));
|
|
817
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _35 => _35["ContactsApi.contactsDelete"], 'optionalAccess', _36 => _36[localVarOperationServerIndex], 'optionalAccess', _37 => _37.url]);
|
|
711
818
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
819
|
},
|
|
713
820
|
/**
|
|
@@ -719,22 +826,38 @@ var ContactsApiFp = function(configuration) {
|
|
|
719
826
|
*/
|
|
720
827
|
async contactsGet(contactId, options) {
|
|
721
828
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
722
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
723
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
829
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _38 => _38.serverIndex]), () => ( 0));
|
|
830
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _39 => _39["ContactsApi.contactsGet"], 'optionalAccess', _40 => _40[localVarOperationServerIndex], 'optionalAccess', _41 => _41.url]);
|
|
724
831
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
832
|
},
|
|
726
833
|
/**
|
|
727
834
|
*
|
|
728
835
|
* @summary Contacts List
|
|
729
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
730
836
|
* @param {string} [searchString]
|
|
837
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
838
|
+
* @param {number} [limit]
|
|
731
839
|
* @param {*} [options] Override http request option.
|
|
732
840
|
* @throws {RequiredError}
|
|
733
841
|
*/
|
|
734
|
-
async contactsList(
|
|
735
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(
|
|
736
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
737
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
842
|
+
async contactsList(searchString, after, limit, options) {
|
|
843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, after, limit, options);
|
|
844
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _42 => _42.serverIndex]), () => ( 0));
|
|
845
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _43 => _43["ContactsApi.contactsList"], 'optionalAccess', _44 => _44[localVarOperationServerIndex], 'optionalAccess', _45 => _45.url]);
|
|
846
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
847
|
+
},
|
|
848
|
+
/**
|
|
849
|
+
* Removes an association between a contact and a listing.
|
|
850
|
+
* @summary Delete Contact Listing
|
|
851
|
+
* @param {string} contactId
|
|
852
|
+
* @param {string} listingId
|
|
853
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
854
|
+
* @param {*} [options] Override http request option.
|
|
855
|
+
* @throws {RequiredError}
|
|
856
|
+
*/
|
|
857
|
+
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
858
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
859
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _46 => _46.serverIndex]), () => ( 0));
|
|
860
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _47 => _47["ContactsApi.contactsRemoveListing"], 'optionalAccess', _48 => _48[localVarOperationServerIndex], 'optionalAccess', _49 => _49.url]);
|
|
738
861
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
739
862
|
},
|
|
740
863
|
/**
|
|
@@ -747,8 +870,23 @@ var ContactsApiFp = function(configuration) {
|
|
|
747
870
|
*/
|
|
748
871
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
749
872
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
750
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
751
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
873
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _50 => _50.serverIndex]), () => ( 0));
|
|
874
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _51 => _51["ContactsApi.contactsUpdate"], 'optionalAccess', _52 => _52[localVarOperationServerIndex], 'optionalAccess', _53 => _53.url]);
|
|
875
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
876
|
+
},
|
|
877
|
+
/**
|
|
878
|
+
* Updates an association between a contact and a listing.
|
|
879
|
+
* @summary Update Contact Listing
|
|
880
|
+
* @param {string} contactId
|
|
881
|
+
* @param {string} listingId
|
|
882
|
+
* @param {UpdateContactListing} updateContactListing
|
|
883
|
+
* @param {*} [options] Override http request option.
|
|
884
|
+
* @throws {RequiredError}
|
|
885
|
+
*/
|
|
886
|
+
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
887
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
888
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _54 => _54.serverIndex]), () => ( 0));
|
|
889
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _55 => _55["ContactsApi.contactsUpdateListing"], 'optionalAccess', _56 => _56[localVarOperationServerIndex], 'optionalAccess', _57 => _57.url]);
|
|
752
890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
891
|
},
|
|
754
892
|
/**
|
|
@@ -761,8 +899,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
761
899
|
*/
|
|
762
900
|
async emailsCreate(contactId, emailCreate, options) {
|
|
763
901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
764
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
765
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
902
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _58 => _58.serverIndex]), () => ( 0));
|
|
903
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _59 => _59["ContactsApi.emailsCreate"], 'optionalAccess', _60 => _60[localVarOperationServerIndex], 'optionalAccess', _61 => _61.url]);
|
|
766
904
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
767
905
|
},
|
|
768
906
|
/**
|
|
@@ -774,8 +912,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
774
912
|
*/
|
|
775
913
|
async emailsDelete(emailId, options) {
|
|
776
914
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
777
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
778
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
915
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _62 => _62.serverIndex]), () => ( 0));
|
|
916
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _63 => _63["ContactsApi.emailsDelete"], 'optionalAccess', _64 => _64[localVarOperationServerIndex], 'optionalAccess', _65 => _65.url]);
|
|
779
917
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
780
918
|
},
|
|
781
919
|
/**
|
|
@@ -788,8 +926,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
788
926
|
*/
|
|
789
927
|
async phonesCreate(contactId, phoneCreate, options) {
|
|
790
928
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
791
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
792
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
929
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _66 => _66.serverIndex]), () => ( 0));
|
|
930
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _67 => _67["ContactsApi.phonesCreate"], 'optionalAccess', _68 => _68[localVarOperationServerIndex], 'optionalAccess', _69 => _69.url]);
|
|
793
931
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
794
932
|
},
|
|
795
933
|
/**
|
|
@@ -801,8 +939,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
801
939
|
*/
|
|
802
940
|
async phonesDelete(phoneId, options) {
|
|
803
941
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
804
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
805
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
942
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
|
|
943
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["ContactsApi.phonesDelete"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
|
|
806
944
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
807
945
|
}
|
|
808
946
|
};
|
|
@@ -842,6 +980,18 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
842
980
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
843
981
|
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
844
982
|
},
|
|
983
|
+
/**
|
|
984
|
+
* Associates a contact with a listing with the OWNER type.
|
|
985
|
+
* @summary Create Contact Listing
|
|
986
|
+
* @param {string} contactId
|
|
987
|
+
* @param {string} listingId
|
|
988
|
+
* @param {CreateContactListing} createContactListing
|
|
989
|
+
* @param {*} [options] Override http request option.
|
|
990
|
+
* @throws {RequiredError}
|
|
991
|
+
*/
|
|
992
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
993
|
+
return localVarFp.contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(axios, basePath));
|
|
994
|
+
},
|
|
845
995
|
/**
|
|
846
996
|
*
|
|
847
997
|
* @summary Contacts Create
|
|
@@ -875,13 +1025,26 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
875
1025
|
/**
|
|
876
1026
|
*
|
|
877
1027
|
* @summary Contacts List
|
|
878
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
879
1028
|
* @param {string} [searchString]
|
|
1029
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
1030
|
+
* @param {number} [limit]
|
|
1031
|
+
* @param {*} [options] Override http request option.
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
*/
|
|
1034
|
+
contactsList(searchString, after, limit, options) {
|
|
1035
|
+
return localVarFp.contactsList(searchString, after, limit, options).then((request) => request(axios, basePath));
|
|
1036
|
+
},
|
|
1037
|
+
/**
|
|
1038
|
+
* Removes an association between a contact and a listing.
|
|
1039
|
+
* @summary Delete Contact Listing
|
|
1040
|
+
* @param {string} contactId
|
|
1041
|
+
* @param {string} listingId
|
|
1042
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
880
1043
|
* @param {*} [options] Override http request option.
|
|
881
1044
|
* @throws {RequiredError}
|
|
882
1045
|
*/
|
|
883
|
-
|
|
884
|
-
return localVarFp.
|
|
1046
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
1047
|
+
return localVarFp.contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(axios, basePath));
|
|
885
1048
|
},
|
|
886
1049
|
/**
|
|
887
1050
|
*
|
|
@@ -894,6 +1057,18 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
894
1057
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
895
1058
|
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
896
1059
|
},
|
|
1060
|
+
/**
|
|
1061
|
+
* Updates an association between a contact and a listing.
|
|
1062
|
+
* @summary Update Contact Listing
|
|
1063
|
+
* @param {string} contactId
|
|
1064
|
+
* @param {string} listingId
|
|
1065
|
+
* @param {UpdateContactListing} updateContactListing
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
*/
|
|
1069
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
1070
|
+
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
1071
|
+
},
|
|
897
1072
|
/**
|
|
898
1073
|
*
|
|
899
1074
|
* @summary Emails Create
|
|
@@ -974,6 +1149,19 @@ var ContactsApi = class extends BaseAPI {
|
|
|
974
1149
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
975
1150
|
return ContactsApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
976
1151
|
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Associates a contact with a listing with the OWNER type.
|
|
1154
|
+
* @summary Create Contact Listing
|
|
1155
|
+
* @param {string} contactId
|
|
1156
|
+
* @param {string} listingId
|
|
1157
|
+
* @param {CreateContactListing} createContactListing
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
* @memberof ContactsApi
|
|
1161
|
+
*/
|
|
1162
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
1163
|
+
return ContactsApiFp(this.configuration).contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
1164
|
+
}
|
|
977
1165
|
/**
|
|
978
1166
|
*
|
|
979
1167
|
* @summary Contacts Create
|
|
@@ -1010,14 +1198,28 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1010
1198
|
/**
|
|
1011
1199
|
*
|
|
1012
1200
|
* @summary Contacts List
|
|
1013
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
1014
1201
|
* @param {string} [searchString]
|
|
1202
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
1203
|
+
* @param {number} [limit]
|
|
1015
1204
|
* @param {*} [options] Override http request option.
|
|
1016
1205
|
* @throws {RequiredError}
|
|
1017
1206
|
* @memberof ContactsApi
|
|
1018
1207
|
*/
|
|
1019
|
-
contactsList(
|
|
1020
|
-
return ContactsApiFp(this.configuration).contactsList(
|
|
1208
|
+
contactsList(searchString, after, limit, options) {
|
|
1209
|
+
return ContactsApiFp(this.configuration).contactsList(searchString, after, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Removes an association between a contact and a listing.
|
|
1213
|
+
* @summary Delete Contact Listing
|
|
1214
|
+
* @param {string} contactId
|
|
1215
|
+
* @param {string} listingId
|
|
1216
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
1217
|
+
* @param {*} [options] Override http request option.
|
|
1218
|
+
* @throws {RequiredError}
|
|
1219
|
+
* @memberof ContactsApi
|
|
1220
|
+
*/
|
|
1221
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
1222
|
+
return ContactsApiFp(this.configuration).contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
1021
1223
|
}
|
|
1022
1224
|
/**
|
|
1023
1225
|
*
|
|
@@ -1031,6 +1233,19 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1031
1233
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
1032
1234
|
return ContactsApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1033
1235
|
}
|
|
1236
|
+
/**
|
|
1237
|
+
* Updates an association between a contact and a listing.
|
|
1238
|
+
* @summary Update Contact Listing
|
|
1239
|
+
* @param {string} contactId
|
|
1240
|
+
* @param {string} listingId
|
|
1241
|
+
* @param {UpdateContactListing} updateContactListing
|
|
1242
|
+
* @param {*} [options] Override http request option.
|
|
1243
|
+
* @throws {RequiredError}
|
|
1244
|
+
* @memberof ContactsApi
|
|
1245
|
+
*/
|
|
1246
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
1247
|
+
return ContactsApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
1248
|
+
}
|
|
1034
1249
|
/**
|
|
1035
1250
|
*
|
|
1036
1251
|
* @summary Emails Create
|
|
@@ -1151,8 +1366,8 @@ var EmailsApiFp = function(configuration) {
|
|
|
1151
1366
|
*/
|
|
1152
1367
|
async emailsCreate(contactId, emailCreate, options) {
|
|
1153
1368
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
1154
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1155
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1369
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
|
|
1370
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["EmailsApi.emailsCreate"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
|
|
1156
1371
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1157
1372
|
},
|
|
1158
1373
|
/**
|
|
@@ -1164,8 +1379,8 @@ var EmailsApiFp = function(configuration) {
|
|
|
1164
1379
|
*/
|
|
1165
1380
|
async emailsDelete(emailId, options) {
|
|
1166
1381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
1167
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1168
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1382
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
|
|
1383
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["EmailsApi.emailsDelete"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
|
|
1169
1384
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1170
1385
|
}
|
|
1171
1386
|
};
|
|
@@ -1266,8 +1481,8 @@ var HostawayApiFp = function(configuration) {
|
|
|
1266
1481
|
*/
|
|
1267
1482
|
async webhook(hostawayWebhook, options) {
|
|
1268
1483
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
1269
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1270
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1484
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
|
|
1485
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["HostawayApi.webhook"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
|
|
1271
1486
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1272
1487
|
}
|
|
1273
1488
|
};
|
|
@@ -1300,17 +1515,17 @@ var HostawayApi = class extends BaseAPI {
|
|
|
1300
1515
|
return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
1301
1516
|
}
|
|
1302
1517
|
};
|
|
1303
|
-
var
|
|
1518
|
+
var InquiriesApiAxiosParamCreator = function(configuration) {
|
|
1304
1519
|
return {
|
|
1305
1520
|
/**
|
|
1306
1521
|
* List all listings
|
|
1307
|
-
* @summary
|
|
1522
|
+
* @summary Inquiries List
|
|
1308
1523
|
* @param {string} [contactId]
|
|
1309
1524
|
* @param {*} [options] Override http request option.
|
|
1310
1525
|
* @throws {RequiredError}
|
|
1311
1526
|
*/
|
|
1312
|
-
|
|
1313
|
-
const localVarPath = `/
|
|
1527
|
+
inquiriesList: async (contactId, options = {}) => {
|
|
1528
|
+
const localVarPath = `/inquiries`;
|
|
1314
1529
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1315
1530
|
let baseOptions;
|
|
1316
1531
|
if (configuration) {
|
|
@@ -1332,20 +1547,93 @@ var ListingsApiAxiosParamCreator = function(configuration) {
|
|
|
1332
1547
|
}
|
|
1333
1548
|
};
|
|
1334
1549
|
};
|
|
1550
|
+
var InquiriesApiFp = function(configuration) {
|
|
1551
|
+
const localVarAxiosParamCreator = InquiriesApiAxiosParamCreator(configuration);
|
|
1552
|
+
return {
|
|
1553
|
+
/**
|
|
1554
|
+
* List all listings
|
|
1555
|
+
* @summary Inquiries List
|
|
1556
|
+
* @param {string} [contactId]
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
*/
|
|
1560
|
+
async inquiriesList(contactId, options) {
|
|
1561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
1562
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
|
|
1563
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["InquiriesApi.inquiriesList"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
|
|
1564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1565
|
+
}
|
|
1566
|
+
};
|
|
1567
|
+
};
|
|
1568
|
+
var InquiriesApiFactory = function(configuration, basePath, axios) {
|
|
1569
|
+
const localVarFp = InquiriesApiFp(configuration);
|
|
1570
|
+
return {
|
|
1571
|
+
/**
|
|
1572
|
+
* List all listings
|
|
1573
|
+
* @summary Inquiries List
|
|
1574
|
+
* @param {string} [contactId]
|
|
1575
|
+
* @param {*} [options] Override http request option.
|
|
1576
|
+
* @throws {RequiredError}
|
|
1577
|
+
*/
|
|
1578
|
+
inquiriesList(contactId, options) {
|
|
1579
|
+
return localVarFp.inquiriesList(contactId, options).then((request) => request(axios, basePath));
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
var InquiriesApi = class extends BaseAPI {
|
|
1584
|
+
/**
|
|
1585
|
+
* List all listings
|
|
1586
|
+
* @summary Inquiries List
|
|
1587
|
+
* @param {string} [contactId]
|
|
1588
|
+
* @param {*} [options] Override http request option.
|
|
1589
|
+
* @throws {RequiredError}
|
|
1590
|
+
* @memberof InquiriesApi
|
|
1591
|
+
*/
|
|
1592
|
+
inquiriesList(contactId, options) {
|
|
1593
|
+
return InquiriesApiFp(this.configuration).inquiriesList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1596
|
+
var ListingsApiAxiosParamCreator = function(configuration) {
|
|
1597
|
+
return {
|
|
1598
|
+
/**
|
|
1599
|
+
* List all listings
|
|
1600
|
+
* @summary Listings List
|
|
1601
|
+
* @param {*} [options] Override http request option.
|
|
1602
|
+
* @throws {RequiredError}
|
|
1603
|
+
*/
|
|
1604
|
+
listingsList: async (options = {}) => {
|
|
1605
|
+
const localVarPath = `/listings`;
|
|
1606
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1607
|
+
let baseOptions;
|
|
1608
|
+
if (configuration) {
|
|
1609
|
+
baseOptions = configuration.baseOptions;
|
|
1610
|
+
}
|
|
1611
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1612
|
+
const localVarHeaderParameter = {};
|
|
1613
|
+
const localVarQueryParameter = {};
|
|
1614
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1616
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1617
|
+
return {
|
|
1618
|
+
url: toPathString(localVarUrlObj),
|
|
1619
|
+
options: localVarRequestOptions
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1335
1624
|
var ListingsApiFp = function(configuration) {
|
|
1336
1625
|
const localVarAxiosParamCreator = ListingsApiAxiosParamCreator(configuration);
|
|
1337
1626
|
return {
|
|
1338
1627
|
/**
|
|
1339
1628
|
* List all listings
|
|
1340
1629
|
* @summary Listings List
|
|
1341
|
-
* @param {string} [contactId]
|
|
1342
1630
|
* @param {*} [options] Override http request option.
|
|
1343
1631
|
* @throws {RequiredError}
|
|
1344
1632
|
*/
|
|
1345
|
-
async listingsList(
|
|
1346
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(
|
|
1347
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1348
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1633
|
+
async listingsList(options) {
|
|
1634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(options);
|
|
1635
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1636
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ListingsApi.listingsList"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
1349
1637
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1350
1638
|
}
|
|
1351
1639
|
};
|
|
@@ -1356,12 +1644,11 @@ var ListingsApiFactory = function(configuration, basePath, axios) {
|
|
|
1356
1644
|
/**
|
|
1357
1645
|
* List all listings
|
|
1358
1646
|
* @summary Listings List
|
|
1359
|
-
* @param {string} [contactId]
|
|
1360
1647
|
* @param {*} [options] Override http request option.
|
|
1361
1648
|
* @throws {RequiredError}
|
|
1362
1649
|
*/
|
|
1363
|
-
listingsList(
|
|
1364
|
-
return localVarFp.listingsList(
|
|
1650
|
+
listingsList(options) {
|
|
1651
|
+
return localVarFp.listingsList(options).then((request) => request(axios, basePath));
|
|
1365
1652
|
}
|
|
1366
1653
|
};
|
|
1367
1654
|
};
|
|
@@ -1369,13 +1656,12 @@ var ListingsApi = class extends BaseAPI {
|
|
|
1369
1656
|
/**
|
|
1370
1657
|
* List all listings
|
|
1371
1658
|
* @summary Listings List
|
|
1372
|
-
* @param {string} [contactId]
|
|
1373
1659
|
* @param {*} [options] Override http request option.
|
|
1374
1660
|
* @throws {RequiredError}
|
|
1375
1661
|
* @memberof ListingsApi
|
|
1376
1662
|
*/
|
|
1377
|
-
listingsList(
|
|
1378
|
-
return ListingsApiFp(this.configuration).listingsList(
|
|
1663
|
+
listingsList(options) {
|
|
1664
|
+
return ListingsApiFp(this.configuration).listingsList(options).then((request) => request(this.axios, this.basePath));
|
|
1379
1665
|
}
|
|
1380
1666
|
};
|
|
1381
1667
|
var PhonesApiAxiosParamCreator = function(configuration) {
|
|
@@ -1451,8 +1737,8 @@ var PhonesApiFp = function(configuration) {
|
|
|
1451
1737
|
*/
|
|
1452
1738
|
async phonesCreate(contactId, phoneCreate, options) {
|
|
1453
1739
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
1454
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1455
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1740
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
1741
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["PhonesApi.phonesCreate"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
1456
1742
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1457
1743
|
},
|
|
1458
1744
|
/**
|
|
@@ -1464,8 +1750,8 @@ var PhonesApiFp = function(configuration) {
|
|
|
1464
1750
|
*/
|
|
1465
1751
|
async phonesDelete(phoneId, options) {
|
|
1466
1752
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
1467
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1468
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1753
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
1754
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["PhonesApi.phonesDelete"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
1469
1755
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1470
1756
|
}
|
|
1471
1757
|
};
|
|
@@ -1565,8 +1851,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
1565
1851
|
*/
|
|
1566
1852
|
async reservationsList(contactId, options) {
|
|
1567
1853
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
1568
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1569
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1854
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
1855
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["ReservationsApi.reservationsList"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
1570
1856
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1571
1857
|
}
|
|
1572
1858
|
};
|
|
@@ -1687,6 +1973,38 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1687
1973
|
options: localVarRequestOptions
|
|
1688
1974
|
};
|
|
1689
1975
|
},
|
|
1976
|
+
/**
|
|
1977
|
+
* Associates a contact with a listing with the OWNER type.
|
|
1978
|
+
* @summary Create Contact Listing
|
|
1979
|
+
* @param {string} contactId
|
|
1980
|
+
* @param {string} listingId
|
|
1981
|
+
* @param {CreateContactListing} createContactListing
|
|
1982
|
+
* @param {*} [options] Override http request option.
|
|
1983
|
+
* @throws {RequiredError}
|
|
1984
|
+
*/
|
|
1985
|
+
contactsAddListing: async (contactId, listingId, createContactListing, options = {}) => {
|
|
1986
|
+
assertParamExists("contactsAddListing", "contactId", contactId);
|
|
1987
|
+
assertParamExists("contactsAddListing", "listingId", listingId);
|
|
1988
|
+
assertParamExists("contactsAddListing", "createContactListing", createContactListing);
|
|
1989
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
1990
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1991
|
+
let baseOptions;
|
|
1992
|
+
if (configuration) {
|
|
1993
|
+
baseOptions = configuration.baseOptions;
|
|
1994
|
+
}
|
|
1995
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1996
|
+
const localVarHeaderParameter = {};
|
|
1997
|
+
const localVarQueryParameter = {};
|
|
1998
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1999
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2000
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2001
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2002
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContactListing, localVarRequestOptions, configuration);
|
|
2003
|
+
return {
|
|
2004
|
+
url: toPathString(localVarUrlObj),
|
|
2005
|
+
options: localVarRequestOptions
|
|
2006
|
+
};
|
|
2007
|
+
},
|
|
1690
2008
|
/**
|
|
1691
2009
|
*
|
|
1692
2010
|
* @summary Contacts Create
|
|
@@ -1770,12 +2088,13 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1770
2088
|
/**
|
|
1771
2089
|
*
|
|
1772
2090
|
* @summary Contacts List
|
|
1773
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
1774
2091
|
* @param {string} [searchString]
|
|
2092
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
2093
|
+
* @param {number} [limit]
|
|
1775
2094
|
* @param {*} [options] Override http request option.
|
|
1776
2095
|
* @throws {RequiredError}
|
|
1777
2096
|
*/
|
|
1778
|
-
contactsList: async (
|
|
2097
|
+
contactsList: async (searchString, after, limit, options = {}) => {
|
|
1779
2098
|
const localVarPath = `/contacts`;
|
|
1780
2099
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1781
2100
|
let baseOptions;
|
|
@@ -1785,15 +2104,50 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1785
2104
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1786
2105
|
const localVarHeaderParameter = {};
|
|
1787
2106
|
const localVarQueryParameter = {};
|
|
1788
|
-
if (contactTypes) {
|
|
1789
|
-
localVarQueryParameter["contactTypes"] = contactTypes;
|
|
1790
|
-
}
|
|
1791
2107
|
if (searchString !== void 0) {
|
|
1792
2108
|
localVarQueryParameter["searchString"] = searchString;
|
|
1793
2109
|
}
|
|
2110
|
+
if (after !== void 0) {
|
|
2111
|
+
localVarQueryParameter["after"] = after;
|
|
2112
|
+
}
|
|
2113
|
+
if (limit !== void 0) {
|
|
2114
|
+
localVarQueryParameter["limit"] = limit;
|
|
2115
|
+
}
|
|
2116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2118
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2119
|
+
return {
|
|
2120
|
+
url: toPathString(localVarUrlObj),
|
|
2121
|
+
options: localVarRequestOptions
|
|
2122
|
+
};
|
|
2123
|
+
},
|
|
2124
|
+
/**
|
|
2125
|
+
* Removes an association between a contact and a listing.
|
|
2126
|
+
* @summary Delete Contact Listing
|
|
2127
|
+
* @param {string} contactId
|
|
2128
|
+
* @param {string} listingId
|
|
2129
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2130
|
+
* @param {*} [options] Override http request option.
|
|
2131
|
+
* @throws {RequiredError}
|
|
2132
|
+
*/
|
|
2133
|
+
contactsRemoveListing: async (contactId, listingId, deleteContactListing, options = {}) => {
|
|
2134
|
+
assertParamExists("contactsRemoveListing", "contactId", contactId);
|
|
2135
|
+
assertParamExists("contactsRemoveListing", "listingId", listingId);
|
|
2136
|
+
assertParamExists("contactsRemoveListing", "deleteContactListing", deleteContactListing);
|
|
2137
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
2138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2139
|
+
let baseOptions;
|
|
2140
|
+
if (configuration) {
|
|
2141
|
+
baseOptions = configuration.baseOptions;
|
|
2142
|
+
}
|
|
2143
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
2144
|
+
const localVarHeaderParameter = {};
|
|
2145
|
+
const localVarQueryParameter = {};
|
|
2146
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1794
2147
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1795
2148
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1796
2149
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2150
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteContactListing, localVarRequestOptions, configuration);
|
|
1797
2151
|
return {
|
|
1798
2152
|
url: toPathString(localVarUrlObj),
|
|
1799
2153
|
options: localVarRequestOptions
|
|
@@ -1829,6 +2183,38 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1829
2183
|
options: localVarRequestOptions
|
|
1830
2184
|
};
|
|
1831
2185
|
},
|
|
2186
|
+
/**
|
|
2187
|
+
* Updates an association between a contact and a listing.
|
|
2188
|
+
* @summary Update Contact Listing
|
|
2189
|
+
* @param {string} contactId
|
|
2190
|
+
* @param {string} listingId
|
|
2191
|
+
* @param {UpdateContactListing} updateContactListing
|
|
2192
|
+
* @param {*} [options] Override http request option.
|
|
2193
|
+
* @throws {RequiredError}
|
|
2194
|
+
*/
|
|
2195
|
+
contactsUpdateListing: async (contactId, listingId, updateContactListing, options = {}) => {
|
|
2196
|
+
assertParamExists("contactsUpdateListing", "contactId", contactId);
|
|
2197
|
+
assertParamExists("contactsUpdateListing", "listingId", listingId);
|
|
2198
|
+
assertParamExists("contactsUpdateListing", "updateContactListing", updateContactListing);
|
|
2199
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
2200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2201
|
+
let baseOptions;
|
|
2202
|
+
if (configuration) {
|
|
2203
|
+
baseOptions = configuration.baseOptions;
|
|
2204
|
+
}
|
|
2205
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2206
|
+
const localVarHeaderParameter = {};
|
|
2207
|
+
const localVarQueryParameter = {};
|
|
2208
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2209
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2211
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2212
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContactListing, localVarRequestOptions, configuration);
|
|
2213
|
+
return {
|
|
2214
|
+
url: toPathString(localVarUrlObj),
|
|
2215
|
+
options: localVarRequestOptions
|
|
2216
|
+
};
|
|
2217
|
+
},
|
|
1832
2218
|
/**
|
|
1833
2219
|
*
|
|
1834
2220
|
* @summary Emails Create
|
|
@@ -1887,13 +2273,13 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1887
2273
|
},
|
|
1888
2274
|
/**
|
|
1889
2275
|
* List all listings
|
|
1890
|
-
* @summary
|
|
2276
|
+
* @summary Inquiries List
|
|
1891
2277
|
* @param {string} [contactId]
|
|
1892
2278
|
* @param {*} [options] Override http request option.
|
|
1893
2279
|
* @throws {RequiredError}
|
|
1894
2280
|
*/
|
|
1895
|
-
|
|
1896
|
-
const localVarPath = `/
|
|
2281
|
+
inquiriesList: async (contactId, options = {}) => {
|
|
2282
|
+
const localVarPath = `/inquiries`;
|
|
1897
2283
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1898
2284
|
let baseOptions;
|
|
1899
2285
|
if (configuration) {
|
|
@@ -1913,6 +2299,30 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1913
2299
|
options: localVarRequestOptions
|
|
1914
2300
|
};
|
|
1915
2301
|
},
|
|
2302
|
+
/**
|
|
2303
|
+
* List all listings
|
|
2304
|
+
* @summary Listings List
|
|
2305
|
+
* @param {*} [options] Override http request option.
|
|
2306
|
+
* @throws {RequiredError}
|
|
2307
|
+
*/
|
|
2308
|
+
listingsList: async (options = {}) => {
|
|
2309
|
+
const localVarPath = `/listings`;
|
|
2310
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2311
|
+
let baseOptions;
|
|
2312
|
+
if (configuration) {
|
|
2313
|
+
baseOptions = configuration.baseOptions;
|
|
2314
|
+
}
|
|
2315
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2316
|
+
const localVarHeaderParameter = {};
|
|
2317
|
+
const localVarQueryParameter = {};
|
|
2318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2320
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2321
|
+
return {
|
|
2322
|
+
url: toPathString(localVarUrlObj),
|
|
2323
|
+
options: localVarRequestOptions
|
|
2324
|
+
};
|
|
2325
|
+
},
|
|
1916
2326
|
/**
|
|
1917
2327
|
*
|
|
1918
2328
|
* @summary Phones Create
|
|
@@ -2041,8 +2451,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2041
2451
|
*/
|
|
2042
2452
|
async addressesCreate(contactId, addressCreate, options) {
|
|
2043
2453
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
2044
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2045
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2454
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
2455
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["UnboundApi.addressesCreate"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
2046
2456
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2047
2457
|
},
|
|
2048
2458
|
/**
|
|
@@ -2054,8 +2464,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2054
2464
|
*/
|
|
2055
2465
|
async addressesDelete(addressId, options) {
|
|
2056
2466
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
2057
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2058
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2467
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
2468
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["UnboundApi.addressesDelete"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
2059
2469
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2060
2470
|
},
|
|
2061
2471
|
/**
|
|
@@ -2068,8 +2478,23 @@ var UnboundApiFp = function(configuration) {
|
|
|
2068
2478
|
*/
|
|
2069
2479
|
async addressesUpdate(addressId, addressUpdate, options) {
|
|
2070
2480
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
2071
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2072
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2481
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2482
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["UnboundApi.addressesUpdate"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
2483
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2484
|
+
},
|
|
2485
|
+
/**
|
|
2486
|
+
* Associates a contact with a listing with the OWNER type.
|
|
2487
|
+
* @summary Create Contact Listing
|
|
2488
|
+
* @param {string} contactId
|
|
2489
|
+
* @param {string} listingId
|
|
2490
|
+
* @param {CreateContactListing} createContactListing
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
2495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
2496
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2497
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["UnboundApi.contactsAddListing"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
2073
2498
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2074
2499
|
},
|
|
2075
2500
|
/**
|
|
@@ -2081,8 +2506,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2081
2506
|
*/
|
|
2082
2507
|
async contactsCreate(contactCreate, options) {
|
|
2083
2508
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
2084
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2085
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2509
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2510
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["UnboundApi.contactsCreate"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
2086
2511
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2087
2512
|
},
|
|
2088
2513
|
/**
|
|
@@ -2094,8 +2519,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2094
2519
|
*/
|
|
2095
2520
|
async contactsDelete(contactId, options) {
|
|
2096
2521
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
2097
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2098
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2522
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2523
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["UnboundApi.contactsDelete"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
2099
2524
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2100
2525
|
},
|
|
2101
2526
|
/**
|
|
@@ -2107,22 +2532,38 @@ var UnboundApiFp = function(configuration) {
|
|
|
2107
2532
|
*/
|
|
2108
2533
|
async contactsGet(contactId, options) {
|
|
2109
2534
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
2110
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2111
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2535
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
2536
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["UnboundApi.contactsGet"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
2112
2537
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2113
2538
|
},
|
|
2114
2539
|
/**
|
|
2115
2540
|
*
|
|
2116
2541
|
* @summary Contacts List
|
|
2117
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2118
2542
|
* @param {string} [searchString]
|
|
2543
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
2544
|
+
* @param {number} [limit]
|
|
2119
2545
|
* @param {*} [options] Override http request option.
|
|
2120
2546
|
* @throws {RequiredError}
|
|
2121
2547
|
*/
|
|
2122
|
-
async contactsList(
|
|
2123
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(
|
|
2124
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2125
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2548
|
+
async contactsList(searchString, after, limit, options) {
|
|
2549
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, after, limit, options);
|
|
2550
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
2551
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["UnboundApi.contactsList"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
2552
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2553
|
+
},
|
|
2554
|
+
/**
|
|
2555
|
+
* Removes an association between a contact and a listing.
|
|
2556
|
+
* @summary Delete Contact Listing
|
|
2557
|
+
* @param {string} contactId
|
|
2558
|
+
* @param {string} listingId
|
|
2559
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2560
|
+
* @param {*} [options] Override http request option.
|
|
2561
|
+
* @throws {RequiredError}
|
|
2562
|
+
*/
|
|
2563
|
+
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
2564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
2565
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2566
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["UnboundApi.contactsRemoveListing"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2126
2567
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2127
2568
|
},
|
|
2128
2569
|
/**
|
|
@@ -2135,8 +2576,23 @@ var UnboundApiFp = function(configuration) {
|
|
|
2135
2576
|
*/
|
|
2136
2577
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
2137
2578
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
2138
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2139
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2579
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
|
|
2580
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["UnboundApi.contactsUpdate"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
|
|
2581
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2582
|
+
},
|
|
2583
|
+
/**
|
|
2584
|
+
* Updates an association between a contact and a listing.
|
|
2585
|
+
* @summary Update Contact Listing
|
|
2586
|
+
* @param {string} contactId
|
|
2587
|
+
* @param {string} listingId
|
|
2588
|
+
* @param {UpdateContactListing} updateContactListing
|
|
2589
|
+
* @param {*} [options] Override http request option.
|
|
2590
|
+
* @throws {RequiredError}
|
|
2591
|
+
*/
|
|
2592
|
+
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2593
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
2594
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
|
|
2595
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["UnboundApi.contactsUpdateListing"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
|
|
2140
2596
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2141
2597
|
},
|
|
2142
2598
|
/**
|
|
@@ -2149,8 +2605,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2149
2605
|
*/
|
|
2150
2606
|
async emailsCreate(contactId, emailCreate, options) {
|
|
2151
2607
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
2152
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2153
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2608
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
|
|
2609
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["UnboundApi.emailsCreate"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
|
|
2154
2610
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2155
2611
|
},
|
|
2156
2612
|
/**
|
|
@@ -2162,21 +2618,33 @@ var UnboundApiFp = function(configuration) {
|
|
|
2162
2618
|
*/
|
|
2163
2619
|
async emailsDelete(emailId, options) {
|
|
2164
2620
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
2165
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2166
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2621
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
|
|
2622
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["UnboundApi.emailsDelete"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
|
|
2167
2623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2168
2624
|
},
|
|
2169
2625
|
/**
|
|
2170
2626
|
* List all listings
|
|
2171
|
-
* @summary
|
|
2627
|
+
* @summary Inquiries List
|
|
2172
2628
|
* @param {string} [contactId]
|
|
2173
2629
|
* @param {*} [options] Override http request option.
|
|
2174
2630
|
* @throws {RequiredError}
|
|
2175
2631
|
*/
|
|
2176
|
-
async
|
|
2177
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2178
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2179
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2632
|
+
async inquiriesList(contactId, options) {
|
|
2633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
2634
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
|
|
2635
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["UnboundApi.inquiriesList"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
|
|
2636
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2637
|
+
},
|
|
2638
|
+
/**
|
|
2639
|
+
* List all listings
|
|
2640
|
+
* @summary Listings List
|
|
2641
|
+
* @param {*} [options] Override http request option.
|
|
2642
|
+
* @throws {RequiredError}
|
|
2643
|
+
*/
|
|
2644
|
+
async listingsList(options) {
|
|
2645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(options);
|
|
2646
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
|
|
2647
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["UnboundApi.listingsList"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
|
|
2180
2648
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2181
2649
|
},
|
|
2182
2650
|
/**
|
|
@@ -2189,8 +2657,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2189
2657
|
*/
|
|
2190
2658
|
async phonesCreate(contactId, phoneCreate, options) {
|
|
2191
2659
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
2192
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2193
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2660
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
|
|
2661
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["UnboundApi.phonesCreate"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
|
|
2194
2662
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2195
2663
|
},
|
|
2196
2664
|
/**
|
|
@@ -2202,8 +2670,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2202
2670
|
*/
|
|
2203
2671
|
async phonesDelete(phoneId, options) {
|
|
2204
2672
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
2205
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2206
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2673
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
|
|
2674
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["UnboundApi.phonesDelete"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
|
|
2207
2675
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2208
2676
|
},
|
|
2209
2677
|
/**
|
|
@@ -2215,8 +2683,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2215
2683
|
*/
|
|
2216
2684
|
async reservationsList(contactId, options) {
|
|
2217
2685
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
2218
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2219
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2686
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
|
|
2687
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["UnboundApi.reservationsList"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
|
|
2220
2688
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2221
2689
|
},
|
|
2222
2690
|
/**
|
|
@@ -2228,8 +2696,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2228
2696
|
*/
|
|
2229
2697
|
async webhook(hostawayWebhook, options) {
|
|
2230
2698
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
2231
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2232
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2699
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
|
|
2700
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["UnboundApi.webhook"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
|
|
2233
2701
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2234
2702
|
}
|
|
2235
2703
|
};
|
|
@@ -2269,6 +2737,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2269
2737
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
2270
2738
|
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
2271
2739
|
},
|
|
2740
|
+
/**
|
|
2741
|
+
* Associates a contact with a listing with the OWNER type.
|
|
2742
|
+
* @summary Create Contact Listing
|
|
2743
|
+
* @param {string} contactId
|
|
2744
|
+
* @param {string} listingId
|
|
2745
|
+
* @param {CreateContactListing} createContactListing
|
|
2746
|
+
* @param {*} [options] Override http request option.
|
|
2747
|
+
* @throws {RequiredError}
|
|
2748
|
+
*/
|
|
2749
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
2750
|
+
return localVarFp.contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(axios, basePath));
|
|
2751
|
+
},
|
|
2272
2752
|
/**
|
|
2273
2753
|
*
|
|
2274
2754
|
* @summary Contacts Create
|
|
@@ -2302,13 +2782,26 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2302
2782
|
/**
|
|
2303
2783
|
*
|
|
2304
2784
|
* @summary Contacts List
|
|
2305
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2306
2785
|
* @param {string} [searchString]
|
|
2786
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
2787
|
+
* @param {number} [limit]
|
|
2788
|
+
* @param {*} [options] Override http request option.
|
|
2789
|
+
* @throws {RequiredError}
|
|
2790
|
+
*/
|
|
2791
|
+
contactsList(searchString, after, limit, options) {
|
|
2792
|
+
return localVarFp.contactsList(searchString, after, limit, options).then((request) => request(axios, basePath));
|
|
2793
|
+
},
|
|
2794
|
+
/**
|
|
2795
|
+
* Removes an association between a contact and a listing.
|
|
2796
|
+
* @summary Delete Contact Listing
|
|
2797
|
+
* @param {string} contactId
|
|
2798
|
+
* @param {string} listingId
|
|
2799
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2307
2800
|
* @param {*} [options] Override http request option.
|
|
2308
2801
|
* @throws {RequiredError}
|
|
2309
2802
|
*/
|
|
2310
|
-
|
|
2311
|
-
return localVarFp.
|
|
2803
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
2804
|
+
return localVarFp.contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(axios, basePath));
|
|
2312
2805
|
},
|
|
2313
2806
|
/**
|
|
2314
2807
|
*
|
|
@@ -2321,6 +2814,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2321
2814
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
2322
2815
|
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
2323
2816
|
},
|
|
2817
|
+
/**
|
|
2818
|
+
* Updates an association between a contact and a listing.
|
|
2819
|
+
* @summary Update Contact Listing
|
|
2820
|
+
* @param {string} contactId
|
|
2821
|
+
* @param {string} listingId
|
|
2822
|
+
* @param {UpdateContactListing} updateContactListing
|
|
2823
|
+
* @param {*} [options] Override http request option.
|
|
2824
|
+
* @throws {RequiredError}
|
|
2825
|
+
*/
|
|
2826
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2827
|
+
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
2828
|
+
},
|
|
2324
2829
|
/**
|
|
2325
2830
|
*
|
|
2326
2831
|
* @summary Emails Create
|
|
@@ -2344,13 +2849,22 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2344
2849
|
},
|
|
2345
2850
|
/**
|
|
2346
2851
|
* List all listings
|
|
2347
|
-
* @summary
|
|
2852
|
+
* @summary Inquiries List
|
|
2348
2853
|
* @param {string} [contactId]
|
|
2349
2854
|
* @param {*} [options] Override http request option.
|
|
2350
2855
|
* @throws {RequiredError}
|
|
2351
2856
|
*/
|
|
2352
|
-
|
|
2353
|
-
return localVarFp.
|
|
2857
|
+
inquiriesList(contactId, options) {
|
|
2858
|
+
return localVarFp.inquiriesList(contactId, options).then((request) => request(axios, basePath));
|
|
2859
|
+
},
|
|
2860
|
+
/**
|
|
2861
|
+
* List all listings
|
|
2862
|
+
* @summary Listings List
|
|
2863
|
+
* @param {*} [options] Override http request option.
|
|
2864
|
+
* @throws {RequiredError}
|
|
2865
|
+
*/
|
|
2866
|
+
listingsList(options) {
|
|
2867
|
+
return localVarFp.listingsList(options).then((request) => request(axios, basePath));
|
|
2354
2868
|
},
|
|
2355
2869
|
/**
|
|
2356
2870
|
*
|
|
@@ -2431,6 +2945,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2431
2945
|
addressesUpdate(addressId, addressUpdate, options) {
|
|
2432
2946
|
return UnboundApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2433
2947
|
}
|
|
2948
|
+
/**
|
|
2949
|
+
* Associates a contact with a listing with the OWNER type.
|
|
2950
|
+
* @summary Create Contact Listing
|
|
2951
|
+
* @param {string} contactId
|
|
2952
|
+
* @param {string} listingId
|
|
2953
|
+
* @param {CreateContactListing} createContactListing
|
|
2954
|
+
* @param {*} [options] Override http request option.
|
|
2955
|
+
* @throws {RequiredError}
|
|
2956
|
+
* @memberof UnboundApi
|
|
2957
|
+
*/
|
|
2958
|
+
contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
2959
|
+
return UnboundApiFp(this.configuration).contactsAddListing(contactId, listingId, createContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
2960
|
+
}
|
|
2434
2961
|
/**
|
|
2435
2962
|
*
|
|
2436
2963
|
* @summary Contacts Create
|
|
@@ -2467,14 +2994,28 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2467
2994
|
/**
|
|
2468
2995
|
*
|
|
2469
2996
|
* @summary Contacts List
|
|
2470
|
-
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2471
2997
|
* @param {string} [searchString]
|
|
2998
|
+
* @param {string | null} [after] Cursor for keyset paging
|
|
2999
|
+
* @param {number} [limit]
|
|
3000
|
+
* @param {*} [options] Override http request option.
|
|
3001
|
+
* @throws {RequiredError}
|
|
3002
|
+
* @memberof UnboundApi
|
|
3003
|
+
*/
|
|
3004
|
+
contactsList(searchString, after, limit, options) {
|
|
3005
|
+
return UnboundApiFp(this.configuration).contactsList(searchString, after, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3006
|
+
}
|
|
3007
|
+
/**
|
|
3008
|
+
* Removes an association between a contact and a listing.
|
|
3009
|
+
* @summary Delete Contact Listing
|
|
3010
|
+
* @param {string} contactId
|
|
3011
|
+
* @param {string} listingId
|
|
3012
|
+
* @param {DeleteContactListing} deleteContactListing
|
|
2472
3013
|
* @param {*} [options] Override http request option.
|
|
2473
3014
|
* @throws {RequiredError}
|
|
2474
3015
|
* @memberof UnboundApi
|
|
2475
3016
|
*/
|
|
2476
|
-
|
|
2477
|
-
return UnboundApiFp(this.configuration).
|
|
3017
|
+
contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
3018
|
+
return UnboundApiFp(this.configuration).contactsRemoveListing(contactId, listingId, deleteContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
2478
3019
|
}
|
|
2479
3020
|
/**
|
|
2480
3021
|
*
|
|
@@ -2488,6 +3029,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2488
3029
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
2489
3030
|
return UnboundApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2490
3031
|
}
|
|
3032
|
+
/**
|
|
3033
|
+
* Updates an association between a contact and a listing.
|
|
3034
|
+
* @summary Update Contact Listing
|
|
3035
|
+
* @param {string} contactId
|
|
3036
|
+
* @param {string} listingId
|
|
3037
|
+
* @param {UpdateContactListing} updateContactListing
|
|
3038
|
+
* @param {*} [options] Override http request option.
|
|
3039
|
+
* @throws {RequiredError}
|
|
3040
|
+
* @memberof UnboundApi
|
|
3041
|
+
*/
|
|
3042
|
+
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
3043
|
+
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
3044
|
+
}
|
|
2491
3045
|
/**
|
|
2492
3046
|
*
|
|
2493
3047
|
* @summary Emails Create
|
|
@@ -2513,14 +3067,24 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2513
3067
|
}
|
|
2514
3068
|
/**
|
|
2515
3069
|
* List all listings
|
|
2516
|
-
* @summary
|
|
3070
|
+
* @summary Inquiries List
|
|
2517
3071
|
* @param {string} [contactId]
|
|
2518
3072
|
* @param {*} [options] Override http request option.
|
|
2519
3073
|
* @throws {RequiredError}
|
|
2520
3074
|
* @memberof UnboundApi
|
|
2521
3075
|
*/
|
|
2522
|
-
|
|
2523
|
-
return UnboundApiFp(this.configuration).
|
|
3076
|
+
inquiriesList(contactId, options) {
|
|
3077
|
+
return UnboundApiFp(this.configuration).inquiriesList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
3078
|
+
}
|
|
3079
|
+
/**
|
|
3080
|
+
* List all listings
|
|
3081
|
+
* @summary Listings List
|
|
3082
|
+
* @param {*} [options] Override http request option.
|
|
3083
|
+
* @throws {RequiredError}
|
|
3084
|
+
* @memberof UnboundApi
|
|
3085
|
+
*/
|
|
3086
|
+
listingsList(options) {
|
|
3087
|
+
return UnboundApiFp(this.configuration).listingsList(options).then((request) => request(this.axios, this.basePath));
|
|
2524
3088
|
}
|
|
2525
3089
|
/**
|
|
2526
3090
|
*
|
|
@@ -2637,7 +3201,7 @@ var Configuration = class {
|
|
|
2637
3201
|
this.baseOptions = {
|
|
2638
3202
|
...param.baseOptions,
|
|
2639
3203
|
headers: {
|
|
2640
|
-
..._optionalChain([param, 'access',
|
|
3204
|
+
..._optionalChain([param, 'access', _182 => _182.baseOptions, 'optionalAccess', _183 => _183.headers])
|
|
2641
3205
|
}
|
|
2642
3206
|
};
|
|
2643
3207
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -2693,5 +3257,8 @@ var Configuration = class {
|
|
|
2693
3257
|
|
|
2694
3258
|
|
|
2695
3259
|
|
|
2696
|
-
|
|
3260
|
+
|
|
3261
|
+
|
|
3262
|
+
|
|
3263
|
+
exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactListingType = ContactListingType; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.InquiriesApi = InquiriesApi; exports.InquiriesApiAxiosParamCreator = InquiriesApiAxiosParamCreator; exports.InquiriesApiFactory = InquiriesApiFactory; exports.InquiriesApiFp = InquiriesApiFp; exports.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.PhonesApi = PhonesApi; exports.PhonesApiAxiosParamCreator = PhonesApiAxiosParamCreator; exports.PhonesApiFactory = PhonesApiFactory; exports.PhonesApiFp = PhonesApiFp; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
|
|
2697
3264
|
//# sourceMappingURL=index.js.map
|