hububb-models 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -814,34 +814,14 @@ export declare const ListingSchema: import("zod").ZodObject<{
814
814
  apaleoPropertyId?: string | undefined;
815
815
  apaleoUnitGroupId?: string | undefined;
816
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>;
817
+ export declare const CreateListingSchema: import("zod").ZodObject<{
818
+ title: import("zod").ZodString;
819
+ propertyType: import("zod").ZodString;
820
+ roomType: import("zod").ZodString;
821
+ accommodates: import("zod").ZodNumber;
822
+ bedrooms: import("zod").ZodNumber;
823
+ bathrooms: import("zod").ZodNumber;
824
+ beds: import("zod").ZodNumber;
845
825
  address: import("zod").ZodObject<{
846
826
  full: import("zod").ZodString;
847
827
  lng: import("zod").ZodNumber;
@@ -876,32 +856,10 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
876
856
  zipcode?: string | undefined;
877
857
  addressDescription?: string | undefined;
878
858
  }>;
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<{
859
+ timezone: import("zod").ZodString;
860
+ defaultCheckInTime: import("zod").ZodString;
861
+ defaultCheckOutTime: import("zod").ZodString;
862
+ picture: import("zod").ZodObject<{
905
863
  regular: import("zod").ZodOptional<import("zod").ZodString>;
906
864
  thumbnail: import("zod").ZodOptional<import("zod").ZodString>;
907
865
  large: import("zod").ZodOptional<import("zod").ZodString>;
@@ -928,7 +886,7 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
928
886
  thumbnail?: string | undefined;
929
887
  large?: string | undefined;
930
888
  original?: string | undefined;
931
- }>>;
889
+ }>;
932
890
  pictures: import("zod").ZodArray<import("zod").ZodObject<{
933
891
  regular: import("zod").ZodOptional<import("zod").ZodString>;
934
892
  thumbnail: import("zod").ZodOptional<import("zod").ZodString>;
@@ -961,240 +919,69 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
961
919
  terms: import("zod").ZodObject<{
962
920
  minNights: import("zod").ZodNumber;
963
921
  maxNights: import("zod").ZodNumber;
964
- cancellation: import("zod").ZodString;
965
922
  }, "strip", import("zod").ZodTypeAny, {
966
923
  minNights: number;
967
924
  maxNights: number;
968
- cancellation: string;
969
925
  }, {
970
926
  minNights: number;
971
927
  maxNights: number;
972
- cancellation: string;
973
928
  }>;
974
929
  prices: import("zod").ZodObject<{
975
- guestsIncludedInRegularFee: import("zod").ZodOptional<import("zod").ZodNumber>;
976
- extraPersonFee: import("zod").ZodOptional<import("zod").ZodNumber>;
930
+ guestsIncludedInRegularFee: import("zod").ZodNumber;
931
+ extraPersonFee: import("zod").ZodNumber;
977
932
  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>;
933
+ basePriceUSD: import("zod").ZodNumber;
934
+ monthlyPriceFactor: import("zod").ZodNumber;
935
+ weeklyPriceFactor: import("zod").ZodNumber;
936
+ weekendBasePrice: import("zod").ZodNumber;
937
+ securityDepositFee: import("zod").ZodNumber;
983
938
  currency: import("zod").ZodString;
984
939
  cleaningFee: import("zod").ZodNumber;
985
940
  }, "strip", import("zod").ZodTypeAny, {
986
941
  currency: string;
942
+ guestsIncludedInRegularFee: number;
943
+ extraPersonFee: number;
987
944
  basePrice: number;
945
+ basePriceUSD: number;
946
+ monthlyPriceFactor: number;
947
+ weeklyPriceFactor: number;
948
+ weekendBasePrice: number;
949
+ securityDepositFee: number;
988
950
  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
951
  }, {
997
952
  currency: string;
953
+ guestsIncludedInRegularFee: number;
954
+ extraPersonFee: number;
998
955
  basePrice: number;
956
+ basePriceUSD: number;
957
+ monthlyPriceFactor: number;
958
+ weeklyPriceFactor: number;
959
+ weekendBasePrice: number;
960
+ securityDepositFee: number;
999
961
  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
962
  }>;
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
963
  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">]>>;
964
+ nickname: import("zod").ZodString;
965
+ metadata: import("zod").ZodObject<{
966
+ wifiName: import("zod").ZodString;
967
+ wifiPassword: import("zod").ZodString;
968
+ checkInInstructions: import("zod").ZodString;
969
+ checkOutInstructions: import("zod").ZodString;
970
+ checkInAgent: import("zod").ZodString;
1158
971
  }, "strip", import("zod").ZodTypeAny, {
1159
- id?: string | undefined;
1160
- method?: "open" | "unlock" | undefined;
972
+ wifiName: string;
973
+ wifiPassword: string;
974
+ checkInInstructions: string;
975
+ checkOutInstructions: string;
976
+ checkInAgent: string;
1161
977
  }, {
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, {
978
+ wifiName: string;
979
+ wifiPassword: string;
980
+ checkInInstructions: string;
981
+ checkOutInstructions: string;
982
+ checkInAgent: string;
983
+ }>;
984
+ }, "strip", import("zod").ZodTypeAny, {
1198
985
  address: {
1199
986
  full: string;
1200
987
  country: string;
@@ -1207,6 +994,24 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
1207
994
  zipcode?: string | undefined;
1208
995
  addressDescription?: string | undefined;
1209
996
  };
997
+ picture: {
998
+ height?: number | undefined;
999
+ width?: number | undefined;
1000
+ caption?: string | undefined;
1001
+ size?: number | undefined;
1002
+ regular?: string | undefined;
1003
+ thumbnail?: string | undefined;
1004
+ large?: string | undefined;
1005
+ original?: string | undefined;
1006
+ };
1007
+ title: string;
1008
+ metadata: {
1009
+ wifiName: string;
1010
+ wifiPassword: string;
1011
+ checkInInstructions: string;
1012
+ checkOutInstructions: string;
1013
+ checkInAgent: string;
1014
+ };
1210
1015
  pictures: {
1211
1016
  height?: number | undefined;
1212
1017
  width?: number | undefined;
@@ -1217,53 +1022,34 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
1217
1022
  large?: string | undefined;
1218
1023
  original?: string | undefined;
1219
1024
  }[];
1025
+ propertyType: string;
1026
+ roomType: string;
1027
+ accommodates: number;
1028
+ bedrooms: number;
1029
+ bathrooms: number;
1030
+ beds: number;
1031
+ timezone: string;
1032
+ defaultCheckInTime: string;
1033
+ defaultCheckOutTime: string;
1220
1034
  amenities: string[];
1221
1035
  terms: {
1222
1036
  minNights: number;
1223
1037
  maxNights: number;
1224
- cancellation: string;
1225
1038
  };
1226
1039
  prices: {
1227
1040
  currency: string;
1041
+ guestsIncludedInRegularFee: number;
1042
+ extraPersonFee: number;
1228
1043
  basePrice: number;
1044
+ basePriceUSD: number;
1045
+ monthlyPriceFactor: number;
1046
+ weeklyPriceFactor: number;
1047
+ weekendBasePrice: number;
1048
+ securityDepositFee: number;
1229
1049
  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
1050
  };
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;
1051
+ nickname: string;
1265
1052
  publicDescription?: any;
1266
- nickname?: string | undefined;
1267
1053
  }, {
1268
1054
  address: {
1269
1055
  full: string;
@@ -1277,6 +1063,24 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
1277
1063
  zipcode?: string | undefined;
1278
1064
  addressDescription?: string | undefined;
1279
1065
  };
1066
+ picture: {
1067
+ height?: number | undefined;
1068
+ width?: number | undefined;
1069
+ caption?: string | undefined;
1070
+ size?: number | undefined;
1071
+ regular?: string | undefined;
1072
+ thumbnail?: string | undefined;
1073
+ large?: string | undefined;
1074
+ original?: string | undefined;
1075
+ };
1076
+ title: string;
1077
+ metadata: {
1078
+ wifiName: string;
1079
+ wifiPassword: string;
1080
+ checkInInstructions: string;
1081
+ checkOutInstructions: string;
1082
+ checkInAgent: string;
1083
+ };
1280
1084
  pictures: {
1281
1085
  height?: number | undefined;
1282
1086
  width?: number | undefined;
@@ -1287,51 +1091,32 @@ export declare const CreateListingSchema: import("zod").ZodObject<Pick<{
1287
1091
  large?: string | undefined;
1288
1092
  original?: string | undefined;
1289
1093
  }[];
1094
+ propertyType: string;
1095
+ roomType: string;
1096
+ accommodates: number;
1097
+ bedrooms: number;
1098
+ bathrooms: number;
1099
+ beds: number;
1100
+ timezone: string;
1101
+ defaultCheckInTime: string;
1102
+ defaultCheckOutTime: string;
1290
1103
  amenities: string[];
1291
1104
  terms: {
1292
1105
  minNights: number;
1293
1106
  maxNights: number;
1294
- cancellation: string;
1295
1107
  };
1296
1108
  prices: {
1297
1109
  currency: string;
1110
+ guestsIncludedInRegularFee: number;
1111
+ extraPersonFee: number;
1298
1112
  basePrice: number;
1113
+ basePriceUSD: number;
1114
+ monthlyPriceFactor: number;
1115
+ weeklyPriceFactor: number;
1116
+ weekendBasePrice: number;
1117
+ securityDepositFee: number;
1299
1118
  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
1119
  };
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;
1120
+ nickname: string;
1335
1121
  publicDescription?: any;
1336
- nickname?: string | undefined;
1337
1122
  }>;
@@ -132,24 +132,44 @@ exports.ListingSchema = (0, zod_1.object)({
132
132
  checkInAgent: (0, zod_1.optional)((0, zod_1.string)()),
133
133
  })),
134
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,
135
+ exports.CreateListingSchema = (0, zod_1.object)({
136
+ title: (0, zod_1.string)(),
137
+ propertyType: (0, zod_1.string)(),
138
+ roomType: (0, zod_1.string)(),
139
+ accommodates: (0, zod_1.number)(),
140
+ bedrooms: (0, zod_1.number)(),
141
+ bathrooms: (0, zod_1.number)(),
142
+ beds: (0, zod_1.number)(),
143
+ address: exports.AddressSchema,
144
+ timezone: (0, zod_1.string)(),
145
+ defaultCheckInTime: (0, zod_1.string)(),
146
+ defaultCheckOutTime: (0, zod_1.string)(),
147
+ picture: exports.PictureSchema,
148
+ pictures: (0, zod_1.array)(exports.PictureSchema),
149
+ amenities: (0, zod_1.array)((0, zod_1.string)()),
150
+ terms: (0, zod_1.object)({
151
+ minNights: (0, zod_1.number)(),
152
+ maxNights: (0, zod_1.number)(),
153
+ }),
154
+ prices: (0, zod_1.object)({
155
+ guestsIncludedInRegularFee: (0, zod_1.number)(),
156
+ extraPersonFee: (0, zod_1.number)(),
157
+ basePrice: (0, zod_1.number)(),
158
+ basePriceUSD: (0, zod_1.number)(),
159
+ monthlyPriceFactor: (0, zod_1.number)(),
160
+ weeklyPriceFactor: (0, zod_1.number)(),
161
+ weekendBasePrice: (0, zod_1.number)(),
162
+ securityDepositFee: (0, zod_1.number)(),
163
+ currency: (0, zod_1.string)(),
164
+ cleaningFee: (0, zod_1.number)(),
165
+ }),
166
+ publicDescription: (0, zod_1.any)(),
167
+ nickname: (0, zod_1.string)(),
168
+ metadata: (0, zod_1.object)({
169
+ wifiName: (0, zod_1.string)(),
170
+ wifiPassword: (0, zod_1.string)(),
171
+ checkInInstructions: (0, zod_1.string)(),
172
+ checkOutInstructions: (0, zod_1.string)(),
173
+ checkInAgent: (0, zod_1.string)(),
174
+ }),
155
175
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",