@tripsam/onboarding 1.0.9 → 1.0.11
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 +31 -1
- package/dist/index.d.cts +57 -6
- package/dist/index.d.ts +57 -6
- package/dist/index.js +31 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -58,7 +58,8 @@ var me = import_zod2.z.object({
|
|
|
58
58
|
name: import_zod2.z.string().trim().optional().default(""),
|
|
59
59
|
countryCode: import_zod2.z.string().optional().default("+91"),
|
|
60
60
|
phoneNumber: import_zod2.z.string().optional().default(""),
|
|
61
|
-
isPhoneVerified: import_zod2.z.boolean().optional().default(false)
|
|
61
|
+
isPhoneVerified: import_zod2.z.boolean().optional().default(false),
|
|
62
|
+
completed: import_zod2.z.boolean()
|
|
62
63
|
});
|
|
63
64
|
var update = import_zod2.z.object({
|
|
64
65
|
name: import_zod2.z.string().nonempty("required").trim(),
|
|
@@ -69,8 +70,10 @@ var update = import_zod2.z.object({
|
|
|
69
70
|
// src/location.ts
|
|
70
71
|
var location_exports = {};
|
|
71
72
|
__export(location_exports, {
|
|
73
|
+
me: () => me2,
|
|
72
74
|
minimum: () => minimum,
|
|
73
75
|
minimumList: () => minimumList,
|
|
76
|
+
save: () => save,
|
|
74
77
|
suggest: () => suggest
|
|
75
78
|
});
|
|
76
79
|
var import_zod3 = require("zod");
|
|
@@ -100,6 +103,33 @@ var minimum = import_zod3.z.object({
|
|
|
100
103
|
distanceKm: import_zod3.z.coerce.number()
|
|
101
104
|
}))
|
|
102
105
|
});
|
|
106
|
+
var save = import_zod3.z.object({
|
|
107
|
+
locationId: import_zod3.z.string().optional(),
|
|
108
|
+
safariLocation: import_zod3.z.string(),
|
|
109
|
+
pickupLocation: import_zod3.z.string(),
|
|
110
|
+
landmarkId1: import_zod3.z.string().optional(),
|
|
111
|
+
distanceFromLandmark1: import_zod3.z.string().optional(),
|
|
112
|
+
landmarkId2: import_zod3.z.string().optional(),
|
|
113
|
+
distanceFromLandmark2: import_zod3.z.string().optional()
|
|
114
|
+
});
|
|
115
|
+
var me2 = import_zod3.z.object({
|
|
116
|
+
location: minimum,
|
|
117
|
+
safariLocation: import_zod3.z.string(),
|
|
118
|
+
pickupLocation: import_zod3.z.string(),
|
|
119
|
+
landmark1: {
|
|
120
|
+
id: import_zod3.z.string(),
|
|
121
|
+
label: import_zod3.z.string(),
|
|
122
|
+
type: import_zod3.z.string().optional().default(""),
|
|
123
|
+
distanceKm: import_zod3.z.coerce.number()
|
|
124
|
+
},
|
|
125
|
+
landmark2: {
|
|
126
|
+
id: import_zod3.z.string(),
|
|
127
|
+
label: import_zod3.z.string(),
|
|
128
|
+
type: import_zod3.z.string().optional().default(""),
|
|
129
|
+
distanceKm: import_zod3.z.coerce.number()
|
|
130
|
+
},
|
|
131
|
+
completed: import_zod3.z.boolean()
|
|
132
|
+
});
|
|
103
133
|
var minimumList = import_zod3.z.array(minimum);
|
|
104
134
|
// Annotate the CommonJS export names for ESM import in node:
|
|
105
135
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -24,28 +24,27 @@ 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 me: z.ZodObject<{
|
|
27
|
+
declare const me$1: z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
email: z.ZodString;
|
|
30
30
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31
31
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32
32
|
phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
33
33
|
isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
34
|
+
completed: z.ZodBoolean;
|
|
34
35
|
}, z.core.$strip>;
|
|
35
36
|
declare const update: z.ZodObject<{
|
|
36
37
|
name: z.ZodString;
|
|
37
38
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
38
39
|
phoneNumber: z.ZodString;
|
|
39
40
|
}, z.core.$strip>;
|
|
40
|
-
type SafeMe = z.infer<typeof me>;
|
|
41
|
+
type SafeMe$1 = z.infer<typeof me$1>;
|
|
41
42
|
type SafeUpdate = z.output<typeof update>;
|
|
42
43
|
|
|
43
|
-
type basicDetails_SafeMe = SafeMe;
|
|
44
44
|
type basicDetails_SafeUpdate = SafeUpdate;
|
|
45
|
-
declare const basicDetails_me: typeof me;
|
|
46
45
|
declare const basicDetails_update: typeof update;
|
|
47
46
|
declare namespace basicDetails {
|
|
48
|
-
export { type
|
|
47
|
+
export { type SafeMe$1 as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, me$1 as me, basicDetails_update as update };
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
declare const suggest: z.ZodObject<{
|
|
@@ -74,6 +73,52 @@ declare const minimum: z.ZodObject<{
|
|
|
74
73
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
75
74
|
}, z.core.$strip>>;
|
|
76
75
|
}, z.core.$strip>;
|
|
76
|
+
declare const save: z.ZodObject<{
|
|
77
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
safariLocation: z.ZodString;
|
|
79
|
+
pickupLocation: z.ZodString;
|
|
80
|
+
landmarkId1: z.ZodOptional<z.ZodString>;
|
|
81
|
+
distanceFromLandmark1: z.ZodOptional<z.ZodString>;
|
|
82
|
+
landmarkId2: z.ZodOptional<z.ZodString>;
|
|
83
|
+
distanceFromLandmark2: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
declare const me: z.ZodObject<{
|
|
86
|
+
location: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
area: z.ZodString;
|
|
90
|
+
startLat: z.ZodCoercedNumber<unknown>;
|
|
91
|
+
startLng: z.ZodCoercedNumber<unknown>;
|
|
92
|
+
endLat: z.ZodCoercedNumber<unknown>;
|
|
93
|
+
endLng: z.ZodCoercedNumber<unknown>;
|
|
94
|
+
address: z.ZodObject<{
|
|
95
|
+
city: z.ZodString;
|
|
96
|
+
state: z.ZodString;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
99
|
+
landmarks: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
safariLocation: z.ZodString;
|
|
107
|
+
pickupLocation: z.ZodString;
|
|
108
|
+
landmark1: {
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
label: z.ZodString;
|
|
111
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
112
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
113
|
+
};
|
|
114
|
+
landmark2: {
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
label: z.ZodString;
|
|
117
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
119
|
+
};
|
|
120
|
+
completed: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>;
|
|
77
122
|
declare const minimumList: z.ZodArray<z.ZodObject<{
|
|
78
123
|
id: z.ZodString;
|
|
79
124
|
name: z.ZodString;
|
|
@@ -97,15 +142,21 @@ declare const minimumList: z.ZodArray<z.ZodObject<{
|
|
|
97
142
|
type SafeMinimum = z.output<typeof minimum>;
|
|
98
143
|
type SafeMinimumList = z.output<typeof minimum>;
|
|
99
144
|
type SafeSuggest = z.output<typeof suggest>;
|
|
145
|
+
type SafeSave = z.output<typeof save>;
|
|
146
|
+
type SafeMe = z.output<typeof me>;
|
|
100
147
|
|
|
148
|
+
type location_SafeMe = SafeMe;
|
|
101
149
|
type location_SafeMinimum = SafeMinimum;
|
|
102
150
|
type location_SafeMinimumList = SafeMinimumList;
|
|
151
|
+
type location_SafeSave = SafeSave;
|
|
103
152
|
type location_SafeSuggest = SafeSuggest;
|
|
153
|
+
declare const location_me: typeof me;
|
|
104
154
|
declare const location_minimum: typeof minimum;
|
|
105
155
|
declare const location_minimumList: typeof minimumList;
|
|
156
|
+
declare const location_save: typeof save;
|
|
106
157
|
declare const location_suggest: typeof suggest;
|
|
107
158
|
declare namespace location {
|
|
108
|
-
export { type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_minimumList as minimumList, location_suggest as suggest };
|
|
159
|
+
export { type location_SafeMe as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSave as SafeSave, type location_SafeSuggest as SafeSuggest, location_me as me, location_minimum as minimum, location_minimumList as minimumList, location_save as save, location_suggest as suggest };
|
|
109
160
|
}
|
|
110
161
|
|
|
111
162
|
export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,28 +24,27 @@ 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 me: z.ZodObject<{
|
|
27
|
+
declare const me$1: z.ZodObject<{
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
email: z.ZodString;
|
|
30
30
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
31
31
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32
32
|
phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
33
33
|
isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
34
|
+
completed: z.ZodBoolean;
|
|
34
35
|
}, z.core.$strip>;
|
|
35
36
|
declare const update: z.ZodObject<{
|
|
36
37
|
name: z.ZodString;
|
|
37
38
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
38
39
|
phoneNumber: z.ZodString;
|
|
39
40
|
}, z.core.$strip>;
|
|
40
|
-
type SafeMe = z.infer<typeof me>;
|
|
41
|
+
type SafeMe$1 = z.infer<typeof me$1>;
|
|
41
42
|
type SafeUpdate = z.output<typeof update>;
|
|
42
43
|
|
|
43
|
-
type basicDetails_SafeMe = SafeMe;
|
|
44
44
|
type basicDetails_SafeUpdate = SafeUpdate;
|
|
45
|
-
declare const basicDetails_me: typeof me;
|
|
46
45
|
declare const basicDetails_update: typeof update;
|
|
47
46
|
declare namespace basicDetails {
|
|
48
|
-
export { type
|
|
47
|
+
export { type SafeMe$1 as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, me$1 as me, basicDetails_update as update };
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
declare const suggest: z.ZodObject<{
|
|
@@ -74,6 +73,52 @@ declare const minimum: z.ZodObject<{
|
|
|
74
73
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
75
74
|
}, z.core.$strip>>;
|
|
76
75
|
}, z.core.$strip>;
|
|
76
|
+
declare const save: z.ZodObject<{
|
|
77
|
+
locationId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
safariLocation: z.ZodString;
|
|
79
|
+
pickupLocation: z.ZodString;
|
|
80
|
+
landmarkId1: z.ZodOptional<z.ZodString>;
|
|
81
|
+
distanceFromLandmark1: z.ZodOptional<z.ZodString>;
|
|
82
|
+
landmarkId2: z.ZodOptional<z.ZodString>;
|
|
83
|
+
distanceFromLandmark2: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
declare const me: z.ZodObject<{
|
|
86
|
+
location: z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
area: z.ZodString;
|
|
90
|
+
startLat: z.ZodCoercedNumber<unknown>;
|
|
91
|
+
startLng: z.ZodCoercedNumber<unknown>;
|
|
92
|
+
endLat: z.ZodCoercedNumber<unknown>;
|
|
93
|
+
endLng: z.ZodCoercedNumber<unknown>;
|
|
94
|
+
address: z.ZodObject<{
|
|
95
|
+
city: z.ZodString;
|
|
96
|
+
state: z.ZodString;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
99
|
+
landmarks: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
label: z.ZodString;
|
|
102
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
safariLocation: z.ZodString;
|
|
107
|
+
pickupLocation: z.ZodString;
|
|
108
|
+
landmark1: {
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
label: z.ZodString;
|
|
111
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
112
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
113
|
+
};
|
|
114
|
+
landmark2: {
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
label: z.ZodString;
|
|
117
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
119
|
+
};
|
|
120
|
+
completed: z.ZodBoolean;
|
|
121
|
+
}, z.core.$strip>;
|
|
77
122
|
declare const minimumList: z.ZodArray<z.ZodObject<{
|
|
78
123
|
id: z.ZodString;
|
|
79
124
|
name: z.ZodString;
|
|
@@ -97,15 +142,21 @@ declare const minimumList: z.ZodArray<z.ZodObject<{
|
|
|
97
142
|
type SafeMinimum = z.output<typeof minimum>;
|
|
98
143
|
type SafeMinimumList = z.output<typeof minimum>;
|
|
99
144
|
type SafeSuggest = z.output<typeof suggest>;
|
|
145
|
+
type SafeSave = z.output<typeof save>;
|
|
146
|
+
type SafeMe = z.output<typeof me>;
|
|
100
147
|
|
|
148
|
+
type location_SafeMe = SafeMe;
|
|
101
149
|
type location_SafeMinimum = SafeMinimum;
|
|
102
150
|
type location_SafeMinimumList = SafeMinimumList;
|
|
151
|
+
type location_SafeSave = SafeSave;
|
|
103
152
|
type location_SafeSuggest = SafeSuggest;
|
|
153
|
+
declare const location_me: typeof me;
|
|
104
154
|
declare const location_minimum: typeof minimum;
|
|
105
155
|
declare const location_minimumList: typeof minimumList;
|
|
156
|
+
declare const location_save: typeof save;
|
|
106
157
|
declare const location_suggest: typeof suggest;
|
|
107
158
|
declare namespace location {
|
|
108
|
-
export { type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_minimumList as minimumList, location_suggest as suggest };
|
|
159
|
+
export { type location_SafeMe as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSave as SafeSave, type location_SafeSuggest as SafeSuggest, location_me as me, location_minimum as minimum, location_minimumList as minimumList, location_save as save, location_suggest as suggest };
|
|
109
160
|
}
|
|
110
161
|
|
|
111
162
|
export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,8 @@ var me = z2.object({
|
|
|
36
36
|
name: z2.string().trim().optional().default(""),
|
|
37
37
|
countryCode: z2.string().optional().default("+91"),
|
|
38
38
|
phoneNumber: z2.string().optional().default(""),
|
|
39
|
-
isPhoneVerified: z2.boolean().optional().default(false)
|
|
39
|
+
isPhoneVerified: z2.boolean().optional().default(false),
|
|
40
|
+
completed: z2.boolean()
|
|
40
41
|
});
|
|
41
42
|
var update = z2.object({
|
|
42
43
|
name: z2.string().nonempty("required").trim(),
|
|
@@ -47,8 +48,10 @@ var update = z2.object({
|
|
|
47
48
|
// src/location.ts
|
|
48
49
|
var location_exports = {};
|
|
49
50
|
__export(location_exports, {
|
|
51
|
+
me: () => me2,
|
|
50
52
|
minimum: () => minimum,
|
|
51
53
|
minimumList: () => minimumList,
|
|
54
|
+
save: () => save,
|
|
52
55
|
suggest: () => suggest
|
|
53
56
|
});
|
|
54
57
|
import { z as z3 } from "zod";
|
|
@@ -78,6 +81,33 @@ var minimum = z3.object({
|
|
|
78
81
|
distanceKm: z3.coerce.number()
|
|
79
82
|
}))
|
|
80
83
|
});
|
|
84
|
+
var save = z3.object({
|
|
85
|
+
locationId: z3.string().optional(),
|
|
86
|
+
safariLocation: z3.string(),
|
|
87
|
+
pickupLocation: z3.string(),
|
|
88
|
+
landmarkId1: z3.string().optional(),
|
|
89
|
+
distanceFromLandmark1: z3.string().optional(),
|
|
90
|
+
landmarkId2: z3.string().optional(),
|
|
91
|
+
distanceFromLandmark2: z3.string().optional()
|
|
92
|
+
});
|
|
93
|
+
var me2 = z3.object({
|
|
94
|
+
location: minimum,
|
|
95
|
+
safariLocation: z3.string(),
|
|
96
|
+
pickupLocation: z3.string(),
|
|
97
|
+
landmark1: {
|
|
98
|
+
id: z3.string(),
|
|
99
|
+
label: z3.string(),
|
|
100
|
+
type: z3.string().optional().default(""),
|
|
101
|
+
distanceKm: z3.coerce.number()
|
|
102
|
+
},
|
|
103
|
+
landmark2: {
|
|
104
|
+
id: z3.string(),
|
|
105
|
+
label: z3.string(),
|
|
106
|
+
type: z3.string().optional().default(""),
|
|
107
|
+
distanceKm: z3.coerce.number()
|
|
108
|
+
},
|
|
109
|
+
completed: z3.boolean()
|
|
110
|
+
});
|
|
81
111
|
var minimumList = z3.array(minimum);
|
|
82
112
|
export {
|
|
83
113
|
basic_details_exports as BasicDetails,
|