@tripsam/main 2.0.10 → 2.0.11

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
@@ -178,6 +178,8 @@ __export(safari_exports, {
178
178
  safariVehicle: () => safariVehicle
179
179
  });
180
180
  var import_zod6 = __toESM(require("zod"), 1);
181
+ var decimalLike = import_zod6.default.custom();
182
+ var decimalish = import_zod6.default.union([import_zod6.default.number(), import_zod6.default.string(), decimalLike]);
181
183
  var safariSearchSchema = import_zod6.default.object({
182
184
  locationId: import_zod6.default.string().optional(),
183
185
  adults: import_zod6.default.coerce.number().min(1).default(2),
@@ -205,24 +207,24 @@ var location2 = import_zod6.default.object({
205
207
  name: import_zod6.default.string(),
206
208
  area: import_zod6.default.string(),
207
209
  address: import_zod6.default.string(),
208
- startLat: import_zod6.default.coerce.number(),
209
- startLng: import_zod6.default.coerce.number(),
210
- endLat: import_zod6.default.coerce.number(),
211
- endLng: import_zod6.default.coerce.number()
210
+ startLat: decimalish,
211
+ startLng: decimalish,
212
+ endLat: decimalish,
213
+ endLng: decimalish
212
214
  });
213
215
  var pickupPoint = import_zod6.default.object({
214
216
  id: import_zod6.default.string(),
215
217
  label: import_zod6.default.string(),
216
218
  type: import_zod6.default.string(),
217
- distanceKm: import_zod6.default.coerce.number()
219
+ distanceKm: decimalish
218
220
  });
219
221
  var safariDetails = import_zod6.default.object({
220
222
  id: import_zod6.default.string(),
221
223
  safariCode: import_zod6.default.string(),
222
224
  vehilces: import_zod6.default.array(safariVehicle),
223
225
  slots: import_zod6.default.array(safariSlot),
224
- rate: import_zod6.default.number(),
225
- discount: import_zod6.default.coerce.number(),
226
+ rate: decimalish,
227
+ discount: decimalish,
226
228
  operationalDays: import_zod6.default.array(import_zod6.default.number().int().min(0).max(6)),
227
229
  location: location2,
228
230
  pickupLocation: import_zod6.default.string(),
package/dist/index.d.cts CHANGED
@@ -174,16 +174,36 @@ declare const location: z$1.ZodObject<{
174
174
  name: z$1.ZodString;
175
175
  area: z$1.ZodString;
176
176
  address: z$1.ZodString;
177
- startLat: z$1.ZodCoercedNumber<unknown>;
178
- startLng: z$1.ZodCoercedNumber<unknown>;
179
- endLat: z$1.ZodCoercedNumber<unknown>;
180
- endLng: z$1.ZodCoercedNumber<unknown>;
177
+ startLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
178
+ toString(): string;
179
+ }, {
180
+ toString(): string;
181
+ }>]>;
182
+ startLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
183
+ toString(): string;
184
+ }, {
185
+ toString(): string;
186
+ }>]>;
187
+ endLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
188
+ toString(): string;
189
+ }, {
190
+ toString(): string;
191
+ }>]>;
192
+ endLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
193
+ toString(): string;
194
+ }, {
195
+ toString(): string;
196
+ }>]>;
181
197
  }, z$1.core.$strip>;
182
198
  declare const pickupPoint: z$1.ZodObject<{
183
199
  id: z$1.ZodString;
184
200
  label: z$1.ZodString;
185
201
  type: z$1.ZodString;
186
- distanceKm: z$1.ZodCoercedNumber<unknown>;
202
+ distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
203
+ toString(): string;
204
+ }, {
205
+ toString(): string;
206
+ }>]>;
187
207
  }, z$1.core.$strip>;
