@ember-home/unbound-ts-client 0.0.13 → 0.0.15

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 CHANGED
@@ -474,12 +474,6 @@ interface ContactCreate {
474
474
  * @memberof ContactCreate
475
475
  */
476
476
  'primaryPhone'?: string | null;
477
- /**
478
- *
479
- * @type {ContactTypeDataCreate}
480
- * @memberof ContactCreate
481
- */
482
- 'contactTypeData'?: ContactTypeDataCreate | null;
483
477
  }
484
478
  /**
485
479
  *
@@ -506,56 +500,6 @@ interface ContactTypeData {
506
500
  */
507
501
  'lead'?: LeadData | null;
508
502
  }
509
- /**
510
- *
511
- * @export
512
- * @interface ContactTypeDataCreate
513
- */
514
- interface ContactTypeDataCreate {
515
- /**
516
- *
517
- * @type {GuestDataCreate}
518
- * @memberof ContactTypeDataCreate
519
- */
520
- 'guest'?: GuestDataCreate | null;
521
- /**
522
- *
523
- * @type {object}
524
- * @memberof ContactTypeDataCreate
525
- */
526
- 'owner'?: object;
527
- /**
528
- *
529
- * @type {object}
530
- * @memberof ContactTypeDataCreate
531
- */
532
- 'lead'?: object;
533
- }
534
- /**
535
- *
536
- * @export
537
- * @interface ContactTypeDataUpdate
538
- */
539
- interface ContactTypeDataUpdate {
540
- /**
541
- *
542
- * @type {GuestDataUpdate}
543
- * @memberof ContactTypeDataUpdate
544
- */
545
- 'guest'?: GuestDataUpdate | null;
546
- /**
547
- *
548
- * @type {object}
549
- * @memberof ContactTypeDataUpdate
550
- */
551
- 'owner'?: object;
552
- /**
553
- *
554
- * @type {object}
555
- * @memberof ContactTypeDataUpdate
556
- */
557
- 'lead'?: object;
558
- }
559
503
  /**
560
504
  *
561
505
  * @export
@@ -610,12 +554,6 @@ interface ContactUpdate {
610
554
  * @memberof ContactUpdate
611
555
  */
612
556
  'profilePicUrl'?: string | null;
613
- /**
614
- *
615
- * @type {ContactTypeDataUpdate}
616
- * @memberof ContactUpdate
617
- */
618
- 'contactTypeData'?: ContactTypeDataUpdate | null;
619
557
  }
620
558
  /**
621
559
  *
@@ -1429,22 +1367,22 @@ interface EmailsCreateResponse {
1429
1367
  interface GuestData {
1430
1368
  /**
1431
1369
  *
1432
- * @type {number}
1370
+ * @type {string}
1433
1371
  * @memberof GuestData
1434
1372
  */
1435
- 'averageRating'?: number;
1373
+ 'firstBookedAt': string;
1436
1374
  /**
1437
1375
  *
1438
1376
  * @type {string}
1439
1377
  * @memberof GuestData
1440
1378
  */
1441
- 'createdAt': string;
1379
+ 'firstStayAt': string;
1442
1380
  /**
1443
1381
  *
1444
1382
  * @type {number}
1445
1383
  * @memberof GuestData
1446
1384
  */
1447
- 'numStays'?: number;
1385
+ 'totalNightsStayed'?: number;
1448
1386
  /**
1449
1387
  *
1450
1388
  * @type {number}
@@ -1453,126 +1391,10 @@ interface GuestData {
1453
1391
  'totalAmountSpent'?: number;
1454
1392
  /**
1455
1393
  *
1456
- * @type {string}
1457
- * @memberof GuestData
1458
- */
1459
- 'smsMarketingConsentAt'?: string | null;
1460
- /**
1461
- *
1462
- * @type {string}
1463
- * @memberof GuestData
1464
- */
1465
- 'smsMarketingConsentType'?: string | null;
1466
- /**
1467
- *
1468
- * @type {boolean}
1469
- * @memberof GuestData
1470
- */
1471
- 'smsMarketingIsSubscribed'?: boolean;
1472
- /**
1473
- *
1474
- * @type {string}
1475
- * @memberof GuestData
1476
- */
1477
- 'smsTransactionalConsentAt'?: string | null;
1478
- /**
1479
- *
1480
- * @type {string}
1481
- * @memberof GuestData
1482
- */
1483
- 'smsTransactionalConsentType'?: string | null;
1484
- /**
1485
- *
1486
- * @type {boolean}
1394
+ * @type {Array<string>}
1487
1395
  * @memberof GuestData
1488
1396
  */
