@tripsam/onboarding 1.0.41 → 1.0.43

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const me$7: z.ZodObject<{
3
+ declare const me$8: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  email: z.ZodString;
6
6
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -14,8 +14,9 @@ declare const me$7: z.ZodObject<{
14
14
  approved: "approved";
15
15
  rejected: "rejected";
16
16
  }>>>;
17
- lastCompletedStep: z.ZodEnum<{
17
+ currentStep: z.ZodEnum<{
18
18
  basic_info: "basic_info";
19
+ location: "location";
19
20
  }>;
20
21
  remarks: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
22
  }, z.core.$strip>;
@@ -25,11 +26,11 @@ declare const update$1: z.ZodObject<{
25
26
  phoneNumber: z.ZodString;
26
27
  type: z.ZodString;
27
28
  }, z.core.$strip>;
28
- type SafeMe$7 = z.infer<typeof me$7>;
29
+ type SafeMe$8 = z.infer<typeof me$8>;
29
30
  type SafeUpdate$1 = z.output<typeof update$1>;
30
31
 
31
32
  declare namespace basicDetails {
32
- export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, update$1 as update };
33
+ export { type SafeMe$8 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$8 as me, update$1 as update };
33
34
  }
34
35
 
35
36
  declare const suggest: z.ZodObject<{
@@ -75,7 +76,7 @@ declare const save$2: z.ZodObject<{
75
76
  distanceKm: z.ZodCoercedNumber<unknown>;
76
77
  }, z.core.$strip>>;
77
78
  }, z.core.$strip>;
