@tripsam/main 2.0.7 → 2.0.9
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 +49 -1
- package/dist/index.d.cts +83 -10
- package/dist/index.d.ts +83 -10
- package/dist/index.js +49 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -170,7 +170,12 @@ var location = import_zod5.z.object({
|
|
|
170
170
|
// src/safari.ts
|
|
171
171
|
var safari_exports = {};
|
|
172
172
|
__export(safari_exports, {
|
|
173
|
-
|
|
173
|
+
location: () => location2,
|
|
174
|
+
pickupPoint: () => pickupPoint,
|
|
175
|
+
safariDetails: () => safariDetails,
|
|
176
|
+
safariSearchSchema: () => safariSearchSchema,
|
|
177
|
+
safariSlot: () => safariSlot,
|
|
178
|
+
safariVehicle: () => safariVehicle
|
|
174
179
|
});
|
|
175
180
|
var import_zod6 = __toESM(require("zod"), 1);
|
|
176
181
|
var safariSearchSchema = import_zod6.default.object({
|
|
@@ -183,6 +188,49 @@ var safariSearchSchema = import_zod6.default.object({
|
|
|
183
188
|
priceMin: import_zod6.default.coerce.number().min(0).default(0),
|
|
184
189
|
priceMax: import_zod6.default.coerce.number().min(0).default(0)
|
|
185
190
|
});
|
|
191
|
+
var safariVehicle = import_zod6.default.object({
|
|
192
|
+
name: import_zod6.default.string(),
|
|
193
|
+
rcNumber: import_zod6.default.string(),
|
|
194
|
+
capacity: import_zod6.default.number().int().positive(),
|
|
195
|
+
operationalSince: import_zod6.default.string()
|
|
196
|
+
});
|
|
197
|
+
var safariSlot = import_zod6.default.object({
|
|
198
|
+
id: import_zod6.default.string(),
|
|
199
|
+
name: import_zod6.default.string(),
|
|
200
|
+
startTime: import_zod6.default.number(),
|
|
201
|
+
endTime: import_zod6.default.number()
|
|
202
|
+
});
|
|
203
|
+
var location2 = import_zod6.default.object({
|
|
204
|
+
id: import_zod6.default.string(),
|
|
205
|
+
name: import_zod6.default.string(),
|
|
206
|
+
area: import_zod6.default.string(),
|
|
207
|
+
address: import_zod6.default.string(),
|
|
208
|
+
startLat: import_zod6.default.float32(),
|
|
209
|
+
startLng: import_zod6.default.float32(),
|
|
210
|
+
endLat: import_zod6.default.float32(),
|
|
211
|
+
endLng: import_zod6.default.float32()
|
|
212
|
+
});
|
|
213
|
+
var pickupPoint = import_zod6.default.object({
|
|
214
|
+
id: import_zod6.default.string(),
|
|
215
|
+
label: import_zod6.default.string(),
|
|
216
|
+
type: import_zod6.default.string(),
|
|
217
|
+
distanceKm: import_zod6.default.float32()
|
|
218
|
+
});
|
|
219
|
+
var safariDetails = import_zod6.default.object({
|
|
220
|
+
id: import_zod6.default.string(),
|
|
221
|
+
safariCode: import_zod6.default.string(),
|
|
222
|
+
vehilces: import_zod6.default.array(safariVehicle),
|
|
223
|
+
slots: import_zod6.default.array(safariSlot),
|
|
224
|
+
rate: import_zod6.default.number(),
|
|
225
|
+
discount: import_zod6.default.number(),
|
|
226
|
+
operationalDays: import_zod6.default.array(import_zod6.default.number().int().min(0).max(6)),
|
|
227
|
+
location: location2,
|
|
228
|
+
pickupLocation: import_zod6.default.string(),
|
|
229
|
+
safariLocation: import_zod6.default.string(),
|
|
230
|
+
pickupPoints: import_zod6.default.array(pickupPoint),
|
|
231
|
+
safariType: import_zod6.default.array(import_zod6.default.string()),
|
|
232
|
+
description: import_zod6.default.string().optional()
|
|
233
|
+
});
|
|
186
234
|
// Annotate the CommonJS export names for ESM import in node:
|
|
187
235
|
0 && (module.exports = {
|
|
188
236
|
Auth,
|
package/dist/index.d.cts
CHANGED
|
@@ -117,7 +117,7 @@ declare const suggest: z.ZodObject<{
|
|
|
117
117
|
lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
118
118
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
|
-
declare const location: z.ZodObject<{
|
|
120
|
+
declare const location$1: z.ZodObject<{
|
|
121
121
|
id: z.ZodString;
|
|
122
122
|
name: z.ZodString;
|
|
123
123
|
area: z.ZodString;
|
|
@@ -137,15 +137,14 @@ declare const location: z.ZodObject<{
|
|
|
137
137
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
138
138
|
}, z.core.$strip>>;
|
|
139
139
|
}, z.core.$strip>;
|
|
140
|
-
type SafeLocation = z.output<typeof location>;
|
|
140
|
+
type SafeLocation = z.output<typeof location$1>;
|
|
141
141
|
type SafeSuggest = z.output<typeof suggest>;
|
|
142
142
|
|
|
143
|
-
type location$
|
|
144
|
-
type location$
|
|
145
|
-
declare const location$
|
|
146
|
-
declare
|
|
147
|
-
|
|
148
|
-
export { type location$1_SafeLocation as SafeLocation, type location$1_SafeSuggest as SafeSuggest, location$1_location as location, location$1_suggest as suggest };
|
|
143
|
+
type location$2_SafeLocation = SafeLocation;
|
|
144
|
+
type location$2_SafeSuggest = SafeSuggest;
|
|
145
|
+
declare const location$2_suggest: typeof suggest;
|
|
146
|
+
declare namespace location$2 {
|
|
147
|
+
export { type location$2_SafeLocation as SafeLocation, type location$2_SafeSuggest as SafeSuggest, location$1 as location, location$2_suggest as suggest };
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
declare const safariSearchSchema: z$1.ZodObject<{
|
|
@@ -158,12 +157,86 @@ declare const safariSearchSchema: z$1.ZodObject<{
|
|
|
158
157
|
priceMin: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
159
158
|
priceMax: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
160
159
|
}, z$1.core.$strip>;
|
|
160
|
+
declare const safariVehicle: z$1.ZodObject<{
|
|
161
|
+
name: z$1.ZodString;
|
|
162
|
+
rcNumber: z$1.ZodString;
|
|
163
|
+
capacity: z$1.ZodNumber;
|
|
164
|
+
operationalSince: z$1.ZodString;
|
|
165
|
+
}, z$1.core.$strip>;
|
|
166
|
+
declare const safariSlot: z$1.ZodObject<{
|
|
167
|
+
id: z$1.ZodString;
|
|
168
|
+
name: z$1.ZodString;
|
|
169
|
+
startTime: z$1.ZodNumber;
|
|
170
|
+
endTime: z$1.ZodNumber;
|
|
171
|
+
}, z$1.core.$strip>;
|
|
172
|
+
declare const location: z$1.ZodObject<{
|
|
173
|
+
id: z$1.ZodString;
|
|
174
|
+
name: z$1.ZodString;
|
|
175
|
+
area: z$1.ZodString;
|
|
176
|
+
address: z$1.ZodString;
|
|
177
|
+
startLat: z$1.ZodFloat32;
|
|
178
|
+
startLng: z$1.ZodFloat32;
|
|
179
|
+
endLat: z$1.ZodFloat32;
|
|
180
|
+
endLng: z$1.ZodFloat32;
|
|
181
|
+
}, z$1.core.$strip>;
|
|
182
|
+
declare const pickupPoint: z$1.ZodObject<{
|
|
183
|
+
id: z$1.ZodString;
|
|
184
|
+
label: z$1.ZodString;
|
|
185
|
+
type: z$1.ZodString;
|
|
186
|
+
distanceKm: z$1.ZodFloat32;
|
|
187
|
+
}, z$1.core.$strip>;
|
|
188
|
+
declare const safariDetails: z$1.ZodObject<{
|
|
189
|
+
id: z$1.ZodString;
|
|
190
|
+
safariCode: z$1.ZodString;
|
|
191
|
+
vehilces: z$1.ZodArray<z$1.ZodObject<{
|
|
192
|
+
name: z$1.ZodString;
|
|
193
|
+
rcNumber: z$1.ZodString;
|
|
194
|
+
capacity: z$1.ZodNumber;
|
|
195
|
+
operationalSince: z$1.ZodString;
|
|
196
|
+
}, z$1.core.$strip>>;
|
|
197
|
+
slots: z$1.ZodArray<z$1.ZodObject<{
|
|
198
|
+
id: z$1.ZodString;
|
|
199
|
+
name: z$1.ZodString;
|
|
200
|
+
startTime: z$1.ZodNumber;
|
|
201
|
+
endTime: z$1.ZodNumber;
|
|
202
|
+
}, z$1.core.$strip>>;
|
|
203
|
+
rate: z$1.ZodNumber;
|
|
204
|
+
discount: z$1.ZodNumber;
|
|
205
|
+
operationalDays: z$1.ZodArray<z$1.ZodNumber>;
|
|
206
|
+
location: z$1.ZodObject<{
|
|
207
|
+
id: z$1.ZodString;
|
|
208
|
+
name: z$1.ZodString;
|
|
209
|
+
area: z$1.ZodString;
|
|
210
|
+
address: z$1.ZodString;
|
|
211
|
+
startLat: z$1.ZodFloat32;
|
|
212
|
+
startLng: z$1.ZodFloat32;
|
|
213
|
+
endLat: z$1.ZodFloat32;
|
|
214
|
+
endLng: z$1.ZodFloat32;
|
|
215
|
+
}, z$1.core.$strip>;
|
|
216
|
+
pickupLocation: z$1.ZodString;
|
|
217
|
+
safariLocation: z$1.ZodString;
|
|
218
|
+
pickupPoints: z$1.ZodArray<z$1.ZodObject<{
|
|
219
|
+
id: z$1.ZodString;
|
|
220
|
+
label: z$1.ZodString;
|
|
221
|
+
type: z$1.ZodString;
|
|
222
|
+
distanceKm: z$1.ZodFloat32;
|
|
223
|
+
}, z$1.core.$strip>>;
|
|
224
|
+
safariType: z$1.ZodArray<z$1.ZodString>;
|
|
225
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
226
|
+
}, z$1.core.$strip>;
|
|
227
|
+
type SafariDetails = z$1.infer<typeof safariDetails>;
|
|
161
228
|
type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
162
229
|
|
|
230
|
+
type safari_SafariDetails = SafariDetails;
|
|
163
231
|
type safari_SafariSearch = SafariSearch;
|
|
232
|
+
declare const safari_location: typeof location;
|
|
233
|
+
declare const safari_pickupPoint: typeof pickupPoint;
|
|
234
|
+
declare const safari_safariDetails: typeof safariDetails;
|
|
164
235
|
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
236
|
+
declare const safari_safariSlot: typeof safariSlot;
|
|
237
|
+
declare const safari_safariVehicle: typeof safariVehicle;
|
|
165
238
|
declare namespace safari {
|
|
166
|
-
export { type safari_SafariSearch as SafariSearch, safari_safariSearchSchema as safariSearchSchema };
|
|
239
|
+
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 };
|
|
167
240
|
}
|
|
168
241
|
|
|
169
|
-
export { auth as Auth, location$
|
|
242
|
+
export { auth as Auth, location$2 as Location, resetPassword as ResetPassword, safari as Safari, signup as Signup, user as User };
|
package/dist/index.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ declare const suggest: z.ZodObject<{
|
|
|
117
117
|
lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
118
118
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
|
-
declare const location: z.ZodObject<{
|
|
120
|
+
declare const location$1: z.ZodObject<{
|
|
121
121
|
id: z.ZodString;
|
|
122
122
|
name: z.ZodString;
|
|
123
123
|
area: z.ZodString;
|
|
@@ -137,15 +137,14 @@ declare const location: z.ZodObject<{
|
|
|
137
137
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
138
138
|
}, z.core.$strip>>;
|
|
139
139
|
}, z.core.$strip>;
|
|
140
|
-
type SafeLocation = z.output<typeof location>;
|
|
140
|
+
type SafeLocation = z.output<typeof location$1>;
|
|
141
141
|
type SafeSuggest = z.output<typeof suggest>;
|
|
142
142
|
|
|
143
|
-
type location$
|
|
144
|
-
type location$
|
|
145
|
-
declare const location$
|
|
146
|
-
declare
|
|
147
|
-
|
|
148
|
-
export { type location$1_SafeLocation as SafeLocation, type location$1_SafeSuggest as SafeSuggest, location$1_location as location, location$1_suggest as suggest };
|
|
143
|
+
type location$2_SafeLocation = SafeLocation;
|
|
144
|
+
type location$2_SafeSuggest = SafeSuggest;
|
|
145
|
+
declare const location$2_suggest: typeof suggest;
|
|
146
|
+
declare namespace location$2 {
|
|
147
|
+
export { type location$2_SafeLocation as SafeLocation, type location$2_SafeSuggest as SafeSuggest, location$1 as location, location$2_suggest as suggest };
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
declare const safariSearchSchema: z$1.ZodObject<{
|
|
@@ -158,12 +157,86 @@ declare const safariSearchSchema: z$1.ZodObject<{
|
|
|
158
157
|
priceMin: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
159
158
|
priceMax: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
|
|
160
159
|
}, z$1.core.$strip>;
|
|
160
|
+
declare const safariVehicle: z$1.ZodObject<{
|
|
161
|
+
name: z$1.ZodString;
|
|
162
|
+
rcNumber: z$1.ZodString;
|
|
163
|
+
capacity: z$1.ZodNumber;
|
|
164
|
+
operationalSince: z$1.ZodString;
|
|
165
|
+
}, z$1.core.$strip>;
|
|
166
|
+
declare const safariSlot: z$1.ZodObject<{
|
|
167
|
+
id: z$1.ZodString;
|
|
168
|
+
name: z$1.ZodString;
|
|
169
|
+
startTime: z$1.ZodNumber;
|
|
170
|
+
endTime: z$1.ZodNumber;
|
|
171
|
+
}, z$1.core.$strip>;
|
|
172
|
+
declare const location: z$1.ZodObject<{
|
|
173
|
+
id: z$1.ZodString;
|
|
174
|
+
name: z$1.ZodString;
|
|
175
|
+
area: z$1.ZodString;
|
|
176
|
+
address: z$1.ZodString;
|
|
177
|
+
startLat: z$1.ZodFloat32;
|
|
178
|
+
startLng: z$1.ZodFloat32;
|
|
179
|
+
endLat: z$1.ZodFloat32;
|
|
180
|
+
endLng: z$1.ZodFloat32;
|
|
181
|
+
}, z$1.core.$strip>;
|
|
182
|
+
declare const pickupPoint: z$1.ZodObject<{
|
|
183
|
+
id: z$1.ZodString;
|
|
184
|
+
label: z$1.ZodString;
|
|
185
|
+
type: z$1.ZodString;
|
|
186
|
+
distanceKm: z$1.ZodFloat32;
|
|
187
|
+
}, z$1.core.$strip>;
|
|
188
|
+
declare const safariDetails: z$1.ZodObject<{
|
|
189
|
+
id: z$1.ZodString;
|
|
190
|
+
safariCode: z$1.ZodString;
|
|
191
|
+
vehilces: z$1.ZodArray<z$1.ZodObject<{
|
|
192
|
+
name: z$1.ZodString;
|
|
193
|
+
rcNumber: z$1.ZodString;
|
|
194
|
+
capacity: z$1.ZodNumber;
|
|
195
|
+
operationalSince: z$1.ZodString;
|
|
196
|
+
}, z$1.core.$strip>>;
|
|
197
|
+
slots: z$1.ZodArray<z$1.ZodObject<{
|
|
198
|
+
id: z$1.ZodString;
|
|
199
|
+
name: z$1.ZodString;
|
|
200
|
+
startTime: z$1.ZodNumber;
|
|
201
|
+
endTime: z$1.ZodNumber;
|
|
202
|
+
}, z$1.core.$strip>>;
|
|
203
|
+
rate: z$1.ZodNumber;
|
|
204
|
+
discount: z$1.ZodNumber;
|
|
205
|
+
operationalDays: z$1.ZodArray<z$1.ZodNumber>;
|
|
206
|
+
location: z$1.ZodObject<{
|
|
207
|
+
id: z$1.ZodString;
|
|
208
|
+
name: z$1.ZodString;
|
|
209
|
+
area: z$1.ZodString;
|
|
210
|
+
address: z$1.ZodString;
|
|
211
|
+
startLat: z$1.ZodFloat32;
|
|
212
|
+
startLng: z$1.ZodFloat32;
|
|
213
|
+
endLat: z$1.ZodFloat32;
|
|
214
|
+
endLng: z$1.ZodFloat32;
|
|
215
|
+
}, z$1.core.$strip>;
|
|
216
|
+
pickupLocation: z$1.ZodString;
|
|
217
|
+
safariLocation: z$1.ZodString;
|
|
218
|
+
pickupPoints: z$1.ZodArray<z$1.ZodObject<{
|
|
219
|
+
id: z$1.ZodString;
|
|
220
|
+
label: z$1.ZodString;
|
|
221
|
+
type: z$1.ZodString;
|
|
222
|
+
distanceKm: z$1.ZodFloat32;
|
|
223
|
+
}, z$1.core.$strip>>;
|
|
224
|
+
safariType: z$1.ZodArray<z$1.ZodString>;
|
|
225
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
226
|
+
}, z$1.core.$strip>;
|
|
227
|
+
type SafariDetails = z$1.infer<typeof safariDetails>;
|
|
161
228
|
type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
162
229
|
|
|
230
|
+
type safari_SafariDetails = SafariDetails;
|
|
163
231
|
type safari_SafariSearch = SafariSearch;
|
|
232
|
+
declare const safari_location: typeof location;
|
|
233
|
+
declare const safari_pickupPoint: typeof pickupPoint;
|
|
234
|
+
declare const safari_safariDetails: typeof safariDetails;
|
|
164
235
|
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
236
|
+
declare const safari_safariSlot: typeof safariSlot;
|
|
237
|
+
declare const safari_safariVehicle: typeof safariVehicle;
|
|
165
238
|
declare namespace safari {
|
|
166
|
-
export { type safari_SafariSearch as SafariSearch, safari_safariSearchSchema as safariSearchSchema };
|
|
239
|
+
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 };
|
|
167
240
|
}
|
|
168
241
|
|
|
169
|
-
export { auth as Auth, location$
|
|
242
|
+
export { auth as Auth, location$2 as Location, resetPassword as ResetPassword, safari as Safari, signup as Signup, user as User };
|
package/dist/index.js
CHANGED
|
@@ -135,7 +135,12 @@ var location = z5.object({
|
|
|
135
135
|
// src/safari.ts
|
|
136
136
|
var safari_exports = {};
|
|
137
137
|
__export(safari_exports, {
|
|
138
|
-
|
|
138
|
+
location: () => location2,
|
|
139
|
+
pickupPoint: () => pickupPoint,
|
|
140
|
+
safariDetails: () => safariDetails,
|
|
141
|
+
safariSearchSchema: () => safariSearchSchema,
|
|
142
|
+
safariSlot: () => safariSlot,
|
|
143
|
+
safariVehicle: () => safariVehicle
|
|
139
144
|
});
|
|
140
145
|
import z6 from "zod";
|
|
141
146
|
var safariSearchSchema = z6.object({
|
|
@@ -148,6 +153,49 @@ var safariSearchSchema = z6.object({
|
|
|
148
153
|
priceMin: z6.coerce.number().min(0).default(0),
|
|
149
154
|
priceMax: z6.coerce.number().min(0).default(0)
|
|
150
155
|
});
|
|
156
|
+
var safariVehicle = z6.object({
|
|
157
|
+
name: z6.string(),
|
|
158
|
+
rcNumber: z6.string(),
|
|
159
|
+
capacity: z6.number().int().positive(),
|
|
160
|
+
operationalSince: z6.string()
|
|
161
|
+
});
|
|
162
|
+
var safariSlot = z6.object({
|
|
163
|
+
id: z6.string(),
|
|
164
|
+
name: z6.string(),
|
|
165
|
+
startTime: z6.number(),
|
|
166
|
+
endTime: z6.number()
|
|
167
|
+
});
|
|
168
|
+
var location2 = z6.object({
|
|
169
|
+
id: z6.string(),
|
|
170
|
+
name: z6.string(),
|
|
171
|
+
area: z6.string(),
|
|
172
|
+
address: z6.string(),
|
|
173
|
+
startLat: z6.float32(),
|
|
174
|
+
startLng: z6.float32(),
|
|
175
|
+
endLat: z6.float32(),
|
|
176
|
+
endLng: z6.float32()
|
|
177
|
+
});
|
|
178
|
+
var pickupPoint = z6.object({
|
|
179
|
+
id: z6.string(),
|
|
180
|
+
label: z6.string(),
|
|
181
|
+
type: z6.string(),
|
|
182
|
+
distanceKm: z6.float32()
|
|
183
|
+
});
|
|
184
|
+
var safariDetails = z6.object({
|
|
185
|
+
id: z6.string(),
|
|
186
|
+
safariCode: z6.string(),
|
|
187
|
+
vehilces: z6.array(safariVehicle),
|
|
188
|
+
slots: z6.array(safariSlot),
|
|
189
|
+
rate: z6.number(),
|
|
190
|
+
discount: z6.number(),
|
|
191
|
+
operationalDays: z6.array(z6.number().int().min(0).max(6)),
|
|
192
|
+
location: location2,
|
|
193
|
+
pickupLocation: z6.string(),
|
|
194
|
+
safariLocation: z6.string(),
|
|
195
|
+
pickupPoints: z6.array(pickupPoint),
|
|
196
|
+
safariType: z6.array(z6.string()),
|
|
197
|
+
description: z6.string().optional()
|
|
198
|
+
});
|
|
151
199
|
export {
|
|
152
200
|
auth_exports as Auth,
|
|
153
201
|
location_exports as Location,
|