1489
- 'smsTransactionalIsSubscribed'?: boolean;
1490
- }
1491
- /**
1492
- *
1493
- * @export
1494
- * @interface GuestDataCreate
1495
- */
1496
- interface GuestDataCreate {
1497
- /**
1498
- *
1499
- * @type {string}
1500
- * @memberof GuestDataCreate
1501
- */
1502
- 'smsMarketingConsentAt'?: string | null;
1503
- /**
1504
- *
1505
- * @type {string}
1506
- * @memberof GuestDataCreate
1507
- */
1508
- 'smsMarketingConsentType'?: string | null;
1509
- /**
1510
- *
1511
- * @type {boolean}
1512
- * @memberof GuestDataCreate
1513
- */
1514
- 'smsMarketingIsSubscribed'?: boolean | null;
1515
- /**
1516
- *
1517
- * @type {string}
1518
- * @memberof GuestDataCreate
1519
- */
1520
- 'smsTransactionalConsentAt'?: string | null;
1521
- /**
1522
- *
1523
- * @type {string}
1524
- * @memberof GuestDataCreate
1525
- */
1526
- 'smsTransactionalConsentType'?: string | null;
1527
- /**
1528
- *
1529
- * @type {boolean}
1530
- * @memberof GuestDataCreate
1531
- */
1532
- 'smsTransactionalIsSubscribed'?: boolean | null;
1533
- }
1534
- /**
1535
- *
1536
- * @export
1537
- * @interface GuestDataUpdate
1538
- */
1539
- interface GuestDataUpdate {
1540
- /**
1541
- *
1542
- * @type {string}
1543
- * @memberof GuestDataUpdate
1544
- */
1545
- 'smsMarketingConsentAt'?: string | null;
1546
- /**
1547
- *
1548
- * @type {string}
1549
- * @memberof GuestDataUpdate
1550
- */
1551
- 'smsMarketingConsentType'?: string | null;
1552
- /**
1553
- *
1554
- * @type {boolean}
1555
- * @memberof GuestDataUpdate
1556
- */
1557
- 'smsMarketingIsSubscribed'?: boolean | null;
1558
- /**
1559
- *
1560
- * @type {string}
1561
- * @memberof GuestDataUpdate
1562
- */
1563
- 'smsTransactionalConsentAt'?: string | null;
1564
- /**
1565
- *
1566
- * @type {string}
1567
- * @memberof GuestDataUpdate
1568
- */
1569
- 'smsTransactionalConsentType'?: string | null;
1570
- /**
1571
- *
1572
- * @type {boolean}
1573
- * @memberof GuestDataUpdate
1574
- */
1575
- 'smsTransactionalIsSubscribed'?: boolean | null;
1397
+ 'listingIds'?: Array<string>;
1576
1398
  }
1577
1399
  /**
1578
1400
  *
@@ -1632,6 +1454,12 @@ interface LeadData {
1632
1454
  * @memberof LeadData
1633
1455
  */
1634
1456
  'createdAt': string;
1457
+ /**
1458
+ *
1459
+ * @type {Array<string>}
1460
+ * @memberof LeadData
1461
+ */
1462
+ 'listingIds'?: Array<string>;
1635
1463
  }
1636
1464
  /**
1637
1465
  *
@@ -1646,6 +1474,19 @@ interface ListResponseContactsListResponse {
1646
1474
  */
1647
1475
  'data': Array<ContactsListResponse>;
1648
1476
  }
1477
+ /**
1478
+ *
1479
+ * @export
1480
+ * @interface ListResponseListingsListResponse
1481
+ */
1482
+ interface ListResponseListingsListResponse {
1483
+ /**
1484
+ *
1485
+ * @type {Array<ListingsListResponse>}
1486
+ * @memberof ListResponseListingsListResponse
1487
+ */
1488
+ 'data': Array<ListingsListResponse>;
1489
+ }
1649
1490
  /**
1650
1491
  *
1651
1492
  * @export
@@ -1659,6 +1500,43 @@ interface ListResponseReservationsListResponse {
1659
1500
  */
