@tripsam/onboarding 1.0.25 → 1.0.27

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.
@@ -150,9 +150,8 @@ var me4 = _zod.z.object({
150
150
  // src/safari/vehicle-details.ts
151
151
  var vehicle_details_exports = {};
152
152
  _chunk75ZPJI57cjs.__export.call(void 0, vehicle_details_exports, {
153
- create: () => create2,
154
153
  me: () => me5,
155
- meList: () => meList2
154
+ save: () => save2
156
155
  });
157
156
 
158
157
  var me5 = _zod.z.object({
@@ -163,21 +162,20 @@ var me5 = _zod.z.object({
163
162
  operatedSince: _zod.z.coerce.number().min(2010),
164
163
  maxCapacity: _zod.z.coerce.number().min(2).max(15)
165
164
  });
166
- var create2 = _zod.z.object({
165
+ var save2 = _zod.z.object({
167
166
  vehicleName: _zod.z.string().trim().nonempty("required"),
168
167
  registrationNumber: _zod.z.string().trim().nonempty("required").toUpperCase(),
169
168
  serviceRoutine: _zod.z.coerce.number("invalid"),
170
169
  operatedSince: _zod.z.coerce.number("invalid").min(2010, "min"),
171
170
  maxCapacity: _zod.z.coerce.number("invalid").min(2, "min").max(15, "max")
172
171
  });
173
- var meList2 = _zod.z.array(me5);
174
172
 
175
173
  // src/safari/driver-details.ts
176
174
  var driver_details_exports = {};
177
175
  _chunk75ZPJI57cjs.__export.call(void 0, driver_details_exports, {
178
- create: () => create3,
176
+ create: () => create2,
179
177
  me: () => me6,
180
- meList: () => meList3
178
+ meList: () => meList2
181
179
  });
182
180
 
183
181
  var me6 = _zod.z.object({
@@ -186,17 +184,17 @@ var me6 = _zod.z.object({
186
184
  licenseNumber: _zod.z.string().trim().toUpperCase(),
187
185
  experience: _zod.z.coerce.number()
188
186
  });
189
- var create3 = _zod.z.object({
187
+ var create2 = _zod.z.object({
190
188
  driverName: _zod.z.string().trim().nonempty("required"),
191
189
  licenseNumber: _zod.z.string().trim().nonempty("required").toUpperCase(),
192
190
  experience: _zod.z.coerce.number().min(1, "min")
193
191
  });
194
- var meList3 = _zod.z.array(me6);
192
+ var meList2 = _zod.z.array(me6);
195
193
 
196
194
  // src/safari/business-details.ts
197
195
  var business_details_exports = {};
198
196
  _chunk75ZPJI57cjs.__export.call(void 0, business_details_exports, {
199
- create: () => create4,
197
+ create: () => create3,
200
198
  me: () => me7
201
199
  });
202
200
 
@@ -208,7 +206,7 @@ var me7 = _zod.z.object({
208
206
  businessNumber: _zod.z.string().trim().optional(),
209
207
  ifscCode: _zod.z.string().trim()
210
208
  });
211
- var create4 = _zod.z.object({
209
+ var create3 = _zod.z.object({
212
210
  bankAccountNumber: _zod.z.string().trim().nonempty("required"),
213
211
  bankName: _zod.z.string().trim().nonempty("required"),
214
212
  accountHolderName: _zod.z.string().trim().nonempty("required"),
@@ -221,14 +219,14 @@ var create4 = _zod.z.object({
221
219
  var personal_details_exports = {};
222
220
  _chunk75ZPJI57cjs.__export.call(void 0, personal_details_exports, {
223
221
  me: () => me8,
224
- save: () => save2
222
+ save: () => save3
225
223
  });
226
224
 
227
225
  var me8 = _zod.z.object({
228
226
  adhaarNumber: _zod.z.string().trim(),
229
227
  address: _zod.z.string().trim()
230
228
  });
231
- var save2 = _zod.z.object({
229
+ var save3 = _zod.z.object({
232
230
  adhaarNumber: _zod.z.string().trim().nonempty("required"),
233
231
  address: _zod.z.string().trim().nonempty("required")
234
232
  });
@@ -53,7 +53,7 @@ declare const pickupLandmark: z.ZodObject<{
53
53
  type: z.ZodOptional<z.ZodString>;
54
54
  distanceKm: z.ZodCoercedNumber<unknown>;
55
55
  }, z.core.$strip>;
56
- declare const save$1: z.ZodObject<{
56
+ declare const save$2: z.ZodObject<{
57
57
  locationId: z.ZodString;
58
58
  safariLocation: z.ZodString;
59
59
  pickupLocation: z.ZodString;
@@ -118,7 +118,7 @@ declare const minimumList: z.ZodArray<z.ZodObject<{
118
118
  type SafeMinimum = z.output<typeof minimum>;
119
119
  type SafeMinimumList = z.output<typeof minimum>;
120
120
  type SafeSuggest = z.output<typeof suggest>;
121
- type SafeSave$1 = z.output<typeof save$1>;
121
+ type SafeSave$2 = z.output<typeof save$2>;
122
122
  type SafeMe$6 = z.output<typeof me$6>;
123
123
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
124
124
 
@@ -131,7 +131,7 @@ declare const location_minimumList: typeof minimumList;
131
131
  declare const location_pickupLandmark: typeof pickupLandmark;
132
132
  declare const location_suggest: typeof suggest;
133
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$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 };
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
135
  }
136
136
 
137
137
  declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -143,7 +143,7 @@ declare const update: z.ZodObject<{
143
143
  endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
144
144
  minHour: z.ZodCoercedNumber<unknown>;
145
145
  }, z.core.$strip>;
146
- declare const create$3: z.ZodObject<{
146
+ declare const create$2: z.ZodObject<{
147
147
  name: z.ZodString;
148
148
  description: z.ZodOptional<z.ZodString>;
149
149
  startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -158,7 +158,7 @@ declare const me$5: z.ZodObject<{
158
158
  endTime: z.ZodCoercedNumber<unknown>;
159
159
  minHour: z.ZodCoercedNumber<unknown>;
160
160
  }, z.core.$strip>;
161
- declare const meList$2: z.ZodArray<z.ZodObject<{
161
+ declare const meList$1: z.ZodArray<z.ZodObject<{
162
162
  id: z.ZodString;
163
163
  name: z.ZodString;
164
164
  description: z.ZodOptional<z.ZodString>;
@@ -167,15 +167,15 @@ declare const meList$2: z.ZodArray<z.ZodObject<{
167
167
  minHour: z.ZodCoercedNumber<unknown>;
168
168
  }, z.core.$strip>>;
169
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>;
170
+ type SafeList$1 = z.output<typeof meList$1>;
171
+ type SafeCreate$2 = z.output<typeof create$2>;
172
172
  type SafeUpdate = z.output<typeof update>;
173
173
 
174
174
  type slot_SafeUpdate = SafeUpdate;
175
175
  declare const slot_time12h: typeof time12h;
176
176
  declare const slot_update: typeof update;
177
177
  declare namespace slot {
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 };
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
179
  }
180
180
 
181
181
  declare const Weekday: z.ZodEnum<{
@@ -215,27 +215,18 @@ declare const me$3: z.ZodObject<{
215
215
  operatedSince: z.ZodCoercedNumber<unknown>;
216
216
  maxCapacity: z.ZodCoercedNumber<unknown>;
217
217
  }, z.core.$strip>;
218
- declare const create$2: z.ZodObject<{
218
+ declare const save$1: z.ZodObject<{
219
219
  vehicleName: z.ZodString;
220
220
  registrationNumber: z.ZodString;
221
221
  serviceRoutine: z.ZodCoercedNumber<unknown>;
222
222
  operatedSince: z.ZodCoercedNumber<unknown>;
223
223
  maxCapacity: z.ZodCoercedNumber<unknown>;
224
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
225
  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>;
226
+ type SafeSave$1 = z.output<typeof save$1>;
236
227
 
237
228
  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 };
229
+ export { type SafeMe$3 as SafeMe, type SafeSave$1 as SafeSave, me$3 as me, save$1 as save };
239
230
  }
240
231
 
241
232
  declare const me$2: z.ZodObject<{
@@ -53,7 +53,7 @@ declare const pickupLandmark: z.ZodObject<{
53
53
  type: z.ZodOptional<z.ZodString>;
54
54
  distanceKm: z.ZodCoercedNumber<unknown>;
55
55
  }, z.core.$strip>;
56
- declare const save$1: z.ZodObject<{
56
+ declare const save$2: z.ZodObject<{
57
57
  locationId: z.ZodString;
58
58
  safariLocation: z.ZodString;
59
59
  pickupLocation: z.ZodString;
@@ -118,7 +118,7 @@ declare const minimumList: z.ZodArray<z.ZodObject<{
118
118
  type SafeMinimum = z.output<typeof minimum>;
119
119
  type SafeMinimumList = z.output<typeof minimum>;
120
120
  type SafeSuggest = z.output<typeof suggest>;
121
- type SafeSave$1 = z.output<typeof save$1>;
121
+ type SafeSave$2 = z.output<typeof save$2>;
122
122
  type SafeMe$6 = z.output<typeof me$6>;
123
123
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
124
124
 
@@ -131,7 +131,7 @@ declare const location_minimumList: typeof minimumList;
131
131
  declare const location_pickupLandmark: typeof pickupLandmark;
132
132
  declare const location_suggest: typeof suggest;
133
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$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 };
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
135
  }
136
136
 
137
137
  declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -143,7 +143,7 @@ declare const update: z.ZodObject<{
143
143
  endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
144
144
  minHour: z.ZodCoercedNumber<unknown>;
145
145
  }, z.core.$strip>;
146
- declare const create$3: z.ZodObject<{
146
+ declare const create$2: z.ZodObject<{
147
147
  name: z.ZodString;
148
148
  description: z.ZodOptional<z.ZodString>;
149
149
  startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -158,7 +158,7 @@ declare const me$5: z.ZodObject<{
158
158
  endTime: z.ZodCoercedNumber<unknown>;
159
159
  minHour: z.ZodCoercedNumber<unknown>;
160
160
  }, z.core.$strip>;
161
- declare const meList$2: z.ZodArray<z.ZodObject<{
161
+ declare const meList$1: z.ZodArray<z.ZodObject<{
162
162
  id: z.ZodString;
163
163
  name: z.ZodString;
164
164
  description: z.ZodOptional<z.ZodString>;
@@ -167,15 +167,15 @@ declare const meList$2: z.ZodArray<z.ZodObject<{
167
167
  minHour: z.ZodCoercedNumber<unknown>;
168
168
  }, z.core.$strip>>;
169
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>;
170
+ type SafeList$1 = z.output<typeof meList$1>;
171
+ type SafeCreate$2 = z.output<typeof create$2>;
172
172
  type SafeUpdate = z.output<typeof update>;
173
173
 
174
174
  type slot_SafeUpdate = SafeUpdate;
175
175
  declare const slot_time12h: typeof time12h;
176
176
  declare const slot_update: typeof update;
177
177
  declare namespace slot {
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 };
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
179
  }
180
180
 
181
181
  declare const Weekday: z.ZodEnum<{
@@ -215,27 +215,18 @@ declare const me$3: z.ZodObject<{
215
215
  operatedSince: z.ZodCoercedNumber<unknown>;
216
216
  maxCapacity: z.ZodCoercedNumber<unknown>;
217
217
  }, z.core.$strip>;
218
- declare const create$2: z.ZodObject<{
218
+ declare const save$1: z.ZodObject<{
219
219
  vehicleName: z.ZodString;
220
220
  registrationNumber: z.ZodString;
221
221
  serviceRoutine: z.ZodCoercedNumber<unknown>;
222
222
  operatedSince: z.ZodCoercedNumber<unknown>;
223
223
  maxCapacity: z.ZodCoercedNumber<unknown>;
224
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
225
  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>;
226
+ type SafeSave$1 = z.output<typeof save$1>;
236
227
 
237
228
  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 };
229
+ export { type SafeMe$3 as SafeMe, type SafeSave$1 as SafeSave, me$3 as me, save$1 as save };
239
230
  }
240
231
 
241
232
  declare const me$2: z.ZodObject<{
@@ -150,9 +150,8 @@ var me4 = z4.object({
150
150
  // src/safari/vehicle-details.ts
151
151
  var vehicle_details_exports = {};
152
152
  __export(vehicle_details_exports, {
153
- create: () => create2,
154
153
  me: () => me5,
155
- meList: () => meList2
154
+ save: () => save2
156
155
  });
157
156
  import { z as z5 } from "zod";
158
157
  var me5 = z5.object({
@@ -163,21 +162,20 @@ var me5 = z5.object({
163
162
  operatedSince: z5.coerce.number().min(2010),
164
163
  maxCapacity: z5.coerce.number().min(2).max(15)
165
164
  });
166
- var create2 = z5.object({
165
+ var save2 = z5.object({
167
166
  vehicleName: z5.string().trim().nonempty("required"),
168
167
  registrationNumber: z5.string().trim().nonempty("required").toUpperCase(),
169
168
  serviceRoutine: z5.coerce.number("invalid"),
170
169
  operatedSince: z5.coerce.number("invalid").min(2010, "min"),
171
170
  maxCapacity: z5.coerce.number("invalid").min(2, "min").max(15, "max")
172
171
  });
173
- var meList2 = z5.array(me5);
174
172
 
175
173
  // src/safari/driver-details.ts
176
174
  var driver_details_exports = {};
177
175
  __export(driver_details_exports, {
178
- create: () => create3,
176
+ create: () => create2,
179
177
  me: () => me6,
180
- meList: () => meList3
178
+ meList: () => meList2
181
179
  });
182
180
  import { z as z6 } from "zod";
183
181
  var me6 = z6.object({
@@ -186,17 +184,17 @@ var me6 = z6.object({
186
184
  licenseNumber: z6.string().trim().toUpperCase(),
187
185
  experience: z6.coerce.number()
188
186
  });
189
- var create3 = z6.object({
187
+ var create2 = z6.object({
190
188
  driverName: z6.string().trim().nonempty("required"),
191
189
  licenseNumber: z6.string().trim().nonempty("required").toUpperCase(),
192
190
  experience: z6.coerce.number().min(1, "min")
193
191
  });
194
- var meList3 = z6.array(me6);
192
+ var meList2 = z6.array(me6);
195
193
 
196
194
  // src/safari/business-details.ts
197
195
  var business_details_exports = {};
198
196
  __export(business_details_exports, {
199
- create: () => create4,
197
+ create: () => create3,
200
198
  me: () => me7
201
199
  });
202
200
  import { z as z7 } from "zod";
@@ -208,7 +206,7 @@ var me7 = z7.object({
208
206
  businessNumber: z7.string().trim().optional(),
209
207
  ifscCode: z7.string().trim()
210
208
  });
211
- var create4 = z7.object({
209
+ var create3 = z7.object({
212
210
  bankAccountNumber: z7.string().trim().nonempty("required"),
213
211
  bankName: z7.string().trim().nonempty("required"),
214
212
  accountHolderName: z7.string().trim().nonempty("required"),
@@ -221,14 +219,14 @@ var create4 = z7.object({
221
219
  var personal_details_exports = {};
222
220
  __export(personal_details_exports, {
223
221
  me: () => me8,
224
- save: () => save2
222
+ save: () => save3
225
223
  });
226
224
  import { z as z8 } from "zod";
227
225
  var me8 = z8.object({
228
226
  adhaarNumber: z8.string().trim(),
229
227
  address: z8.string().trim()
230
228
  });
231
- var save2 = z8.object({
229
+ var save3 = z8.object({
232
230
  adhaarNumber: z8.string().trim().nonempty("required"),
233
231
  address: z8.string().trim().nonempty("required")
234
232
  });
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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"
13
+ },
9
14
  "./safari": {
10
15
  "types": "./dist/safari/index.d.ts",
11
16
  "import": "./dist/safari/index.js",