@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.d.ts CHANGED
@@ -490,6 +490,17 @@ declare const ContactListingType: {
490
490
  readonly Owner: "OWNER";
491
491
  };
492
492
  type ContactListingType = typeof ContactListingType[keyof typeof ContactListingType];
493
+ /**
494
+ *
495
+ * @export
496
+ * @enum {string}
497
+ */
498
+ declare const ContactSortBy: {
499
+ readonly LastFirstCompany: "last_first_company";
500
+ readonly FirstLastCompany: "first_last_company";
501
+ readonly CompanyLastFirst: "company_last_first";
502
+ };
503
+ type ContactSortBy = typeof ContactSortBy[keyof typeof ContactSortBy];
493
504
  /**
494
505
  *
495
506
  * @export
@@ -629,7 +640,7 @@ interface Contacts {
629
640
  * @type {string}
630
641
  * @memberof Contacts
631
642
  */
632
- 'local'?: string;
643
+ 'locale'?: string;
633
644
  /**
634
645
  *
635
646
  * @type {string}
@@ -804,7 +815,7 @@ interface ContactsCreate {
804
815
  * @type {string}
805
816
  * @memberof ContactsCreate
806
817
  */
807
- 'local'?: string;
818
+ 'locale'?: string;
808
819
  /**
809
820
  *
810
821
  * @type {string}
@@ -979,7 +990,7 @@ interface ContactsGet {
979
990
  * @type {string}
980
991
  * @memberof ContactsGet
981
992
  */
982
- 'local'?: string;
993
+ 'locale'?: string;
983
994
  /**
984
995
  *
985
996
  * @type {string}
@@ -1154,7 +1165,7 @@ interface ContactsUpdate {
1154
1165
  * @type {string}
1155
1166
  * @memberof ContactsUpdate
1156
1167
  */
1157
- 'local'?: string;
1168
+ 'locale'?: string;
1158
1169
  /**
1159
1170
  *
1160
1171
  * @type {string}
@@ -1647,6 +1658,16 @@ interface PaginatedResponseContacts {
1647
1658
  */
1648
1659
  'total'?: number;
1649
1660
  }
1661
+ /**
1662
+ *
1663
+ * @export
1664
+ * @enum {string}
1665
+ */
1666
+ declare const PaginationDirection: {
1667
+ readonly Forward: "forward";
1668
+ readonly Backward: "backward";
1669
+ };
1670
+ type PaginationDirection = typeof PaginationDirection[keyof typeof PaginationDirection];
1650
1671
  /**
1651
1672
  *
1652
1673
  * @export
@@ -1789,6 +1810,16 @@ interface ReservationsList {
1789
1810
  */
1790
1811
  'totalPrice': number;
1791
1812
  }
1813
+ /**
1814
+ *
1815
+ * @export
1816
+ * @enum {string}
1817
+ */
1818
+ declare const SortOrder: {
1819
+ readonly Asc: "asc";
1820
+ readonly Desc: "desc";
1821
+ };
1822
+ type SortOrder = typeof SortOrder[keyof typeof SortOrder];
1792
1823
  /**
1793
1824
  *
1794
1825
  * @export
@@ -2016,12 +2047,15 @@ declare const ContactsApiAxiosParamCreator: (configuration?: Configuration) => {
2016
2047
  *
2017
2048
  * @summary Contacts List
2018
2049
  * @param {string} [searchString]
2019
- * @param {string | null} [after] Cursor for keyset paging
2050
+ * @param {string | null} [cursor] Cursor for keyset paging
2020
2051
  * @param {number} [limit]
2052
+ * @param {PaginationDirection} [pageDir] Direction of paging
2053
+ * @param {ContactSortBy} [sortBy] Sort key
2054
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2021
2055
  * @param {*} [options] Override http request option.
2022
2056
  * @throws {RequiredError}
2023
2057
  */