188
208
  declare const safariDetails: z$1.ZodObject<{
189
209
  id: z$1.ZodString;
@@ -200,18 +220,42 @@ declare const safariDetails: z$1.ZodObject<{
200
220
  startTime: z$1.ZodNumber;
201
221
  endTime: z$1.ZodNumber;
202
222
  }, z$1.core.$strip>>;
203
- rate: z$1.ZodNumber;
204
- discount: z$1.ZodCoercedNumber<unknown>;
223
+ rate: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
224
+ toString(): string;
225
+ }, {
226
+ toString(): string;
227
+ }>]>;
228
+ discount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
229
+ toString(): string;
230
+ }, {
231
+ toString(): string;
232
+ }>]>;
205
233
  operationalDays: z$1.ZodArray<z$1.ZodNumber>;
206
234
  location: z$1.ZodObject<{
207
235
  id: z$1.ZodString;
208
236
  name: z$1.ZodString;
209
237
  area: z$1.ZodString;
210
238
  address: z$1.ZodString;
211
- startLat: z$1.ZodCoercedNumber<unknown>;
212
- startLng: z$1.ZodCoercedNumber<unknown>;
213
- endLat: z$1.ZodCoercedNumber<unknown>;
214
- endLng: z$1.ZodCoercedNumber<unknown>;
239
+ startLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
240
+ toString(): string;
241
+ }, {
242
+ toString(): string;
243
+ }>]>;
244
+ startLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
245
+ toString(): string;
246
+ }, {
247
+ toString(): string;
248
+ }>]>;
249
+ endLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
250
+ toString(): string;
251
+ }, {
252
+ toString(): string;
253
+ }>]>;
254
+ endLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
255
+ toString(): string;
256
+ }, {
257
+ toString(): string;
258
+ }>]>;
215
259
  }, z$1.core.$strip>;
216
260
  pickupLocation: z$1.ZodString;
217
261
  safariLocation: z$1.ZodString;
@@ -219,7 +263,11 @@ declare const safariDetails: z$1.ZodObject<{
219
263
  id: z$1.ZodString;
220
264
  label: z$1.ZodString;
221
265
  type: z$1.ZodString;
222
- distanceKm: z$1.ZodCoercedNumber<unknown>;
266
+ distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
267
+ toString(): string;
268
+ }, {
269
+ toString(): string;
270
+ }>]>;
223
271
  }, z$1.core.$strip>>;
224
272
  safariType: z$1.ZodArray<z$1.ZodString>;
225
273
  description: z$1.ZodOptional<z$1.ZodString>;
package/dist/index.d.ts CHANGED
@@ -174,16 +174,36 @@ declare const location: z$1.ZodObject<{
174
174
  name: z$1.ZodString;
175
175
  area: z$1.ZodString;
176
176
  address: z$1.ZodString;
177
- startLat: z$1.ZodCoercedNumber<unknown>;
178
- startLng: z$1.ZodCoercedNumber<unknown>;
179
- endLat: z$1.ZodCoercedNumber<unknown>;
180
- endLng: z$1.ZodCoercedNumber<unknown>;
177
+ startLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
178
+ toString(): string;
179
+ }, {
180
+ toString(): string;
181
+ }>]>;
182
+ startLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
183
+ toString(): string;
184
+ }, {
185
+ toString(): string;
186
+ }>]>;
187
+ endLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
188
+ toString(): string;
189
+ }, {
190
+ toString(): string;
191
+ }>]>;
192
+ endLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
193
+ toString(): string;
194
+ }, {
195
+ toString(): string;
196
+ }>]>;
181
197
  }, z$1.core.$strip>;
182
198
  declare const pickupPoint: z$1.ZodObject<{
183
199
  id: z$1.ZodString;
184
200
  label: z$1.ZodString;
185
201
  type: z$1.ZodString;
186
- distanceKm: z$1.ZodCoercedNumber<unknown>;
202
+ distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
203
+ toString(): string;
204
+ }, {
205
+ toString(): string;
206
+ }>]>;
187
207
  }, z$1.core.$strip>;
