@tripsam/onboarding 1.0.23 → 1.0.25

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