@tripsam/main 2.0.17 → 2.0.19
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.cjs +10 -1
- package/dist/index.d.cts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -217,7 +217,7 @@ var location2 = import_zod6.default.object({
|
|
|
217
217
|
startLng: decimalish,
|
|
218
218
|
endLat: decimalish,
|
|
219
219
|
endLng: decimalish,
|
|
220
|
-
landmark
|
|
220
|
+
landmark: import_zod6.default.array(landmark)
|
|
221
221
|
});
|
|
222
222
|
var pickupPoint = import_zod6.default.object({
|
|
223
223
|
id: import_zod6.default.string(),
|
|
@@ -232,12 +232,21 @@ var safariDetails = import_zod6.default.object({
|
|
|
232
232
|
slots: import_zod6.default.array(safariSlot),
|
|
233
233
|
rate: decimalish,
|
|
234
234
|
discount: decimalish,
|
|
235
|
+
rating: import_zod6.default.coerce.number().min(0).max(5).default(0),
|
|
236
|
+
reviewCount: import_zod6.default.coerce.number().int().min(0).default(0),
|
|
235
237
|
operationalDays: import_zod6.default.array(import_zod6.default.number().int().min(0).max(6)),
|
|
236
238
|
location: location2,
|
|
237
239
|
pickupLocation: import_zod6.default.string(),
|
|
238
240
|
safariLocation: import_zod6.default.string(),
|
|
239
241
|
pickupPoints: import_zod6.default.array(pickupPoint),
|
|
240
242
|
safariType: import_zod6.default.array(import_zod6.default.string()),
|
|
243
|
+
reviews: import_zod6.default.array(import_zod6.default.object({
|
|
244
|
+
id: import_zod6.default.string(),
|
|
245
|
+
rating: import_zod6.default.coerce.number().min(1).max(5),
|
|
246
|
+
review: import_zod6.default.string().default(""),
|
|
247
|
+
author: import_zod6.default.string().default("Guest"),
|
|
248
|
+
date: import_zod6.default.string()
|
|
249
|
+
})).default([]),
|
|
241
250
|
description: import_zod6.default.string().optional()
|
|
242
251
|
});
|
|
243
252
|
|
package/dist/index.d.cts
CHANGED
|
@@ -198,10 +198,10 @@ declare const location: z$1.ZodObject<{
|
|
|
198
198
|
}, {
|
|
199
199
|
toString(): string;
|
|
200
200
|
}>]>;
|
|
201
|
-
landmark: z$1.ZodObject<{
|
|
201
|
+
landmark: z$1.ZodArray<z$1.ZodObject<{
|
|
202
202
|
name: z$1.ZodString;
|
|
203
203
|
type: z$1.ZodString;
|
|
204
|
-
}, z$1.core.$strip
|
|
204
|
+
}, z$1.core.$strip>>;
|
|
205
205
|
}, z$1.core.$strip>;
|
|
206
206
|
declare const pickupPoint: z$1.ZodObject<{
|
|
207
207
|
id: z$1.ZodString;
|
|
@@ -238,6 +238,8 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
238
238
|
}, {
|
|
239
239
|
toString(): string;
|
|
240
240
|
}>]>;
|
|
241
|
+
rating: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
242
|
+
reviewCount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
241
243
|
operationalDays: z$1.ZodArray<z$1.ZodNumber>;
|
|
242
244
|
location: z$1.ZodObject<{
|
|
243
245
|
id: z$1.ZodString;
|
|
@@ -264,10 +266,10 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
264
266
|
}, {
|
|
265
267
|
toString(): string;
|
|
266
268
|
}>]>;
|
|
267
|
-
landmark: z$1.ZodObject<{
|
|
269
|
+
landmark: z$1.ZodArray<z$1.ZodObject<{
|
|
268
270
|
name: z$1.ZodString;
|
|
269
271
|
type: z$1.ZodString;
|
|
270
|
-
}, z$1.core.$strip
|
|
272
|
+
}, z$1.core.$strip>>;
|
|
271
273
|
}, z$1.core.$strip>;
|
|
272
274
|
pickupLocation: z$1.ZodString;
|
|
273
275
|
safariLocation: z$1.ZodString;
|
|
@@ -282,6 +284,13 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
282
284
|
}>]>;
|
|
283
285
|
}, z$1.core.$strip>>;
|
|
284
286
|
safariType: z$1.ZodArray<z$1.ZodString>;
|
|
287
|
+
reviews: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
288
|
+
id: z$1.ZodString;
|
|
289
|
+
rating: z$1.ZodCoercedNumber<unknown>;
|
|
290
|
+
review: z$1.ZodDefault<z$1.ZodString>;
|
|
291
|
+
author: z$1.ZodDefault<z$1.ZodString>;
|
|
292
|
+
date: z$1.ZodString;
|
|
293
|
+
}, z$1.core.$strip>>>;
|
|
285
294
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
286
295
|
}, z$1.core.$strip>;
|
|
287
296
|
type SafariDetails = z$1.infer<typeof safariDetails>;
|
package/dist/index.d.ts
CHANGED
|
@@ -198,10 +198,10 @@ declare const location: z$1.ZodObject<{
|
|
|
198
198
|
}, {
|
|
199
199
|
toString(): string;
|
|
200
200
|
}>]>;
|
|
201
|
-
landmark: z$1.ZodObject<{
|
|
201
|
+
landmark: z$1.ZodArray<z$1.ZodObject<{
|
|
202
202
|
name: z$1.ZodString;
|
|
203
203
|
type: z$1.ZodString;
|
|
204
|
-
}, z$1.core.$strip
|
|
204
|
+
}, z$1.core.$strip>>;
|
|
205
205
|
}, z$1.core.$strip>;
|
|
206
206
|
declare const pickupPoint: z$1.ZodObject<{
|
|
207
207
|
id: z$1.ZodString;
|
|
@@ -238,6 +238,8 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
238
238
|
}, {
|
|
239
239
|
toString(): string;
|
|
240
240
|
}>]>;
|
|
241
|
+
rating: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
242
|
+
reviewCount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
241
243
|
operationalDays: z$1.ZodArray<z$1.ZodNumber>;
|
|
242
244
|
location: z$1.ZodObject<{
|
|
243
245
|
id: z$1.ZodString;
|
|
@@ -264,10 +266,10 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
264
266
|
}, {
|
|
265
267
|
toString(): string;
|
|
266
268
|
}>]>;
|
|
267
|
-
landmark: z$1.ZodObject<{
|
|
269
|
+
landmark: z$1.ZodArray<z$1.ZodObject<{
|
|
268
270
|
name: z$1.ZodString;
|
|
269
271
|
type: z$1.ZodString;
|
|
270
|
-
}, z$1.core.$strip
|
|
272
|
+
}, z$1.core.$strip>>;
|
|
271
273
|
}, z$1.core.$strip>;
|
|
272
274
|
pickupLocation: z$1.ZodString;
|
|
273
275
|
safariLocation: z$1.ZodString;
|
|
@@ -282,6 +284,13 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
282
284
|
}>]>;
|
|
283
285
|
}, z$1.core.$strip>>;
|
|
284
286
|
safariType: z$1.ZodArray<z$1.ZodString>;
|
|
287
|
+
reviews: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
288
|
+
id: z$1.ZodString;
|
|
289
|
+
rating: z$1.ZodCoercedNumber<unknown>;
|
|
290
|
+
review: z$1.ZodDefault<z$1.ZodString>;
|
|
291
|
+
author: z$1.ZodDefault<z$1.ZodString>;
|
|
292
|
+
date: z$1.ZodString;
|
|
293
|
+
}, z$1.core.$strip>>>;
|
|
285
294
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
286
295
|
}, z$1.core.$strip>;
|
|
287
296
|
type SafariDetails = z$1.infer<typeof safariDetails>;
|
package/dist/index.js
CHANGED
|
@@ -181,7 +181,7 @@ var location2 = z6.object({
|
|
|
181
181
|
startLng: decimalish,
|
|
182
182
|
endLat: decimalish,
|
|
183
183
|
endLng: decimalish,
|
|
184
|
-
landmark
|
|
184
|
+
landmark: z6.array(landmark)
|
|
185
185
|
});
|
|
186
186
|
var pickupPoint = z6.object({
|
|
187
187
|
id: z6.string(),
|
|
@@ -196,12 +196,21 @@ var safariDetails = z6.object({
|
|
|
196
196
|
slots: z6.array(safariSlot),
|
|
197
197
|
rate: decimalish,
|
|
198
198
|
discount: decimalish,
|
|
199
|
+
rating: z6.coerce.number().min(0).max(5).default(0),
|
|
200
|
+
reviewCount: z6.coerce.number().int().min(0).default(0),
|
|
199
201
|
operationalDays: z6.array(z6.number().int().min(0).max(6)),
|
|
200
202
|
location: location2,
|
|
201
203
|
pickupLocation: z6.string(),
|
|
202
204
|
safariLocation: z6.string(),
|
|
203
205
|
pickupPoints: z6.array(pickupPoint),
|
|
204
206
|
safariType: z6.array(z6.string()),
|
|
207
|
+
reviews: z6.array(z6.object({
|
|
208
|
+
id: z6.string(),
|
|
209
|
+
rating: z6.coerce.number().min(1).max(5),
|
|
210
|
+
review: z6.string().default(""),
|
|
211
|
+
author: z6.string().default("Guest"),
|
|
212
|
+
date: z6.string()
|
|
213
|
+
})).default([]),
|
|
205
214
|
description: z6.string().optional()
|
|
206
215
|
});
|
|
207
216
|
|