@tripsam/main 2.0.6 → 2.0.8

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 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
- safariSearchSchema: () => safariSearchSchema
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({
@@ -178,7 +183,53 @@ var safariSearchSchema = import_zod6.default.object({
178
183
  adults: import_zod6.default.coerce.number().min(1).default(2),
179
184
  kids: import_zod6.default.coerce.number().min(0).default(1),
180
185
  infants: import_zod6.default.coerce.number().min(0).default(0),
181
- date: import_zod6.default.string().optional().default("")
186
+ date: import_zod6.default.string().optional().default(""),
187
+ safariTypes: import_zod6.default.string().optional().default(""),
188
+ priceMin: import_zod6.default.coerce.number().min(0).default(0),
189
+ priceMax: import_zod6.default.coerce.number().min(0).default(0)
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.number(),
209
+ startLng: import_zod6.default.number(),
210
+ endLat: import_zod6.default.number(),
211
+ endLng: import_zod6.default.number()
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.number()
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()
182
233
  });
183
234
  // Annotate the CommonJS export names for ESM import in node:
184
235
  0 && (module.exports = {
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$1_SafeLocation = SafeLocation;
144
- type location$1_SafeSuggest = SafeSuggest;
145
- declare const location$1_location: typeof location;
146
- declare const location$1_suggest: typeof suggest;
147
- declare namespace location$1 {
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<{
@@ -154,13 +153,90 @@ declare const safariSearchSchema: z$1.ZodObject<{
154
153
  kids: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
155
154
  infants: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
156
155
  date: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
156
+ safariTypes: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
157
+ priceMin: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
158
+ priceMax: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
157
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.ZodNumber;
178
+ startLng: z$1.ZodNumber;
179
+ endLat: z$1.ZodNumber;
180
+ endLng: z$1.ZodNumber;
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.ZodNumber;
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.ZodNumber;
212
+ startLng: z$1.ZodNumber;
213
+ endLat: z$1.ZodNumber;
214
+ endLng: z$1.ZodNumber;
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.ZodNumber;
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>;
158
228
  type SafariSearch = z$1.infer<typeof safariSearchSchema>;
159
229
 
230
+ type safari_SafariDetails = SafariDetails;
160
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;
161
235
  declare const safari_safariSearchSchema: typeof safariSearchSchema;
236
+ declare const safari_safariSlot: typeof safariSlot;
237
+ declare const safari_safariVehicle: typeof safariVehicle;
162
238
  declare namespace safari {
163
- 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 };
164
240
  }
165
241
 
166
- export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, safari as Safari, signup as Signup, user as User };
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$1_SafeLocation = SafeLocation;
144
- type location$1_SafeSuggest = SafeSuggest;
145
- declare const location$1_location: typeof location;
146
- declare const location$1_suggest: typeof suggest;
147
- declare namespace location$1 {
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<{
@@ -154,13 +153,90 @@ declare const safariSearchSchema: z$1.ZodObject<{
154
153
  kids: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
155
154
  infants: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
156
155
  date: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
156
+ safariTypes: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
157
+ priceMin: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
158
+ priceMax: z$1.ZodDefault<z$1.ZodCoercedNumber<unknown>>;
157
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.ZodNumber;
178
+ startLng: z$1.ZodNumber;
179
+ endLat: z$1.ZodNumber;
180
+ endLng: z$1.ZodNumber;
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.ZodNumber;
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.ZodNumber;
212
+ startLng: z$1.ZodNumber;
213
+ endLat: z$1.ZodNumber;
214
+ endLng: z$1.ZodNumber;
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.ZodNumber;
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>;
158
228
  type SafariSearch = z$1.infer<typeof safariSearchSchema>;
159
229
 
230
+ type safari_SafariDetails = SafariDetails;
160
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;
161
235
  declare const safari_safariSearchSchema: typeof safariSearchSchema;
236
+ declare const safari_safariSlot: typeof safariSlot;
237
+ declare const safari_safariVehicle: typeof safariVehicle;
162
238
  declare namespace safari {
163
- 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 };
164
240
  }
165
241
 
166
- export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, safari as Safari, signup as Signup, user as User };
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
- safariSearchSchema: () => safariSearchSchema
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({
@@ -143,7 +148,53 @@ var safariSearchSchema = z6.object({
143
148
  adults: z6.coerce.number().min(1).default(2),
144
149
  kids: z6.coerce.number().min(0).default(1),
145
150
  infants: z6.coerce.number().min(0).default(0),
146
- date: z6.string().optional().default("")
151
+ date: z6.string().optional().default(""),
152
+ safariTypes: z6.string().optional().default(""),
153
+ priceMin: z6.coerce.number().min(0).default(0),
154
+ priceMax: z6.coerce.number().min(0).default(0)
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.number(),
174
+ startLng: z6.number(),
175
+ endLat: z6.number(),
176
+ endLng: z6.number()
177
+ });
178
+ var pickupPoint = z6.object({
179
+ id: z6.string(),
180
+ label: z6.string(),
181
+ type: z6.string(),
182
+ distanceKm: z6.number()
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()
147
198
  });
148
199
  export {
149
200
  auth_exports as Auth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/main",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",