@ember-home/unbound-ts-client 0.0.9 → 0.0.10

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
@@ -438,6 +438,57 @@ interface AddressesUpdateResponse {
438
438
  */
439
439
  'region': string | null;
440
440
  }
441
+ /**
442
+ *
443
+ * @export
444
+ * @interface BasicData
445
+ */
446
+ interface BasicData {
447
+ /**
448
+ *
449
+ * @type {string}
450
+ * @memberof BasicData
451
+ */
452
+ 'contactType': BasicDataContactTypeEnum;
453
+ }
454
+ declare const BasicDataContactTypeEnum: {
455
+ readonly Basic: "BASIC";
456
+ };
457
+ type BasicDataContactTypeEnum = typeof BasicDataContactTypeEnum[keyof typeof BasicDataContactTypeEnum];
458
+ /**
459
+ *
460
+ * @export
461
+ * @interface BasicDataCreate
462
+ */
463
+ interface BasicDataCreate {
464
+ /**
465
+ *
466
+ * @type {string}
467
+ * @memberof BasicDataCreate
468
+ */
469
+ 'contactType': BasicDataCreateContactTypeEnum;
470
+ }
471
+ declare const BasicDataCreateContactTypeEnum: {
472
+ readonly Basic: "BASIC";
473
+ };
474
+ type BasicDataCreateContactTypeEnum = typeof BasicDataCreateContactTypeEnum[keyof typeof BasicDataCreateContactTypeEnum];
475
+ /**
476
+ *
477
+ * @export
478
+ * @interface BasicDataUpdate
479
+ */
480
+ interface BasicDataUpdate {
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof BasicDataUpdate
485
+ */
486
+ 'contactType': BasicDataUpdateContactTypeEnum;
487
+ }
488
+ declare const BasicDataUpdateContactTypeEnum: {
489
+ readonly Basic: "BASIC";
490
+ };
491
+ type BasicDataUpdateContactTypeEnum = typeof BasicDataUpdateContactTypeEnum[keyof typeof BasicDataUpdateContactTypeEnum];
441
492
  /**
442
493
  *
443
494
  * @export
@@ -607,7 +658,7 @@ interface ContactsCreateResponse {
607
658
  * @type {Contacttypedata2}
608
659
  * @memberof ContactsCreateResponse
609
660
  */
610
- 'contactTypeData': Contacttypedata2 | null;
661
+ 'contactTypeData': Contacttypedata2;
611
662
  /**
612
663
  *
613
664
  * @type {string}
@@ -728,7 +779,7 @@ interface ContactsGetResponse {
728
779
  * @type {Contacttypedata2}
729
780
  * @memberof ContactsGetResponse
730
781
  */
731
- 'contactTypeData': Contacttypedata2 | null;
782
+ 'contactTypeData': Contacttypedata2;
732
783
  /**
733
784
  *
734
785
  * @type {string}
@@ -849,7 +900,7 @@ interface ContactsListResponse {
849
900
  * @type {Contacttypedata2}
850
901
  * @memberof ContactsListResponse
851
902
  */
852
- 'contactTypeData': Contacttypedata2 | null;
903
+ 'contactTypeData': Contacttypedata2;
853
904
  /**
854
905
  *
855
906
  * @type {string}
@@ -970,7 +1021,7 @@ interface ContactsUpdateResponse {
970
1021
  * @type {Contacttypedata2}
971
1022
  * @memberof ContactsUpdateResponse
972
1023
  */
973
- 'contactTypeData': Contacttypedata2 | null;
1024
+ 'contactTypeData': Contacttypedata2;
974
1025
  /**
975
1026
  *
976
1027
  * @type {string}
@@ -1018,17 +1069,17 @@ interface ContactsUpdateResponse {
1018
1069
  * @type Contacttypedata
1019
1070
  * @export
1020
1071
  */
1021
- type Contacttypedata = GuestDataCreate | LeadDataCreate | OwnerDataCreate;
1072
+ type Contacttypedata = BasicDataCreate | GuestDataCreate | LeadDataCreate | OwnerDataCreate;
1022
1073
  /**
1023
1074
  * @type Contacttypedata1
1024
1075
  * @export
1025
1076
  */
