@tripsam/onboarding 1.0.5 → 1.0.7

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
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  BasicDetails: () => basic_details_exports,
24
+ Location: () => location_exports,
24
25
  VerifyEmail: () => verify_email_exports
25
26
  });
26
27
  module.exports = __toCommonJS(index_exports);
@@ -64,8 +65,44 @@ var update = import_zod2.z.object({
64
65
  countryCode: import_zod2.z.string().optional().default("+91"),
65
66
  phoneNumber: import_zod2.z.string().nonempty("required")
66
67
  });
68
+
69
+ // src/location.ts
70
+ var location_exports = {};
71
+ __export(location_exports, {
72
+ minimum: () => minimum,
73
+ suggest: () => suggest
74
+ });
75
+ var import_zod3 = require("zod");
76
+ var suggest = import_zod3.z.object({
77
+ q: import_zod3.z.string().trim().optional().default(""),
78
+ lat: import_zod3.z.coerce.number().optional(),
79
+ lng: import_zod3.z.coerce.number().optional(),
80
+ limit: import_zod3.z.coerce.number().int().min(1).max(50).default(20)
81
+ });
82
+ var minimum = import_zod3.z.object({
83
+ id: import_zod3.z.string(),
84
+ name: import_zod3.z.string(),
85
+ area: import_zod3.z.string(),
86
+ startLat: import_zod3.z.coerce.number(),
87
+ startLng: import_zod3.z.coerce.number(),
88
+ endLat: import_zod3.z.coerce.number(),
89
+ endLng: import_zod3.z.coerce.number(),
90
+ address: import_zod3.z.object({
91
+ city: import_zod3.z.string(),
92
+ state: import_zod3.z.string()
93
+ }),
94
+ metadata: import_zod3.z.object(),
95
+ landmarks: import_zod3.z.array(import_zod3.z.object({
96
+ id: import_zod3.z.string(),
97
+ label: import_zod3.z.string(),
98
+ location: import_zod3.z.string(),
99
+ type: import_zod3.z.string().optional().default(""),
100
+ distanceKm: import_zod3.z.coerce.number()
101
+ }))
102
+ });
67
103
  // Annotate the CommonJS export names for ESM import in node:
68
104
  0 && (module.exports = {
69
105
  BasicDetails,
106
+ Location,
70
107
  VerifyEmail
71
108
  });
package/dist/index.d.cts CHANGED
@@ -48,4 +48,42 @@ declare namespace basicDetails {
48
48
  export { type basicDetails_SafeMe as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, basicDetails_me as me, basicDetails_update as update };
49
49
  }
50
50
 
51
- export { basicDetails as BasicDetails, verifyEmail as VerifyEmail };
51
+ declare const suggest: z.ZodObject<{
52
+ q: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
+ lat: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
54
+ lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
55
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
56
+ }, z.core.$strip>;
57
+ declare const minimum: z.ZodObject<{
58
+ id: z.ZodString;
59
+ name: z.ZodString;
60
+ area: z.ZodString;
61
+ startLat: z.ZodCoercedNumber<unknown>;
62
+ startLng: z.ZodCoercedNumber<unknown>;
63
+ endLat: z.ZodCoercedNumber<unknown>;
64
+ endLng: z.ZodCoercedNumber<unknown>;
65
+ address: z.ZodObject<{
66
+ city: z.ZodString;
67
+ state: z.ZodString;
68
+ }, z.core.$strip>;
69
+ metadata: z.ZodObject<{}, z.core.$strip>;
70
+ landmarks: z.ZodArray<z.ZodObject<{
71
+ id: z.ZodString;
72
+ label: z.ZodString;
73
+ location: z.ZodString;
74
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
75
+ distanceKm: z.ZodCoercedNumber<unknown>;
76
+ }, z.core.$strip>>;
77
+ }, z.core.$strip>;
78
+ type SafeMinimum = z.output<typeof minimum>;
79
+ type SafeSuggest = z.output<typeof suggest>;
80
+
81
+ type location_SafeMinimum = SafeMinimum;
82
+ type location_SafeSuggest = SafeSuggest;
83
+ declare const location_minimum: typeof minimum;
84
+ declare const location_suggest: typeof suggest;
85
+ declare namespace location {
86
+ export { type location_SafeMinimum as SafeMinimum, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_suggest as suggest };
87
+ }
88
+
89
+ export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -48,4 +48,42 @@ declare namespace basicDetails {
48
48
  export { type basicDetails_SafeMe as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, basicDetails_me as me, basicDetails_update as update };
49
49
  }
