@ember-home/unbound-ts-client 0.0.18 → 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.mjs CHANGED
@@ -78,6 +78,19 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
78
78
  var ContactListingType = {
79
79
  Owner: "OWNER"
80
80
  };
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"
93
+ };
81
94
  var AddressesApiAxiosParamCreator = function(configuration) {
82
95
  return {
83
96
  /**
@@ -492,12 +505,15 @@ var ContactsApiAxiosParamCreator = function(configuration) {
492
505
  *
493
506
  * @summary Contacts List
494
507
  * @param {string} [searchString]
495
- * @param {string | null} [after] Cursor for keyset paging
508
+ * @param {string | null} [cursor] Cursor for keyset paging
496
509
  * @param {number} [limit]
510
+ * @param {PaginationDirection} [pageDir] Direction of paging
511
+ * @param {ContactSortBy} [sortBy] Sort key
512
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
497
513
  * @param {*} [options] Override http request option.
498
514
  * @throws {RequiredError}
499
515
  */
500
- contactsList: async (searchString, after, limit, options = {}) => {
516
+ contactsList: async (searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
501
517
  const localVarPath = `/contacts`;
502
518
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
519
  let baseOptions;
@@ -510,12 +526,21 @@ var ContactsApiAxiosParamCreator = function(configuration) {
510
526
  if (searchString !== void 0) {
511
527
  localVarQueryParameter["searchString"] = searchString;
512
528
  }
513
- if (after !== void 0) {
514
- localVarQueryParameter["after"] = after;
529
+ if (cursor !== void 0) {
530
+ localVarQueryParameter["cursor"] = cursor;
515
531
  }
516
532
  if (limit !== void 0) {
517
533
  localVarQueryParameter["limit"] = limit;
518
534
  }
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;
543
+ }
519
544
  setSearchParams(localVarUrlObj, localVarQueryParameter);
520
545
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
546
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -834,13 +859,16 @@ var ContactsApiFp = function(configuration) {
834
859
  *
835
860
  * @summary Contacts List
836
861
  * @param {string} [searchString]
837
- * @param {string | null} [after] Cursor for keyset paging
862
+ * @param {string | null} [cursor] Cursor for keyset paging
838
863
  * @param {number} [limit]
864
+ * @param {PaginationDirection} [pageDir] Direction of paging
865
+ * @param {ContactSortBy} [sortBy] Sort key
866
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
839
867
  * @param {*} [options] Override http request option.
840
868
  * @throws {RequiredError}
841
869
  */
842
- async contactsList(searchString, after, limit, options) {
843
- const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, after, limit, options);
870
+ async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
844
872
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
845
873
  const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsList"]?.[localVarOperationServerIndex]?.url;
846
874
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1026,13 +1054,16 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
1026
1054
  *
1027
1055
  * @summary Contacts List
1028
1056
  * @param {string} [searchString]
1029
- * @param {string | null} [after] Cursor for keyset paging
1057
+ * @param {string | null} [cursor] Cursor for keyset paging
1030
1058
  * @param {number} [limit]
1059
+ * @param {PaginationDirection} [pageDir] Direction of paging
1060
+ * @param {ContactSortBy} [sortBy] Sort key
1061
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1031
1062
  * @param {*} [options] Override http request option.
1032
1063
  * @throws {RequiredError}
1033
1064
  */
1034
- contactsList(searchString, after, limit, options) {
1035
- return localVarFp.contactsList(searchString, after, limit, options).then((request) => request(axios, basePath));
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));
1036
1067
  },
1037
1068
  /**
1038
1069
  * Removes an association between a contact and a listing.
@@ -1199,14 +1230,17 @@ var ContactsApi = class extends BaseAPI {
1199
1230
  *
1200
1231
  * @summary Contacts List
1201
1232
  * @param {string} [searchString]
1202
- * @param {string | null} [after] Cursor for keyset paging
1233
+ * @param {string | null} [cursor] Cursor for keyset paging
1203
1234
  * @param {number} [limit]
1235
+ * @param {PaginationDirection} [pageDir] Direction of paging
1236
+ * @param {ContactSortBy} [sortBy] Sort key
1237
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
1204
1238
  * @param {*} [options] Override http request option.
1205
1239
  * @throws {RequiredError}
1206
1240
  * @memberof ContactsApi
1207
1241
  */
1208
- contactsList(searchString, after, limit, options) {
1209
- return ContactsApiFp(this.configuration).contactsList(searchString, after, limit, options).then((request) => request(this.axios, this.basePath));
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));
1210
1244
  }
1211
1245
  /**
1212
1246
  * Removes an association between a contact and a listing.
@@ -1598,10 +1632,11 @@ var ListingsApiAxiosParamCreator = function(configuration) {
1598
1632
  /**
1599
1633
  * List all listings
1600
1634
  * @summary Listings List
1635
+ * @param {string} [contactId]
1601
1636
  * @param {*} [options] Override http request option.
1602
1637
  * @throws {RequiredError}
1603
1638
  */
1604
- listingsList: async (options = {}) => {
1639
+ listingsList: async (contactId, options = {}) => {
1605
1640
  const localVarPath = `/listings`;
1606
1641
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1607
1642
  let baseOptions;
@@ -1611,6 +1646,9 @@ var ListingsApiAxiosParamCreator = function(configuration) {
1611
1646
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1612
1647
  const localVarHeaderParameter = {};
1613
1648
  const localVarQueryParameter = {};
1649
+ if (contactId !== void 0) {
1650
+ localVarQueryParameter["contactId"] = contactId;
1651
+ }
1614
1652
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1615
1653
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1616
1654
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1627,11 +1665,12 @@ var ListingsApiFp = function(configuration) {
1627
1665
  /**
1628
1666
  * List all listings
1629
1667
  * @summary Listings List
1668
+ * @param {string} [contactId]
1630
1669
  * @param {*} [options] Override http request option.
1631
1670
  * @throws {RequiredError}
1632
1671
  */
1633
- async listingsList(options) {
1634
- const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(options);
1672
+ async listingsList(contactId, options) {
1673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
1635
1674
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1636
1675
  const localVarOperationServerBasePath = operationServerMap["ListingsApi.listingsList"]?.[localVarOperationServerIndex]?.url;
1637
1676
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1644,11 +1683,12 @@ var ListingsApiFactory = function(configuration, basePath, axios) {
1644
1683
  /**
1645
1684
  * List all listings
1646
1685
  * @summary Listings List
1686
+ * @param {string} [contactId]
1647
1687
  * @param {*} [options] Override http request option.
1648
1688
  * @throws {RequiredError}
1649
1689
  */
1650
- listingsList(options) {
1651
- return localVarFp.listingsList(options).then((request) => request(axios, basePath));
1690
+ listingsList(contactId, options) {
1691
+ return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
1652
1692
  }
1653
1693
  };
1654
1694
  };
@@ -1656,12 +1696,13 @@ var ListingsApi = class extends BaseAPI {
1656
1696
  /**
1657
1697
  * List all listings
1658
1698
  * @summary Listings List
1699
+ * @param {string} [contactId]
1659
1700
  * @param {*} [options] Override http request option.
1660
1701
  * @throws {RequiredError}
1661
1702
  * @memberof ListingsApi
1662
1703
  */
1663
- listingsList(options) {
1664
- return ListingsApiFp(this.configuration).listingsList(options).then((request) => request(this.axios, this.basePath));
1704
+ listingsList(contactId, options) {
1705
+ return ListingsApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
1665
1706
  }
1666
1707
  };
1667
1708
  var PhonesApiAxiosParamCreator = function(configuration) {
@@ -2089,12 +2130,15 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2089
2130
  *
2090
2131
  * @summary Contacts List
2091
2132
  * @param {string} [searchString]
2092
- * @param {string | null} [after] Cursor for keyset paging
2133
+ * @param {string | null} [cursor] Cursor for keyset paging
2093
2134
  * @param {number} [limit]
2135
+ * @param {PaginationDirection} [pageDir] Direction of paging
2136
+ * @param {ContactSortBy} [sortBy] Sort key
2137
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2094
2138
  * @param {*} [options] Override http request option.
2095
2139
  * @throws {RequiredError}
2096
2140
  */
2097
- contactsList: async (searchString, after, limit, options = {}) => {
2141
+ contactsList: async (searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
2098
2142
  const localVarPath = `/contacts`;
2099
2143
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2100
2144
  let baseOptions;
@@ -2107,12 +2151,21 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2107
2151
  if (searchString !== void 0) {
2108
2152
  localVarQueryParameter["searchString"] = searchString;
2109
2153
  }
2110
- if (after !== void 0) {
2111
- localVarQueryParameter["after"] = after;
2154
+ if (cursor !== void 0) {
2155
+ localVarQueryParameter["cursor"] = cursor;
2112
2156
  }
2113
2157
  if (limit !== void 0) {
2114
2158
  localVarQueryParameter["limit"] = limit;
2115
2159
  }
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;
2168
+ }
2116
2169
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2117
2170
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2118
2171
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2302,10 +2355,11 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2302
2355
  /**
2303
2356
  * List all listings
2304
2357
  * @summary Listings List
2358
+ * @param {string} [contactId]
2305
2359
  * @param {*} [options] Override http request option.
2306
2360
  * @throws {RequiredError}
2307
2361
  */
2308
- listingsList: async (options = {}) => {
2362
+ listingsList: async (contactId, options = {}) => {
2309
2363
  const localVarPath = `/listings`;
2310
2364
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2311
2365
  let baseOptions;
@@ -2315,6 +2369,9 @@ var UnboundApiAxiosParamCreator = function(configuration) {
2315
2369
  const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2316
2370
  const localVarHeaderParameter = {};
2317
2371
  const localVarQueryParameter = {};
2372
+ if (contactId !== void 0) {
2373
+ localVarQueryParameter["contactId"] = contactId;
2374
+ }
2318
2375
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2319
2376
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2320
2377
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2540,13 +2597,16 @@ var UnboundApiFp = function(configuration) {
2540
2597
  *
2541
2598
  * @summary Contacts List
2542
2599
  * @param {string} [searchString]
2543
- * @param {string | null} [after] Cursor for keyset paging
2600
+ * @param {string | null} [cursor] Cursor for keyset paging
2544
2601
  * @param {number} [limit]
2602
+ * @param {PaginationDirection} [pageDir] Direction of paging
2603
+ * @param {ContactSortBy} [sortBy] Sort key
2604
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2545
2605
  * @param {*} [options] Override http request option.
2546
2606
  * @throws {RequiredError}
2547
2607
  */
2548
- async contactsList(searchString, after, limit, options) {
2549
- const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, after, limit, options);
2608
+ async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
2609
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
2550
2610
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2551
2611
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsList"]?.[localVarOperationServerIndex]?.url;
2552
2612
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2638,11 +2698,12 @@ var UnboundApiFp = function(configuration) {
2638
2698
  /**
2639
2699
  * List all listings
2640
2700
  * @summary Listings List
2701
+ * @param {string} [contactId]
2641
2702
  * @param {*} [options] Override http request option.
2642
2703
  * @throws {RequiredError}
2643
2704
  */
2644
- async listingsList(options) {
2645
- const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(options);
2705
+ async listingsList(contactId, options) {
2706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
2646
2707
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2647
2708
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.listingsList"]?.[localVarOperationServerIndex]?.url;
2648
2709
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2783,13 +2844,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
2783
2844
  *
2784
2845
  * @summary Contacts List
2785
2846
  * @param {string} [searchString]
2786
- * @param {string | null} [after] Cursor for keyset paging
2847
+ * @param {string | null} [cursor] Cursor for keyset paging
2787
2848
  * @param {number} [limit]
2849
+ * @param {PaginationDirection} [pageDir] Direction of paging
2850
+ * @param {ContactSortBy} [sortBy] Sort key
2851
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2788
2852
  * @param {*} [options] Override http request option.
2789
2853
  * @throws {RequiredError}
2790
2854
  */
2791
- contactsList(searchString, after, limit, options) {
2792
- return localVarFp.contactsList(searchString, after, limit, options).then((request) => request(axios, basePath));
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));
2793
2857
  },
2794
2858
  /**
2795
2859
  * Removes an association between a contact and a listing.
@@ -2860,11 +2924,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
2860
2924
  /**
2861
2925
  * List all listings
2862
2926
  * @summary Listings List
2927
+ * @param {string} [contactId]
2863
2928
  * @param {*} [options] Override http request option.
2864
2929
  * @throws {RequiredError}
2865
2930
  */
2866
- listingsList(options) {
2867
- return localVarFp.listingsList(options).then((request) => request(axios, basePath));
2931
+ listingsList(contactId, options) {
2932
+ return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
2868
2933
  },
2869
2934
  /**
2870
2935
  *
@@ -2995,14 +3060,17 @@ var UnboundApi = class extends BaseAPI {
2995
3060
  *
2996
3061
  * @summary Contacts List
2997
3062
  * @param {string} [searchString]
2998
- * @param {string | null} [after] Cursor for keyset paging
3063
+ * @param {string | null} [cursor] Cursor for keyset paging
2999
3064
  * @param {number} [limit]
3065
+ * @param {PaginationDirection} [pageDir] Direction of paging
3066
+ * @param {ContactSortBy} [sortBy] Sort key
3067
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3000
3068
  * @param {*} [options] Override http request option.
3001
3069
  * @throws {RequiredError}
3002
3070
  * @memberof UnboundApi
3003
3071
  */
3004
- contactsList(searchString, after, limit, options) {
3005
- return UnboundApiFp(this.configuration).contactsList(searchString, after, limit, options).then((request) => request(this.axios, this.basePath));
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));
3006
3074
  }
3007
3075
  /**
3008
3076
  * Removes an association between a contact and a listing.
@@ -3079,12 +3147,13 @@ var UnboundApi = class extends BaseAPI {
3079
3147
  /**
3080
3148
  * List all listings
3081
3149
  * @summary Listings List
3150
+ * @param {string} [contactId]
3082
3151
  * @param {*} [options] Override http request option.
3083
3152
  * @throws {RequiredError}
3084
3153
  * @memberof UnboundApi
3085
3154
  */
3086
- listingsList(options) {
3087
- return UnboundApiFp(this.configuration).listingsList(options).then((request) => request(this.axios, this.basePath));
3155
+ listingsList(contactId, options) {
3156
+ return UnboundApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
3088
3157
  }
3089
3158
  /**
3090
3159
  *
@@ -3228,6 +3297,7 @@ export {
3228
3297
  AddressesApiFp,
3229
3298
  Configuration,
3230
3299
  ContactListingType,
3300
+ ContactSortBy,
3231
3301
  ContactsApi,
3232
3302
  ContactsApiAxiosParamCreator,
3233
3303
  ContactsApiFactory,
@@ -3248,6 +3318,7 @@ export {
3248
3318
  ListingsApiAxiosParamCreator,
3249
3319
  ListingsApiFactory,
3250
3320
  ListingsApiFp,
3321
+ PaginationDirection,
3251
3322
  PhonesApi,
3252
3323
  PhonesApiAxiosParamCreator,
3253
3324
  PhonesApiFactory,
@@ -3256,6 +3327,7 @@ export {
3256
3327
  ReservationsApiAxiosParamCreator,
3257
3328
  ReservationsApiFactory,
3258
3329
  ReservationsApiFp,
3330
+ SortOrder,
3259
3331
  UnboundApi,
3260
3332
  UnboundApiAxiosParamCreator,
3261
3333
  UnboundApiFactory,