@ember-home/unbound-ts-client 0.0.5 → 0.0.6

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
@@ -162,6 +162,18 @@ type APIValidationErrorLocInner = number | string;
162
162
  * @interface Address
163
163
  */
164
164
  interface Address {
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof Address
169
+ */
170
+ 'address1': string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof Address
175
+ */
176
+ 'address2'?: string | null;
165
177
  /**
166
178
  *
167
179
  * @type {string}
@@ -180,6 +192,12 @@ interface Address {
180
192
  * @memberof Address
181
193
  */
182
194
  'region': string;
195
+ /**
196
+ *
197
+ * @type {string}
198
+ * @memberof Address
199
+ */
200
+ 'postalCode': string;
183
201
  }
184
202
  /**
185
203
  *
@@ -187,6 +205,12 @@ interface Address {
187
205
  * @interface AddressItem
188
206
  */
189
207
  interface AddressItem {
208
+ /**
209
+ *
210
+ * @type {string}
211
+ * @memberof AddressItem
212
+ */
213
+ 'addressId': string;
190
214
  /**
191
215
  *
192
216
  * @type {string}
@@ -235,7 +259,19 @@ interface ContactTag {
235
259
  * @type {string}
236
260
  * @memberof ContactTag
237
261
  */
238
- 'name': string;
262
+ 'tagId': string;
263
+ /**
264
+ *
265
+ * @type {string}
266
+ * @memberof ContactTag
267
+ */
268
+ 'groupId'?: string | null;
269
+ /**
270
+ *
271
+ * @type {string}
272
+ * @memberof ContactTag
273
+ */
274
+ 'groupName'?: string | null;
239
275
  }
240
276
  /**
241
277
  *
@@ -285,7 +321,7 @@ interface ContactsCreateResponse {
285
321
  * @type {string}
286
322
  * @memberof ContactsCreateResponse
287
323
  */
288
- 'email'?: string | null;
324
+ 'primaryEmail'?: string | null;
289
325
  /**
290
326
  *
291
327
  * @type {Array<Email>}
@@ -297,7 +333,7 @@ interface ContactsCreateResponse {
297
333
  * @type {string}
298
334
  * @memberof ContactsCreateResponse
299
335
  */
300
- 'phone'?: string | null;
336
+ 'primaryPhone'?: string | null;
301
337
  /**
302
338
  *
303
339
  * @type {Array<Phone>}
@@ -376,18 +412,6 @@ interface ContactsCreateResponse {
376
412
  * @memberof ContactsCreateResponse
377
413
  */
378
414
  'addresses'?: Array<AddressItem> | null;
379
- /**
380
- *
381
- * @type {object}
382
- * @memberof ContactsCreateResponse
383
- */
384
- 'smsMarketingSubscription'?: object;
385
- /**
386
- *
387
- * @type {object}
388
- * @memberof ContactsCreateResponse
389
- */
390
- 'smsTransactionalSubscription'?: object;
391
415
  }
392
416
  /**
393
417
  *
@@ -412,7 +436,7 @@ interface ContactsGetResponse {
412
436
  * @type {string}
413
437
  * @memberof ContactsGetResponse
414
438
  */
415
- 'email'?: string | null;
439
+ 'primaryEmail'?: string | null;
416
440
  /**
417
441
  *
418
442
  * @type {Array<Email>}
@@ -424,7 +448,7 @@ interface ContactsGetResponse {
424
448
  * @type {string}
425
449
  * @memberof ContactsGetResponse
426
450
  */
427
- 'phone'?: string | null;
451
+ 'primaryPhone'?: string | null;
428
452
  /**
429
453
  *
430
454
  * @type {Array<Phone>}
@@ -503,18 +527,6 @@ interface ContactsGetResponse {
503
527
  * @memberof ContactsGetResponse
504
528
  */
505
529
  'addresses'?: Array<AddressItem> | null;