50
50
 
51
- export { basicDetails as BasicDetails, verifyEmail as VerifyEmail };
51
+ declare const suggest: z.ZodObject<{
52
+ q: z.ZodDefault<z.ZodOptional<z.ZodString>>;
53
+ lat: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
54
+ lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
55
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
56
+ }, z.core.$strip>;
57
+ declare const minimum: z.ZodObject<{
58
+ id: z.ZodString;
59
+ name: z.ZodString;
60
+ area: z.ZodString;
61
+ startLat: z.ZodCoercedNumber<unknown>;
62
+ startLng: z.ZodCoercedNumber<unknown>;
63
+ endLat: z.ZodCoercedNumber<unknown>;
64
+ endLng: z.ZodCoercedNumber<unknown>;
65
+ address: z.ZodObject<{
66
+ city: z.ZodString;
67
+ state: z.ZodString;
68
+ }, z.core.$strip>;
69
+ metadata: z.ZodObject<{}, z.core.$strip>;
70
+ landmarks: z.ZodArray<z.ZodObject<{
71
+ id: z.ZodString;
72
+ label: z.ZodString;
73
+ location: z.ZodString;
74
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
75
+ distanceKm: z.ZodCoercedNumber<unknown>;
76
+ }, z.core.$strip>>;
77
+ }, z.core.$strip>;
78
+ type SafeMinimum = z.output<typeof minimum>;
79
+ type SafeSuggest = z.output<typeof suggest>;
80
+
81
+ type location_SafeMinimum = SafeMinimum;
82
+ type location_SafeSuggest = SafeSuggest;
83
+ declare const location_minimum: typeof minimum;
84
+ declare const location_suggest: typeof suggest;
85
+ declare namespace location {
86
+ export { type location_SafeMinimum as SafeMinimum, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_suggest as suggest };
87
+ }
88
+
89
+ export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -43,7 +43,43 @@ var update = z2.object({
43
43
  countryCode: z2.string().optional().default("+91"),
44
44
  phoneNumber: z2.string().nonempty("required")
45
45
  });
46
+
47
+ // src/location.ts
48
+ var location_exports = {};
49
+ __export(location_exports, {
50
+ minimum: () => minimum,
51
+ suggest: () => suggest
52
+ });
53
+ import { z as z3 } from "zod";
54
+ var suggest = z3.object({
55
+ q: z3.string().trim().optional().default(""),
56
+ lat: z3.coerce.number().optional(),
57
+ lng: z3.coerce.number().optional(),
58
+ limit: z3.coerce.number().int().min(1).max(50).default(20)
59
+ });
60
+ var minimum = z3.object({
61
+ id: z3.string(),
62
+ name: z3.string(),
63
+ area: z3.string(),
64
+ startLat: z3.coerce.number(),
65
+ startLng: z3.coerce.number(),
66
+ endLat: z3.coerce.number(),
67
+ endLng: z3.coerce.number(),
68
+ address: z3.object({
69
+ city: z3.string(),
70
+ state: z3.string()
71
+ }),
72
+ metadata: z3.object(),
73
+ landmarks: z3.array(z3.object({
74
+ id: z3.string(),
75
+ label: z3.string(),
76
+ location: z3.string(),
77
+ type: z3.string().optional().default(""),
78
+ distanceKm: z3.coerce.number()
79
+ }))
80
+ });
46
81
  export {
47
82
  basic_details_exports as BasicDetails,
83
+ location_exports as Location,
48
84
  verify_email_exports as VerifyEmail
49
85
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",