hububb-models 1.1.2 → 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>;
@@ -814,3 +814,524 @@ 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>;
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)({
@@ -132,3 +132,24 @@ 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,
155
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.1.2",
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",