@tripsam/onboarding 1.0.3 → 1.0.5

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,29 @@ 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
+ me: () => me,
51
+ update: () => update
52
+ });
53
+ var import_zod2 = require("zod");
54
+ var me = import_zod2.z.object({
55
+ id: import_zod2.z.string(),
56
+ email: import_zod2.z.string(),
57
+ name: import_zod2.z.string().trim().optional().default(""),
58
+ countryCode: import_zod2.z.string().optional().default("+91"),
59
+ phoneNumber: import_zod2.z.string().optional().default(""),
60
+ isPhoneVerified: import_zod2.z.boolean().optional().default(false)
61
+ });
62
+ var update = import_zod2.z.object({
63
+ name: import_zod2.z.string().nonempty("required").trim(),
64
+ countryCode: import_zod2.z.string().optional().default("+91"),
65
+ phoneNumber: import_zod2.z.string().nonempty("required")
66
+ });
45
67
  // Annotate the CommonJS export names for ESM import in node:
46
68
  0 && (module.exports = {
69
+ BasicDetails,
47
70
  VerifyEmail
48
71
  });
package/dist/index.d.cts CHANGED
@@ -24,4 +24,28 @@ 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 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<{
36
+ name: z.ZodString;
37
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
38
+ phoneNumber: z.ZodString;
39
+ }, z.core.$strip>;
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
+ export { basicDetails as BasicDetails, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -24,4 +24,28 @@ 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 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<{
36
+ name: z.ZodString;
37
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
38
+ phoneNumber: z.ZodString;
39
+ }, z.core.$strip>;
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
+ export { basicDetails as BasicDetails, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -22,6 +22,28 @@ 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
+ me: () => me,
30
+ update: () => update
31
+ });
32
+ import { z as z2 } from "zod";
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({
42
+ name: z2.string().nonempty("required").trim(),
43
+ countryCode: z2.string().optional().default("+91"),
44
+ phoneNumber: z2.string().nonempty("required")
45
+ });
25
46
  export {
47
+ basic_details_exports as BasicDetails,
26
48
  verify_email_exports as VerifyEmail
27
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",