506
- /**
507
- *
508
- * @type {object}
509
- * @memberof ContactsGetResponse
510
- */
511
- 'smsMarketingSubscription'?: object;
512
- /**
513
- *
514
- * @type {object}
515
- * @memberof ContactsGetResponse
516
- */
517
- 'smsTransactionalSubscription'?: object;
518
530
  }
519
531
  /**
520
532
  *
@@ -539,7 +551,7 @@ interface ContactsListResponse {
539
551
  * @type {string}
540
552
  * @memberof ContactsListResponse
541
553
  */
542
- 'email'?: string | null;
554
+ 'primaryEmail'?: string | null;
543
555
  /**
544
556
  *
545
557
  * @type {Array<Email>}
@@ -551,7 +563,7 @@ interface ContactsListResponse {
551
563
  * @type {string}
552
564
  * @memberof ContactsListResponse
553
565
  */
554
- 'phone'?: string | null;
566
+ 'primaryPhone'?: string | null;
555
567
  /**
556
568
  *
557
569
  * @type {Array<Phone>}
@@ -630,24 +642,7 @@ interface ContactsListResponse {
630
642
  * @memberof ContactsListResponse
631
643
  */
632
644
  'addresses'?: Array<AddressItem> | null;
633
- /**
634
- *
635
- * @type {object}
636
- * @memberof ContactsListResponse
637
- */
638
- 'smsMarketingSubscription'?: object;
639
- /**
640
- *
641
- * @type {ContactsListResponseSmsTransactionalSubscription}
642
- * @memberof ContactsListResponse
643
- */
644
- 'smsTransactionalSubscription'?: ContactsListResponseSmsTransactionalSubscription | null;
645
645
  }
646
- /**
647
- * @type ContactsListResponseSmsTransactionalSubscription
648
- * @export
649
- */
650
- type ContactsListResponseSmsTransactionalSubscription = object;
651
646
  /**
652
647
  *
653
648
  * @export
@@ -671,7 +666,7 @@ interface ContactsUpdateResponse {
671
666
  * @type {string}
672
667
  * @memberof ContactsUpdateResponse
673
668
  */
674
- 'email'?: string | null;
669
+ 'primaryEmail'?: string | null;
675
670
  /**
676
671
  *
677
672
  * @type {Array<Email>}
@@ -683,7 +678,7 @@ interface ContactsUpdateResponse {
683
678
  * @type {string}
684
679
  * @memberof ContactsUpdateResponse
685
680
  */
686
- 'phone'?: string | null;
681
+ 'primaryPhone'?: string | null;
687
682
  /**
688
683
  *
689
684
  * @type {Array<Phone>}
@@ -762,30 +757,24 @@ interface ContactsUpdateResponse {
762
757
  * @memberof ContactsUpdateResponse
763
758
  */
764
759
  'addresses'?: Array<AddressItem> | null;
765
- /**
766
- *
767
- * @type {object}
768
- * @memberof ContactsUpdateResponse
769
- */
770
- 'smsMarketingSubscription'?: object;
771
- /**
772
- *
773
- * @type {object}
774
- * @memberof ContactsUpdateResponse
775
- */
776
- 'smsTransactionalSubscription'?: object;
777
760
  }
778
761
  /**
779
762
  * @type Contacttypedata
780
763
  * @export
781
764
  */
782
- type Contacttypedata = object;
765
+ type Contacttypedata = GuestData | OtherData | OwnerData;
783
766
  /**
784
767
  *
785
768
  * @export
786
769
  * @interface Email
787
770
  */
