@tripsam/onboarding 1.0.4 → 1.0.6

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);
@@ -47,16 +48,60 @@ var verifyOtpResponse = import_zod.z.object({
47
48
  // src/basic-details.ts
48
49
  var basic_details_exports = {};
49
50
  __export(basic_details_exports, {
50
- basicDetails: () => basicDetails
51
+ me: () => me,
52
+ update: () => update
51
53
  });
52
54
  var import_zod2 = require("zod");
53
- var basicDetails = import_zod2.z.object({
55
+ var me = import_zod2.z.object({
56
+ id: import_zod2.z.string(),
57
+ email: import_zod2.z.string(),
58
+ name: import_zod2.z.string().trim().optional().default(""),
59
+ countryCode: import_zod2.z.string().optional().default("+91"),
60
+ phoneNumber: import_zod2.z.string().optional().default(""),
61
+ isPhoneVerified: import_zod2.z.boolean().optional().default(false)
62
+ });
63
+ var update = import_zod2.z.object({
54
64
  name: import_zod2.z.string().nonempty("required").trim(),
55
65
  countryCode: import_zod2.z.string().optional().default("+91"),
56
66
  phoneNumber: import_zod2.z.string().nonempty("required")
57
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
+ name: import_zod3.z.string(),
98
+ kind: import_zod3.z.string(),
99
+ distanceInKm: import_zod3.z.coerce.number()
100
+ }))
101
+ });
58
102
  // Annotate the CommonJS export names for ESM import in node:
59
103
  0 && (module.exports = {
60
104
  BasicDetails,
105
+ Location,
61
106
  VerifyEmail
62
107
  });
package/dist/index.d.cts CHANGED
@@ -24,17 +24,65 @@ declare namespace verifyEmail {
24
24
  export { type verifyEmail_SafeSendOtp as SafeSendOtp, type verifyEmail_SafeVerifyOtp as SafeVerifyOtp, type verifyEmail_SafeVerifyOtpResponse as SafeVerifyOtpResponse, verifyEmail_sendOtp as sendOtp, verifyEmail_verifyOtp as verifyOtp, verifyEmail_verifyOtpResponse as verifyOtpResponse };
25
25
  }
26
26
 
27
- declare const basicDetails: z.ZodObject<{
27
+ declare const me: z.ZodObject<{
28
+ id: z.ZodString;
29
+ email: z.ZodString;
30
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
31
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
+ phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
33
+ isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
+ }, z.core.$strip>;
35
+ declare const update: z.ZodObject<{
28
36
  name: z.ZodString;
29
37
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30
38
  phoneNumber: z.ZodString;
31
39
  }, z.core.$strip>;
32
- type SafeBasicDetails = z.output<typeof basicDetails>;
40
+ type SafeMe = z.infer<typeof me>;
41
+ type SafeUpdate = z.output<typeof update>;
42
+
43
+ type basicDetails_SafeMe = SafeMe;
44
+ type basicDetails_SafeUpdate = SafeUpdate;
45
+ declare const basicDetails_me: typeof me;
46
+ declare const basicDetails_update: typeof update;
47
+ declare namespace basicDetails {
48
+ export { type basicDetails_SafeMe as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, basicDetails_me as me, basicDetails_update as update };
49
+ }
50
+
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
+ name: z.ZodString;
73
+ kind: z.ZodString;
74
+ distanceInKm: z.ZodCoercedNumber<unknown>;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>;
77
+ type SafeMinimum = z.output<typeof minimum>;
78
+ type SafeSuggest = z.output<typeof suggest>;
33
79
 
34
- type basicDetails$1_SafeBasicDetails = SafeBasicDetails;
35
- declare const basicDetails$1_basicDetails: typeof basicDetails;
36
- declare namespace basicDetails$1 {
37
- export { type basicDetails$1_SafeBasicDetails as SafeBasicDetails, basicDetails$1_basicDetails as basicDetails };
80
+ type location_SafeMinimum = SafeMinimum;
81
+ type location_SafeSuggest = SafeSuggest;
82
+ declare const location_minimum: typeof minimum;
83
+ declare const location_suggest: typeof suggest;
84
+ declare namespace location {
85
+ export { type location_SafeMinimum as SafeMinimum, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_suggest as suggest };
38
86
  }
39
87
 
40
- export { basicDetails$1 as BasicDetails, verifyEmail as VerifyEmail };
88
+ export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -24,17 +24,65 @@ declare namespace verifyEmail {
24
24
  export { type verifyEmail_SafeSendOtp as SafeSendOtp, type verifyEmail_SafeVerifyOtp as SafeVerifyOtp, type verifyEmail_SafeVerifyOtpResponse as SafeVerifyOtpResponse, verifyEmail_sendOtp as sendOtp, verifyEmail_verifyOtp as verifyOtp, verifyEmail_verifyOtpResponse as verifyOtpResponse };
25
25
  }
26
26
 
27
- declare const basicDetails: z.ZodObject<{
27
+ declare const me: z.ZodObject<{
28
+ id: z.ZodString;
29
+ email: z.ZodString;
30
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
31
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
+ phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
33
+ isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
+ }, z.core.$strip>;
35
+ declare const update: z.ZodObject<{
28
36
  name: z.ZodString;
29
37
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30
38
  phoneNumber: z.ZodString;
31
39
  }, z.core.$strip>;
32
- type SafeBasicDetails = z.output<typeof basicDetails>;
40
+ type SafeMe = z.infer<typeof me>;
41
+ type SafeUpdate = z.output<typeof update>;
42
+
43
+ type basicDetails_SafeMe = SafeMe;
44
+ type basicDetails_SafeUpdate = SafeUpdate;
45
+ declare const basicDetails_me: typeof me;
46
+ declare const basicDetails_update: typeof update;
47
+ declare namespace basicDetails {
48
+ export { type basicDetails_SafeMe as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, basicDetails_me as me, basicDetails_update as update };
49
+ }
50
+
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
+ name: z.ZodString;
73
+ kind: z.ZodString;
74
+ distanceInKm: z.ZodCoercedNumber<unknown>;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>;
77
+ type SafeMinimum = z.output<typeof minimum>;
78
+ type SafeSuggest = z.output<typeof suggest>;
33
79
 
34
- type basicDetails$1_SafeBasicDetails = SafeBasicDetails;
35
- declare const basicDetails$1_basicDetails: typeof basicDetails;
36
- declare namespace basicDetails$1 {
37
- export { type basicDetails$1_SafeBasicDetails as SafeBasicDetails, basicDetails$1_basicDetails as basicDetails };
80
+ type location_SafeMinimum = SafeMinimum;
81
+ type location_SafeSuggest = SafeSuggest;
82
+ declare const location_minimum: typeof minimum;
83
+ declare const location_suggest: typeof suggest;
84
+ declare namespace location {
85
+ export { type location_SafeMinimum as SafeMinimum, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_suggest as suggest };
38
86
  }
39
87
 
40
- export { basicDetails$1 as BasicDetails, verifyEmail as VerifyEmail };
88
+ export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -26,15 +26,59 @@ var verifyOtpResponse = z.object({
26
26
  // src/basic-details.ts
27
27
  var basic_details_exports = {};
28
28
  __export(basic_details_exports, {
29
- basicDetails: () => basicDetails
29
+ me: () => me,
30
+ update: () => update
30
31
  });
31
32
  import { z as z2 } from "zod";
32
- var basicDetails = z2.object({
33
+ var me = z2.object({
34
+ id: z2.string(),
35
+ email: z2.string(),
36
+ name: z2.string().trim().optional().default(""),
37
+ countryCode: z2.string().optional().default("+91"),
38
+ phoneNumber: z2.string().optional().default(""),
39
+ isPhoneVerified: z2.boolean().optional().default(false)
40
+ });
41
+ var update = z2.object({
33
42
  name: z2.string().nonempty("required").trim(),
34
43
  countryCode: z2.string().optional().default("+91"),
35
44
  phoneNumber: z2.string().nonempty("required")
36
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
+ name: z3.string(),
76
+ kind: z3.string(),
77
+ distanceInKm: z3.coerce.number()
78
+ }))
79
+ });
37
80
  export {
38
81
  basic_details_exports as BasicDetails,
82
+ location_exports as Location,
39
83
  verify_email_exports as VerifyEmail
40
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",