@tripsam/onboarding 1.0.4 → 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
@@ -47,10 +47,19 @@ var verifyOtpResponse = import_zod.z.object({
47
47
  // src/basic-details.ts
48
48
  var basic_details_exports = {};
49
49
  __export(basic_details_exports, {
50
- basicDetails: () => basicDetails
50
+ me: () => me,
51
+ update: () => update
51
52
  });
52
53
  var import_zod2 = require("zod");
53
- var basicDetails = import_zod2.z.object({
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({
54
63
  name: import_zod2.z.string().nonempty("required").trim(),
55
64
  countryCode: import_zod2.z.string().optional().default("+91"),
56
65
  phoneNumber: import_zod2.z.string().nonempty("required")
package/dist/index.d.cts CHANGED
@@ -24,17 +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
- 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>;
33
42
 
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 };
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 };
38
49
  }
39
50
 
40
- export { basicDetails$1 as BasicDetails, verifyEmail as VerifyEmail };
51
+ export { basicDetails as BasicDetails, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -24,17 +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
- 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>;
33
42
 
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 };
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 };
38
49
  }
39
50
 
40
- export { basicDetails$1 as BasicDetails, verifyEmail as VerifyEmail };
51
+ export { basicDetails as BasicDetails, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -26,10 +26,19 @@ 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")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",