788
771
  interface Email {
772
+ /**
773
+ *
774
+ * @type {string}
775
+ * @memberof Email
776
+ */
777
+ 'emailId': string;
789
778
  /**
790
779
  *
791
780
  * @type {string}
@@ -804,6 +793,77 @@ declare const EmailSourceEnum: {
804
793
  readonly Manual: "MANUAL";
805
794
  };
806
795
  type EmailSourceEnum = typeof EmailSourceEnum[keyof typeof EmailSourceEnum];
796
+ /**
797
+ *
798
+ * @export
799
+ * @interface GuestData
800
+ */
801
+ interface GuestData {
802
+ /**
803
+ *
804
+ * @type {string}
805
+ * @memberof GuestData
806
+ */
807
+ 'contactType'?: GuestDataContactTypeEnum;
808
+ /**
809
+ *
810
+ * @type {number}
811
+ * @memberof GuestData
812
+ */
813
+ 'numStays'?: number;
814
+ /**
815
+ *
816
+ * @type {number}
817
+ * @memberof GuestData
818
+ */
819
+ 'totalAmountSpent'?: number;
820
+ /**
821
+ *
822
+ * @type {number}
823
+ * @memberof GuestData
824
+ */
825
+ 'averageRating'?: number;
826
+ /**
827
+ *
828
+ * @type {boolean}
829
+ * @memberof GuestData
830
+ */
831
+ 'smsMarketingIsSubscribed'?: boolean;
832
+ /**
833
+ *
834
+ * @type {string}
835
+ * @memberof GuestData
836
+ */
837
+ 'smsMarketingConsentType'?: string | null;
838
+ /**
839
+ *
840
+ * @type {string}
841
+ * @memberof GuestData
842
+ */
843
+ 'smsMarketingConsentAt'?: string | null;
844
+ /**
845
+ *
846
+ * @type {boolean}
847
+ * @memberof GuestData
848
+ */
849
+ 'smsTransactionalIsSubscribed'?: boolean;
850
+ /**
851
+ *
852
+ * @type {string}
853
+ * @memberof GuestData
854
+ */
855
+ 'smsTransactionalConsentType'?: string | null;
856
+ /**
857
+ *
858
+ * @type {string}
859
+ * @memberof GuestData
860
+ */
861
+ 'smsTransactionalConsentAt'?: string | null;
862
+ }
863
+ declare const GuestDataContactTypeEnum: {
864
+ readonly Guest: "GUEST";
865
+ };
866
+ type GuestDataContactTypeEnum = typeof GuestDataContactTypeEnum[keyof typeof GuestDataContactTypeEnum];
807
867
  /**
808
868
  *
809
869
  * @export
@@ -843,12 +903,52 @@ interface ListResponseReservationsListResponse {
843
903
  */
844
904
  'data': Array<ReservationsListResponse>;
845
905
  }
906
+ /**
907
+ *
908
+ * @export
909
+ * @interface OtherData
910
+ */
911
+ interface OtherData {
912
+ /**
913
+ *
914
+ * @type {string}
915
+ * @memberof OtherData
916
+ */
917
+ 'contactType'?: OtherDataContactTypeEnum;
918
+ }
919
+ declare const OtherDataContactTypeEnum: {
920
+ readonly Other: "OTHER";
921
+ };
922
+ type OtherDataContactTypeEnum = typeof OtherDataContactTypeEnum[keyof typeof OtherDataContactTypeEnum];
923
+ /**
924
+ *
925
+ * @export
926
+ * @interface OwnerData
927
+ */
928
+ interface OwnerData {
929
+ /**
930
+ *
931
+ * @type {string}
932
+ * @memberof OwnerData
933
+ */
934
+ 'contactType'?: OwnerDataContactTypeEnum;
935
+ }
936
+ declare const OwnerDataContactTypeEnum: {
937
+ readonly Owner: "OWNER";
938
+ };
939
+ type OwnerDataContactTypeEnum = typeof OwnerDataContactTypeEnum[keyof typeof OwnerDataContactTypeEnum];
846
940
  /**
847
941
  *
848
942
  * @export
849
943
  * @interface Phone
850
944
  */