2024
- contactsList: (searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2058
+ contactsList: (searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2025
2059
  /**
2026
2060
  * Removes an association between a contact and a listing.
2027
2061
  * @summary Delete Contact Listing
@@ -2155,12 +2189,15 @@ declare const ContactsApiFp: (configuration?: Configuration) => {
2155
2189
  *
2156
2190
  * @summary Contacts List
2157
2191
  * @param {string} [searchString]
2158
- * @param {string | null} [after] Cursor for keyset paging
2192
+ * @param {string | null} [cursor] Cursor for keyset paging
2159
2193
  * @param {number} [limit]
2194
+ * @param {PaginationDirection} [pageDir] Direction of paging
2195
+ * @param {ContactSortBy} [sortBy] Sort key
2196
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2160
2197
  * @param {*} [options] Override http request option.
2161
2198
  * @throws {RequiredError}
2162
2199
  */
2163
- contactsList(searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResponseContacts>>;
2200
+ contactsList(searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResponseContacts>>;
2164
2201
  /**
2165
2202
  * Removes an association between a contact and a listing.
2166
2203
  * @summary Delete Contact Listing
@@ -2294,12 +2331,15 @@ declare const ContactsApiFactory: (configuration?: Configuration, basePath?: str
2294
2331
  *
2295
2332
  * @summary Contacts List
2296
2333
  * @param {string} [searchString]
2297
- * @param {string | null} [after] Cursor for keyset paging
2334
+ * @param {string | null} [cursor] Cursor for keyset paging
2298
2335
  * @param {number} [limit]
2336
+ * @param {PaginationDirection} [pageDir] Direction of paging
2337
+ * @param {ContactSortBy} [sortBy] Sort key
2338
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2299
2339
  * @param {*} [options] Override http request option.
2300
2340
  * @throws {RequiredError}
2301
2341
  */
2302
- contactsList(searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedResponseContacts>;
2342
+ contactsList(searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedResponseContacts>;
2303
2343
  /**
2304
2344
  * Removes an association between a contact and a listing.
2305
2345
  * @summary Delete Contact Listing
@@ -2442,13 +2482,16 @@ declare class ContactsApi extends BaseAPI {
2442
2482
  *
2443
2483
  * @summary Contacts List
2444
2484
  * @param {string} [searchString]
2445
- * @param {string | null} [after] Cursor for keyset paging
2485
+ * @param {string | null} [cursor] Cursor for keyset paging
2446
2486
  * @param {number} [limit]
2487
+ * @param {PaginationDirection} [pageDir] Direction of paging
2488
+ * @param {ContactSortBy} [sortBy] Sort key
2489
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
2447
2490
  * @param {*} [options] Override http request option.
2448
2491
  * @throws {RequiredError}
2449
2492
  * @memberof ContactsApi
2450
2493
  */
2451
- contactsList(searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<PaginatedResponseContacts, any>>;
2494
+ contactsList(searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<PaginatedResponseContacts, any>>;
2452
2495
  /**
2453
2496
  * Removes an association between a contact and a listing.
2454
2497
  * @summary Delete Contact Listing
@@ -2742,10 +2785,11 @@ declare const ListingsApiAxiosParamCreator: (configuration?: Configuration) => {
2742
2785
  /**
2743
2786
  * List all listings
2744
2787
  * @summary Listings List
2788
+ * @param {string} [contactId]
2745
2789
  * @param {*} [options] Override http request option.
2746
2790
  * @throws {RequiredError}
2747
2791
  */
2748
- listingsList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2792
+ listingsList: (contactId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2749
2793
  };
2750
2794
  /**
2751
2795
  * ListingsApi - functional programming interface
@@ -2755,10 +2799,11 @@ declare const ListingsApiFp: (configuration?: Configuration) => {
2755
2799
  /**
2756
2800
  * List all listings
2757
2801
  * @summary Listings List
2802
+ * @param {string} [contactId]
2758
2803
  * @param {*} [options] Override http request option.
2759
2804
  * @throws {RequiredError}
2760
2805
  */
2761
- listingsList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseListingsList>>;
2806
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseListingsList>>;
2762
2807
  };
2763
2808
  /**
2764
2809
  * ListingsApi - factory interface
@@ -2768,10 +2813,11 @@ declare const ListingsApiFactory: (configuration?: Configuration, basePath?: str
2768
2813
  /**
2769
2814
  * List all listings
2770
2815
  * @summary Listings List
2816
+ * @param {string} [contactId]
2771
2817
  * @param {*} [options] Override http request option.
2772
2818
  * @throws {RequiredError}
2773
2819
  */
2774
- listingsList(options?: RawAxiosRequestConfig): AxiosPromise<ListResponseListingsList>;
2820
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseListingsList>;
2775
2821
  };
2776
2822
  /**
2777
2823
  * ListingsApi - object-oriented interface
@@ -2783,11 +2829,12 @@ declare class ListingsApi extends BaseAPI {
2783
2829
  /**
2784
2830
  * List all listings
2785
2831
  * @summary Listings List
2832
+ * @param {string} [contactId]
2786
2833
  * @param {*} [options] Override http request option.
2787
2834
  * @throws {RequiredError}
2788
2835
  * @memberof ListingsApi
2789
2836
  */
2790
- listingsList(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListResponseListingsList, any>>;
2837
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListResponseListingsList, any>>;
2791
2838
  }
2792
2839
  /**
2793
2840
  * PhonesApi - axios parameter creator
@@ -3013,12 +3060,15 @@ declare const UnboundApiAxiosParamCreator: (configuration?: Configuration) => {
3013
3060
  *
3014
3061
  * @summary Contacts List
3015
3062
  * @param {string} [searchString]
3016
- * @param {string | null} [after] Cursor for keyset paging
3063
+ * @param {string | null} [cursor] Cursor for keyset paging
3017
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
3018
3068
  * @param {*} [options] Override http request option.
3019
3069
  * @throws {RequiredError}
3020
3070
  */
3021
- contactsList: (searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3071
+ contactsList: (searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3022
3072
  /**
3023
3073
  * Removes an association between a contact and a listing.
3024
3074
  * @summary Delete Contact Listing
@@ -3076,10 +3126,11 @@ declare const UnboundApiAxiosParamCreator: (configuration?: Configuration) => {
3076
3126
  /**
3077
3127
  * List all listings
3078
3128
  * @summary Listings List
3129
+ * @param {string} [contactId]
3079
3130
  * @param {*} [options] Override http request option.
3080
3131
  * @throws {RequiredError}
3081
3132
  */
3082
- listingsList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3133
+ listingsList: (contactId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3083
3134
  /**
3084
3135
  *
3085
3136
  * @summary Phones Create
@@ -3183,12 +3234,15 @@ declare const UnboundApiFp: (configuration?: Configuration) => {
3183
3234
  *
3184
3235
  * @summary Contacts List
3185
3236
  * @param {string} [searchString]
3186
- * @param {string | null} [after] Cursor for keyset paging
3237
+ * @param {string | null} [cursor] Cursor for keyset paging
3187
3238
  * @param {number} [limit]
3239
+ * @param {PaginationDirection} [pageDir] Direction of paging
3240
+ * @param {ContactSortBy} [sortBy] Sort key
3241
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3188
3242
  * @param {*} [options] Override http request option.
3189
3243
  * @throws {RequiredError}
3190
3244
  */
3191
- contactsList(searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResponseContacts>>;
3245
+ contactsList(searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResponseContacts>>;
3192
3246
  /**
3193
3247
  * Removes an association between a contact and a listing.
3194
3248
  * @summary Delete Contact Listing
@@ -3246,10 +3300,11 @@ declare const UnboundApiFp: (configuration?: Configuration) => {
3246
3300
  /**
3247
3301
  * List all listings
3248
3302
  * @summary Listings List
3303
+ * @param {string} [contactId]
3249
3304
  * @param {*} [options] Override http request option.
3250
3305
  * @throws {RequiredError}
3251
3306
  */
3252
- listingsList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseListingsList>>;
3307
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseListingsList>>;
3253
3308
  /**
3254
3309
  *
3255
3310
  * @summary Phones Create
@@ -3353,12 +3408,15 @@ declare const UnboundApiFactory: (configuration?: Configuration, basePath?: stri
3353
3408
  *
3354
3409
  * @summary Contacts List
3355
3410
  * @param {string} [searchString]
3356
- * @param {string | null} [after] Cursor for keyset paging
3411
+ * @param {string | null} [cursor] Cursor for keyset paging
3357
3412
  * @param {number} [limit]
3413
+ * @param {PaginationDirection} [pageDir] Direction of paging
3414
+ * @param {ContactSortBy} [sortBy] Sort key
3415
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3358
3416
  * @param {*} [options] Override http request option.
3359
3417
  * @throws {RequiredError}
3360
3418
  */
3361
- contactsList(searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedResponseContacts>;
3419
+ contactsList(searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedResponseContacts>;
3362
3420
  /**
3363
3421
  * Removes an association between a contact and a listing.
3364
3422
  * @summary Delete Contact Listing
@@ -3416,10 +3474,11 @@ declare const UnboundApiFactory: (configuration?: Configuration, basePath?: stri
3416
3474
  /**
3417
3475
  * List all listings
3418
3476
  * @summary Listings List
3477
+ * @param {string} [contactId]
3419
3478
  * @param {*} [options] Override http request option.
3420
3479
  * @throws {RequiredError}
3421
3480
  */
3422
- listingsList(options?: RawAxiosRequestConfig): AxiosPromise<ListResponseListingsList>;
3481
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseListingsList>;
3423
3482
  /**
3424
3483
  *
3425
3484
  * @summary Phones Create
@@ -3532,13 +3591,16 @@ declare class UnboundApi extends BaseAPI {
3532
3591
  *
3533
3592
  * @summary Contacts List
3534
3593
  * @param {string} [searchString]
3535
- * @param {string | null} [after] Cursor for keyset paging
3594
+ * @param {string | null} [cursor] Cursor for keyset paging
3536
3595
  * @param {number} [limit]
3596
+ * @param {PaginationDirection} [pageDir] Direction of paging
3597
+ * @param {ContactSortBy} [sortBy] Sort key
3598
+ * @param {SortOrder} [sortOrder] Sort order asc/desc
3537
3599
  * @param {*} [options] Override http request option.
3538
3600
  * @throws {RequiredError}
3539
3601
  * @memberof UnboundApi
3540
3602
  */
3541
- contactsList(searchString?: string, after?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<PaginatedResponseContacts, any>>;
3603
+ contactsList(searchString?: string, cursor?: string | null, limit?: number, pageDir?: PaginationDirection, sortBy?: ContactSortBy, sortOrder?: SortOrder, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<PaginatedResponseContacts, any>>;
3542
3604
  /**
3543
3605
  * Removes an association between a contact and a listing.
3544
3606
  * @summary Delete Contact Listing
@@ -3602,11 +3664,12 @@ declare class UnboundApi extends BaseAPI {
3602
3664
  /**
3603
3665
  * List all listings
3604
3666
  * @summary Listings List
3667
+ * @param {string} [contactId]
3605
3668
  * @param {*} [options] Override http request option.
3606
3669
  * @throws {RequiredError}
3607
3670
  * @memberof UnboundApi
3608
3671
  */
3609
- listingsList(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListResponseListingsList, any>>;
3672
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListResponseListingsList, any>>;
3610
3673
  /**
3611
3674
  *
3612
3675
  * @summary Phones Create
@@ -3646,4 +3709,4 @@ declare class UnboundApi extends BaseAPI {
3646
3709
  webhook(hostawayWebhook: HostawayWebhook, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
3647
3710
  }
3648
3711
 
3649
- export { type APIValidationError, type APIValidationErrorLocInner, type AddressApi, type AddressCreate, type AddressItemApi, type AddressUpdate, AddressesApi, AddressesApiAxiosParamCreator, AddressesApiFactory, AddressesApiFp, type AddressesCreate, type AddressesUpdate, Configuration, type ConfigurationParameters, type ContactCreate, ContactListingType, type ContactTypeDataApi, type ContactUpdate, type Contacts, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreate, type ContactsGet, type ContactsUpdate, type CreateContactListing, type DeleteContactListing, type EmailApi, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreate, type GuestDataApi, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, InquiriesApi, InquiriesApiAxiosParamCreator, InquiriesApiFactory, InquiriesApiFp, type LeadDataApi, type ListResponseInquiriesList, type ListResponseListingsList, type ListResponseReservationsList, ListingsApi, ListingsApiAxiosParamCreator, ListingsApiFactory, ListingsApiFp, type ListingsList, type OwnerDataApi, type PaginatedResponseContacts, type PhoneApi, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreate, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsList, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp, type UpdateContactListing };
3712
+ export { type APIValidationError, type APIValidationErrorLocInner, type AddressApi, type AddressCreate, type AddressItemApi, type AddressUpdate, AddressesApi, AddressesApiAxiosParamCreator, AddressesApiFactory, AddressesApiFp, type AddressesCreate, type AddressesUpdate, Configuration, type ConfigurationParameters, type ContactCreate, ContactListingType, ContactSortBy, type ContactTypeDataApi, type ContactUpdate, type Contacts, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreate, type ContactsGet, type ContactsUpdate, type CreateContactListing, type DeleteContactListing, type EmailApi, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreate, type GuestDataApi, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, InquiriesApi, InquiriesApiAxiosParamCreator, InquiriesApiFactory, InquiriesApiFp, type LeadDataApi, type ListResponseInquiriesList, type ListResponseListingsList, type ListResponseReservationsList, ListingsApi, ListingsApiAxiosParamCreator, ListingsApiFactory, ListingsApiFp, type ListingsList, type OwnerDataApi, type PaginatedResponseContacts, PaginationDirection, type PhoneApi, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreate, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsList, SortOrder, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp, type UpdateContactListing };