@tripsam/main 2.0.12 → 2.0.14
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 +31 -0
- package/dist/index.d.cts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +30 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
Location: () => location_exports,
|
|
35
35
|
ResetPassword: () => reset_password_exports,
|
|
36
36
|
Safari: () => safari_exports,
|
|
37
|
+
SafariBooking: () => safariBooking_exports,
|
|
37
38
|
Signup: () => signup_exports,
|
|
38
39
|
User: () => user_exports
|
|
39
40
|
});
|
|
@@ -233,12 +234,42 @@ var safariDetails = import_zod6.default.object({
|
|
|
233
234
|
safariType: import_zod6.default.array(import_zod6.default.string()),
|
|
234
235
|
description: import_zod6.default.string().optional()
|
|
235
236
|
});
|
|
237
|
+
|
|
238
|
+
// src/safariBooking.ts
|
|
239
|
+
var safariBooking_exports = {};
|
|
240
|
+
__export(safariBooking_exports, {
|
|
241
|
+
createBooking: () => createBooking,
|
|
242
|
+
safariType: () => safariType
|
|
243
|
+
});
|
|
244
|
+
var import_zod7 = __toESM(require("zod"), 1);
|
|
245
|
+
var safariType = import_zod7.default.enum([
|
|
246
|
+
"LEOPARD_SAFARI",
|
|
247
|
+
"TIGER_SAFARI",
|
|
248
|
+
"LION_SAFARI",
|
|
249
|
+
"BIRD_WATCHING_SAFARI",
|
|
250
|
+
"JUNGLE_SAFARI",
|
|
251
|
+
"VILLAGE_SAFARI"
|
|
252
|
+
]);
|
|
253
|
+
var createBooking = import_zod7.default.object({
|
|
254
|
+
safariId: import_zod7.default.string().min(1),
|
|
255
|
+
slotId: import_zod7.default.string().min(1),
|
|
256
|
+
bookingDate: import_zod7.default.string().refine((s) => !Number.isNaN(Date.parse(s)), "invalid ISO date"),
|
|
257
|
+
numberOfAdults: import_zod7.default.coerce.number().int().min(1),
|
|
258
|
+
numberOfKids: import_zod7.default.coerce.number().int().min(0).default(0),
|
|
259
|
+
numberOfInfants: import_zod7.default.coerce.number().int().min(0).default(0),
|
|
260
|
+
totalPrice: import_zod7.default.coerce.number().int().min(0),
|
|
261
|
+
discount: import_zod7.default.coerce.number().int().min(0).default(0),
|
|
262
|
+
finalPrice: import_zod7.default.coerce.number().int().min(0),
|
|
263
|
+
commission: import_zod7.default.coerce.number().int().min(0),
|
|
264
|
+
safariType: safariType.default("LEOPARD_SAFARI")
|
|
265
|
+
});
|
|
236
266
|
// Annotate the CommonJS export names for ESM import in node:
|
|
237
267
|
0 && (module.exports = {
|
|
238
268
|
Auth,
|
|
239
269
|
Location,
|
|
240
270
|
ResetPassword,
|
|
241
271
|
Safari,
|
|
272
|
+
SafariBooking,
|
|
242
273
|
Signup,
|
|
243
274
|
User
|
|
244
275
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -287,4 +287,41 @@ declare namespace safari {
|
|
|
287
287
|
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_location as location, safari_pickupPoint as pickupPoint, safari_safariDetails as safariDetails, safari_safariSearchSchema as safariSearchSchema, safari_safariSlot as safariSlot, safari_safariVehicle as safariVehicle };
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
declare const safariType: z$1.ZodEnum<{
|
|
291
|
+
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
292
|
+
TIGER_SAFARI: "TIGER_SAFARI";
|
|
293
|
+
LION_SAFARI: "LION_SAFARI";
|
|
294
|
+
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
295
|
+
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
296
|
+
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
297
|
+
}>;
|
|
298
|
+
declare const createBooking: z$1.ZodObject<{
|
|
299
|
+
safariId: z$1.ZodString;
|
|
300
|
+
slotId: z$1.ZodString;
|
|
301
|
+
bookingDate: z$1.ZodString;
|
|
302
|
+
numberOfAdults: z$1.ZodCoercedNumber<unknown>;
|
|
303
|
+
numberOfKids: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
304
|
+
numberOfInfants: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
305
|
+
totalPrice: z$1.ZodCoercedNumber<unknown>;
|
|
306
|
+
discount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
307
|
+
finalPrice: z$1.ZodCoercedNumber<unknown>;
|
|
308
|
+
commission: z$1.ZodCoercedNumber<unknown>;
|
|
309
|
+
safariType: z$1.ZodDefault<z$1.ZodEnum<{
|
|
310
|
+
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
311
|
+
TIGER_SAFARI: "TIGER_SAFARI";
|
|
312
|
+
LION_SAFARI: "LION_SAFARI";
|
|
313
|
+
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
314
|
+
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
315
|
+
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
316
|
+
}>>;
|
|
317
|
+
}, z$1.core.$strip>;
|
|
318
|
+
type SafeCreateBooking = z$1.output<typeof createBooking>;
|
|
319
|
+
|
|
320
|
+
type safariBooking_SafeCreateBooking = SafeCreateBooking;
|
|
321
|
+
declare const safariBooking_createBooking: typeof createBooking;
|
|
322
|
+
declare const safariBooking_safariType: typeof safariType;
|
|
323
|
+
declare namespace safariBooking {
|
|
324
|
+
export { type safariBooking_SafeCreateBooking as SafeCreateBooking, safariBooking_createBooking as createBooking, safariBooking_safariType as safariType };
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export { auth as Auth, location$2 as Location, resetPassword as ResetPassword, safari as Safari, safariBooking as SafariBooking, signup as Signup, user as User };
|
package/dist/index.d.ts
CHANGED
|
@@ -287,4 +287,41 @@ declare namespace safari {
|
|
|
287
287
|
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_location as location, safari_pickupPoint as pickupPoint, safari_safariDetails as safariDetails, safari_safariSearchSchema as safariSearchSchema, safari_safariSlot as safariSlot, safari_safariVehicle as safariVehicle };
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
declare const safariType: z$1.ZodEnum<{
|
|
291
|
+
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
292
|
+
TIGER_SAFARI: "TIGER_SAFARI";
|
|
293
|
+
LION_SAFARI: "LION_SAFARI";
|
|
294
|
+
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
295
|
+
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
296
|
+
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
297
|
+
}>;
|
|
298
|
+
declare const createBooking: z$1.ZodObject<{
|
|
299
|
+
safariId: z$1.ZodString;
|
|
300
|
+
slotId: z$1.ZodString;
|
|
301
|
+
bookingDate: z$1.ZodString;
|
|
302
|
+
numberOfAdults: z$1.ZodCoercedNumber<unknown>;
|
|
303
|
+
numberOfKids: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
304
|
+
numberOfInfants: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
305
|
+
totalPrice: z$1.ZodCoercedNumber<unknown>;
|
|
306
|
+
discount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
307
|
+
finalPrice: z$1.ZodCoercedNumber<unknown>;
|
|
308
|
+
commission: z$1.ZodCoercedNumber<unknown>;
|
|
309
|
+
safariType: z$1.ZodDefault<z$1.ZodEnum<{
|
|
310
|
+
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
311
|
+
TIGER_SAFARI: "TIGER_SAFARI";
|
|
312
|
+
LION_SAFARI: "LION_SAFARI";
|
|
313
|
+
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
314
|
+
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
315
|
+
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
316
|
+
}>>;
|
|
317
|
+
}, z$1.core.$strip>;
|
|
318
|
+
type SafeCreateBooking = z$1.output<typeof createBooking>;
|
|
319
|
+
|
|
320
|
+
type safariBooking_SafeCreateBooking = SafeCreateBooking;
|
|
321
|
+
declare const safariBooking_createBooking: typeof createBooking;
|
|
322
|
+
declare const safariBooking_safariType: typeof safariType;
|
|
323
|
+
declare namespace safariBooking {
|
|
324
|
+
export { type safariBooking_SafeCreateBooking as SafeCreateBooking, safariBooking_createBooking as createBooking, safariBooking_safariType as safariType };
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export { auth as Auth, location$2 as Location, resetPassword as ResetPassword, safari as Safari, safariBooking as SafariBooking, signup as Signup, user as User };
|
package/dist/index.js
CHANGED
|
@@ -198,11 +198,41 @@ var safariDetails = z6.object({
|
|
|
198
198
|
safariType: z6.array(z6.string()),
|
|
199
199
|
description: z6.string().optional()
|
|
200
200
|
});
|
|
201
|
+
|
|
202
|
+
// src/safariBooking.ts
|
|
203
|
+
var safariBooking_exports = {};
|
|
204
|
+
__export(safariBooking_exports, {
|
|
205
|
+
createBooking: () => createBooking,
|
|
206
|
+
safariType: () => safariType
|
|
207
|
+
});
|
|
208
|
+
import z7 from "zod";
|
|
209
|
+
var safariType = z7.enum([
|
|
210
|
+
"LEOPARD_SAFARI",
|
|
211
|
+
"TIGER_SAFARI",
|
|
212
|
+
"LION_SAFARI",
|
|
213
|
+
"BIRD_WATCHING_SAFARI",
|
|
214
|
+
"JUNGLE_SAFARI",
|
|
215
|
+
"VILLAGE_SAFARI"
|
|
216
|
+
]);
|
|
217
|
+
var createBooking = z7.object({
|
|
218
|
+
safariId: z7.string().min(1),
|
|
219
|
+
slotId: z7.string().min(1),
|
|
220
|
+
bookingDate: z7.string().refine((s) => !Number.isNaN(Date.parse(s)), "invalid ISO date"),
|
|
221
|
+
numberOfAdults: z7.coerce.number().int().min(1),
|
|
222
|
+
numberOfKids: z7.coerce.number().int().min(0).default(0),
|
|
223
|
+
numberOfInfants: z7.coerce.number().int().min(0).default(0),
|
|
224
|
+
totalPrice: z7.coerce.number().int().min(0),
|
|
225
|
+
discount: z7.coerce.number().int().min(0).default(0),
|
|
226
|
+
finalPrice: z7.coerce.number().int().min(0),
|
|
227
|
+
commission: z7.coerce.number().int().min(0),
|
|
228
|
+
safariType: safariType.default("LEOPARD_SAFARI")
|
|
229
|
+
});
|
|
201
230
|
export {
|
|
202
231
|
auth_exports as Auth,
|
|
203
232
|
location_exports as Location,
|
|
204
233
|
reset_password_exports as ResetPassword,
|
|
205
234
|
safari_exports as Safari,
|
|
235
|
+
safariBooking_exports as SafariBooking,
|
|
206
236
|
signup_exports as Signup,
|
|
207
237
|
user_exports as User
|
|
208
238
|
};
|
package/package.json
CHANGED