188
208
  declare const safariDetails: z$1.ZodObject<{
189
209
  id: z$1.ZodString;
@@ -200,18 +220,42 @@ declare const safariDetails: z$1.ZodObject<{
200
220
  startTime: z$1.ZodNumber;
201
221
  endTime: z$1.ZodNumber;
202
222
  }, z$1.core.$strip>>;
203
- rate: z$1.ZodNumber;
204
- discount: z$1.ZodCoercedNumber<unknown>;
223
+ rate: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
224
+ toString(): string;
225
+ }, {
226
+ toString(): string;
227
+ }>]>;
228
+ discount: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
229
+ toString(): string;
230
+ }, {
231
+ toString(): string;
232
+ }>]>;
205
233
  operationalDays: z$1.ZodArray<z$1.ZodNumber>;
206
234
  location: z$1.ZodObject<{
207
235
  id: z$1.ZodString;
208
236
  name: z$1.ZodString;
209
237
  area: z$1.ZodString;
210
238
  address: z$1.ZodString;
211
- startLat: z$1.ZodCoercedNumber<unknown>;
212
- startLng: z$1.ZodCoercedNumber<unknown>;
213
- endLat: z$1.ZodCoercedNumber<unknown>;
214
- endLng: z$1.ZodCoercedNumber<unknown>;
239
+ startLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
240
+ toString(): string;
241
+ }, {
242
+ toString(): string;
243
+ }>]>;
244
+ startLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
245
+ toString(): string;
246
+ }, {
247
+ toString(): string;
248
+ }>]>;
249
+ endLat: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
250
+ toString(): string;
251
+ }, {
252
+ toString(): string;
253
+ }>]>;
254
+ endLng: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
255
+ toString(): string;
256
+ }, {
257
+ toString(): string;
258
+ }>]>;
215
259
  }, z$1.core.$strip>;
216
260
  pickupLocation: z$1.ZodString;
217
261
  safariLocation: z$1.ZodString;
@@ -219,7 +263,11 @@ declare const safariDetails: z$1.ZodObject<{
219
263
  id: z$1.ZodString;
220
264
  label: z$1.ZodString;
221
265
  type: z$1.ZodString;
222
- distanceKm: z$1.ZodCoercedNumber<unknown>;
266
+ distanceKm: z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString, z$1.ZodCustom<{
267
+ toString(): string;
268
+ }, {
269
+ toString(): string;
270
+ }>]>;
223
271
  }, z$1.core.$strip>>;
224
272
  safariType: z$1.ZodArray<z$1.ZodString>;
225
273
  description: z$1.ZodOptional<z$1.ZodString>;
package/dist/index.js CHANGED
@@ -143,6 +143,8 @@ __export(safari_exports, {
143
143
  safariVehicle: () => safariVehicle
144
144
  });
145
145
  import z6 from "zod";
146
+ var decimalLike = z6.custom();
147
+ var decimalish = z6.union([z6.number(), z6.string(), decimalLike]);
146
148
  var safariSearchSchema = z6.object({
147
149
  locationId: z6.string().optional(),
148
150
  adults: z6.coerce.number().min(1).default(2),
@@ -170,24 +172,24 @@ var location2 = z6.object({
170
172
  name: z6.string(),
171
173
  area: z6.string(),
172
174
  address: z6.string(),
173
- startLat: z6.coerce.number(),
174
- startLng: z6.coerce.number(),
175
- endLat: z6.coerce.number(),
176
- endLng: z6.coerce.number()
175
+ startLat: decimalish,
176
+ startLng: decimalish,
177
+ endLat: decimalish,
178
+ endLng: decimalish
177
179
  });
178
180
  var pickupPoint = z6.object({
179
181
  id: z6.string(),
180
182
  label: z6.string(),
181
183
  type: z6.string(),
182
- distanceKm: z6.coerce.number()
184
+ distanceKm: decimalish
183
185
  });
184
186
  var safariDetails = z6.object({
185
187
  id: z6.string(),
186
188
  safariCode: z6.string(),
187
189
  vehilces: z6.array(safariVehicle),
188
190
  slots: z6.array(safariSlot),
189
- rate: z6.number(),
190
- discount: z6.coerce.number(),
191
+ rate: decimalish,
192
+ discount: decimalish,
191
193
  operationalDays: z6.array(z6.number().int().min(0).max(6)),
192
194
  location: location2,
193
195
  pickupLocation: z6.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/main",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",