1026
- type Contacttypedata1 = GuestDataUpdate | LeadDataUpdate | OwnerDataUpdate;
1077
+ type Contacttypedata1 = BasicDataUpdate | GuestDataUpdate | LeadDataUpdate | OwnerDataUpdate;
1027
1078
  /**
1028
1079
  * @type Contacttypedata2
1029
1080
  * @export
1030
1081
  */
1031
- type Contacttypedata2 = GuestData | LeadData | OwnerData;
1082
+ type Contacttypedata2 = BasicData | GuestData | LeadData | OwnerData;
1032
1083
  /**
1033
1084
  *
1034
1085
  * @export
@@ -1793,12 +1844,11 @@ declare const ContactsApiAxiosParamCreator: (configuration?: Configuration) => {
1793
1844
  /**
1794
1845
  *
1795
1846
  * @summary Contacts Create
1796
- * @param {string} customerId
1797
1847
  * @param {ContactCreate} contactCreate
1798
1848
  * @param {*} [options] Override http request option.
1799
1849
  * @throws {RequiredError}
1800
1850
  */
1801
- contactsCreate: (customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1851
+ contactsCreate: (contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1802
1852
  /**
1803
1853
  *
1804
1854
  * @summary Contacts Delete
@@ -1902,12 +1952,11 @@ declare const ContactsApiFp: (configuration?: Configuration) => {
1902
1952
  /**
1903
1953
  *
1904
1954
  * @summary Contacts Create
1905
- * @param {string} customerId
1906
1955
  * @param {ContactCreate} contactCreate
1907
1956
  * @param {*} [options] Override http request option.
1908
1957
  * @throws {RequiredError}
1909
1958
  */
1910
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
1959
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
1911
1960
  /**
1912
1961
  *
1913
1962
  * @summary Contacts Delete
@@ -2011,12 +2060,11 @@ declare const ContactsApiFactory: (configuration?: Configuration, basePath?: str
2011
2060
  /**
2012
2061
  *
2013
2062
  * @summary Contacts Create
2014
- * @param {string} customerId
2015
2063
  * @param {ContactCreate} contactCreate
2016
2064
  * @param {*} [options] Override http request option.
2017
2065
  * @throws {RequiredError}
2018
2066
  */
2019
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2067
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2020
2068
  /**
2021
2069
  *
2022
2070
  * @summary Contacts Delete
@@ -2125,13 +2173,12 @@ declare class ContactsApi extends BaseAPI {
2125
2173
  /**
2126
2174
  *
2127
2175
  * @summary Contacts Create
2128
- * @param {string} customerId
2129
2176
  * @param {ContactCreate} contactCreate
2130
2177
  * @param {*} [options] Override http request option.
2131
2178
  * @throws {RequiredError}
2132
2179
  * @memberof ContactsApi
2133
2180
  */
2134
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2181
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2135
2182
  /**
2136
2183
  *
2137
2184
  * @summary Contacts Delete
@@ -2553,12 +2600,11 @@ declare const UnboundApiAxiosParamCreator: (configuration?: Configuration) => {
2553
2600
  /**
2554
2601
  *
2555
2602
  * @summary Contacts Create
2556
- * @param {string} customerId
2557
2603
  * @param {ContactCreate} contactCreate
2558
2604
  * @param {*} [options] Override http request option.
2559
2605
  * @throws {RequiredError}
2560
2606
  */
2561
- contactsCreate: (customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2607
+ contactsCreate: (contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2562
2608
  /**
2563
2609
  *
2564
2610
  * @summary Contacts Delete
@@ -2678,12 +2724,11 @@ declare const UnboundApiFp: (configuration?: Configuration) => {
2678
2724
  /**
2679
2725
  *
2680
2726
  * @summary Contacts Create
2681
- * @param {string} customerId
2682
2727
  * @param {ContactCreate} contactCreate
2683
2728
  * @param {*} [options] Override http request option.
2684
2729
  * @throws {RequiredError}
2685
2730
  */
2686
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
2731
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
2687
2732
  /**
2688
2733
  *
2689
2734
  * @summary Contacts Delete
@@ -2803,12 +2848,11 @@ declare const UnboundApiFactory: (configuration?: Configuration, basePath?: stri
2803
2848
  /**
2804
2849
  *
2805
2850
  * @summary Contacts Create
2806
- * @param {string} customerId
2807
2851
  * @param {ContactCreate} contactCreate
2808
2852
  * @param {*} [options] Override http request option.
2809
2853
  * @throws {RequiredError}
2810
2854
  */
2811
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2855
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2812
2856
  /**
2813
2857
  *
2814
2858
  * @summary Contacts Delete
@@ -2933,13 +2977,12 @@ declare class UnboundApi extends BaseAPI {
2933
2977
  /**
2934
2978
  *
2935
2979
  * @summary Contacts Create
2936
- * @param {string} customerId
2937
2980
  * @param {ContactCreate} contactCreate
2938
2981
  * @param {*} [options] Override http request option.
2939
2982
  * @throws {RequiredError}
2940
2983
  * @memberof UnboundApi
2941
2984
  */
2942
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2985
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2943
2986
  /**
2944
2987
  *
2945
2988
  * @summary Contacts Delete
@@ -3036,4 +3079,4 @@ declare class UnboundApi extends BaseAPI {
3036
3079
  webhook(hostawayWebhook: HostawayWebhook, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
3037
3080
  }
3038
3081
 
3039
- 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, ContactType, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, type Contacttypedata, type Contacttypedata1, type Contacttypedata2, DataSource, type Email, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreateResponse, type GuestData, GuestDataContactTypeEnum, type GuestDataCreate, GuestDataCreateContactTypeEnum, type GuestDataUpdate, GuestDataUpdateContactTypeEnum, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, type LeadData, LeadDataContactTypeEnum, type LeadDataCreate, LeadDataCreateContactTypeEnum, type LeadDataUpdate, LeadDataUpdateContactTypeEnum, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type OwnerData, OwnerDataContactTypeEnum, type OwnerDataCreate, OwnerDataCreateContactTypeEnum, type OwnerDataUpdate, OwnerDataUpdateContactTypeEnum, type Phone, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreateResponse, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
3082
+ export { type APIValidationError, type APIValidationErrorLocInner, type Address, type AddressCreate, type AddressItem, type AddressUpdate, AddressesApi, AddressesApiAxiosParamCreator, AddressesApiFactory, AddressesApiFp, type AddressesCreateResponse, type AddressesUpdateResponse, type BasicData, BasicDataContactTypeEnum, type BasicDataCreate, BasicDataCreateContactTypeEnum, type BasicDataUpdate, BasicDataUpdateContactTypeEnum, Configuration, type ConfigurationParameters, type ContactCreate, ContactType, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, type Contacttypedata, type Contacttypedata1, type Contacttypedata2, DataSource, type Email, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreateResponse, type GuestData, GuestDataContactTypeEnum, type GuestDataCreate, GuestDataCreateContactTypeEnum, type GuestDataUpdate, GuestDataUpdateContactTypeEnum, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, type LeadData, LeadDataContactTypeEnum, type LeadDataCreate, LeadDataCreateContactTypeEnum, type LeadDataUpdate, LeadDataUpdateContactTypeEnum, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type OwnerData, OwnerDataContactTypeEnum, type OwnerDataCreate, OwnerDataCreateContactTypeEnum, type OwnerDataUpdate, OwnerDataUpdateContactTypeEnum, type Phone, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreateResponse, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
package/dist/index.d.ts CHANGED
@@ -438,6 +438,57 @@ interface AddressesUpdateResponse {
438
438
  */
439
439
  'region': string | null;
440
440
  }
441
+ /**
442
+ *
443
+ * @export
444
+ * @interface BasicData
445
+ */
446
+ interface BasicData {
447
+ /**
448
+ *
449
+ * @type {string}
450
+ * @memberof BasicData
451
+ */
452
+ 'contactType': BasicDataContactTypeEnum;
453
+ }
454
+ declare const BasicDataContactTypeEnum: {
455
+ readonly Basic: "BASIC";
456
+ };
457
+ type BasicDataContactTypeEnum = typeof BasicDataContactTypeEnum[keyof typeof BasicDataContactTypeEnum];
458
+ /**
459
+ *
460
+ * @export
461
+ * @interface BasicDataCreate
462
+ */
463
+ interface BasicDataCreate {
464
+ /**
465
+ *
466
+ * @type {string}
467
+ * @memberof BasicDataCreate
468
+ */
469
+ 'contactType': BasicDataCreateContactTypeEnum;
470
+ }
471
+ declare const BasicDataCreateContactTypeEnum: {
472
+ readonly Basic: "BASIC";
473
+ };
474
+ type BasicDataCreateContactTypeEnum = typeof BasicDataCreateContactTypeEnum[keyof typeof BasicDataCreateContactTypeEnum];
475
+ /**
476
+ *
477
+ * @export
478
+ * @interface BasicDataUpdate
479
+ */
480
+ interface BasicDataUpdate {
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof BasicDataUpdate
485
+ */
486
+ 'contactType': BasicDataUpdateContactTypeEnum;
487
+ }
488
+ declare const BasicDataUpdateContactTypeEnum: {
489
+ readonly Basic: "BASIC";
490
+ };
491
+ type BasicDataUpdateContactTypeEnum = typeof BasicDataUpdateContactTypeEnum[keyof typeof BasicDataUpdateContactTypeEnum];
441
492
  /**
442
493
  *
443
494
  * @export
@@ -607,7 +658,7 @@ interface ContactsCreateResponse {
607
658
  * @type {Contacttypedata2}
608
659
  * @memberof ContactsCreateResponse
609
660
  */
610
- 'contactTypeData': Contacttypedata2 | null;
661
+ 'contactTypeData': Contacttypedata2;
611
662
  /**
612
663
  *
613
664
  * @type {string}
@@ -728,7 +779,7 @@ interface ContactsGetResponse {
728
779
  * @type {Contacttypedata2}
729
780
  * @memberof ContactsGetResponse
730
781
  */
731
- 'contactTypeData': Contacttypedata2 | null;
782
+ 'contactTypeData': Contacttypedata2;
732
783
  /**
733
784
  *
734
785
  * @type {string}
@@ -849,7 +900,7 @@ interface ContactsListResponse {
849
900
  * @type {Contacttypedata2}
850
901
  * @memberof ContactsListResponse
851
902
  */
852
- 'contactTypeData': Contacttypedata2 | null;
903
+ 'contactTypeData': Contacttypedata2;
853
904
  /**
854
905
  *
855
906
  * @type {string}
@@ -970,7 +1021,7 @@ interface ContactsUpdateResponse {
970
1021
  * @type {Contacttypedata2}
971
1022
  * @memberof ContactsUpdateResponse
972
1023
  */
973
- 'contactTypeData': Contacttypedata2 | null;
1024
+ 'contactTypeData': Contacttypedata2;
974
1025
  /**
975
1026
  *
976
1027
  * @type {string}
@@ -1018,17 +1069,17 @@ interface ContactsUpdateResponse {
1018
1069
  * @type Contacttypedata
1019
1070
  * @export
1020
1071
  */
1021
- type Contacttypedata = GuestDataCreate | LeadDataCreate | OwnerDataCreate;
1072
+ type Contacttypedata = BasicDataCreate | GuestDataCreate | LeadDataCreate | OwnerDataCreate;
1022
1073
  /**
1023
1074
  * @type Contacttypedata1
1024
1075
  * @export
1025
1076
  */
1026
- type Contacttypedata1 = GuestDataUpdate | LeadDataUpdate | OwnerDataUpdate;
1077
+ type Contacttypedata1 = BasicDataUpdate | GuestDataUpdate | LeadDataUpdate | OwnerDataUpdate;
1027
1078
  /**
1028
1079
  * @type Contacttypedata2
1029
1080
  * @export
1030
1081
  */
1031
- type Contacttypedata2 = GuestData | LeadData | OwnerData;
1082
+ type Contacttypedata2 = BasicData | GuestData | LeadData | OwnerData;
1032
1083
  /**
1033
1084
  *
1034
1085
  * @export
@@ -1793,12 +1844,11 @@ declare const ContactsApiAxiosParamCreator: (configuration?: Configuration) => {
1793
1844
  /**
1794
1845
  *
1795
1846
  * @summary Contacts Create
1796
- * @param {string} customerId
1797
1847
  * @param {ContactCreate} contactCreate
1798
1848
  * @param {*} [options] Override http request option.
1799
1849
  * @throws {RequiredError}
1800
1850
  */
1801
- contactsCreate: (customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1851
+ contactsCreate: (contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1802
1852
  /**
1803
1853
  *
1804
1854
  * @summary Contacts Delete
@@ -1902,12 +1952,11 @@ declare const ContactsApiFp: (configuration?: Configuration) => {
1902
1952
  /**
1903
1953
  *
1904
1954
  * @summary Contacts Create
1905
- * @param {string} customerId
1906
1955
  * @param {ContactCreate} contactCreate
1907
1956
  * @param {*} [options] Override http request option.
1908
1957
  * @throws {RequiredError}
1909
1958
  */
1910
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
1959
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
1911
1960
  /**
1912
1961
  *
1913
1962
  * @summary Contacts Delete
@@ -2011,12 +2060,11 @@ declare const ContactsApiFactory: (configuration?: Configuration, basePath?: str
2011
2060
  /**
2012
2061
  *
2013
2062
  * @summary Contacts Create
2014
- * @param {string} customerId
2015
2063
  * @param {ContactCreate} contactCreate
2016
2064
  * @param {*} [options] Override http request option.
2017
2065
  * @throws {RequiredError}
2018
2066
  */
2019
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2067
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2020
2068
  /**
2021
2069
  *
2022
2070
  * @summary Contacts Delete
@@ -2125,13 +2173,12 @@ declare class ContactsApi extends BaseAPI {
2125
2173
  /**
2126
2174
  *
2127
2175
  * @summary Contacts Create
2128
- * @param {string} customerId
2129
2176
  * @param {ContactCreate} contactCreate
2130
2177
  * @param {*} [options] Override http request option.
2131
2178
  * @throws {RequiredError}
2132
2179
  * @memberof ContactsApi
2133
2180
  */
2134
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2181
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2135
2182
  /**
2136
2183
  *
2137
2184
  * @summary Contacts Delete
@@ -2553,12 +2600,11 @@ declare const UnboundApiAxiosParamCreator: (configuration?: Configuration) => {
2553
2600
  /**
2554
2601
  *
2555
2602
  * @summary Contacts Create
2556
- * @param {string} customerId
2557
2603
  * @param {ContactCreate} contactCreate
2558
2604
  * @param {*} [options] Override http request option.
2559
2605
  * @throws {RequiredError}
2560
2606
  */
2561
- contactsCreate: (customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2607
+ contactsCreate: (contactCreate: ContactCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2562
2608
  /**
2563
2609
  *
2564
2610
  * @summary Contacts Delete
@@ -2678,12 +2724,11 @@ declare const UnboundApiFp: (configuration?: Configuration) => {
2678
2724
  /**
2679
2725
  *
2680
2726
  * @summary Contacts Create
2681
- * @param {string} customerId
2682
2727
  * @param {ContactCreate} contactCreate
2683
2728
  * @param {*} [options] Override http request option.
2684
2729
  * @throws {RequiredError}
2685
2730
  */
2686
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
2731
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ContactsCreateResponse>>;
2687
2732
  /**
2688
2733
  *
2689
2734
  * @summary Contacts Delete
@@ -2803,12 +2848,11 @@ declare const UnboundApiFactory: (configuration?: Configuration, basePath?: stri
2803
2848
  /**
2804
2849
  *
2805
2850
  * @summary Contacts Create
2806
- * @param {string} customerId
2807
2851
  * @param {ContactCreate} contactCreate
2808
2852
  * @param {*} [options] Override http request option.
2809
2853
  * @throws {RequiredError}
2810
2854
  */
2811
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2855
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ContactsCreateResponse>;
2812
2856
  /**
2813
2857
  *
2814
2858
  * @summary Contacts Delete
@@ -2933,13 +2977,12 @@ declare class UnboundApi extends BaseAPI {
2933
2977
  /**
2934
2978
  *
2935
2979
  * @summary Contacts Create
2936
- * @param {string} customerId
2937
2980
  * @param {ContactCreate} contactCreate
2938
2981
  * @param {*} [options] Override http request option.
2939
2982
  * @throws {RequiredError}
2940
2983
  * @memberof UnboundApi
2941
2984
  */
2942
- contactsCreate(customerId: string, contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2985
+ contactsCreate(contactCreate: ContactCreate, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ContactsCreateResponse, any>>;
2943
2986
  /**
2944
2987
  *
2945
2988
  * @summary Contacts Delete
@@ -3036,4 +3079,4 @@ declare class UnboundApi extends BaseAPI {
3036
3079
  webhook(hostawayWebhook: HostawayWebhook, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
3037
3080
  }
3038
3081
 
3039
- 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, ContactType, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, type Contacttypedata, type Contacttypedata1, type Contacttypedata2, DataSource, type Email, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreateResponse, type GuestData, GuestDataContactTypeEnum, type GuestDataCreate, GuestDataCreateContactTypeEnum, type GuestDataUpdate, GuestDataUpdateContactTypeEnum, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, type LeadData, LeadDataContactTypeEnum, type LeadDataCreate, LeadDataCreateContactTypeEnum, type LeadDataUpdate, LeadDataUpdateContactTypeEnum, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type OwnerData, OwnerDataContactTypeEnum, type OwnerDataCreate, OwnerDataCreateContactTypeEnum, type OwnerDataUpdate, OwnerDataUpdateContactTypeEnum, type Phone, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreateResponse, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
3082
+ export { type APIValidationError, type APIValidationErrorLocInner, type Address, type AddressCreate, type AddressItem, type AddressUpdate, AddressesApi, AddressesApiAxiosParamCreator, AddressesApiFactory, AddressesApiFp, type AddressesCreateResponse, type AddressesUpdateResponse, type BasicData, BasicDataContactTypeEnum, type BasicDataCreate, BasicDataCreateContactTypeEnum, type BasicDataUpdate, BasicDataUpdateContactTypeEnum, Configuration, type ConfigurationParameters, type ContactCreate, ContactType, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, type Contacttypedata, type Contacttypedata1, type Contacttypedata2, DataSource, type Email, type EmailCreate, EmailsApi, EmailsApiAxiosParamCreator, EmailsApiFactory, EmailsApiFp, type EmailsCreateResponse, type GuestData, GuestDataContactTypeEnum, type GuestDataCreate, GuestDataCreateContactTypeEnum, type GuestDataUpdate, GuestDataUpdateContactTypeEnum, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type HostawayWebhook, type LeadData, LeadDataContactTypeEnum, type LeadDataCreate, LeadDataCreateContactTypeEnum, type LeadDataUpdate, LeadDataUpdateContactTypeEnum, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type OwnerData, OwnerDataContactTypeEnum, type OwnerDataCreate, OwnerDataCreateContactTypeEnum, type OwnerDataUpdate, OwnerDataUpdateContactTypeEnum, type Phone, type PhoneCreate, PhonesApi, PhonesApiAxiosParamCreator, PhonesApiFactory, PhonesApiFp, type PhonesCreateResponse, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
package/dist/index.js CHANGED
@@ -75,6 +75,15 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
75
75
  };
76
76
 
77
77
  // src/api.ts
78
+ var BasicDataContactTypeEnum = {
79
+ Basic: "BASIC"
80
+ };
81
+ var BasicDataCreateContactTypeEnum = {
82
+ Basic: "BASIC"
83
+ };
84
+ var BasicDataUpdateContactTypeEnum = {
85
+ Basic: "BASIC"
86
+ };
78
87
  var ContactType = {
79
88
  Guest: "GUEST",
80
89
  Owner: "OWNER",
@@ -414,13 +423,11 @@ var ContactsApiAxiosParamCreator = function(configuration) {
414
423
  /**
415
424
  *
416
425
  * @summary Contacts Create
417
- * @param {string} customerId
418
426
  * @param {ContactCreate} contactCreate
419
427
  * @param {*} [options] Override http request option.
420
428
  * @throws {RequiredError}
421
429
  */
422
- contactsCreate: async (customerId, contactCreate, options = {}) => {
423
- assertParamExists("contactsCreate", "customerId", customerId);
430
+ contactsCreate: async (contactCreate, options = {}) => {
424
431
  assertParamExists("contactsCreate", "contactCreate", contactCreate);
425
432
  const localVarPath = `/contacts`;
426
433
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -431,9 +438,6 @@ var ContactsApiAxiosParamCreator = function(configuration) {
431
438
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
432
439
  const localVarHeaderParameter = {};
433
440
  const localVarQueryParameter = {};
434
- if (customerId !== void 0) {
435
- localVarQueryParameter["customerId"] = customerId;
436
- }
437
441
  localVarHeaderParameter["Content-Type"] = "application/json";
438
442
  setSearchParams(localVarUrlObj, localVarQueryParameter);
439
443
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -719,13 +723,12 @@ var ContactsApiFp = function(configuration) {
719
723
  /**
720
724
  *
721
725
  * @summary Contacts Create
722
- * @param {string} customerId
723
726
  * @param {ContactCreate} contactCreate
724
727
  * @param {*} [options] Override http request option.
725
728
  * @throws {RequiredError}
726
729
  */
727
- async contactsCreate(customerId, contactCreate, options) {
728
- const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(customerId, contactCreate, options);
730
+ async contactsCreate(contactCreate, options) {
731
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
729
732
  const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _26 => _26.serverIndex]), () => ( 0));
730
733
  const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _27 => _27["ContactsApi.contactsCreate"], 'optionalAccess', _28 => _28[localVarOperationServerIndex], 'optionalAccess', _29 => _29.url]);
731
734
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -878,13 +881,12 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
878
881
  /**
879
882
  *
880
883
  * @summary Contacts Create
881
- * @param {string} customerId
882
884
  * @param {ContactCreate} contactCreate
883
885
  * @param {*} [options] Override http request option.
884
886
  * @throws {RequiredError}
885
887
  */
886
- contactsCreate(customerId, contactCreate, options) {
887
- return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
888
+ contactsCreate(contactCreate, options) {
889
+ return localVarFp.contactsCreate(contactCreate, options).then((request) => request(axios, basePath));
888
890
  },
889
891
  /**
890
892
  *
@@ -1011,14 +1013,13 @@ var ContactsApi = class extends BaseAPI {
1011
1013
  /**
1012
1014
  *
1013
1015
  * @summary Contacts Create
1014
- * @param {string} customerId
1015
1016
  * @param {ContactCreate} contactCreate
1016
1017
  * @param {*} [options] Override http request option.
1017
1018
  * @throws {RequiredError}
1018
1019
  * @memberof ContactsApi
1019
1020
  */
1020
- contactsCreate(customerId, contactCreate, options) {
1021
- return ContactsApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
1021
+ contactsCreate(contactCreate, options) {
1022
+ return ContactsApiFp(this.configuration).contactsCreate(contactCreate, options).then((request) => request(this.axios, this.basePath));
1022
1023
  }
1023
1024
  /**
1024
1025
  *
@@ -1647,13 +1648,11 @@ var UnboundApiAxiosParamCreator = function(configuration) {
1647
1648
  /**
1648
1649
  *
1649
1650
  * @summary Contacts Create
1650
- * @param {string} customerId
1651
1651
  * @param {ContactCreate} contactCreate
1652
1652
  * @param {*} [options] Override http request option.
1653
1653
  * @throws {RequiredError}
1654
1654
  */
1655
- contactsCreate: async (customerId, contactCreate, options = {}) => {
1656
- assertParamExists("contactsCreate", "customerId", customerId);
1655
+ contactsCreate: async (contactCreate, options = {}) => {
1657
1656
  assertParamExists("contactsCreate", "contactCreate", contactCreate);
1658
1657
  const localVarPath = `/contacts`;
1659
1658
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1664,9 +1663,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
1664
1663
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1665
1664
  const localVarHeaderParameter = {};
1666
1665
  const localVarQueryParameter = {};
1667
- if (customerId !== void 0) {
1668
- localVarQueryParameter["customerId"] = customerId;
1669
- }
1670
1666
  localVarHeaderParameter["Content-Type"] = "application/json";
1671
1667
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1672
1668
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2009,13 +2005,12 @@ var UnboundApiFp = function(configuration) {
2009
2005
  /**
2010
2006
  *
2011
2007
  * @summary Contacts Create
2012
- * @param {string} customerId
2013
2008
  * @param {ContactCreate} contactCreate
2014
2009
  * @param {*} [options] Override http request option.
2015
2010
  * @throws {RequiredError}
2016
2011
  */
2017
- async contactsCreate(customerId, contactCreate, options) {
2018
- const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(customerId, contactCreate, options);
2012
+ async contactsCreate(contactCreate, options) {
2013
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
2019
2014
  const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
2020
2015
  const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["UnboundApi.contactsCreate"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
2021
2016
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2194,13 +2189,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
2194
2189
  /**
2195
2190
  *
2196
2191
  * @summary Contacts Create
2197
- * @param {string} customerId
2198
2192
  * @param {ContactCreate} contactCreate
2199
2193
  * @param {*} [options] Override http request option.
2200
2194
  * @throws {RequiredError}
2201
2195
  */
2202
- contactsCreate(customerId, contactCreate, options) {
2203
- return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
2196
+ contactsCreate(contactCreate, options) {
2197
+ return localVarFp.contactsCreate(contactCreate, options).then((request) => request(axios, basePath));
2204
2198
  },
2205
2199
  /**
2206
2200
  *
@@ -2347,14 +2341,13 @@ var UnboundApi = class extends BaseAPI {
2347
2341
  /**
2348
2342
  *
2349
2343
  * @summary Contacts Create
2350
- * @param {string} customerId
2351
2344
  * @param {ContactCreate} contactCreate
2352
2345
  * @param {*} [options] Override http request option.
2353
2346
  * @throws {RequiredError}
2354
2347
  * @memberof UnboundApi
2355
2348
  */
2356
- contactsCreate(customerId, contactCreate, options) {
2357
- return UnboundApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
2349
+ contactsCreate(contactCreate, options) {
2350
+ return UnboundApiFp(this.configuration).contactsCreate(contactCreate, options).then((request) => request(this.axios, this.basePath));
2358
2351
  }
2359
2352
  /**
2360
2353
  *
@@ -2601,5 +2594,8 @@ var Configuration = class {
2601
2594
 
2602
2595
 
2603
2596
 
2604
- exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactType = ContactType; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.DataSource = DataSource; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.GuestDataContactTypeEnum = GuestDataContactTypeEnum; exports.GuestDataCreateContactTypeEnum = GuestDataCreateContactTypeEnum; exports.GuestDataUpdateContactTypeEnum = GuestDataUpdateContactTypeEnum; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.LeadDataContactTypeEnum = LeadDataContactTypeEnum; exports.LeadDataCreateContactTypeEnum = LeadDataCreateContactTypeEnum; exports.LeadDataUpdateContactTypeEnum = LeadDataUpdateContactTypeEnum; exports.OwnerDataContactTypeEnum = OwnerDataContactTypeEnum; exports.OwnerDataCreateContactTypeEnum = OwnerDataCreateContactTypeEnum; exports.OwnerDataUpdateContactTypeEnum = OwnerDataUpdateContactTypeEnum; 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;
2597
+
2598
+
2599
+
2600
+ exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.BasicDataContactTypeEnum = BasicDataContactTypeEnum; exports.BasicDataCreateContactTypeEnum = BasicDataCreateContactTypeEnum; exports.BasicDataUpdateContactTypeEnum = BasicDataUpdateContactTypeEnum; exports.Configuration = Configuration; exports.ContactType = ContactType; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.DataSource = DataSource; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.GuestDataContactTypeEnum = GuestDataContactTypeEnum; exports.GuestDataCreateContactTypeEnum = GuestDataCreateContactTypeEnum; exports.GuestDataUpdateContactTypeEnum = GuestDataUpdateContactTypeEnum; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.LeadDataContactTypeEnum = LeadDataContactTypeEnum; exports.LeadDataCreateContactTypeEnum = LeadDataCreateContactTypeEnum; exports.LeadDataUpdateContactTypeEnum = LeadDataUpdateContactTypeEnum; exports.OwnerDataContactTypeEnum = OwnerDataContactTypeEnum; exports.OwnerDataCreateContactTypeEnum = OwnerDataCreateContactTypeEnum; exports.OwnerDataUpdateContactTypeEnum = OwnerDataUpdateContactTypeEnum; 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;
2605
2601
  //# sourceMappingURL=index.js.map