@tripsam/onboarding 1.0.3 → 1.0.4

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
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ BasicDetails: () => basic_details_exports,
23
24
  VerifyEmail: () => verify_email_exports
24
25
  });
25
26
  module.exports = __toCommonJS(index_exports);
@@ -42,7 +43,20 @@ var verifyOtp = import_zod.z.object({
42
43
  var verifyOtpResponse = import_zod.z.object({
43
44
  id: import_zod.z.string()
44
45
  });
46
+
47
+ // src/basic-details.ts
48
+ var basic_details_exports = {};
49
+ __export(basic_details_exports, {
50
+ basicDetails: () => basicDetails
51
+ });
52
+ var import_zod2 = require("zod");
53
+ var basicDetails = import_zod2.z.object({
54
+ name: import_zod2.z.string().nonempty("required").trim(),
55
+ countryCode: import_zod2.z.string().optional().default("+91"),
56
+ phoneNumber: import_zod2.z.string().nonempty("required")
57
+ });
45
58
  // Annotate the CommonJS export names for ESM import in node:
46
59
  0 && (module.exports = {
60
+ BasicDetails,
47
61
  VerifyEmail
48
62
  });
package/dist/index.d.cts CHANGED
@@ -24,4 +24,17 @@ 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
- export { verifyEmail as VerifyEmail };
27
+ declare const basicDetails: z.ZodObject<{
28
+ name: z.ZodString;
29
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30
+ phoneNumber: z.ZodString;
31
+ }, z.core.$strip>;
32
+ type SafeBasicDetails = z.output<typeof basicDetails>;
33
+
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 };
38
+ }
39
+
40
+ export { basicDetails$1 as BasicDetails, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -24,4 +24,17 @@ 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
- export { verifyEmail as VerifyEmail };
27
+ declare const basicDetails: z.ZodObject<{
28
+ name: z.ZodString;
29
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30
+ phoneNumber: z.ZodString;
31
+ }, z.core.$strip>;
32
+ type SafeBasicDetails = z.output<typeof basicDetails>;
33
+
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 };
38
+ }
39
+
40
+ export { basicDetails$1 as BasicDetails, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -22,6 +22,19 @@ var verifyOtp = z.object({
22
22
  var verifyOtpResponse = z.object({
23
23
  id: z.string()
24
24
  });
25
+
26
+ // src/basic-details.ts
27
+ var basic_details_exports = {};
28
+ __export(basic_details_exports, {
29
+ basicDetails: () => basicDetails
30
+ });
31
+ import { z as z2 } from "zod";
32
+ var basicDetails = z2.object({
33
+ name: z2.string().nonempty("required").trim(),
34
+ countryCode: z2.string().optional().default("+91"),
35
+ phoneNumber: z2.string().nonempty("required")
36
+ });
25
37
  export {
38
+ basic_details_exports as BasicDetails,
26
39
  verify_email_exports as VerifyEmail
27
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",