1660
1501
  'data': Array<ReservationsListResponse>;
1661
1502
  }
1503
+ /**
1504
+ *
1505
+ * @export
1506
+ * @interface ListingsListResponse
1507
+ */
1508
+ interface ListingsListResponse {
1509
+ /**
1510
+ *
1511
+ * @type {string}
1512
+ * @memberof ListingsListResponse
1513
+ */
1514
+ 'listingId'?: string | null;
1515
+ /**
1516
+ *
1517
+ * @type {string}
1518
+ * @memberof ListingsListResponse
1519
+ */
1520
+ 'datasource': string;
1521
+ /**
1522
+ *
1523
+ * @type {string}
1524
+ * @memberof ListingsListResponse
1525
+ */
1526
+ 'providerListingId': string;
1527
+ /**
1528
+ *
1529
+ * @type {string}
1530
+ * @memberof ListingsListResponse
1531
+ */
1532
+ 'title': string;
1533
+ /**
1534
+ *
1535
+ * @type {string}
1536
+ * @memberof ListingsListResponse
1537
+ */
1538
+ 'description'?: string | null;
1539
+ }
1662
1540
  /**
1663
1541
  *
1664
1542
  * @export
@@ -1670,7 +1548,25 @@ interface OwnerData {
1670
1548
  * @type {string}
1671
1549
  * @memberof OwnerData
1672
1550
  */
1673
- 'createdAt': string;
1551
+ 'firstBookedAt'?: string;
1552
+ /**
1553
+ *
1554
+ * @type {string}
1555
+ * @memberof OwnerData
1556
+ */
1557
+ 'firstStayAt'?: string;
1558
+ /**
1559
+ *
1560
+ * @type {number}
1561
+ * @memberof OwnerData
1562
+ */
1563
+ 'totalNightsStayed'?: number;
1564
+ /**
1565
+ *
1566
+ * @type {Array<string>}
1567
+ * @memberof OwnerData
1568
+ */
1569
+ 'listingIds'?: Array<string>;
1674
1570
  }
1675
1571
  /**
1676
1572
  *
@@ -2548,6 +2444,65 @@ declare class HostawayApi extends BaseAPI {
2548
2444
  */
2549
2445
  webhook(hostawayWebhook: HostawayWebhook, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
2550
2446
  }
2447
+ /**
2448
+ * ListingsApi - axios parameter creator
2449
+ * @export
2450
+ */
2451
+ declare const ListingsApiAxiosParamCreator: (configuration?: Configuration) => {
2452
+ /**
2453
+ * List all listings
2454
+ * @summary Listings List
2455
+ * @param {string} [contactId]
2456
+ * @param {*} [options] Override http request option.
2457
+ * @throws {RequiredError}
2458
+ */
2459
+ listingsList: (contactId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2460
+ };
2461
+ /**
2462
+ * ListingsApi - functional programming interface
2463
+ * @export
2464
+ */
2465
+ declare const ListingsApiFp: (configuration?: Configuration) => {
2466
+ /**
2467
+ * List all listings
2468
+ * @summary Listings List
2469
+ * @param {string} [contactId]
2470
+ * @param {*} [options] Override http request option.
2471
+ * @throws {RequiredError}
2472
+ */
2473
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseListingsListResponse>>;
2474
+ };
2475
+ /**
2476
+ * ListingsApi - factory interface
2477
+ * @export
2478
+ */
2479
+ declare const ListingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2480
+ /**
2481
+ * List all listings
2482
+ * @summary Listings List
2483
+ * @param {string} [contactId]
2484
+ * @param {*} [options] Override http request option.
2485
+ * @throws {RequiredError}
2486
+ */
2487
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseListingsListResponse>;
2488
+ };
2489
+ /**
2490
+ * ListingsApi - object-oriented interface
2491
+ * @export
2492
+ * @class ListingsApi
2493
+ * @extends {BaseAPI}
2494
+ */
2495
+ declare class ListingsApi extends BaseAPI {
2496
+ /**
2497
+ * List all listings
2498
+ * @summary Listings List
2499
+ * @param {string} [contactId]
2500
+ * @param {*} [options] Override http request option.
2501
+ * @throws {RequiredError}
2502
+ * @memberof ListingsApi
2503
+ */
2504
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListResponseListingsListResponse, any>>;
2505
+ }
2551
2506
  /**
2552
2507
  * PhonesApi - axios parameter creator
2553
2508
  * @export
@@ -2793,6 +2748,14 @@ declare const UnboundApiAxiosParamCreator: (configuration?: Configuration) => {
2793
2748
  * @throws {RequiredError}
2794
2749
  */
