@tripsam/main 2.0.15 → 2.0.17
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 +16 -2
- package/dist/index.d.cts +26 -2
- package/dist/index.d.ts +26 -2
- package/dist/index.js +16 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -171,6 +171,7 @@ var location = import_zod5.z.object({
|
|
|
171
171
|
// src/safari.ts
|
|
172
172
|
var safari_exports = {};
|
|
173
173
|
__export(safari_exports, {
|
|
174
|
+
landmark: () => landmark,
|
|
174
175
|
location: () => location2,
|
|
175
176
|
pickupPoint: () => pickupPoint,
|
|
176
177
|
safariDetails: () => safariDetails,
|
|
@@ -203,6 +204,10 @@ var safariSlot = import_zod6.default.object({
|
|
|
203
204
|
startTime: import_zod6.default.number(),
|
|
204
205
|
endTime: import_zod6.default.number()
|
|
205
206
|
});
|
|
207
|
+
var landmark = import_zod6.default.object({
|
|
208
|
+
name: import_zod6.default.string(),
|
|
209
|
+
type: import_zod6.default.string()
|
|
210
|
+
});
|
|
206
211
|
var location2 = import_zod6.default.object({
|
|
207
212
|
id: import_zod6.default.string(),
|
|
208
213
|
name: import_zod6.default.string(),
|
|
@@ -211,7 +216,8 @@ var location2 = import_zod6.default.object({
|
|
|
211
216
|
startLat: decimalish,
|
|
212
217
|
startLng: decimalish,
|
|
213
218
|
endLat: decimalish,
|
|
214
|
-
endLng: decimalish
|
|
219
|
+
endLng: decimalish,
|
|
220
|
+
landmark
|
|
215
221
|
});
|
|
216
222
|
var pickupPoint = import_zod6.default.object({
|
|
217
223
|
id: import_zod6.default.string(),
|
|
@@ -239,6 +245,7 @@ var safariDetails = import_zod6.default.object({
|
|
|
239
245
|
var safariBooking_exports = {};
|
|
240
246
|
__export(safariBooking_exports, {
|
|
241
247
|
createBooking: () => createBooking,
|
|
248
|
+
paymentType: () => paymentType,
|
|
242
249
|
safariType: () => safariType
|
|
243
250
|
});
|
|
244
251
|
var import_zod7 = __toESM(require("zod"), 1);
|
|
@@ -250,6 +257,10 @@ var safariType = import_zod7.default.enum([
|
|
|
250
257
|
"JUNGLE_SAFARI",
|
|
251
258
|
"VILLAGE_SAFARI"
|
|
252
259
|
]);
|
|
260
|
+
var paymentType = import_zod7.default.enum([
|
|
261
|
+
"FULL_PAYMENT",
|
|
262
|
+
"PAY_TO_VENDOR"
|
|
263
|
+
]);
|
|
253
264
|
var createBooking = import_zod7.default.object({
|
|
254
265
|
safariId: import_zod7.default.string().min(1),
|
|
255
266
|
slotId: import_zod7.default.string().min(1),
|
|
@@ -261,7 +272,10 @@ var createBooking = import_zod7.default.object({
|
|
|
261
272
|
discount: import_zod7.default.coerce.number().int().min(0).default(0),
|
|
262
273
|
finalPrice: import_zod7.default.coerce.number().int().min(0),
|
|
263
274
|
commission: import_zod7.default.coerce.number().int().min(0),
|
|
264
|
-
safariType: safariType.default("LEOPARD_SAFARI")
|
|
275
|
+
safariType: safariType.default("LEOPARD_SAFARI"),
|
|
276
|
+
paymentType: paymentType.default("FULL_PAYMENT"),
|
|
277
|
+
postPaymentCharge: import_zod7.default.coerce.number().int().min(0).default(0),
|
|
278
|
+
paytoVendorAmount: import_zod7.default.coerce.number().int().min(0).default(0)
|
|
265
279
|
});
|
|
266
280
|
// Annotate the CommonJS export names for ESM import in node:
|
|
267
281
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -169,6 +169,10 @@ declare const safariSlot: z$1.ZodObject<{
|
|
|
169
169
|
startTime: z$1.ZodNumber;
|
|
170
170
|
endTime: z$1.ZodNumber;
|
|
171
171
|
}, z$1.core.$strip>;
|
|
172
|
+
declare const landmark: z$1.ZodObject<{
|
|
173
|
+
name: z$1.ZodString;
|
|
174
|
+
type: z$1.ZodString;
|
|
175
|
+
}, z$1.core.$strip>;
|
|
172
176
|
declare const location: z$1.ZodObject<{
|
|
173
177
|
id: z$1.ZodString;
|
|
174
178
|
name: z$1.ZodString;
|
|
@@ -194,6 +198,10 @@ declare const location: z$1.ZodObject<{
|
|
|
194
198
|
}, {
|
|
195
199
|
toString(): string;
|
|
196
200
|
}>]>;
|
|
201
|
+
landmark: z$1.ZodObject<{
|
|
202
|
+
name: z$1.ZodString;
|
|
203
|
+
type: z$1.ZodString;
|
|
204
|
+
}, z$1.core.$strip>;
|
|
197
205
|
}, z$1.core.$strip>;
|
|
198
206
|
declare const pickupPoint: z$1.ZodObject<{
|
|
199
207
|
id: z$1.ZodString;
|
|
@@ -256,6 +264,10 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
256
264
|
}, {
|
|
257
265
|
toString(): string;
|
|
258
266
|
}>]>;
|
|
267
|
+
landmark: z$1.ZodObject<{
|
|
268
|
+
name: z$1.ZodString;
|
|
269
|
+
type: z$1.ZodString;
|
|
270
|
+
}, z$1.core.$strip>;
|
|
259
271
|
}, z$1.core.$strip>;
|
|
260
272
|
pickupLocation: z$1.ZodString;
|
|
261
273
|
safariLocation: z$1.ZodString;
|
|
@@ -277,6 +289,7 @@ type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
|
277
289
|
|
|
278
290
|
type safari_SafariDetails = SafariDetails;
|
|
279
291
|
type safari_SafariSearch = SafariSearch;
|
|
292
|
+
declare const safari_landmark: typeof landmark;
|
|
280
293
|
declare const safari_location: typeof location;
|
|
281
294
|
declare const safari_pickupPoint: typeof pickupPoint;
|
|
282
295
|
declare const safari_safariDetails: typeof safariDetails;
|
|
@@ -284,7 +297,7 @@ declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
|
284
297
|
declare const safari_safariSlot: typeof safariSlot;
|
|
285
298
|
declare const safari_safariVehicle: typeof safariVehicle;
|
|
286
299
|
declare namespace safari {
|
|
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 };
|
|
300
|
+
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_landmark as landmark, 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
301
|
}
|
|
289
302
|
|
|
290
303
|
declare const safariType: z$1.ZodEnum<{
|
|
@@ -295,6 +308,10 @@ declare const safariType: z$1.ZodEnum<{
|
|
|
295
308
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
296
309
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
297
310
|
}>;
|
|
311
|
+
declare const paymentType: z$1.ZodEnum<{
|
|
312
|
+
FULL_PAYMENT: "FULL_PAYMENT";
|
|
313
|
+
PAY_TO_VENDOR: "PAY_TO_VENDOR";
|
|
314
|
+
}>;
|
|
298
315
|
declare const createBooking: z$1.ZodObject<{
|
|
299
316
|
safariId: z$1.ZodString;
|
|
300
317
|
slotId: z$1.ZodString;
|
|
@@ -314,14 +331,21 @@ declare const createBooking: z$1.ZodObject<{
|
|
|
314
331
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
315
332
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
316
333
|
}>>;
|
|
334
|
+
paymentType: z$1.ZodDefault<z$1.ZodEnum<{
|
|
335
|
+
FULL_PAYMENT: "FULL_PAYMENT";
|
|
336
|
+
PAY_TO_VENDOR: "PAY_TO_VENDOR";
|
|
337
|
+
}>>;
|
|
338
|
+
postPaymentCharge: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
339
|
+
paytoVendorAmount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
317
340
|
}, z$1.core.$strip>;
|
|
318
341
|
type SafeCreateBooking = z$1.output<typeof createBooking>;
|
|
319
342
|
|
|
320
343
|
type safariBooking_SafeCreateBooking = SafeCreateBooking;
|
|
321
344
|
declare const safariBooking_createBooking: typeof createBooking;
|
|
345
|
+
declare const safariBooking_paymentType: typeof paymentType;
|
|
322
346
|
declare const safariBooking_safariType: typeof safariType;
|
|
323
347
|
declare namespace safariBooking {
|
|
324
|
-
export { type safariBooking_SafeCreateBooking as SafeCreateBooking, safariBooking_createBooking as createBooking, safariBooking_safariType as safariType };
|
|
348
|
+
export { type safariBooking_SafeCreateBooking as SafeCreateBooking, safariBooking_createBooking as createBooking, safariBooking_paymentType as paymentType, safariBooking_safariType as safariType };
|
|
325
349
|
}
|
|
326
350
|
|
|
327
351
|
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
|
@@ -169,6 +169,10 @@ declare const safariSlot: z$1.ZodObject<{
|
|
|
169
169
|
startTime: z$1.ZodNumber;
|
|
170
170
|
endTime: z$1.ZodNumber;
|
|
171
171
|
}, z$1.core.$strip>;
|
|
172
|
+
declare const landmark: z$1.ZodObject<{
|
|
173
|
+
name: z$1.ZodString;
|
|
174
|
+
type: z$1.ZodString;
|
|
175
|
+
}, z$1.core.$strip>;
|
|
172
176
|
declare const location: z$1.ZodObject<{
|
|
173
177
|
id: z$1.ZodString;
|
|
174
178
|
name: z$1.ZodString;
|
|
@@ -194,6 +198,10 @@ declare const location: z$1.ZodObject<{
|
|
|
194
198
|
}, {
|
|
195
199
|
toString(): string;
|
|
196
200
|
}>]>;
|
|
201
|
+
landmark: z$1.ZodObject<{
|
|
202
|
+
name: z$1.ZodString;
|
|
203
|
+
type: z$1.ZodString;
|
|
204
|
+
}, z$1.core.$strip>;
|
|
197
205
|
}, z$1.core.$strip>;
|
|
198
206
|
declare const pickupPoint: z$1.ZodObject<{
|
|
199
207
|
id: z$1.ZodString;
|
|
@@ -256,6 +264,10 @@ declare const safariDetails: z$1.ZodObject<{
|
|
|
256
264
|
}, {
|
|
257
265
|
toString(): string;
|
|
258
266
|
}>]>;
|
|
267
|
+
landmark: z$1.ZodObject<{
|
|
268
|
+
name: z$1.ZodString;
|
|
269
|
+
type: z$1.ZodString;
|
|
270
|
+
}, z$1.core.$strip>;
|
|
259
271
|
}, z$1.core.$strip>;
|
|
260
272
|
pickupLocation: z$1.ZodString;
|
|
261
273
|
safariLocation: z$1.ZodString;
|
|
@@ -277,6 +289,7 @@ type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
|
277
289
|
|
|
278
290
|
type safari_SafariDetails = SafariDetails;
|
|
279
291
|
type safari_SafariSearch = SafariSearch;
|
|
292
|
+
declare const safari_landmark: typeof landmark;
|
|
280
293
|
declare const safari_location: typeof location;
|
|
281
294
|
declare const safari_pickupPoint: typeof pickupPoint;
|
|
282
295
|
declare const safari_safariDetails: typeof safariDetails;
|
|
@@ -284,7 +297,7 @@ declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
|
284
297
|
declare const safari_safariSlot: typeof safariSlot;
|
|
285
298
|
declare const safari_safariVehicle: typeof safariVehicle;
|
|
286
299
|
declare namespace safari {
|
|
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 };
|
|
300
|
+
export { type safari_SafariDetails as SafariDetails, type safari_SafariSearch as SafariSearch, safari_landmark as landmark, 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
301
|
}
|
|
289
302
|
|
|
290
303
|
declare const safariType: z$1.ZodEnum<{
|
|
@@ -295,6 +308,10 @@ declare const safariType: z$1.ZodEnum<{
|
|
|
295
308
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
296
309
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
297
310
|
}>;
|
|
311
|
+
declare const paymentType: z$1.ZodEnum<{
|
|
312
|
+
FULL_PAYMENT: "FULL_PAYMENT";
|
|
313
|
+
PAY_TO_VENDOR: "PAY_TO_VENDOR";
|
|
314
|
+
}>;
|
|
298
315
|
declare const createBooking: z$1.ZodObject<{
|
|
299
316
|
safariId: z$1.ZodString;
|
|
300
317
|
slotId: z$1.ZodString;
|
|
@@ -314,14 +331,21 @@ declare const createBooking: z$1.ZodObject<{
|
|
|
314
331
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
315
332
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
316
333
|
}>>;
|
|
334
|
+
paymentType: z$1.ZodDefault<z$1.ZodEnum<{
|
|
335
|
+
FULL_PAYMENT: "FULL_PAYMENT";
|
|
336
|
+
PAY_TO_VENDOR: "PAY_TO_VENDOR";
|
|
337
|
+
}>>;
|
|
338
|
+
postPaymentCharge: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
339
|
+
paytoVendorAmount: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
317
340
|
}, z$1.core.$strip>;
|
|
318
341
|
type SafeCreateBooking = z$1.output<typeof createBooking>;
|
|
319
342
|
|
|
320
343
|
type safariBooking_SafeCreateBooking = SafeCreateBooking;
|
|
321
344
|
declare const safariBooking_createBooking: typeof createBooking;
|
|
345
|
+
declare const safariBooking_paymentType: typeof paymentType;
|
|
322
346
|
declare const safariBooking_safariType: typeof safariType;
|
|
323
347
|
declare namespace safariBooking {
|
|
324
|
-
export { type safariBooking_SafeCreateBooking as SafeCreateBooking, safariBooking_createBooking as createBooking, safariBooking_safariType as safariType };
|
|
348
|
+
export { type safariBooking_SafeCreateBooking as SafeCreateBooking, safariBooking_createBooking as createBooking, safariBooking_paymentType as paymentType, safariBooking_safariType as safariType };
|
|
325
349
|
}
|
|
326
350
|
|
|
327
351
|
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
|
@@ -135,6 +135,7 @@ var location = z5.object({
|
|
|
135
135
|
// src/safari.ts
|
|
136
136
|
var safari_exports = {};
|
|
137
137
|
__export(safari_exports, {
|
|
138
|
+
landmark: () => landmark,
|
|
138
139
|
location: () => location2,
|
|
139
140
|
pickupPoint: () => pickupPoint,
|
|
140
141
|
safariDetails: () => safariDetails,
|
|
@@ -167,6 +168,10 @@ var safariSlot = z6.object({
|
|
|
167
168
|
startTime: z6.number(),
|
|
168
169
|
endTime: z6.number()
|
|
169
170
|
});
|
|
171
|
+
var landmark = z6.object({
|
|
172
|
+
name: z6.string(),
|
|
173
|
+
type: z6.string()
|
|
174
|
+
});
|
|
170
175
|
var location2 = z6.object({
|
|
171
176
|
id: z6.string(),
|
|
172
177
|
name: z6.string(),
|
|
@@ -175,7 +180,8 @@ var location2 = z6.object({
|
|
|
175
180
|
startLat: decimalish,
|
|
176
181
|
startLng: decimalish,
|
|
177
182
|
endLat: decimalish,
|
|
178
|
-
endLng: decimalish
|
|
183
|
+
endLng: decimalish,
|
|
184
|
+
landmark
|
|
179
185
|
});
|
|
180
186
|
var pickupPoint = z6.object({
|
|
181
187
|
id: z6.string(),
|
|
@@ -203,6 +209,7 @@ var safariDetails = z6.object({
|
|
|
203
209
|
var safariBooking_exports = {};
|
|
204
210
|
__export(safariBooking_exports, {
|
|
205
211
|
createBooking: () => createBooking,
|
|
212
|
+
paymentType: () => paymentType,
|
|
206
213
|
safariType: () => safariType
|
|
207
214
|
});
|
|
208
215
|
import z7 from "zod";
|
|
@@ -214,6 +221,10 @@ var safariType = z7.enum([
|
|
|
214
221
|
"JUNGLE_SAFARI",
|
|
215
222
|
"VILLAGE_SAFARI"
|
|
216
223
|
]);
|
|
224
|
+
var paymentType = z7.enum([
|
|
225
|
+
"FULL_PAYMENT",
|
|
226
|
+
"PAY_TO_VENDOR"
|
|
227
|
+
]);
|
|
217
228
|
var createBooking = z7.object({
|
|
218
229
|
safariId: z7.string().min(1),
|
|
219
230
|
slotId: z7.string().min(1),
|
|
@@ -225,7 +236,10 @@ var createBooking = z7.object({
|
|
|
225
236
|
discount: z7.coerce.number().int().min(0).default(0),
|
|
226
237
|
finalPrice: z7.coerce.number().int().min(0),
|
|
227
238
|
commission: z7.coerce.number().int().min(0),
|
|
228
|
-
safariType: safariType.default("LEOPARD_SAFARI")
|
|
239
|
+
safariType: safariType.default("LEOPARD_SAFARI"),
|
|
240
|
+
paymentType: paymentType.default("FULL_PAYMENT"),
|
|
241
|
+
postPaymentCharge: z7.coerce.number().int().min(0).default(0),
|
|
242
|
+
paytoVendorAmount: z7.coerce.number().int().min(0).default(0)
|
|
229
243
|
});
|
|
230
244
|
export {
|
|
231
245
|
auth_exports as Auth,
|