78
- declare const me$6: z.ZodObject<{
79
+ declare const me$7: z.ZodObject<{
79
80
  location: z.ZodObject<{
80
81
  id: z.ZodString;
81
82
  name: z.ZodString;
@@ -130,7 +131,7 @@ type SafeMinimum = z.output<typeof minimum>;
130
131
  type SafeMinimumList = z.output<typeof minimum>;
131
132
  type SafeSuggest = z.output<typeof suggest>;
132
133
  type SafeSave$2 = z.output<typeof save$2>;
133
- type SafeMe$6 = z.output<typeof me$6>;
134
+ type SafeMe$7 = z.output<typeof me$7>;
134
135
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
135
136
 
136
137
  type location_SafeMinimum = SafeMinimum;
@@ -142,7 +143,7 @@ declare const location_minimumList: typeof minimumList;
142
143
  declare const location_pickupLandmark: typeof pickupLandmark;
143
144
  declare const location_suggest: typeof suggest;
144
145
  declare namespace location {
145
- 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 };
146
+ export { type SafeMe$7 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$7 as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, save$2 as save, location_suggest as suggest };
146
147
  }
147
148
 
148
149
  declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -161,7 +162,7 @@ declare const create$2: z.ZodObject<{
161
162
  endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
162
163
  minHour: z.ZodCoercedNumber<unknown>;
163
164
  }, z.core.$strip>;
164
- declare const me$5: z.ZodObject<{
165
+ declare const me$6: z.ZodObject<{
165
166
  id: z.ZodString;
166
167
  name: z.ZodString;
167
168
  description: z.ZodOptional<z.ZodString>;
@@ -177,7 +178,7 @@ declare const meList$1: z.ZodArray<z.ZodObject<{
177
178
  endTime: z.ZodCoercedNumber<unknown>;
178
179
  minHour: z.ZodCoercedNumber<unknown>;
179
180
  }, z.core.$strip>>;
180
- type SafeMe$5 = z.output<typeof me$5>;
181
+ type SafeMe$6 = z.output<typeof me$6>;
181
182
  type SafeList$1 = z.output<typeof meList$1>;
182
183
  type SafeCreate$2 = z.output<typeof create$2>;
183
184
  type SafeUpdate = z.output<typeof update>;
@@ -186,7 +187,7 @@ type slot_SafeUpdate = SafeUpdate;
186
187
  declare const slot_time12h: typeof time12h;
187
188
  declare const slot_update: typeof update;
188
189
  declare namespace slot {
189
- 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 };
190
+ export { type SafeCreate$2 as SafeCreate, type SafeList$1 as SafeList, type SafeMe$6 as SafeMe, type slot_SafeUpdate as SafeUpdate, create$2 as create, me$6 as me, meList$1 as meList, slot_time12h as time12h, slot_update as update };
190
191
  }
191
192
 
192
193
  declare const Weekday: z.ZodEnum<{
@@ -198,7 +199,7 @@ declare const Weekday: z.ZodEnum<{
198
199
  friday: "friday";
199
200
  saturday: "saturday";
200
201
  }>;
201
- declare const me$4: z.ZodObject<{
202
+ declare const me$5: z.ZodObject<{
202
203
  operationalDays: z.ZodPipe<z.ZodArray<z.ZodEnum<{
203
204
  sunday: "sunday";
204
205
  monday: "monday";
@@ -209,16 +210,16 @@ declare const me$4: z.ZodObject<{
209
210
  saturday: "saturday";
210
211
  }>>, z.ZodTransform<("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[], ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[]>>;
211
212
  }, z.core.$strip>;
212
- type SafeMe$4 = z.output<typeof me$4>;
213
+ type SafeMe$5 = z.output<typeof me$5>;
213
214
  type SafeWeekdays = z.output<typeof Weekday>;
214
215
 
215
216
  type operationalDays_SafeWeekdays = SafeWeekdays;
216
217
  declare const operationalDays_Weekday: typeof Weekday;
217
218
  declare namespace operationalDays {
218
- export { type SafeMe$4 as SafeMe, type operationalDays_SafeWeekdays as SafeWeekdays, operationalDays_Weekday as Weekday, me$4 as me };
219
+ export { type SafeMe$5 as SafeMe, type operationalDays_SafeWeekdays as SafeWeekdays, operationalDays_Weekday as Weekday, me$5 as me };
219
220
  }
220
221
 
221
- declare const me$3: z.ZodObject<{
222
+ declare const me$4: z.ZodObject<{
222
223
  id: z.ZodString;
223
224
  vehicleName: z.ZodString;
224
225
  registrationNumber: z.ZodString;
@@ -233,14 +234,14 @@ declare const save$1: z.ZodObject<{
233
234
  operatedSince: z.ZodCoercedNumber<unknown>;
234
235
  maxCapacity: z.ZodCoercedNumber<unknown>;
235
236
  }, z.core.$strip>;
236
- type SafeMe$3 = z.infer<typeof me$3>;
237
+ type SafeMe$4 = z.infer<typeof me$4>;
237
238
  type SafeSave$1 = z.output<typeof save$1>;
238
239
 
239
240
  declare namespace vehicleDetails {
240
- export { type SafeMe$3 as SafeMe, type SafeSave$1 as SafeSave, me$3 as me, save$1 as save };
241
+ export { type SafeMe$4 as SafeMe, type SafeSave$1 as SafeSave, me$4 as me, save$1 as save };
241
242
  }
242
243
 
243
- declare const me$2: z.ZodObject<{
244
+ declare const me$3: z.ZodObject<{
244
245
  id: z.ZodString;
245
246
  driverName: z.ZodString;
246
247
  licenseNumber: z.ZodString;
@@ -257,17 +258,17 @@ declare const meList: z.ZodArray<z.ZodObject<{
257
258
  licenseNumber: z.ZodString;
258
259
  experience: z.ZodCoercedNumber<unknown>;
259
260
  }, z.core.$strip>>;
260
- type SafeMe$2 = z.infer<typeof me$2>;
261
+ type SafeMe$3 = z.infer<typeof me$3>;
261
262
  type SafeCreate$1 = z.output<typeof create$1>;
262
263
  type SafeList = z.output<typeof meList>;
263
264
 
264
265
  type driverDetails_SafeList = SafeList;
265
266
  declare const driverDetails_meList: typeof meList;
266
267
  declare namespace driverDetails {
267
- 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 };
268
+ export { type SafeCreate$1 as SafeCreate, type driverDetails_SafeList as SafeList, type SafeMe$3 as SafeMe, create$1 as create, me$3 as me, driverDetails_meList as meList };
268
269
  }
269
270
 
270
- declare const me$1: z.ZodObject<{
271
+ declare const me$2: z.ZodObject<{
271
272
  bankAccountNumber: z.ZodString;
272
273
  bankName: z.ZodString;
273
274
  accountHolderName: z.ZodString;
@@ -283,16 +284,16 @@ declare const create: z.ZodObject<{
283
284
  gstNumber: z.ZodOptional<z.ZodString>;
284
285
  businessNumber: z.ZodOptional<z.ZodString>;
285
286
  }, z.core.$strip>;
286
- type SafeMe$1 = z.infer<typeof me$1>;
287
+ type SafeMe$2 = z.infer<typeof me$2>;
287
288
  type SafeCreate = z.output<typeof create>;
288
289
 
289
290
  type businessDetails_SafeCreate = SafeCreate;
290
291
  declare const businessDetails_create: typeof create;
291
292
  declare namespace businessDetails {
292
- export { type businessDetails_SafeCreate as SafeCreate, type SafeMe$1 as SafeMe, businessDetails_create as create, me$1 as me };
293
+ export { type businessDetails_SafeCreate as SafeCreate, type SafeMe$2 as SafeMe, businessDetails_create as create, me$2 as me };
293
294
  }
294
295
 
295
- declare const me: z.ZodObject<{
296
+ declare const me$1: z.ZodObject<{
296
297
  adhaarNumber: z.ZodString;
297
298
  address: z.ZodString;
298
299
  }, z.core.$strip>;
@@ -300,19 +301,49 @@ declare const save: z.ZodObject<{
300
301
  adhaarNumber: z.ZodString;
301
302
  address: z.ZodString;
302
303
  }, z.core.$strip>;
303
- type SafeMe = z.infer<typeof me>;
304
+ type SafeMe$1 = z.infer<typeof me$1>;
304
305
  type SafeSave = z.output<typeof save>;
305
306
 
306
- type personalDetails_SafeMe = SafeMe;
307
307
  type personalDetails_SafeSave = SafeSave;
308
- declare const personalDetails_me: typeof me;
309
308
  declare const personalDetails_save: typeof save;
310
309
  declare namespace personalDetails {
311
- export { type personalDetails_SafeMe as SafeMe, type personalDetails_SafeSave as SafeSave, personalDetails_me as me, personalDetails_save as save };
310
+ export { type SafeMe$1 as SafeMe, type personalDetails_SafeSave as SafeSave, me$1 as me, personalDetails_save as save };
311
+ }
312
+
313
+ declare const steps: z.ZodEnum<{
314
+ basic_info: "basic_info";
315
+ location: "location";
316
+ }>;
317
+ declare const me: z.ZodObject<{
318
+ email: z.ZodString;
319
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
320
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
321
+ phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
322
+ isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
323
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
324
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
325
+ pending: "pending";
326
+ in_review: "in_review";
327
+ approved: "approved";
328
+ rejected: "rejected";
329
+ }>>>;
330
+ currentStep: z.ZodEnum<{
331
+ basic_info: "basic_info";
332
+ location: "location";
333
+ }>;
334
+ remarks: z.ZodDefault<z.ZodOptional<z.ZodString>>;
335
+ }, z.core.$strip>;
336
+ type SafeMe = z.infer<typeof me>;
337
+
338
+ type step_SafeMe = SafeMe;
339
+ declare const step_me: typeof me;
340
+ declare const step_steps: typeof steps;
341
+ declare namespace step {
342
+ export { type step_SafeMe as SafeMe, step_me as me, step_steps as steps };
312
343
  }
313
344
 
314
345
  declare namespace index {
315
- 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 };
346
+ export { basicDetails as BasicDetails, businessDetails as BusinessDetails, driverDetails as DriverDetails, location as Location, operationalDays as OperationalDays, personalDetails as PersonalDetails, slot as Slot, step as Step, vehicleDetails as VehicleDetails };
316
347
  }
317
348
 
318
- 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 };
349
+ export { businessDetails as a, basicDetails as b, step as c, driverDetails as d, index as i, location as l, operationalDays as o, personalDetails as p, slot as s, vehicleDetails as v };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const me$7: z.ZodObject<{
3
+ declare const me$8: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  email: z.ZodString;
6
6
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -14,8 +14,9 @@ declare const me$7: z.ZodObject<{
14
14
  approved: "approved";
15
15
  rejected: "rejected";
16
16
  }>>>;
17
- lastCompletedStep: z.ZodEnum<{
17
+ currentStep: z.ZodEnum<{
18
18
  basic_info: "basic_info";
19
+ location: "location";
19
20
  }>;
20
21
  remarks: z.ZodDefault<z.ZodOptional<z.ZodString>>;
21
22
  }, z.core.$strip>;
@@ -25,11 +26,11 @@ declare const update$1: z.ZodObject<{
25
26
  phoneNumber: z.ZodString;
26
27
  type: z.ZodString;
27
28
  }, z.core.$strip>;
28
- type SafeMe$7 = z.infer<typeof me$7>;
29
+ type SafeMe$8 = z.infer<typeof me$8>;
29
30
  type SafeUpdate$1 = z.output<typeof update$1>;
30
31
 
31
32
  declare namespace basicDetails {
32
- export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, update$1 as update };
33
+ export { type SafeMe$8 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$8 as me, update$1 as update };
33
34
  }
34
35
 
35
36
  declare const suggest: z.ZodObject<{
@@ -75,7 +76,7 @@ declare const save$2: z.ZodObject<{
75
76
  distanceKm: z.ZodCoercedNumber<unknown>;
76
77
  }, z.core.$strip>>;
77
78
  }, z.core.$strip>;
78
- declare const me$6: z.ZodObject<{
79
+ declare const me$7: z.ZodObject<{
79
80
  location: z.ZodObject<{
80
81
  id: z.ZodString;
81
82
  name: z.ZodString;
@@ -130,7 +131,7 @@ type SafeMinimum = z.output<typeof minimum>;
130
131
  type SafeMinimumList = z.output<typeof minimum>;
131
132
  type SafeSuggest = z.output<typeof suggest>;
132
133
  type SafeSave$2 = z.output<typeof save$2>;
133
- type SafeMe$6 = z.output<typeof me$6>;
134
+ type SafeMe$7 = z.output<typeof me$7>;
134
135
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
135
136
 
136
137
  type location_SafeMinimum = SafeMinimum;
@@ -142,7 +143,7 @@ declare const location_minimumList: typeof minimumList;
142
143
  declare const location_pickupLandmark: typeof pickupLandmark;
143
144
  declare const location_suggest: typeof suggest;
144
145
  declare namespace location {
145
- 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 };
146
+ export { type SafeMe$7 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$7 as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, save$2 as save, location_suggest as suggest };
146
147
  }
147
148
 
148
149
  declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -161,7 +162,7 @@ declare const create$2: z.ZodObject<{
161
162
  endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
162
163
  minHour: z.ZodCoercedNumber<unknown>;
163
164
  }, z.core.$strip>;
164
- declare const me$5: z.ZodObject<{
165
+ declare const me$6: z.ZodObject<{
165
166
  id: z.ZodString;
166
167
  name: z.ZodString;
167
168
  description: z.ZodOptional<z.ZodString>;
@@ -177,7 +178,7 @@ declare const meList$1: z.ZodArray<z.ZodObject<{
177
178
  endTime: z.ZodCoercedNumber<unknown>;
178
179
  minHour: z.ZodCoercedNumber<unknown>;
179
180
  }, z.core.$strip>>;
180
- type SafeMe$5 = z.output<typeof me$5>;
181
+ type SafeMe$6 = z.output<typeof me$6>;
181
182
  type SafeList$1 = z.output<typeof meList$1>;
182
183
  type SafeCreate$2 = z.output<typeof create$2>;
183
184
  type SafeUpdate = z.output<typeof update>;
@@ -186,7 +187,7 @@ type slot_SafeUpdate = SafeUpdate;
186
187
  declare const slot_time12h: typeof time12h;
187
188
  declare const slot_update: typeof update;
188
189
  declare namespace slot {
189
- 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 };
190
+ export { type SafeCreate$2 as SafeCreate, type SafeList$1 as SafeList, type SafeMe$6 as SafeMe, type slot_SafeUpdate as SafeUpdate, create$2 as create, me$6 as me, meList$1 as meList, slot_time12h as time12h, slot_update as update };
190
191
  }
191
192
 
192
193
  declare const Weekday: z.ZodEnum<{
@@ -198,7 +199,7 @@ declare const Weekday: z.ZodEnum<{
198
199
  friday: "friday";
199
200
  saturday: "saturday";
200
201
  }>;
201
- declare const me$4: z.ZodObject<{
202
+ declare const me$5: z.ZodObject<{
202
203
  operationalDays: z.ZodPipe<z.ZodArray<z.ZodEnum<{
203
204
  sunday: "sunday";
204
205
  monday: "monday";
@@ -209,16 +210,16 @@ declare const me$4: z.ZodObject<{
209
210
  saturday: "saturday";
210
211
  }>>, z.ZodTransform<("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[], ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[]>>;
211
212
  }, z.core.$strip>;
212
- type SafeMe$4 = z.output<typeof me$4>;
213
+ type SafeMe$5 = z.output<typeof me$5>;
213
214
  type SafeWeekdays = z.output<typeof Weekday>;
214
215
 
215
216
  type operationalDays_SafeWeekdays = SafeWeekdays;
216
217
  declare const operationalDays_Weekday: typeof Weekday;
217
218
  declare namespace operationalDays {
218
- export { type SafeMe$4 as SafeMe, type operationalDays_SafeWeekdays as SafeWeekdays, operationalDays_Weekday as Weekday, me$4 as me };
219
+ export { type SafeMe$5 as SafeMe, type operationalDays_SafeWeekdays as SafeWeekdays, operationalDays_Weekday as Weekday, me$5 as me };
219
220
  }
220
221
 
221
- declare const me$3: z.ZodObject<{
222
+ declare const me$4: z.ZodObject<{
222
223
  id: z.ZodString;
223
224
  vehicleName: z.ZodString;
224
225
  registrationNumber: z.ZodString;
@@ -233,14 +234,14 @@ declare const save$1: z.ZodObject<{
233
234
  operatedSince: z.ZodCoercedNumber<unknown>;
234
235
  maxCapacity: z.ZodCoercedNumber<unknown>;
235
236
  }, z.core.$strip>;
236
- type SafeMe$3 = z.infer<typeof me$3>;
237
+ type SafeMe$4 = z.infer<typeof me$4>;
237
238
  type SafeSave$1 = z.output<typeof save$1>;
238
239
 
239
240
  declare namespace vehicleDetails {
240
- export { type SafeMe$3 as SafeMe, type SafeSave$1 as SafeSave, me$3 as me, save$1 as save };
241
+ export { type SafeMe$4 as SafeMe, type SafeSave$1 as SafeSave, me$4 as me, save$1 as save };
241
242
  }
242
243
 
243
- declare const me$2: z.ZodObject<{
244
+ declare const me$3: z.ZodObject<{
244
245
  id: z.ZodString;
245
246
  driverName: z.ZodString;
246
247
  licenseNumber: z.ZodString;
@@ -257,17 +258,17 @@ declare const meList: z.ZodArray<z.ZodObject<{
257
258
  licenseNumber: z.ZodString;
258
259
  experience: z.ZodCoercedNumber<unknown>;
259
260
  }, z.core.$strip>>;
260
- type SafeMe$2 = z.infer<typeof me$2>;
261
+ type SafeMe$3 = z.infer<typeof me$3>;
261
262
  type SafeCreate$1 = z.output<typeof create$1>;
262
263
  type SafeList = z.output<typeof meList>;
263
264
 
264
265
  type driverDetails_SafeList = SafeList;
265
266
  declare const driverDetails_meList: typeof meList;
266
267
  declare namespace driverDetails {
267
- 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 };
268
+ export { type SafeCreate$1 as SafeCreate, type driverDetails_SafeList as SafeList, type SafeMe$3 as SafeMe, create$1 as create, me$3 as me, driverDetails_meList as meList };
268
269
  }
269
270
 
270
- declare const me$1: z.ZodObject<{
271
+ declare const me$2: z.ZodObject<{
271
272
  bankAccountNumber: z.ZodString;
272
273
  bankName: z.ZodString;
273
274
  accountHolderName: z.ZodString;
@@ -283,16 +284,16 @@ declare const create: z.ZodObject<{
283
284
  gstNumber: z.ZodOptional<z.ZodString>;
284
285
  businessNumber: z.ZodOptional<z.ZodString>;
285
286
  }, z.core.$strip>;
286
- type SafeMe$1 = z.infer<typeof me$1>;
287
+ type SafeMe$2 = z.infer<typeof me$2>;
287
288
  type SafeCreate = z.output<typeof create>;
288
289
 
289
290
  type businessDetails_SafeCreate = SafeCreate;
290
291
  declare const businessDetails_create: typeof create;
291
292
  declare namespace businessDetails {
292
- export { type businessDetails_SafeCreate as SafeCreate, type SafeMe$1 as SafeMe, businessDetails_create as create, me$1 as me };
293
+ export { type businessDetails_SafeCreate as SafeCreate, type SafeMe$2 as SafeMe, businessDetails_create as create, me$2 as me };
293
294
  }
294
295
 
295
- declare const me: z.ZodObject<{
296
+ declare const me$1: z.ZodObject<{
296
297
  adhaarNumber: z.ZodString;
297
298
  address: z.ZodString;
298
299
  }, z.core.$strip>;
@@ -300,19 +301,49 @@ declare const save: z.ZodObject<{
300
301
  adhaarNumber: z.ZodString;
301
302
  address: z.ZodString;
302
303
  }, z.core.$strip>;
303
- type SafeMe = z.infer<typeof me>;
304
+ type SafeMe$1 = z.infer<typeof me$1>;
304
305
  type SafeSave = z.output<typeof save>;
305
306
 
306
- type personalDetails_SafeMe = SafeMe;
307
307
  type personalDetails_SafeSave = SafeSave;
308
- declare const personalDetails_me: typeof me;
309
308
  declare const personalDetails_save: typeof save;
310
309
  declare namespace personalDetails {
311
- export { type personalDetails_SafeMe as SafeMe, type personalDetails_SafeSave as SafeSave, personalDetails_me as me, personalDetails_save as save };
310
+ export { type SafeMe$1 as SafeMe, type personalDetails_SafeSave as SafeSave, me$1 as me, personalDetails_save as save };
311
+ }
312
+
313
+ declare const steps: z.ZodEnum<{
314
+ basic_info: "basic_info";
315
+ location: "location";
316
+ }>;
317
+ declare const me: z.ZodObject<{
318
+ email: z.ZodString;
319
+ name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
320
+ countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
321
+ phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
322
+ isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
323
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
324
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
325
+ pending: "pending";
326
+ in_review: "in_review";
327
+ approved: "approved";
328
+ rejected: "rejected";
329
+ }>>>;
330
+ currentStep: z.ZodEnum<{
331
+ basic_info: "basic_info";
332
+ location: "location";
333
+ }>;
334
+ remarks: z.ZodDefault<z.ZodOptional<z.ZodString>>;
335
+ }, z.core.$strip>;
336
+ type SafeMe = z.infer<typeof me>;
337
+
338
+ type step_SafeMe = SafeMe;
339
+ declare const step_me: typeof me;
340
+ declare const step_steps: typeof steps;
341
+ declare namespace step {
342
+ export { type step_SafeMe as SafeMe, step_me as me, step_steps as steps };
312
343
  }
313
344
 
314
345
  declare namespace index {
315
- 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 };
346
+ export { basicDetails as BasicDetails, businessDetails as BusinessDetails, driverDetails as DriverDetails, location as Location, operationalDays as OperationalDays, personalDetails as PersonalDetails, slot as Slot, step as Step, vehicleDetails as VehicleDetails };
316
347
  }
317
348
 
318
- 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 };
349
+ export { businessDetails as a, basicDetails as b, step as c, 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 CHANGED
@@ -35,6 +35,7 @@ __export(safari_exports, {
35
35
  OperationalDays: () => operational_days_exports,
36
36
  PersonalDetails: () => personal_details_exports,
37
37
  Slot: () => slot_exports,
38
+ Step: () => step_exports,
38
39
  VehicleDetails: () => vehicle_details_exports
39
40
  });
40
41
 
@@ -54,7 +55,7 @@ var me = import_zod.z.object({
54
55
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
55
56
  type: import_zod.z.string().optional().default(""),
56
57
  status: import_zod.z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
57
- lastCompletedStep: import_zod.z.enum(["basic_info"]),
58
+ currentStep: import_zod.z.enum(["basic_info", "location"]),
58
59
  remarks: import_zod.z.string().optional().default("")
59
60
  });
60
61
  var update = import_zod.z.object({
@@ -271,6 +272,26 @@ var save3 = import_zod8.z.object({
271
272
  address: import_zod8.z.string().trim().nonempty("required")
272
273
  });
273
274
 
275
+ // src/safari/step.ts
276
+ var step_exports = {};
277
+ __export(step_exports, {
278
+ me: () => me9,
279
+ steps: () => steps
280
+ });
281
+ var import_zod9 = require("zod");
282
+ var steps = import_zod9.z.enum(["basic_info", "location"]);
283
+ var me9 = import_zod9.z.object({
284
+ email: import_zod9.z.string(),
285
+ name: import_zod9.z.string().trim().optional().default(""),
286
+ countryCode: import_zod9.z.string().optional().default("+91"),
287
+ phoneNumber: import_zod9.z.string().optional().default(""),
288
+ isPhoneVerified: import_zod9.z.boolean().optional().default(false),
289
+ type: import_zod9.z.string().optional().default(""),
290
+ status: import_zod9.z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
291
+ currentStep: steps,
292
+ remarks: import_zod9.z.string().optional().default("")
293
+ });
294
+
274
295
  // src/common/index.ts
275
296
  var common_exports = {};
276
297
  __export(common_exports, {
@@ -284,16 +305,16 @@ __export(verify_email_exports, {
284
305
  verifyOtp: () => verifyOtp,
285
306
  verifyOtpResponse: () => verifyOtpResponse
286
307
  });
287
- var import_zod9 = require("zod");
288
- var sendOtp = import_zod9.z.object({
289
- email: import_zod9.z.email("invalid").nonempty("required").trim().toLowerCase()
308
+ var import_zod10 = require("zod");
309
+ var sendOtp = import_zod10.z.object({
310
+ email: import_zod10.z.email("invalid").nonempty("required").trim().toLowerCase()
290
311
  });
291
- var verifyOtp = import_zod9.z.object({
292
- otp: import_zod9.z.string().min(4, { message: "required" }),
293
- email: import_zod9.z.string().optional()
312
+ var verifyOtp = import_zod10.z.object({
313
+ otp: import_zod10.z.string().min(4, { message: "required" }),
314
+ email: import_zod10.z.string().optional()
294
315
  });
295
- var verifyOtpResponse = import_zod9.z.object({
296
- id: import_zod9.z.string()
316
+ var verifyOtpResponse = import_zod10.z.object({
317
+ id: import_zod10.z.string()
297
318
  });
298
319
  // Annotate the CommonJS export names for ESM import in node:
299
320
  0 && (module.exports = {
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-dvnSB8IC.cjs';
1
+ export { i as SafariOnboarding } from './index-Wj1jWQ1j.cjs';
2
2
  export { i as CommonOnboarding } from './index-Bv8ss_jR.cjs';
3
3
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-dvnSB8IC.js';
1
+ export { i as SafariOnboarding } from './index-Wj1jWQ1j.js';
2
2
  export { i as CommonOnboarding } from './index-Bv8ss_jR.js';
3
3
  import 'zod';
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ __export(safari_exports, {
14
14
  OperationalDays: () => operational_days_exports,
15
15
  PersonalDetails: () => personal_details_exports,
16
16
  Slot: () => slot_exports,
17
+ Step: () => step_exports,
17
18
  VehicleDetails: () => vehicle_details_exports
18
19
  });
19
20
 
@@ -33,7 +34,7 @@ var me = z.object({
33
34
  isPhoneVerified: z.boolean().optional().default(false),
34
35
  type: z.string().optional().default(""),
35
36
  status: z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
36
- lastCompletedStep: z.enum(["basic_info"]),
37
+ currentStep: z.enum(["basic_info", "location"]),
37
38
  remarks: z.string().optional().default("")
38
39
  });
39
40
  var update = z.object({
@@ -250,6 +251,26 @@ var save3 = z8.object({
250
251
  address: z8.string().trim().nonempty("required")
251
252
  });
252
253
 
254
+ // src/safari/step.ts
255
+ var step_exports = {};
256
+ __export(step_exports, {
257
+ me: () => me9,
258
+ steps: () => steps
259
+ });
260
+ import { z as z9 } from "zod";
261
+ var steps = z9.enum(["basic_info", "location"]);
262
+ var me9 = z9.object({
263
+ email: z9.string(),
264
+ name: z9.string().trim().optional().default(""),
265
+ countryCode: z9.string().optional().default("+91"),
266
+ phoneNumber: z9.string().optional().default(""),
267
+ isPhoneVerified: z9.boolean().optional().default(false),
268
+ type: z9.string().optional().default(""),
269
+ status: z9.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
270
+ currentStep: steps,
271
+ remarks: z9.string().optional().default("")
272
+ });
273
+
253
274
  // src/common/index.ts
254
275
  var common_exports = {};
255
276
  __export(common_exports, {
@@ -263,16 +284,16 @@ __export(verify_email_exports, {
263
284
  verifyOtp: () => verifyOtp,
264
285
  verifyOtpResponse: () => verifyOtpResponse
265
286
  });
266
- import { z as z9 } from "zod";
267
- var sendOtp = z9.object({
268
- email: z9.email("invalid").nonempty("required").trim().toLowerCase()
287
+ import { z as z10 } from "zod";
288
+ var sendOtp = z10.object({
289
+ email: z10.email("invalid").nonempty("required").trim().toLowerCase()
269
290
  });
270
- var verifyOtp = z9.object({
271
- otp: z9.string().min(4, { message: "required" }),
272
- email: z9.string().optional()
291
+ var verifyOtp = z10.object({
292
+ otp: z10.string().min(4, { message: "required" }),
293
+ email: z10.string().optional()
273
294
  });
274
- var verifyOtpResponse = z9.object({
275
- id: z9.string()
295
+ var verifyOtpResponse = z10.object({
296
+ id: z10.string()
276
297
  });
277
298
  export {
278
299
  common_exports as CommonOnboarding,
@@ -27,6 +27,7 @@ __export(safari_exports, {
27
27
  OperationalDays: () => operational_days_exports,
28
28
  PersonalDetails: () => personal_details_exports,
29
29
  Slot: () => slot_exports,
30
+ Step: () => step_exports,
30
31
  VehicleDetails: () => vehicle_details_exports
31
32
  });
32
33
  module.exports = __toCommonJS(safari_exports);
@@ -47,7 +48,7 @@ var me = import_zod.z.object({
47
48
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
48
49
  type: import_zod.z.string().optional().default(""),
49
50
  status: import_zod.z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
50
- lastCompletedStep: import_zod.z.enum(["basic_info"]),
51
+ currentStep: import_zod.z.enum(["basic_info", "location"]),
51
52
  remarks: import_zod.z.string().optional().default("")
52
53
  });
53
54
  var update = import_zod.z.object({
@@ -263,6 +264,26 @@ var save3 = import_zod8.z.object({
263
264
  adhaarNumber: import_zod8.z.string().trim().nonempty("required"),
264
265
  address: import_zod8.z.string().trim().nonempty("required")
265
266
  });
267
+
268
+ // src/safari/step.ts
269
+ var step_exports = {};
270
+ __export(step_exports, {
271
+ me: () => me9,
272
+ steps: () => steps
273
+ });
274
+ var import_zod9 = require("zod");
275
+ var steps = import_zod9.z.enum(["basic_info", "location"]);
276
+ var me9 = import_zod9.z.object({
277
+ email: import_zod9.z.string(),
278
+ name: import_zod9.z.string().trim().optional().default(""),
279
+ countryCode: import_zod9.z.string().optional().default("+91"),
280
+ phoneNumber: import_zod9.z.string().optional().default(""),
281
+ isPhoneVerified: import_zod9.z.boolean().optional().default(false),
282
+ type: import_zod9.z.string().optional().default(""),
283
+ status: import_zod9.z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
284
+ currentStep: steps,
285
+ remarks: import_zod9.z.string().optional().default("")
286
+ });
266
287
  // Annotate the CommonJS export names for ESM import in node:
267
288
  0 && (module.exports = {
268
289
  BasicDetails,
@@ -272,5 +293,6 @@ var save3 = import_zod8.z.object({
272
293
  OperationalDays,
273
294
  PersonalDetails,
274
295
  Slot,
296
+ Step,
275
297
  VehicleDetails
276
298
  });
@@ -1,2 +1,2 @@
1
- export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, s as Slot, v as VehicleDetails } from '../index-dvnSB8IC.cjs';
1
+ export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, s as Slot, c as Step, v as VehicleDetails } from '../index-Wj1jWQ1j.cjs';
2
2
  import 'zod';
@@ -1,2 +1,2 @@
1
- export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, s as Slot, v as VehicleDetails } from '../index-dvnSB8IC.js';
1
+ export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, s as Slot, c as Step, v as VehicleDetails } from '../index-Wj1jWQ1j.js';
2
2
  import 'zod';
@@ -20,7 +20,7 @@ var me = z.object({
20
20
  isPhoneVerified: z.boolean().optional().default(false),
21
21
  type: z.string().optional().default(""),
22
22
  status: z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
23
- lastCompletedStep: z.enum(["basic_info"]),
23
+ currentStep: z.enum(["basic_info", "location"]),
24
24
  remarks: z.string().optional().default("")
25
25
  });
26
26
  var update = z.object({
@@ -236,6 +236,26 @@ var save3 = z8.object({
236
236
  adhaarNumber: z8.string().trim().nonempty("required"),
237
237
  address: z8.string().trim().nonempty("required")
238
238
  });
239
+
240
+ // src/safari/step.ts
241
+ var step_exports = {};
242
+ __export(step_exports, {
243
+ me: () => me9,
244
+ steps: () => steps
245
+ });
246
+ import { z as z9 } from "zod";
247
+ var steps = z9.enum(["basic_info", "location"]);
248
+ var me9 = z9.object({
249
+ email: z9.string(),
250
+ name: z9.string().trim().optional().default(""),
251
+ countryCode: z9.string().optional().default("+91"),
252
+ phoneNumber: z9.string().optional().default(""),
253
+ isPhoneVerified: z9.boolean().optional().default(false),
254
+ type: z9.string().optional().default(""),
255
+ status: z9.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
256
+ currentStep: steps,
257
+ remarks: z9.string().optional().default("")
258
+ });
239
259
  export {
240
260
  basic_details_exports as BasicDetails,
241
261
  business_details_exports as BusinessDetails,
@@ -244,5 +264,6 @@ export {
244
264
  operational_days_exports as OperationalDays,
245
265
  personal_details_exports as PersonalDetails,
246
266
  slot_exports as Slot,
267
+ step_exports as Step,
247
268
  vehicle_details_exports as VehicleDetails
248
269
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",