2795
2750
  emailsDelete: (emailId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2751
+ /**
2752
+ * List all listings
2753
+ * @summary Listings List
2754
+ * @param {string} [contactId]
2755
+ * @param {*} [options] Override http request option.
2756
+ * @throws {RequiredError}
2757
+ */
2758
+ listingsList: (contactId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2796
2759
  /**
2797
2760
  *
2798
2761
  * @summary Phones Create
@@ -2917,6 +2880,14 @@ declare const UnboundApiFp: (configuration?: Configuration) => {
2917
2880
  * @throws {RequiredError}
2918
2881
  */
2919
2882
  emailsDelete(emailId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2883
+ /**
2884
+ * List all listings
2885
+ * @summary Listings List
2886
+ * @param {string} [contactId]
2887
+ * @param {*} [options] Override http request option.
2888
+ * @throws {RequiredError}
2889
+ */
2890
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseListingsListResponse>>;
2920
2891
  /**
2921
2892
  *
2922
2893
  * @summary Phones Create
@@ -3041,6 +3012,14 @@ declare const UnboundApiFactory: (configuration?: Configuration, basePath?: stri
3041
3012
  * @throws {RequiredError}
3042
3013
  */
3043
3014
  emailsDelete(emailId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
3015
+ /**
3016
+ * List all listings
3017
+ * @summary Listings List
3018
+ * @param {string} [contactId]
3019
+ * @param {*} [options] Override http request option.
3020
+ * @throws {RequiredError}
3021
+ */
3022
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseListingsListResponse>;
3044
3023
  /**
3045
3024
  *
3046
3025
  * @summary Phones Create
@@ -3177,6 +3156,15 @@ declare class UnboundApi extends BaseAPI {
3177
3156
  * @memberof UnboundApi
3178
3157
  */
3179
3158
  emailsDelete(emailId: string, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<void, any>>;
3159
+ /**
3160
+ * List all listings
3161
+ * @summary Listings List
3162
+ * @param {string} [contactId]
3163
+ * @param {*} [options] Override http request option.
3164
+ * @throws {RequiredError}
3165
+ * @memberof UnboundApi
3166
+ */
3167
+ listingsList(contactId?: string, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ListResponseListingsListResponse, any>>;
3180
3168
  /**
3181
3169
  *
3182
3170
  * @summary Phones Create
@@ -3216,4 +3204,4 @@ declare class UnboundApi extends BaseAPI {
3216
3204
  webhook(hostawayWebhook: HostawayWebhook, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
3217
3205
  }
3218
3206
 
3219
- export { type APIValidationError, type APIValidationErrorLocInner, type Address, type AddressCreate, type AddressItem, type AddressUpdate, AddressesApi, AddressesApiAxiosParamCreator, AddressesApiFactory, AddressesApiFp, type AddressesCreateResponse, type AddressesUpdateResponse, Configuration, type ConfigurationParameters, type ContactCreate, type ContactTypeData, type ContactTypeDataCreate, type ContactTypeDataUpdate, ContactTypeFilter, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, DataSource, type Email, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreateResponse, type GuestData, type GuestDataCreate, type GuestDataUpdate, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, type LeadData, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type OwnerData, type Phone, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreateResponse, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
3207
+ export { type APIValidationError, type APIValidationErrorLocInner, type Address, type AddressCreate, type AddressItem, type AddressUpdate, AddressesApi, AddressesApiAxiosParamCreator, AddressesApiFactory, AddressesApiFp, type AddressesCreateResponse, type AddressesUpdateResponse, Configuration, type ConfigurationParameters, type ContactCreate, type ContactTypeData, ContactTypeFilter, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, DataSource, type Email, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreateResponse, type GuestData, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, type LeadData, type ListResponseContactsListResponse, type ListResponseListingsListResponse, type ListResponseReservationsListResponse, ListingsApi, ListingsApiAxiosParamCreator, ListingsApiFactory, ListingsApiFp, type ListingsListResponse, type OwnerData, type Phone, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreateResponse, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };