hububb-models 1.1.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
- import { AddressSchema, DoorSchema, ListingSchema, PictureSchema } from "../schemas/listing";
2
+ import { AddressSchema, CreateListingSchema, DoorSchema, ListingSchema, PictureSchema } from "../schemas/listing";
3
3
  export type Listing = z.infer<typeof ListingSchema>;
4
4
  export type Door = z.infer<typeof DoorSchema>;
5
5
  export type Address = z.infer<typeof AddressSchema>;
6
6
  export type Picture = z.infer<typeof PictureSchema>;
7
+ export type CreateListing = z.infer<typeof CreateListingSchema>;
@@ -8,6 +8,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
8
8
  state: import("zod").ZodOptional<import("zod").ZodString>;
9
9
  zipcode: import("zod").ZodOptional<import("zod").ZodString>;
10
10
  unit: import("zod").ZodOptional<import("zod").ZodString>;
11
+ addressDescription: import("zod").ZodOptional<import("zod").ZodString>;
11
12
  }, "strip", import("zod").ZodTypeAny, {
12
13
  full: string;
13
14
  country: string;
@@ -18,6 +19,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
18
19
  state?: string | undefined;
19
20
  unit?: string | undefined;
20
21
  zipcode?: string | undefined;
22
+ addressDescription?: string | undefined;
21
23
  }, {
22
24
  full: string;
23
25
  country: string;
@@ -28,6 +30,7 @@ export declare const AddressSchema: import("zod").ZodObject<{
28
30
  state?: string | undefined;
29
31
  unit?: string | undefined;
30
32
  zipcode?: string | undefined;
33
+ addressDescription?: string | undefined;
31
34
  }>;
32
35
  export declare const PictureSchema: import("zod").ZodObject<{
33
36
  regular: import("zod").ZodOptional<import("zod").ZodString>;
@@ -196,6 +199,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
196
199
  state: import("zod").ZodOptional<import("zod").ZodString>;
197
200
  zipcode: import("zod").ZodOptional<import("zod").ZodString>;
198
201
  unit: import("zod").ZodOptional<import("zod").ZodString>;
202
+ addressDescription: import("zod").ZodOptional<import("zod").ZodString>;
199
203
  }, "strip", import("zod").ZodTypeAny, {
200
204
  full: string;
201
205
  country: string;
@@ -206,6 +210,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
206
210
  state?: string | undefined;
207
211
  unit?: string | undefined;
208
212
  zipcode?: string | undefined;
213
+ addressDescription?: string | undefined;
209
214
  }, {
210
215
  full: string;
211
216
  country: string;
@@ -216,6 +221,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
216
221
  state?: string | undefined;
217
222
  unit?: string | undefined;
218
223
  zipcode?: string | undefined;
224
+ addressDescription?: string | undefined;
219
225
  }>;
220
226
  publishedAddress: import("zod").ZodOptional<import("zod").ZodObject<{
221
227
  full: import("zod").ZodString;
@@ -516,6 +522,25 @@ export declare const ListingSchema: import("zod").ZodObject<{
516
522
  landlordId: import("zod").ZodOptional<import("zod").ZodString>;
517
523
  apaleoPropertyId: import("zod").ZodOptional<import("zod").ZodString>;
518
524
  apaleoUnitGroupId: import("zod").ZodOptional<import("zod").ZodString>;
525
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
526
+ wifiName: import("zod").ZodOptional<import("zod").ZodString>;
527
+ wifiPassword: import("zod").ZodOptional<import("zod").ZodString>;
528
+ checkInInstructions: import("zod").ZodOptional<import("zod").ZodString>;
529
+ checkOutInstructions: import("zod").ZodOptional<import("zod").ZodString>;
530
+ checkInAgent: import("zod").ZodOptional<import("zod").ZodString>;
531
+ }, "strip", import("zod").ZodTypeAny, {
532
+ wifiName?: string | undefined;
533
+ wifiPassword?: string | undefined;
534
+ checkInInstructions?: string | undefined;
535
+ checkOutInstructions?: string | undefined;
536
+ checkInAgent?: string | undefined;
537
+ }, {
538
+ wifiName?: string | undefined;
539
+ wifiPassword?: string | undefined;
540
+ checkInInstructions?: string | undefined;
541
+ checkOutInstructions?: string | undefined;
542
+ checkInAgent?: string | undefined;
543
+ }>>;
519
544
  }, "strip", import("zod").ZodTypeAny, {
520
545
  address: {
521
546
  full: string;
@@ -527,6 +552,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
527
552
  state?: string | undefined;
528
553
  unit?: string | undefined;
529
554
  zipcode?: string | undefined;
555
+ addressDescription?: string | undefined;
530
556
  };
531
557
  active: boolean;
532
558
  createdAt: import("@firebase/firestore-types").Timestamp;
@@ -575,6 +601,13 @@ export declare const ListingSchema: import("zod").ZodObject<{
575
601
  original?: string | undefined;
576
602
  } | undefined;
577
603
  title?: string | undefined;
604
+ metadata?: {
605
+ wifiName?: string | undefined;
606
+ wifiPassword?: string | undefined;
607
+ checkInInstructions?: string | undefined;
608
+ checkOutInstructions?: string | undefined;
609
+ checkInAgent?: string | undefined;
610
+ } | undefined;
578
611
  externalId?: string | undefined;
579
612
  city?: string | undefined;
580
613
  guestyId?: string | undefined;
@@ -655,6 +688,7 @@ export declare const ListingSchema: import("zod").ZodObject<{
655
688
  state?: string | undefined;
656
689
  unit?: string | undefined;
657
690
  zipcode?: string | undefined;
691
+ addressDescription?: string | undefined;
658
692
  };
659
693
  active: boolean;
660
694
  createdAt: import("@firebase/firestore-types").Timestamp;
@@ -703,6 +737,13 @@ export declare const ListingSchema: import("zod").ZodObject<{
703
737
  original?: string | undefined;
704
738
  } | undefined;
705
739
  title?: string | undefined;
740
+ metadata?: {
741
+ wifiName?: string | undefined;
742
+ wifiPassword?: string | undefined;
743
+ checkInInstructions?: string | undefined;
744
+ checkOutInstructions?: string | undefined;
745
+ checkInAgent?: string | undefined;
746
+ } | undefined;
706
747
  externalId?: string | undefined;
707
748
  city?: string | undefined;
708
749
  guestyId?: string | undefined;
@@ -773,3 +814,524 @@ export declare const ListingSchema: import("zod").ZodObject<{
773
814
  apaleoPropertyId?: string | undefined;
774
815
  apaleoUnitGroupId?: string | undefined;
775
816
  }>;
817
+ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
818
+ id: import("zod").ZodOptional<import("zod").ZodString>;
819
+ _geo: import("zod").ZodObject<{
820
+ lat: import("zod").ZodNumber;
821
+ lng: import("zod").ZodNumber;
822
+ }, "strip", import("zod").ZodTypeAny, {
823
+ lng: number;
824
+ lat: number;
825
+ }, {
826
+ lng: number;
827
+ lat: number;
828
+ }>;
829
+ guestyId: import("zod").ZodOptional<import("zod").ZodString>;
830
+ accountId: import("zod").ZodOptional<import("zod").ZodString>;
831
+ createdAt: import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>;
832
+ isVirtual: import("zod").ZodOptional<import("zod").ZodBoolean>;
833
+ isListed: import("zod").ZodBoolean;
834
+ title: import("zod").ZodOptional<import("zod").ZodString>;
835
+ propertyType: import("zod").ZodOptional<import("zod").ZodString>;
836
+ roomType: import("zod").ZodOptional<import("zod").ZodString>;
837
+ bedType: import("zod").ZodOptional<import("zod").ZodString>;
838
+ accommodates: import("zod").ZodOptional<import("zod").ZodNumber>;
839
+ bedrooms: import("zod").ZodOptional<import("zod").ZodNumber>;
840
+ bathrooms: import("zod").ZodOptional<import("zod").ZodNumber>;
841
+ bathroomShared: import("zod").ZodOptional<import("zod").ZodNumber>;
842
+ bathroomPrivate: import("zod").ZodOptional<import("zod").ZodNumber>;
843
+ beds: import("zod").ZodOptional<import("zod").ZodNumber>;
844
+ areaSquareFeet: import("zod").ZodOptional<import("zod").ZodNumber>;
845
+ address: import("zod").ZodObject<{
846
+ full: import("zod").ZodString;
847
+ lng: import("zod").ZodNumber;
848
+ lat: import("zod").ZodNumber;
849
+ street: import("zod").ZodString;
850
+ city: import("zod").ZodString;
851
+ country: import("zod").ZodString;
852
+ state: import("zod").ZodOptional<import("zod").ZodString>;
853
+ zipcode: import("zod").ZodOptional<import("zod").ZodString>;
854
+ unit: import("zod").ZodOptional<import("zod").ZodString>;
855
+ addressDescription: import("zod").ZodOptional<import("zod").ZodString>;
856
+ }, "strip", import("zod").ZodTypeAny, {
857
+ full: string;
858
+ country: string;
859
+ lng: number;
860
+ lat: number;
861
+ street: string;
862
+ city: string;
863
+ state?: string | undefined;
864
+ unit?: string | undefined;
865
+ zipcode?: string | undefined;
866
+ addressDescription?: string | undefined;
867
+ }, {
868
+ full: string;
869
+ country: string;
870
+ lng: number;
871
+ lat: number;
872
+ street: string;
873
+ city: string;
874
+ state?: string | undefined;
875
+ unit?: string | undefined;
876
+ zipcode?: string | undefined;
877
+ addressDescription?: string | undefined;
878
+ }>;
879
+ publishedAddress: import("zod").ZodOptional<import("zod").ZodObject<{
880
+ full: import("zod").ZodString;
881
+ lng: import("zod").ZodNumber;
882
+ lat: import("zod").ZodNumber;
883
+ street: import("zod").ZodString;
884
+ city: import("zod").ZodString;
885
+ country: import("zod").ZodString;
886
+ }, "strip", import("zod").ZodTypeAny, {
887
+ full: string;
888
+ country: string;
889
+ lng: number;
890
+ lat: number;
891
+ street: string;
892
+ city: string;
893
+ }, {
894
+ full: string;
895
+ country: string;
896
+ lng: number;
897
+ lat: number;
898
+ street: string;
899
+ city: string;
900
+ }>>;
901
+ timezone: import("zod").ZodOptional<import("zod").ZodString>;
902
+ defaultCheckInTime: import("zod").ZodOptional<import("zod").ZodString>;
903
+ defaultCheckOutTime: import("zod").ZodOptional<import("zod").ZodString>;
904
+ picture: import("zod").ZodOptional<import("zod").ZodObject<{
905
+ regular: import("zod").ZodOptional<import("zod").ZodString>;
906
+ thumbnail: import("zod").ZodOptional<import("zod").ZodString>;
907
+ large: import("zod").ZodOptional<import("zod").ZodString>;
908
+ caption: import("zod").ZodOptional<import("zod").ZodString>;
909
+ original: import("zod").ZodOptional<import("zod").ZodString>;
910
+ height: import("zod").ZodOptional<import("zod").ZodNumber>;
911
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
912
+ width: import("zod").ZodOptional<import("zod").ZodNumber>;
913
+ }, "strip", import("zod").ZodTypeAny, {
914
+ height?: number | undefined;
915
+ width?: number | undefined;
916
+ caption?: string | undefined;
917
+ size?: number | undefined;
918
+ regular?: string | undefined;
919
+ thumbnail?: string | undefined;
920
+ large?: string | undefined;
921
+ original?: string | undefined;
922
+ }, {
923
+ height?: number | undefined;
924
+ width?: number | undefined;
925
+ caption?: string | undefined;
926
+ size?: number | undefined;
927
+ regular?: string | undefined;
928
+ thumbnail?: string | undefined;
929
+ large?: string | undefined;
930
+ original?: string | undefined;
931
+ }>>;
932
+ pictures: import("zod").ZodArray<import("zod").ZodObject<{
933
+ regular: import("zod").ZodOptional<import("zod").ZodString>;
934
+ thumbnail: import("zod").ZodOptional<import("zod").ZodString>;
935
+ large: import("zod").ZodOptional<import("zod").ZodString>;
936
+ caption: import("zod").ZodOptional<import("zod").ZodString>;
937
+ original: import("zod").ZodOptional<import("zod").ZodString>;
938
+ height: import("zod").ZodOptional<import("zod").ZodNumber>;
939
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
940
+ width: import("zod").ZodOptional<import("zod").ZodNumber>;
941
+ }, "strip", import("zod").ZodTypeAny, {
942
+ height?: number | undefined;
943
+ width?: number | undefined;
944
+ caption?: string | undefined;
945
+ size?: number | undefined;
946
+ regular?: string | undefined;
947
+ thumbnail?: string | undefined;
948
+ large?: string | undefined;
949
+ original?: string | undefined;
950
+ }, {
951
+ height?: number | undefined;
952
+ width?: number | undefined;
953
+ caption?: string | undefined;
954
+ size?: number | undefined;
955
+ regular?: string | undefined;
956
+ thumbnail?: string | undefined;
957
+ large?: string | undefined;
958
+ original?: string | undefined;
959
+ }>, "many">;
960
+ amenities: import("zod").ZodArray<import("zod").ZodString, "many">;
961
+ terms: import("zod").ZodObject<{
962
+ minNights: import("zod").ZodNumber;
963
+ maxNights: import("zod").ZodNumber;
964
+ cancellation: import("zod").ZodString;
965
+ }, "strip", import("zod").ZodTypeAny, {
966
+ minNights: number;
967
+ maxNights: number;
968
+ cancellation: string;
969
+ }, {
970
+ minNights: number;
971
+ maxNights: number;
972
+ cancellation: string;
973
+ }>;
974
+ prices: import("zod").ZodObject<{
975
+ guestsIncludedInRegularFee: import("zod").ZodOptional<import("zod").ZodNumber>;
976
+ extraPersonFee: import("zod").ZodOptional<import("zod").ZodNumber>;
977
+ basePrice: import("zod").ZodNumber;
978
+ basePriceUSD: import("zod").ZodOptional<import("zod").ZodNumber>;
979
+ monthlyPriceFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
980
+ weeklyPriceFactor: import("zod").ZodOptional<import("zod").ZodNumber>;
981
+ weekendBasePrice: import("zod").ZodOptional<import("zod").ZodNumber>;
982
+ securityDepositFee: import("zod").ZodOptional<import("zod").ZodNumber>;
983
+ currency: import("zod").ZodString;
984
+ cleaningFee: import("zod").ZodNumber;
985
+ }, "strip", import("zod").ZodTypeAny, {
986
+ currency: string;
987
+ basePrice: number;
988
+ cleaningFee: number;
989
+ guestsIncludedInRegularFee?: number | undefined;
990
+ extraPersonFee?: number | undefined;
991
+ basePriceUSD?: number | undefined;
992
+ monthlyPriceFactor?: number | undefined;
993
+ weeklyPriceFactor?: number | undefined;
994
+ weekendBasePrice?: number | undefined;
995
+ securityDepositFee?: number | undefined;
996
+ }, {
997
+ currency: string;
998
+ basePrice: number;
999
+ cleaningFee: number;
1000
+ guestsIncludedInRegularFee?: number | undefined;
1001
+ extraPersonFee?: number | undefined;
1002
+ basePriceUSD?: number | undefined;
1003
+ monthlyPriceFactor?: number | undefined;
1004
+ weeklyPriceFactor?: number | undefined;
1005
+ weekendBasePrice?: number | undefined;
1006
+ securityDepositFee?: number | undefined;
1007
+ }>;
1008
+ netIncomeFormula: import("zod").ZodOptional<import("zod").ZodString>;
1009
+ commissionFormula: import("zod").ZodOptional<import("zod").ZodString>;
1010
+ commissionTaxPrecentage: import("zod").ZodOptional<import("zod").ZodString>;
1011
+ paymentProcessing: import("zod").ZodOptional<import("zod").ZodObject<{
1012
+ active: import("zod").ZodBoolean;
1013
+ paymentProviders: import("zod").ZodObject<{
1014
+ stripe: import("zod").ZodObject<{
1015
+ active: import("zod").ZodBoolean;
1016
+ status: import("zod").ZodString;
1017
+ accountName: import("zod").ZodString;
1018
+ defaultCurrency: import("zod").ZodString;
1019
+ syncedAt: import("zod").ZodType<import("@firebase/firestore-types").Timestamp, import("zod").ZodTypeDef, import("@firebase/firestore-types").Timestamp>;
1020
+ payload: import("zod").ZodObject<{
1021
+ id: import("zod").ZodString;
1022
+ livemode: import("zod").ZodBoolean;
1023
+ token_type: import("zod").ZodString;
1024
+ stripe_publishable_key: import("zod").ZodString;
1025
+ stripe_user_id: import("zod").ZodString;
1026
+ scope: import("zod").ZodString;
1027
+ }, "strip", import("zod").ZodTypeAny, {
1028
+ id: string;
1029
+ livemode: boolean;
1030
+ token_type: string;
1031
+ stripe_publishable_key: string;
1032
+ stripe_user_id: string;
1033
+ scope: string;
1034
+ }, {
1035
+ id: string;
1036
+ livemode: boolean;
1037
+ token_type: string;
1038
+ stripe_publishable_key: string;
1039
+ stripe_user_id: string;
1040
+ scope: string;
1041
+ }>;
1042
+ }, "strip", import("zod").ZodTypeAny, {
1043
+ active: boolean;
1044
+ status: string;
1045
+ accountName: string;
1046
+ defaultCurrency: string;
1047
+ syncedAt: import("@firebase/firestore-types").Timestamp;
1048
+ payload: {
1049
+ id: string;
1050
+ livemode: boolean;
1051
+ token_type: string;
1052
+ stripe_publishable_key: string;
1053
+ stripe_user_id: string;
1054
+ scope: string;
1055
+ };
1056
+ }, {
1057
+ active: boolean;
1058
+ status: string;
1059
+ accountName: string;
1060
+ defaultCurrency: string;
1061
+ syncedAt: import("@firebase/firestore-types").Timestamp;
1062
+ payload: {
1063
+ id: string;
1064
+ livemode: boolean;
1065
+ token_type: string;
1066
+ stripe_publishable_key: string;
1067
+ stripe_user_id: string;
1068
+ scope: string;
1069
+ };
1070
+ }>;
1071
+ }, "strip", import("zod").ZodTypeAny, {
1072
+ stripe: {
1073
+ active: boolean;
1074
+ status: string;
1075
+ accountName: string;
1076
+ defaultCurrency: string;
1077
+ syncedAt: import("@firebase/firestore-types").Timestamp;
1078
+ payload: {
1079
+ id: string;
1080
+ livemode: boolean;
1081
+ token_type: string;
1082
+ stripe_publishable_key: string;
1083
+ stripe_user_id: string;
1084
+ scope: string;
1085
+ };
1086
+ };
1087
+ }, {
1088
+ stripe: {
1089
+ active: boolean;
1090
+ status: string;
1091
+ accountName: string;
1092
+ defaultCurrency: string;
1093
+ syncedAt: import("@firebase/firestore-types").Timestamp;
1094
+ payload: {
1095
+ id: string;
1096
+ livemode: boolean;
1097
+ token_type: string;
1098
+ stripe_publishable_key: string;
1099
+ stripe_user_id: string;
1100
+ scope: string;
1101
+ };
1102
+ };
1103
+ }>;
1104
+ }, "strip", import("zod").ZodTypeAny, {
1105
+ active: boolean;
1106
+ paymentProviders: {
1107
+ stripe: {
1108
+ active: boolean;
1109
+ status: string;
1110
+ accountName: string;
1111
+ defaultCurrency: string;
1112
+ syncedAt: import("@firebase/firestore-types").Timestamp;
1113
+ payload: {
1114
+ id: string;
1115
+ livemode: boolean;
1116
+ token_type: string;
1117
+ stripe_publishable_key: string;
1118
+ stripe_user_id: string;
1119
+ scope: string;
1120
+ };
1121
+ };
1122
+ };
1123
+ }, {
1124
+ active: boolean;
1125
+ paymentProviders: {
1126
+ stripe: {
1127
+ active: boolean;
1128
+ status: string;
1129
+ accountName: string;
1130
+ defaultCurrency: string;
1131
+ syncedAt: import("@firebase/firestore-types").Timestamp;
1132
+ payload: {
1133
+ id: string;
1134
+ livemode: boolean;
1135
+ token_type: string;
1136
+ stripe_publishable_key: string;
1137
+ stripe_user_id: string;
1138
+ scope: string;
1139
+ };
1140
+ };
1141
+ };
1142
+ }>>;
1143
+ active: import("zod").ZodBoolean;
1144
+ publicDescription: import("zod").ZodAny;
1145
+ frontDoor: import("zod").ZodOptional<import("zod").ZodObject<{
1146
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1147
+ method: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"unlock">, import("zod").ZodLiteral<"open">]>>;
1148
+ }, "strip", import("zod").ZodTypeAny, {
1149
+ id?: string | undefined;
1150
+ method?: "open" | "unlock" | undefined;
1151
+ }, {
1152
+ id?: string | undefined;
1153
+ method?: "open" | "unlock" | undefined;
1154
+ }>>;
1155
+ mainDoor: import("zod").ZodOptional<import("zod").ZodObject<{
1156
+ id: import("zod").ZodOptional<import("zod").ZodString>;
1157
+ method: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"unlock">, import("zod").ZodLiteral<"open">]>>;
1158
+ }, "strip", import("zod").ZodTypeAny, {
1159
+ id?: string | undefined;
1160
+ method?: "open" | "unlock" | undefined;
1161
+ }, {
1162
+ id?: string | undefined;
1163
+ method?: "open" | "unlock" | undefined;
1164
+ }>>;
1165
+ noAptKey: import("zod").ZodOptional<import("zod").ZodBoolean>;
1166
+ aptKey: import("zod").ZodOptional<import("zod").ZodString>;
1167
+ keyMethod: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"unlock">, import("zod").ZodLiteral<"open">]>>;
1168
+ externalId: import("zod").ZodOptional<import("zod").ZodString>;
1169
+ requestToBook: import("zod").ZodOptional<import("zod").ZodBoolean>;
1170
+ nickname: import("zod").ZodOptional<import("zod").ZodString>;
1171
+ listingType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"parent">, import("zod").ZodLiteral<"child">, import("zod").ZodLiteral<"shared">]>>;
1172
+ parentId: import("zod").ZodOptional<import("zod").ZodString>;
1173
+ childIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1174
+ city: import("zod").ZodOptional<import("zod").ZodString>;
1175
+ landlordId: import("zod").ZodOptional<import("zod").ZodString>;
1176
+ apaleoPropertyId: import("zod").ZodOptional<import("zod").ZodString>;
1177
+ apaleoUnitGroupId: import("zod").ZodOptional<import("zod").ZodString>;
1178
+ metadata: import("zod").ZodOptional<import("zod").ZodObject<{
1179
+ wifiName: import("zod").ZodOptional<import("zod").ZodString>;
1180
+ wifiPassword: import("zod").ZodOptional<import("zod").ZodString>;
1181
+ checkInInstructions: import("zod").ZodOptional<import("zod").ZodString>;
1182
+ checkOutInstructions: import("zod").ZodOptional<import("zod").ZodString>;
1183
+ checkInAgent: import("zod").ZodOptional<import("zod").ZodString>;
1184
+ }, "strip", import("zod").ZodTypeAny, {
1185
+ wifiName?: string | undefined;
1186
+ wifiPassword?: string | undefined;
1187
+ checkInInstructions?: string | undefined;
1188
+ checkOutInstructions?: string | undefined;
1189
+ checkInAgent?: string | undefined;
1190
+ }, {
1191
+ wifiName?: string | undefined;
1192
+ wifiPassword?: string | undefined;
1193
+ checkInInstructions?: string | undefined;
1194
+ checkOutInstructions?: string | undefined;
1195
+ checkInAgent?: string | undefined;
1196
+ }>>;
1197
+ }, "address" | "picture" | "title" | "metadata" | "pictures" | "propertyType" | "roomType" | "accommodates" | "bedrooms" | "bathrooms" | "beds" | "timezone" | "defaultCheckInTime" | "defaultCheckOutTime" | "amenities" | "terms" | "prices" | "publicDescription" | "nickname">, "strip", import("zod").ZodTypeAny, {
1198
+ address: {
1199
+ full: string;
1200
+ country: string;
1201
+ lng: number;
1202
+ lat: number;
1203
+ street: string;
1204
+ city: string;
1205
+ state?: string | undefined;
1206
+ unit?: string | undefined;
1207
+ zipcode?: string | undefined;
1208
+ addressDescription?: string | undefined;
1209
+ };
1210
+ pictures: {
1211
+ height?: number | undefined;
1212
+ width?: number | undefined;
1213
+ caption?: string | undefined;
1214
+ size?: number | undefined;
1215
+ regular?: string | undefined;
1216
+ thumbnail?: string | undefined;
1217
+ large?: string | undefined;
1218
+ original?: string | undefined;
1219
+ }[];
1220
+ amenities: string[];
1221
+ terms: {
1222
+ minNights: number;
1223
+ maxNights: number;
1224
+ cancellation: string;
1225
+ };
1226
+ prices: {
1227
+ currency: string;
1228
+ basePrice: number;
1229
+ cleaningFee: number;
1230
+ guestsIncludedInRegularFee?: number | undefined;
1231
+ extraPersonFee?: number | undefined;
1232
+ basePriceUSD?: number | undefined;
1233
+ monthlyPriceFactor?: number | undefined;
1234
+ weeklyPriceFactor?: number | undefined;
1235
+ weekendBasePrice?: number | undefined;
1236
+ securityDepositFee?: number | undefined;
1237
+ };
1238
+ picture?: {
1239
+ height?: number | undefined;
1240
+ width?: number | undefined;
1241
+ caption?: string | undefined;
1242
+ size?: number | undefined;
1243
+ regular?: string | undefined;
1244
+ thumbnail?: string | undefined;
1245
+ large?: string | undefined;
1246
+ original?: string | undefined;
1247
+ } | undefined;
1248
+ title?: string | undefined;
1249
+ metadata?: {
1250
+ wifiName?: string | undefined;
1251
+ wifiPassword?: string | undefined;
1252
+ checkInInstructions?: string | undefined;
1253
+ checkOutInstructions?: string | undefined;
1254
+ checkInAgent?: string | undefined;
1255
+ } | undefined;
1256
+ propertyType?: string | undefined;
1257
+ roomType?: string | undefined;
1258
+ accommodates?: number | undefined;
1259
+ bedrooms?: number | undefined;
1260
+ bathrooms?: number | undefined;
1261
+ beds?: number | undefined;
1262
+ timezone?: string | undefined;
1263
+ defaultCheckInTime?: string | undefined;
1264
+ defaultCheckOutTime?: string | undefined;
1265
+ publicDescription?: any;
1266
+ nickname?: string | undefined;
1267
+ }, {
1268
+ address: {
1269
+ full: string;
1270
+ country: string;
1271
+ lng: number;
1272
+ lat: number;
1273
+ street: string;
1274
+ city: string;
1275
+ state?: string | undefined;
1276
+ unit?: string | undefined;
1277
+ zipcode?: string | undefined;
1278
+ addressDescription?: string | undefined;
1279
+ };
1280
+ pictures: {
1281
+ height?: number | undefined;
1282
+ width?: number | undefined;
1283
+ caption?: string | undefined;
1284
+ size?: number | undefined;
1285
+ regular?: string | undefined;
1286
+ thumbnail?: string | undefined;
1287
+ large?: string | undefined;
1288
+ original?: string | undefined;
1289
+ }[];
1290
+ amenities: string[];
1291
+ terms: {
1292
+ minNights: number;
1293
+ maxNights: number;
1294
+ cancellation: string;
1295
+ };
1296
+ prices: {
1297
+ currency: string;
1298
+ basePrice: number;
1299
+ cleaningFee: number;
1300
+ guestsIncludedInRegularFee?: number | undefined;
1301
+ extraPersonFee?: number | undefined;
1302
+ basePriceUSD?: number | undefined;
1303
+ monthlyPriceFactor?: number | undefined;
1304
+ weeklyPriceFactor?: number | undefined;
1305
+ weekendBasePrice?: number | undefined;
1306
+ securityDepositFee?: number | undefined;
1307
+ };
1308
+ picture?: {
1309
+ height?: number | undefined;
1310
+ width?: number | undefined;
1311
+ caption?: string | undefined;
1312
+ size?: number | undefined;
1313
+ regular?: string | undefined;
1314
+ thumbnail?: string | undefined;
1315
+ large?: string | undefined;
1316
+ original?: string | undefined;
1317
+ } | undefined;
1318
+ title?: string | undefined;
1319
+ metadata?: {
1320
+ wifiName?: string | undefined;
1321
+ wifiPassword?: string | undefined;
1322
+ checkInInstructions?: string | undefined;
1323
+ checkOutInstructions?: string | undefined;
1324
+ checkInAgent?: string | undefined;
1325
+ } | undefined;
1326
+ propertyType?: string | undefined;
1327
+ roomType?: string | undefined;
1328
+ accommodates?: number | undefined;
1329
+ bedrooms?: number | undefined;
1330
+ bathrooms?: number | undefined;
1331
+ beds?: number | undefined;
1332
+ timezone?: string | undefined;
1333
+ defaultCheckInTime?: string | undefined;
1334
+ defaultCheckOutTime?: string | undefined;
1335
+ publicDescription?: any;
1336
+ nickname?: string | undefined;
1337
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListingSchema = exports.PaymentProvidersSchema = exports.DoorSchema = exports.PictureSchema = exports.AddressSchema = void 0;
3
+ exports.CreateListingSchema = exports.ListingSchema = exports.PaymentProvidersSchema = exports.DoorSchema = exports.PictureSchema = exports.AddressSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const helpers_1 = require("../helpers");
6
6
  exports.AddressSchema = (0, zod_1.object)({
@@ -13,6 +13,7 @@ exports.AddressSchema = (0, zod_1.object)({
13
13
  state: (0, zod_1.optional)((0, zod_1.string)()),
14
14
  zipcode: (0, zod_1.optional)((0, zod_1.string)()),
15
15
  unit: (0, zod_1.optional)((0, zod_1.string)()),
16
+ addressDescription: (0, zod_1.optional)((0, zod_1.string)()),
16
17
  });
17
18
  exports.PictureSchema = (0, zod_1.object)({
18
19
  regular: (0, zod_1.optional)((0, zod_1.string)()),
@@ -123,4 +124,32 @@ exports.ListingSchema = (0, zod_1.object)({
123
124
  landlordId: (0, zod_1.optional)((0, zod_1.string)()),
124
125
  apaleoPropertyId: (0, zod_1.optional)((0, zod_1.string)()),
125
126
  apaleoUnitGroupId: (0, zod_1.optional)((0, zod_1.string)()),
127
+ metadata: (0, zod_1.optional)((0, zod_1.object)({
128
+ wifiName: (0, zod_1.optional)((0, zod_1.string)()),
129
+ wifiPassword: (0, zod_1.optional)((0, zod_1.string)()),
130
+ checkInInstructions: (0, zod_1.optional)((0, zod_1.string)()),
131
+ checkOutInstructions: (0, zod_1.optional)((0, zod_1.string)()),
132
+ checkInAgent: (0, zod_1.optional)((0, zod_1.string)()),
133
+ })),
134
+ });
135
+ exports.CreateListingSchema = exports.ListingSchema.pick({
136
+ title: true,
137
+ propertyType: true,
138
+ roomType: true,
139
+ accommodates: true,
140
+ bedrooms: true,
141
+ bathrooms: true,
142
+ beds: true,
143
+ address: true,
144
+ timezone: true,
145
+ defaultCheckInTime: true,
146
+ defaultCheckOutTime: true,
147
+ picture: true,
148
+ pictures: true,
149
+ amenities: true,
150
+ terms: true,
151
+ prices: true,
152
+ publicDescription: true,
153
+ nickname: true,
154
+ metadata: true,
126
155
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",