@tripsam/onboarding 1.0.34 → 1.0.35

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.
@@ -0,0 +1,307 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const me$7: z.ZodObject<{
4
+ id: z.ZodString;
5
+ email: z.ZodString;
6
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8
+ phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9
+ isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
+ completed: z.ZodBoolean;
11
+ }, z.core.$strip>;
12
+ declare const update$1: z.ZodObject<{
13
+ name: z.ZodString;
14
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15
+ phoneNumber: z.ZodString;
16
+ }, z.core.$strip>;
17
+ type SafeMe$7 = z.infer<typeof me$7>;
18
+ type SafeUpdate$1 = z.output<typeof update$1>;
19
+
20
+ declare namespace basicDetails {
21
+ export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, update$1 as update };
22
+ }
23
+
24
+ declare const suggest: z.ZodObject<{
25
+ q: z.ZodDefault<z.ZodOptional<z.ZodString>>;
26
+ lat: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
27
+ lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
28
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
29
+ }, z.core.$strip>;
30
+ declare const minimum: z.ZodObject<{
31
+ id: z.ZodString;
32
+ name: z.ZodString;
33
+ area: z.ZodString;
34
+ startLat: z.ZodCoercedNumber<unknown>;
35
+ startLng: z.ZodCoercedNumber<unknown>;
36
+ endLat: z.ZodCoercedNumber<unknown>;
37
+ endLng: z.ZodCoercedNumber<unknown>;
38
+ address: z.ZodObject<{
39
+ city: z.ZodString;
40
+ state: z.ZodString;
41
+ }, z.core.$strip>;
42
+ metadata: z.ZodObject<{}, z.core.$strip>;
43
+ landmarks: z.ZodArray<z.ZodObject<{
44
+ id: z.ZodString;
45
+ label: z.ZodString;
46
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47
+ distanceKm: z.ZodCoercedNumber<unknown>;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>;
50
+ declare const pickupLandmark: z.ZodObject<{
51
+ id: z.ZodOptional<z.ZodString>;
52
+ label: z.ZodString;
53
+ type: z.ZodOptional<z.ZodString>;
54
+ distanceKm: z.ZodCoercedNumber<unknown>;
55
+ }, z.core.$strip>;
56
+ declare const save$2: z.ZodObject<{
57
+ locationId: z.ZodString;
58
+ safariLocation: z.ZodString;
59
+ pickupLocation: z.ZodString;
60
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
61
+ id: z.ZodOptional<z.ZodString>;
62
+ label: z.ZodString;
63
+ type: z.ZodOptional<z.ZodString>;
64
+ distanceKm: z.ZodCoercedNumber<unknown>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
+ declare const me$6: z.ZodObject<{
68
+ location: z.ZodObject<{
69
+ id: z.ZodString;
70
+ name: z.ZodString;
71
+ area: z.ZodString;
72
+ startLat: z.ZodCoercedNumber<unknown>;
73
+ startLng: z.ZodCoercedNumber<unknown>;
74
+ endLat: z.ZodCoercedNumber<unknown>;
75
+ endLng: z.ZodCoercedNumber<unknown>;
76
+ address: z.ZodObject<{
77
+ city: z.ZodString;
78
+ state: z.ZodString;
79
+ }, z.core.$strip>;
80
+ metadata: z.ZodObject<{}, z.core.$strip>;
81
+ landmarks: z.ZodArray<z.ZodObject<{
82
+ id: z.ZodString;
83
+ label: z.ZodString;
84
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
85
+ distanceKm: z.ZodCoercedNumber<unknown>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>;
88
+ safariLocation: z.ZodString;
89
+ pickupLocation: z.ZodString;
90
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
91
+ id: z.ZodOptional<z.ZodString>;
92
+ label: z.ZodString;
93
+ type: z.ZodOptional<z.ZodString>;
94
+ distanceKm: z.ZodCoercedNumber<unknown>;
95
+ }, z.core.$strip>>;
96
+ completed: z.ZodBoolean;
97
+ }, z.core.$strip>;
98
+ declare const minimumList: z.ZodArray<z.ZodObject<{
99
+ id: z.ZodString;
100
+ name: z.ZodString;
101
+ area: z.ZodString;
102
+ startLat: z.ZodCoercedNumber<unknown>;
103
+ startLng: z.ZodCoercedNumber<unknown>;
104
+ endLat: z.ZodCoercedNumber<unknown>;
105
+ endLng: z.ZodCoercedNumber<unknown>;
106
+ address: z.ZodObject<{
107
+ city: z.ZodString;
108
+ state: z.ZodString;
109
+ }, z.core.$strip>;
110
+ metadata: z.ZodObject<{}, z.core.$strip>;
111
+ landmarks: z.ZodArray<z.ZodObject<{
112
+ id: z.ZodString;
113
+ label: z.ZodString;
114
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
115
+ distanceKm: z.ZodCoercedNumber<unknown>;
116
+ }, z.core.$strip>>;
117
+ }, z.core.$strip>>;
118
+ type SafeMinimum = z.output<typeof minimum>;
119
+ type SafeMinimumList = z.output<typeof minimum>;
120
+ type SafeSuggest = z.output<typeof suggest>;
121
+ type SafeSave$2 = z.output<typeof save$2>;
122
+ type SafeMe$6 = z.output<typeof me$6>;
123
+ type SafePickupLandmark = z.output<typeof pickupLandmark>;
124
+
125
+ type location_SafeMinimum = SafeMinimum;
126
+ type location_SafeMinimumList = SafeMinimumList;
127
+ type location_SafePickupLandmark = SafePickupLandmark;
128
+ type location_SafeSuggest = SafeSuggest;
129
+ declare const location_minimum: typeof minimum;
130
+ declare const location_minimumList: typeof minimumList;
131
+ declare const location_pickupLandmark: typeof pickupLandmark;
132
+ declare const location_suggest: typeof suggest;
133
+ declare namespace location {
134
+ export { type SafeMe$6 as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafePickupLandmark as SafePickupLandmark, type SafeSave$2 as SafeSave, type location_SafeSuggest as SafeSuggest, me$6 as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, save$2 as save, location_suggest as suggest };
135
+ }
136
+
137
+ declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
138
+ declare const update: z.ZodObject<{
139
+ id: z.ZodOptional<z.ZodString>;
140
+ name: z.ZodString;
141
+ description: z.ZodOptional<z.ZodString>;
142
+ startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
143
+ endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
144
+ minHour: z.ZodCoercedNumber<unknown>;
145
+ }, z.core.$strip>;
146
+ declare const create$2: z.ZodObject<{
147
+ name: z.ZodString;
148
+ description: z.ZodOptional<z.ZodString>;
149
+ startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
150
+ endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
151
+ minHour: z.ZodCoercedNumber<unknown>;
152
+ }, z.core.$strip>;
153
+ declare const me$5: z.ZodObject<{
154
+ id: z.ZodString;
155
+ name: z.ZodString;
156
+ description: z.ZodOptional<z.ZodString>;
157
+ startTime: z.ZodCoercedNumber<unknown>;
158
+ endTime: z.ZodCoercedNumber<unknown>;
159
+ minHour: z.ZodCoercedNumber<unknown>;
160
+ }, z.core.$strip>;
161
+ declare const meList$1: z.ZodArray<z.ZodObject<{
162
+ id: z.ZodString;
163
+ name: z.ZodString;
164
+ description: z.ZodOptional<z.ZodString>;
165
+ startTime: z.ZodCoercedNumber<unknown>;
166
+ endTime: z.ZodCoercedNumber<unknown>;
167
+ minHour: z.ZodCoercedNumber<unknown>;
168
+ }, z.core.$strip>>;
169
+ type SafeMe$5 = z.output<typeof me$5>;
170
+ type SafeList$1 = z.output<typeof meList$1>;
171
+ type SafeCreate$2 = z.output<typeof create$2>;
172
+ type SafeUpdate = z.output<typeof update>;
173
+
174
+ type slot_SafeUpdate = SafeUpdate;
175
+ declare const slot_time12h: typeof time12h;
176
+ declare const slot_update: typeof update;
177
+ declare namespace slot {
178
+ export { type SafeCreate$2 as SafeCreate, type SafeList$1 as SafeList, type SafeMe$5 as SafeMe, type slot_SafeUpdate as SafeUpdate, create$2 as create, me$5 as me, meList$1 as meList, slot_time12h as time12h, slot_update as update };
179
+ }
180
+
181
+ declare const Weekday: z.ZodEnum<{
182
+ sunday: "sunday";
183
+ monday: "monday";
184
+ tuesday: "tuesday";
185
+ wednesday: "wednesday";
186
+ thursday: "thursday";
187
+ friday: "friday";
188
+ saturday: "saturday";
189
+ }>;
190
+ declare const me$4: z.ZodObject<{
191
+ operationalDays: z.ZodPipe<z.ZodArray<z.ZodEnum<{
192
+ sunday: "sunday";
193
+ monday: "monday";
194
+ tuesday: "tuesday";
195
+ wednesday: "wednesday";
196
+ thursday: "thursday";
197
+ friday: "friday";
198
+ saturday: "saturday";
199
+ }>>, z.ZodTransform<("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[], ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[]>>;
200
+ }, z.core.$strip>;
201
+ type SafeMe$4 = z.output<typeof me$4>;
202
+ type SafeWeekdays = z.output<typeof Weekday>;
203
+
204
+ type operationalDays_SafeWeekdays = SafeWeekdays;
205
+ declare const operationalDays_Weekday: typeof Weekday;
206
+ declare namespace operationalDays {
207
+ export { type SafeMe$4 as SafeMe, type operationalDays_SafeWeekdays as SafeWeekdays, operationalDays_Weekday as Weekday, me$4 as me };
208
+ }
209
+
210
+ declare const me$3: z.ZodObject<{
211
+ id: z.ZodString;
212
+ vehicleName: z.ZodString;
213
+ registrationNumber: z.ZodString;
214
+ serviceRoutine: z.ZodCoercedNumber<unknown>;
215
+ operatedSince: z.ZodCoercedNumber<unknown>;
216
+ maxCapacity: z.ZodCoercedNumber<unknown>;
217
+ }, z.core.$strip>;
218
+ declare const save$1: z.ZodObject<{
219
+ vehicleName: z.ZodString;
220
+ registrationNumber: z.ZodString;
221
+ serviceRoutine: z.ZodCoercedNumber<unknown>;
222
+ operatedSince: z.ZodCoercedNumber<unknown>;
223
+ maxCapacity: z.ZodCoercedNumber<unknown>;
224
+ }, z.core.$strip>;
225
+ type SafeMe$3 = z.infer<typeof me$3>;
226
+ type SafeSave$1 = z.output<typeof save$1>;
227
+
228
+ declare namespace vehicleDetails {
229
+ export { type SafeMe$3 as SafeMe, type SafeSave$1 as SafeSave, me$3 as me, save$1 as save };
230
+ }
231
+
232
+ declare const me$2: z.ZodObject<{
233
+ id: z.ZodString;
234
+ driverName: z.ZodString;
235
+ licenseNumber: z.ZodString;
236
+ experience: z.ZodCoercedNumber<unknown>;
237
+ }, z.core.$strip>;
238
+ declare const create$1: z.ZodObject<{
239
+ driverName: z.ZodString;
240
+ licenseNumber: z.ZodString;
241
+ experience: z.ZodCoercedNumber<unknown>;
242
+ }, z.core.$strip>;
243
+ declare const meList: z.ZodArray<z.ZodObject<{
244
+ id: z.ZodString;
245
+ driverName: z.ZodString;
246
+ licenseNumber: z.ZodString;
247
+ experience: z.ZodCoercedNumber<unknown>;
248
+ }, z.core.$strip>>;
249
+ type SafeMe$2 = z.infer<typeof me$2>;
250
+ type SafeCreate$1 = z.output<typeof create$1>;
251
+ type SafeList = z.output<typeof meList>;
252
+
253
+ type driverDetails_SafeList = SafeList;
254
+ declare const driverDetails_meList: typeof meList;
255
+ declare namespace driverDetails {
256
+ export { type SafeCreate$1 as SafeCreate, type driverDetails_SafeList as SafeList, type SafeMe$2 as SafeMe, create$1 as create, me$2 as me, driverDetails_meList as meList };
257
+ }
258
+
259
+ declare const me$1: z.ZodObject<{
260
+ bankAccountNumber: z.ZodString;
261
+ bankName: z.ZodString;
262
+ accountHolderName: z.ZodString;
263
+ gstNumber: z.ZodOptional<z.ZodString>;
264
+ businessNumber: z.ZodOptional<z.ZodString>;
265
+ ifscCode: z.ZodString;
266
+ }, z.core.$strip>;
267
+ declare const create: z.ZodObject<{
268
+ bankAccountNumber: z.ZodString;
269
+ bankName: z.ZodString;
270
+ accountHolderName: z.ZodString;
271
+ ifscCode: z.ZodString;
272
+ gstNumber: z.ZodOptional<z.ZodString>;
273
+ businessNumber: z.ZodOptional<z.ZodString>;
274
+ }, z.core.$strip>;
275
+ type SafeMe$1 = z.infer<typeof me$1>;
276
+ type SafeCreate = z.output<typeof create>;
277
+
278
+ type businessDetails_SafeCreate = SafeCreate;
279
+ declare const businessDetails_create: typeof create;
280
+ declare namespace businessDetails {
281
+ export { type businessDetails_SafeCreate as SafeCreate, type SafeMe$1 as SafeMe, businessDetails_create as create, me$1 as me };
282
+ }
283
+
284
+ declare const me: z.ZodObject<{
285
+ adhaarNumber: z.ZodString;
286
+ address: z.ZodString;
287
+ }, z.core.$strip>;
288
+ declare const save: z.ZodObject<{
289
+ adhaarNumber: z.ZodString;
290
+ address: z.ZodString;
291
+ }, z.core.$strip>;
292
+ type SafeMe = z.infer<typeof me>;
293
+ type SafeSave = z.output<typeof save>;
294
+
295
+ type personalDetails_SafeMe = SafeMe;
296
+ type personalDetails_SafeSave = SafeSave;
297
+ declare const personalDetails_me: typeof me;
298
+ declare const personalDetails_save: typeof save;
299
+ declare namespace personalDetails {
300
+ export { type personalDetails_SafeMe as SafeMe, type personalDetails_SafeSave as SafeSave, personalDetails_me as me, personalDetails_save as save };
301
+ }
302
+
303
+ declare namespace index {
304
+ export { basicDetails as BasicDetails, businessDetails as BusinessDetails, driverDetails as DriverDetails, location as Location, operationalDays as OperationalDays, personalDetails as PersonalDetails, slot as Slot, vehicleDetails as VehicleDetails };
305
+ }
306
+
307
+ export { businessDetails as a, basicDetails as b, driverDetails as d, index as i, location as l, operationalDays as o, personalDetails as p, slot as s, vehicleDetails as v };
package/dist/index.cjs ADDED
@@ -0,0 +1,298 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ CommonOnboarding: () => common_exports,
24
+ SafariOnboarding: () => safari_exports
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/safari/index.ts
29
+ var safari_exports = {};
30
+ __export(safari_exports, {
31
+ BasicDetails: () => basic_details_exports,
32
+ BusinessDetails: () => business_details_exports,
33
+ DriverDetails: () => driver_details_exports,
34
+ Location: () => location_exports,
35
+ OperationalDays: () => operational_days_exports,
36
+ PersonalDetails: () => personal_details_exports,
37
+ Slot: () => slot_exports,
38
+ VehicleDetails: () => vehicle_details_exports
39
+ });
40
+
41
+ // src/safari/basic-details.ts
42
+ var basic_details_exports = {};
43
+ __export(basic_details_exports, {
44
+ me: () => me,
45
+ update: () => update
46
+ });
47
+ var import_zod = require("zod");
48
+ var me = import_zod.z.object({
49
+ id: import_zod.z.string(),
50
+ email: import_zod.z.string(),
51
+ name: import_zod.z.string().trim().optional().default(""),
52
+ countryCode: import_zod.z.string().optional().default("+91"),
53
+ phoneNumber: import_zod.z.string().optional().default(""),
54
+ isPhoneVerified: import_zod.z.boolean().optional().default(false),
55
+ completed: import_zod.z.boolean()
56
+ });
57
+ var update = import_zod.z.object({
58
+ name: import_zod.z.string().nonempty("required").trim(),
59
+ countryCode: import_zod.z.string().optional().default("+91"),
60
+ phoneNumber: import_zod.z.string().nonempty("required")
61
+ });
62
+
63
+ // src/safari/location.ts
64
+ var location_exports = {};
65
+ __export(location_exports, {
66
+ me: () => me2,
67
+ minimum: () => minimum,
68
+ minimumList: () => minimumList,
69
+ pickupLandmark: () => pickupLandmark,
70
+ save: () => save,
71
+ suggest: () => suggest
72
+ });
73
+ var import_zod2 = require("zod");
74
+ var suggest = import_zod2.z.object({
75
+ q: import_zod2.z.string().trim().optional().default(""),
76
+ lat: import_zod2.z.coerce.number().optional(),
77
+ lng: import_zod2.z.coerce.number().optional(),
78
+ limit: import_zod2.z.coerce.number().int().min(1).max(50).default(20)
79
+ });
80
+ var minimum = import_zod2.z.object({
81
+ id: import_zod2.z.string(),
82
+ name: import_zod2.z.string(),
83
+ area: import_zod2.z.string(),
84
+ startLat: import_zod2.z.coerce.number(),
85
+ startLng: import_zod2.z.coerce.number(),
86
+ endLat: import_zod2.z.coerce.number(),
87
+ endLng: import_zod2.z.coerce.number(),
88
+ address: import_zod2.z.object({
89
+ city: import_zod2.z.string(),
90
+ state: import_zod2.z.string()
91
+ }),
92
+ metadata: import_zod2.z.object(),
93
+ landmarks: import_zod2.z.array(import_zod2.z.object({
94
+ id: import_zod2.z.string(),
95
+ label: import_zod2.z.string(),
96
+ type: import_zod2.z.string().optional().default(""),
97
+ distanceKm: import_zod2.z.coerce.number()
98
+ }))
99
+ });
100
+ var pickupLandmark = import_zod2.z.object({
101
+ id: import_zod2.z.string().optional(),
102
+ label: import_zod2.z.string(),
103
+ type: import_zod2.z.string().optional(),
104
+ distanceKm: import_zod2.z.coerce.number()
105
+ });
106
+ var save = import_zod2.z.object({
107
+ locationId: import_zod2.z.string().trim().nonempty("required"),
108
+ safariLocation: import_zod2.z.string().trim().nonempty("required"),
109
+ pickupLocation: import_zod2.z.string().trim().nonempty("required"),
110
+ pickupLandmarks: import_zod2.z.array(pickupLandmark)
111
+ });
112
+ var me2 = import_zod2.z.object({
113
+ location: minimum,
114
+ safariLocation: import_zod2.z.string(),
115
+ pickupLocation: import_zod2.z.string(),
116
+ pickupLandmarks: import_zod2.z.array(pickupLandmark),
117
+ completed: import_zod2.z.boolean()
118
+ });
119
+ var minimumList = import_zod2.z.array(minimum);
120
+
121
+ // src/safari/slot.ts
122
+ var slot_exports = {};
123
+ __export(slot_exports, {
124
+ create: () => create,
125
+ me: () => me3,
126
+ meList: () => meList,
127
+ time12h: () => time12h,
128
+ update: () => update2
129
+ });
130
+ var import_zod3 = require("zod");
131
+ var TIME_12H = /^(0?[1-9]|1[0-2]):([0-5][0-9])(?:[\u00A0\u202F\s]*)?(AM|PM)$/i;
132
+ var time12h = import_zod3.z.string().trim().regex(TIME_12H, "Use format hh:mm AM/PM").transform((v) => {
133
+ const m = v.match(TIME_12H);
134
+ const hh = m[1];
135
+ const mm = m[2];
136
+ const meridian = m[3].toUpperCase();
137
+ let h = parseInt(hh, 10) % 12;
138
+ if (meridian === "PM") h += 12;
139
+ return h * 60 + parseInt(mm, 10);
140
+ });
141
+ var update2 = import_zod3.z.object({
142
+ id: import_zod3.z.string().trim().optional(),
143
+ name: import_zod3.z.string().trim().nonempty("required"),
144
+ description: import_zod3.z.string().trim().optional(),
145
+ startTime: time12h,
146
+ endTime: time12h,
147
+ minHour: import_zod3.z.coerce.number("invalid")
148
+ });
149
+ var create = import_zod3.z.object({
150
+ name: import_zod3.z.string().trim().nonempty("required"),
151
+ description: import_zod3.z.string().trim().optional(),
152
+ startTime: time12h,
153
+ endTime: time12h,
154
+ minHour: import_zod3.z.coerce.number("invalid")
155
+ });
156
+ var me3 = import_zod3.z.object({
157
+ id: import_zod3.z.string().trim(),
158
+ name: import_zod3.z.string().trim().nonempty("required"),
159
+ description: import_zod3.z.string().trim().optional(),
160
+ startTime: import_zod3.z.coerce.number(),
161
+ endTime: import_zod3.z.coerce.number(),
162
+ minHour: import_zod3.z.coerce.number("invalid")
163
+ });
164
+ var meList = import_zod3.z.array(me3);
165
+
166
+ // src/safari/operational-days.ts
167
+ var operational_days_exports = {};
168
+ __export(operational_days_exports, {
169
+ Weekday: () => Weekday,
170
+ me: () => me4
171
+ });
172
+ var import_zod4 = require("zod");
173
+ var Weekday = import_zod4.z.enum([
174
+ "sunday",
175
+ "monday",
176
+ "tuesday",
177
+ "wednesday",
178
+ "thursday",
179
+ "friday",
180
+ "saturday"
181
+ ]);
182
+ var me4 = import_zod4.z.object({
183
+ operationalDays: import_zod4.z.array(Weekday).transform((arr) => Array.from(new Set(arr)))
184
+ });
185
+
186
+ // src/safari/vehicle-details.ts
187
+ var vehicle_details_exports = {};
188
+ __export(vehicle_details_exports, {
189
+ me: () => me5,
190
+ save: () => save2
191
+ });
192
+ var import_zod5 = require("zod");
193
+ var me5 = import_zod5.z.object({
194
+ id: import_zod5.z.string(),
195
+ vehicleName: import_zod5.z.string().trim(),
196
+ registrationNumber: import_zod5.z.string().trim().toUpperCase(),
197
+ serviceRoutine: import_zod5.z.coerce.number(),
198
+ operatedSince: import_zod5.z.coerce.number().min(2010),
199
+ maxCapacity: import_zod5.z.coerce.number().min(2).max(15)
200
+ });
201
+ var save2 = import_zod5.z.object({
202
+ vehicleName: import_zod5.z.string().trim().nonempty("required"),
203
+ registrationNumber: import_zod5.z.string().trim().nonempty("required").toUpperCase(),
204
+ serviceRoutine: import_zod5.z.coerce.number("invalid"),
205
+ operatedSince: import_zod5.z.coerce.number("invalid").min(2010, "min"),
206
+ maxCapacity: import_zod5.z.coerce.number("invalid").min(2, "min").max(15, "max")
207
+ });
208
+
209
+ // src/safari/driver-details.ts
210
+ var driver_details_exports = {};
211
+ __export(driver_details_exports, {
212
+ create: () => create2,
213
+ me: () => me6,
214
+ meList: () => meList2
215
+ });
216
+ var import_zod6 = require("zod");
217
+ var me6 = import_zod6.z.object({
218
+ id: import_zod6.z.string(),
219
+ driverName: import_zod6.z.string().trim(),
220
+ licenseNumber: import_zod6.z.string().trim().toUpperCase(),
221
+ experience: import_zod6.z.coerce.number()
222
+ });
223
+ var create2 = import_zod6.z.object({
224
+ driverName: import_zod6.z.string().trim().nonempty("required"),
225
+ licenseNumber: import_zod6.z.string().trim().nonempty("required").toUpperCase(),
226
+ experience: import_zod6.z.coerce.number().min(1, "min")
227
+ });
228
+ var meList2 = import_zod6.z.array(me6);
229
+
230
+ // src/safari/business-details.ts
231
+ var business_details_exports = {};
232
+ __export(business_details_exports, {
233
+ create: () => create3,
234
+ me: () => me7
235
+ });
236
+ var import_zod7 = require("zod");
237
+ var me7 = import_zod7.z.object({
238
+ bankAccountNumber: import_zod7.z.string().trim(),
239
+ bankName: import_zod7.z.string().trim(),
240
+ accountHolderName: import_zod7.z.string().trim(),
241
+ gstNumber: import_zod7.z.string().trim().optional(),
242
+ businessNumber: import_zod7.z.string().trim().optional(),
243
+ ifscCode: import_zod7.z.string().trim()
244
+ });
245
+ var create3 = import_zod7.z.object({
246
+ bankAccountNumber: import_zod7.z.string().trim().nonempty("required"),
247
+ bankName: import_zod7.z.string().trim().nonempty("required"),
248
+ accountHolderName: import_zod7.z.string().trim().nonempty("required"),
249
+ ifscCode: import_zod7.z.string().trim().nonempty("required"),
250
+ gstNumber: import_zod7.z.string().trim().optional(),
251
+ businessNumber: import_zod7.z.string().trim().optional()
252
+ });
253
+
254
+ // src/safari/personal-details.ts
255
+ var personal_details_exports = {};
256
+ __export(personal_details_exports, {
257
+ me: () => me8,
258
+ save: () => save3
259
+ });
260
+ var import_zod8 = require("zod");
261
+ var me8 = import_zod8.z.object({
262
+ adhaarNumber: import_zod8.z.string().trim(),
263
+ address: import_zod8.z.string().trim()
264
+ });
265
+ var save3 = import_zod8.z.object({
266
+ adhaarNumber: import_zod8.z.string().trim().nonempty("required"),
267
+ address: import_zod8.z.string().trim().nonempty("required")
268
+ });
269
+
270
+ // src/common/index.ts
271
+ var common_exports = {};
272
+ __export(common_exports, {
273
+ VerifyEmail: () => verify_email_exports
274
+ });
275
+
276
+ // src/common/verify-email.ts
277
+ var verify_email_exports = {};
278
+ __export(verify_email_exports, {
279
+ sendOtp: () => sendOtp,
280
+ verifyOtp: () => verifyOtp,
281
+ verifyOtpResponse: () => verifyOtpResponse
282
+ });
283
+ var import_zod9 = require("zod");
284
+ var sendOtp = import_zod9.z.object({
285
+ email: import_zod9.z.email("invalid").nonempty("required").trim().toLowerCase()
286
+ });
287
+ var verifyOtp = import_zod9.z.object({
288
+ otp: import_zod9.z.string().min(4, { message: "required" }),
289
+ email: import_zod9.z.string().optional()
290
+ });
291
+ var verifyOtpResponse = import_zod9.z.object({
292
+ id: import_zod9.z.string()
293
+ });
294
+ // Annotate the CommonJS export names for ESM import in node:
295
+ 0 && (module.exports = {
296
+ CommonOnboarding,
297
+ SafariOnboarding
298
+ });
@@ -0,0 +1,3 @@
1
+ export { i as SafariOnboarding } from './index-CJRaz6vd.cjs';
2
+ export { i as CommonOnboarding } from './index-Bv8ss_jR.cjs';
3
+ import 'zod';
@@ -0,0 +1,3 @@
1
+ export { i as SafariOnboarding } from './index-CJRaz6vd.js';
2
+ export { i as CommonOnboarding } from './index-Bv8ss_jR.js';
3
+ import 'zod';