@tripsam/main 2.0.18 → 2.0.20
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 +9 -8
- package/dist/index.d.cts +10 -22
- package/dist/index.d.ts +10 -22
- package/dist/index.js +9 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -173,7 +173,6 @@ var safari_exports = {};
|
|
|
173
173
|
__export(safari_exports, {
|
|
174
174
|
landmark: () => landmark,
|
|
175
175
|
location: () => location2,
|
|
176
|
-
pickupPoint: () => pickupPoint,
|
|
177
176
|
safariDetails: () => safariDetails,
|
|
178
177
|
safariSearchSchema: () => safariSearchSchema,
|
|
179
178
|
safariSlot: () => safariSlot,
|
|
@@ -219,12 +218,6 @@ var location2 = import_zod6.default.object({
|
|
|
219
218
|
endLng: decimalish,
|
|
220
219
|
landmark: import_zod6.default.array(landmark)
|
|
221
220
|
});
|
|
222
|
-
var pickupPoint = import_zod6.default.object({
|
|
223
|
-
id: import_zod6.default.string(),
|
|
224
|
-
label: import_zod6.default.string(),
|
|
225
|
-
type: import_zod6.default.string(),
|
|
226
|
-
distanceKm: decimalish
|
|
227
|
-
});
|
|
228
221
|
var safariDetails = import_zod6.default.object({
|
|
229
222
|
id: import_zod6.default.string(),
|
|
230
223
|
safariCode: import_zod6.default.string(),
|
|
@@ -232,12 +225,20 @@ var safariDetails = import_zod6.default.object({
|
|
|
232
225
|
slots: import_zod6.default.array(safariSlot),
|
|
233
226
|
rate: decimalish,
|
|
234
227
|
discount: decimalish,
|
|
228
|
+
rating: import_zod6.default.coerce.number().min(0).max(5).default(0),
|
|
229
|
+
reviewCount: import_zod6.default.coerce.number().int().min(0).default(0),
|
|
235
230
|
operationalDays: import_zod6.default.array(import_zod6.default.number().int().min(0).max(6)),
|
|
236
231
|
location: location2,
|
|
237
232
|
pickupLocation: import_zod6.default.string(),
|
|
238
233
|
safariLocation: import_zod6.default.string(),
|
|
239
|
-
pickupPoints: import_zod6.default.array(pickupPoint),
|
|
240
234
|
safariType: import_zod6.default.array(import_zod6.default.string()),
|
|
235
|
+
reviews: import_zod6.default.array(import_zod6.default.object({
|
|
236
|
+
id: import_zod6.default.string(),
|
|
237
|
+
rating: import_zod6.default.coerce.number().min(1).max(5),
|
|
238
|
+
review: import_zod6.default.string().default(""),
|
|
239
|
+
author: import_zod6.default.string().default("Guest"),
|
|
240
|
+
date: import_zod6.default.string()
|
|
241
|
+
})).default([]),
|
|
241
242
|
description: import_zod6.default.string().optional()
|
|
242
243
|
});
|
|
243
244
|
|
package/dist/index.d.cts
CHANGED
|
@@ -203,16 +203,6 @@ declare const location: z$1.ZodObject<{
|
|
|
203
203
|
type: z$1.ZodString;
|
|
204
204
|
}, z$1.core.$strip>>;
|
|
205
205
|
}, z$1.core.$strip>;
|
|
206
|
-
declare const pickupPoint: z$1.ZodObject<{
|
|
207
|
-
id: z$1.ZodString;
|
|
208
|
-
label: z$1.ZodString;
|
|
209
|
-
type: z$1.ZodString;
|
|
210
|
-
distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
|
|
211
|
-
toString(): string;
|
|
212
|
-
}, {
|
|
213
|
-
toString(): string;
|
|
214
|
-
}>]>;
|
|
215
|
-
}, z$1.core.$strip>;
|
|
216
206
|
declare const safariDetails: z$1.ZodObject<{
|
|
217
207
|
id: z$1.ZodString;
|
|
218
208
|
safariCode: z$1.ZodString;
|
|
@@ -238,6 +228,8 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
238
228
|
}, {
|
|
239
229
|
toString(): string;
|
|
240
230
|
}>]>;
|
|
231
|
+
rating: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
232
|
+
reviewCount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
241
233
|
operationalDays: z$1.ZodArray<z$1.ZodNumber>;
|
|
242
234
|
location: z$1.ZodObject<{
|
|
243
235
|
id: z$1.ZodString;
|
|
@@ -271,17 +263,14 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
271
263
|
}, z$1.core.$strip>;
|
|
272
264
|
pickupLocation: z$1.ZodString;
|
|
273
265
|
safariLocation: z$1.ZodString;
|
|
274
|
-
pickupPoints: z$1.ZodArray<z$1.ZodObject<{
|
|
275
|
-
id: z$1.ZodString;
|
|
276
|
-
label: z$1.ZodString;
|
|
277
|
-
type: z$1.ZodString;
|
|
278
|
-
distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
|
|
279
|
-
toString(): string;
|
|
280
|
-
}, {
|
|
281
|
-
toString(): string;
|
|
282
|
-
}>]>;
|
|
283
|
-
}, z$1.core.$strip>>;
|
|
284
266
|
safariType: z$1.ZodArray<z$1.ZodString>;
|
|
267
|
+
reviews: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
268
|
+
id: z$1.ZodString;
|
|
269
|
+
rating: z$1.ZodCoercedNumber<unknown>;
|
|
270
|
+
review: z$1.ZodDefault<z$1.ZodString>;
|
|
271
|
+
author: z$1.ZodDefault<z$1.ZodString>;
|
|
272
|
+
date: z$1.ZodString;
|
|
273
|
+
}, z$1.core.$strip>>>;
|
|
285
274
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
286
275
|
}, z$1.core.$strip>;
|
|
287
276
|
type SafariDetails = z$1.infer<typeof safariDetails>;
|
|
@@ -291,13 +280,12 @@ type safari_SafariDetails = SafariDetails;
|
|
|
291
280
|
type safari_SafariSearch = SafariSearch;
|
|
292
281
|
declare const safari_landmark: typeof landmark;
|
|
293
282
|
declare const safari_location: typeof location;
|
|
294
|
-
declare const safari_pickupPoint: typeof pickupPoint;
|
|
295
283
|
declare const safari_safariDetails: typeof safariDetails;
|
|
296
284
|
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
297
285
|
declare const safari_safariSlot: typeof safariSlot;
|
|
298
286
|
declare const safari_safariVehicle: typeof safariVehicle;
|
|
299
287
|
declare namespace safari {
|
|
300
|
-
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_landmark as landmark, safari_location as location,
|
|
288
|
+
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_landmark as landmark, safari_location as location, safari_safariDetails as safariDetails, safari_safariSearchSchema as safariSearchSchema, safari_safariSlot as safariSlot, safari_safariVehicle as safariVehicle };
|
|
301
289
|
}
|
|
302
290
|
|
|
303
291
|
declare const safariType: z$1.ZodEnum<{
|
package/dist/index.d.ts
CHANGED
|
@@ -203,16 +203,6 @@ declare const location: z$1.ZodObject<{
|
|
|
203
203
|
type: z$1.ZodString;
|
|
204
204
|
}, z$1.core.$strip>>;
|
|
205
205
|
}, z$1.core.$strip>;
|
|
206
|
-
declare const pickupPoint: z$1.ZodObject<{
|
|
207
|
-
id: z$1.ZodString;
|
|
208
|
-
label: z$1.ZodString;
|
|
209
|
-
type: z$1.ZodString;
|
|
210
|
-
distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
|
|
211
|
-
toString(): string;
|
|
212
|
-
}, {
|
|
213
|
-
toString(): string;
|
|
214
|
-
}>]>;
|
|
215
|
-
}, z$1.core.$strip>;
|
|
216
206
|
declare const safariDetails: z$1.ZodObject<{
|
|
217
207
|
id: z$1.ZodString;
|
|
218
208
|
safariCode: z$1.ZodString;
|
|
@@ -238,6 +228,8 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
238
228
|
}, {
|
|
239
229
|
toString(): string;
|
|
240
230
|
}>]>;
|
|
231
|
+
rating: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
232
|
+
reviewCount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
241
233
|
operationalDays: z$1.ZodArray<z$1.ZodNumber>;
|
|
242
234
|
location: z$1.ZodObject<{
|
|
243
235
|
id: z$1.ZodString;
|
|
@@ -271,17 +263,14 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
271
263
|
}, z$1.core.$strip>;
|
|
272
264
|
pickupLocation: z$1.ZodString;
|
|
273
265
|
safariLocation: z$1.ZodString;
|
|
274
|
-
pickupPoints: z$1.ZodArray<z$1.ZodObject<{
|
|
275
|
-
id: z$1.ZodString;
|
|
276
|
-
label: z$1.ZodString;
|
|
277
|
-
type: z$1.ZodString;
|
|
278
|
-
distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
|
|
279
|
-
toString(): string;
|
|
280
|
-
}, {
|
|
281
|
-
toString(): string;
|
|
282
|
-
}>]>;
|
|
283
|
-
}, z$1.core.$strip>>;
|
|
284
266
|
safariType: z$1.ZodArray<z$1.ZodString>;
|
|
267
|
+
reviews: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
268
|
+
id: z$1.ZodString;
|
|
269
|
+
rating: z$1.ZodCoercedNumber<unknown>;
|
|
270
|
+
review: z$1.ZodDefault<z$1.ZodString>;
|
|
271
|
+
author: z$1.ZodDefault<z$1.ZodString>;
|
|
272
|
+
date: z$1.ZodString;
|
|
273
|
+
}, z$1.core.$strip>>>;
|
|
285
274
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
286
275
|
}, z$1.core.$strip>;
|
|
287
276
|
type SafariDetails = z$1.infer<typeof safariDetails>;
|
|
@@ -291,13 +280,12 @@ type safari_SafariDetails = SafariDetails;
|
|
|
291
280
|
type safari_SafariSearch = SafariSearch;
|
|
292
281
|
declare const safari_landmark: typeof landmark;
|
|
293
282
|
declare const safari_location: typeof location;
|
|
294
|
-
declare const safari_pickupPoint: typeof pickupPoint;
|
|
295
283
|
declare const safari_safariDetails: typeof safariDetails;
|
|
296
284
|
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
297
285
|
declare const safari_safariSlot: typeof safariSlot;
|
|
298
286
|
declare const safari_safariVehicle: typeof safariVehicle;
|
|
299
287
|
declare namespace safari {
|
|
300
|
-
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_landmark as landmark, safari_location as location,
|
|
288
|
+
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_landmark as landmark, safari_location as location, safari_safariDetails as safariDetails, safari_safariSearchSchema as safariSearchSchema, safari_safariSlot as safariSlot, safari_safariVehicle as safariVehicle };
|
|
301
289
|
}
|
|
302
290
|
|
|
303
291
|
declare const safariType: z$1.ZodEnum<{
|
package/dist/index.js
CHANGED
|
@@ -137,7 +137,6 @@ var safari_exports = {};
|
|
|
137
137
|
__export(safari_exports, {
|
|
138
138
|
landmark: () => landmark,
|
|
139
139
|
location: () => location2,
|
|
140
|
-
pickupPoint: () => pickupPoint,
|
|
141
140
|
safariDetails: () => safariDetails,
|
|
142
141
|
safariSearchSchema: () => safariSearchSchema,
|
|
143
142
|
safariSlot: () => safariSlot,
|
|
@@ -183,12 +182,6 @@ var location2 = z6.object({
|
|
|
183
182
|
endLng: decimalish,
|
|
184
183
|
landmark: z6.array(landmark)
|
|
185
184
|
});
|
|
186
|
-
var pickupPoint = z6.object({
|
|
187
|
-
id: z6.string(),
|
|
188
|
-
label: z6.string(),
|
|
189
|
-
type: z6.string(),
|
|
190
|
-
distanceKm: decimalish
|
|
191
|
-
});
|
|
192
185
|
var safariDetails = z6.object({
|
|
193
186
|
id: z6.string(),
|
|
194
187
|
safariCode: z6.string(),
|
|
@@ -196,12 +189,20 @@ var safariDetails = z6.object({
|
|
|
196
189
|
slots: z6.array(safariSlot),
|
|
197
190
|
rate: decimalish,
|
|
198
191
|
discount: decimalish,
|
|
192
|
+
rating: z6.coerce.number().min(0).max(5).default(0),
|
|
193
|
+
reviewCount: z6.coerce.number().int().min(0).default(0),
|
|
199
194
|
operationalDays: z6.array(z6.number().int().min(0).max(6)),
|
|
200
195
|
location: location2,
|
|
201
196
|
pickupLocation: z6.string(),
|
|
202
197
|
safariLocation: z6.string(),
|
|
203
|
-
pickupPoints: z6.array(pickupPoint),
|
|
204
198
|
safariType: z6.array(z6.string()),
|
|
199
|
+
reviews: z6.array(z6.object({
|
|
200
|
+
id: z6.string(),
|
|
201
|
+
rating: z6.coerce.number().min(1).max(5),
|
|
202
|
+
review: z6.string().default(""),
|
|
203
|
+
author: z6.string().default("Guest"),
|
|
204
|
+
date: z6.string()
|
|
205
|
+
})).default([]),
|
|
205
206
|
description: z6.string().optional()
|
|
206
207
|
});
|
|
207
208
|
|