851
945
  interface Phone {
946
+ /**
947
+ *
948
+ * @type {string}
949
+ * @memberof Phone
950
+ */
951
+ 'phoneId': string;
852
952
  /**
853
953
  *
854
954
  * @type {string}
@@ -878,13 +978,13 @@ interface ReservationsListResponse {
878
978
  * @type {string}
879
979
  * @memberof ReservationsListResponse
880
980
  */
881
- 'reservationId'?: string | null;
981
+ 'providerReservationId': string;
882
982
  /**
883
983
  *
884
984
  * @type {string}
885
985
  * @memberof ReservationsListResponse
886
986
  */
887
- 'providerReservationId': string;
987
+ 'providerListingId': string;
888
988
  /**
889
989
  *
890
990
  * @type {string}
@@ -1499,4 +1599,4 @@ declare class UnboundApi extends BaseAPI {
1499
1599
  webhook(body: object, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
1500
1600
  }
1501
1601
 
1502
- export { type APIValidationError, type APIValidationErrorLocInner, type Address, type AddressItem, AddressItemSourceEnum, Configuration, type ConfigurationParameters, type ContactCreate, type ContactTag, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsListResponseSmsTransactionalSubscription, type ContactsUpdateResponse, type Contacttypedata, type Email, EmailSourceEnum, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type Phone, PhoneSourceEnum, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
1602
+ export { type APIValidationError, type APIValidationErrorLocInner, type Address, type AddressItem, AddressItemSourceEnum, Configuration, type ConfigurationParameters, type ContactCreate, type ContactTag, type ContactUpdate, ContactsApi, ContactsApiAxiosParamCreator, ContactsApiFactory, ContactsApiFp, type ContactsCreateResponse, type ContactsGetResponse, type ContactsListResponse, type ContactsUpdateResponse, type Contacttypedata, type Email, EmailSourceEnum, type GuestData, GuestDataContactTypeEnum, type HTTPValidationError, HostawayApi, HostawayApiAxiosParamCreator, HostawayApiFactory, HostawayApiFp, type ListResponseContactsListResponse, type ListResponseReservationsListResponse, type OtherData, OtherDataContactTypeEnum, type OwnerData, OwnerDataContactTypeEnum, type Phone, PhoneSourceEnum, ReservationsApi, ReservationsApiAxiosParamCreator, ReservationsApiFactory, ReservationsApiFp, type ReservationsListResponse, UnboundApi, UnboundApiAxiosParamCreator, UnboundApiFactory, UnboundApiFp };
package/dist/index.js CHANGED
@@ -83,6 +83,15 @@ var EmailSourceEnum = {
83
83
  ThirdParty: "THIRD_PARTY",
84
84
  Manual: "MANUAL"
85
85
  };
86
+ var GuestDataContactTypeEnum = {
87
+ Guest: "GUEST"
88
+ };
89
+ var OtherDataContactTypeEnum = {
90
+ Other: "OTHER"
91
+ };
92
+ var OwnerDataContactTypeEnum = {
93
+ Owner: "OWNER"
94
+ };
86
95
  var PhoneSourceEnum = {
87
96
  ThirdParty: "THIRD_PARTY",
88
97
  Manual: "MANUAL"
@@ -1149,5 +1158,8 @@ var Configuration = class {
1149
1158
 
1150
1159
 
1151
1160
 
1152
- exports.AddressItemSourceEnum = AddressItemSourceEnum; exports.Configuration = Configuration; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.EmailSourceEnum = EmailSourceEnum; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.PhoneSourceEnum = PhoneSourceEnum; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
1161
+
1162
+
1163
+
1164
+ exports.AddressItemSourceEnum = AddressItemSourceEnum; exports.Configuration = Configuration; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.EmailSourceEnum = EmailSourceEnum; exports.GuestDataContactTypeEnum = GuestDataContactTypeEnum; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.OtherDataContactTypeEnum = OtherDataContactTypeEnum; exports.OwnerDataContactTypeEnum = OwnerDataContactTypeEnum; exports.PhoneSourceEnum = PhoneSourceEnum; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
1153
1165
  //# sourceMappingURL=index.js.map