@tripsam/onboarding 1.0.27 → 1.0.29

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,10 +1,25 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
2
6
 
3
- var _chunk75ZPJI57cjs = require('../chunk-75ZPJI57.cjs');
7
+ // src/safari/index.ts
8
+ var safari_exports = {};
9
+ __export(safari_exports, {
10
+ BasicDetails: () => basic_details_exports,
11
+ BusinessDetails: () => business_details_exports,
12
+ DriverDetails: () => driver_details_exports,
13
+ Location: () => location_exports,
14
+ OperationalDays: () => operational_days_exports,
15
+ PersonalDetails: () => personal_details_exports,
16
+ Slot: () => slot_exports,
17
+ VehicleDetails: () => vehicle_details_exports
18
+ });
4
19
 
5
20
  // src/safari/basic-details.ts
6
21
  var basic_details_exports = {};
7
- _chunk75ZPJI57cjs.__export.call(void 0, basic_details_exports, {
22
+ __export(basic_details_exports, {
8
23
  me: () => me,
9
24
  update: () => update
10
25
  });
@@ -26,7 +41,7 @@ var update = _zod.z.object({
26
41
 
27
42
  // src/safari/location.ts
28
43
  var location_exports = {};
29
- _chunk75ZPJI57cjs.__export.call(void 0, location_exports, {
44
+ __export(location_exports, {
30
45
  me: () => me2,
31
46
  minimum: () => minimum,
32
47
  minimumList: () => minimumList,
@@ -84,7 +99,7 @@ var minimumList = _zod.z.array(minimum);
84
99
 
85
100
  // src/safari/slot.ts
86
101
  var slot_exports = {};
87
- _chunk75ZPJI57cjs.__export.call(void 0, slot_exports, {
102
+ __export(slot_exports, {
88
103
  create: () => create,
89
104
  me: () => me3,
90
105
  meList: () => meList,
@@ -129,7 +144,7 @@ var meList = _zod.z.array(me3);
129
144
 
130
145
  // src/safari/operational-days.ts
131
146
  var operational_days_exports = {};
132
- _chunk75ZPJI57cjs.__export.call(void 0, operational_days_exports, {
147
+ __export(operational_days_exports, {
133
148
  Weekday: () => Weekday,
134
149
  me: () => me4
135
150
  });
@@ -149,7 +164,7 @@ var me4 = _zod.z.object({
149
164
 
150
165
  // src/safari/vehicle-details.ts
151
166
  var vehicle_details_exports = {};
152
- _chunk75ZPJI57cjs.__export.call(void 0, vehicle_details_exports, {
167
+ __export(vehicle_details_exports, {
153
168
  me: () => me5,
154
169
  save: () => save2
155
170
  });
@@ -172,7 +187,7 @@ var save2 = _zod.z.object({
172
187
 
173
188
  // src/safari/driver-details.ts
174
189
  var driver_details_exports = {};
175
- _chunk75ZPJI57cjs.__export.call(void 0, driver_details_exports, {
190
+ __export(driver_details_exports, {
176
191
  create: () => create2,
177
192
  me: () => me6,
178
193
  meList: () => meList2
@@ -193,7 +208,7 @@ var meList2 = _zod.z.array(me6);
193
208
 
194
209
  // src/safari/business-details.ts
195
210
  var business_details_exports = {};
196
- _chunk75ZPJI57cjs.__export.call(void 0, business_details_exports, {
211
+ __export(business_details_exports, {
197
212
  create: () => create3,
198
213
  me: () => me7
199
214
  });
@@ -217,7 +232,7 @@ var create3 = _zod.z.object({
217
232
 
218
233
  // src/safari/personal-details.ts
219
234
  var personal_details_exports = {};
220
- _chunk75ZPJI57cjs.__export.call(void 0, personal_details_exports, {
235
+ __export(personal_details_exports, {
221
236
  me: () => me8,
222
237
  save: () => save3
223
238
  });
@@ -231,12 +246,31 @@ var save3 = _zod.z.object({
231
246
  address: _zod.z.string().trim().nonempty("required")
232
247
  });
233
248
 
249
+ // src/common/index.ts
250
+ var common_exports = {};
251
+ __export(common_exports, {
252
+ VerifyEmail: () => verify_email_exports
253
+ });
234
254
 
255
+ // src/common/verify-email.ts
256
+ var verify_email_exports = {};
257
+ __export(verify_email_exports, {
258
+ sendOtp: () => sendOtp,
259
+ verifyOtp: () => verifyOtp,
260
+ verifyOtpResponse: () => verifyOtpResponse
261
+ });
235
262
 
263
+ var sendOtp = _zod.z.object({
264
+ email: _zod.z.email("invalid").nonempty("required").trim().toLowerCase()
265
+ });
266
+ var verifyOtp = _zod.z.object({
267
+ otp: _zod.z.string().min(4, { message: "required" }),
268
+ email: _zod.z.string().optional()
269
+ });
270
+ var verifyOtpResponse = _zod.z.object({
271
+ id: _zod.z.string()
272
+ });
236
273
 
237
274
 
238
275
 
239
-
240
-
241
-
242
- exports.BasicDetails = basic_details_exports; exports.BusinessDetails = business_details_exports; exports.DriverDetails = driver_details_exports; exports.Location = location_exports; exports.OperationalDays = operational_days_exports; exports.PersonalDetails = personal_details_exports; exports.Slot = slot_exports; exports.VehicleDetails = vehicle_details_exports;
276
+ exports.common = common_exports; exports.safari = safari_exports;
@@ -300,4 +300,36 @@ declare namespace personalDetails {
300
300
  export { type personalDetails_SafeMe as SafeMe, type personalDetails_SafeSave as SafeSave, personalDetails_me as me, personalDetails_save as save };
301
301
  }
302
302
 
303
- 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 };
303
+ declare namespace index$1 {
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
+ declare const sendOtp: z.ZodObject<{
308
+ email: z.ZodEmail;
309
+ }, z.core.$strip>;
310
+ declare const verifyOtp: z.ZodObject<{
311
+ otp: z.ZodString;
312
+ email: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strip>;
314
+ declare const verifyOtpResponse: z.ZodObject<{
315
+ id: z.ZodString;
316
+ }, z.core.$strip>;
317
+ type SafeSendOtp = z.output<typeof sendOtp>;
318
+ type SafeVerifyOtp = z.output<typeof verifyOtp>;
319
+ type SafeVerifyOtpResponse = z.output<typeof verifyOtpResponse>;
320
+
321
+ type verifyEmail_SafeSendOtp = SafeSendOtp;
322
+ type verifyEmail_SafeVerifyOtp = SafeVerifyOtp;
323
+ type verifyEmail_SafeVerifyOtpResponse = SafeVerifyOtpResponse;
324
+ declare const verifyEmail_sendOtp: typeof sendOtp;
325
+ declare const verifyEmail_verifyOtp: typeof verifyOtp;
326
+ declare const verifyEmail_verifyOtpResponse: typeof verifyOtpResponse;
327
+ declare namespace verifyEmail {
328
+ 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 };
329
+ }
330
+
331
+ declare namespace index {
332
+ export { verifyEmail as VerifyEmail };
333
+ }
334
+
335
+ export { index as common, index$1 as safari };
@@ -300,4 +300,36 @@ declare namespace personalDetails {
300
300
  export { type personalDetails_SafeMe as SafeMe, type personalDetails_SafeSave as SafeSave, personalDetails_me as me, personalDetails_save as save };
301
301
  }
302
302
 
303
- 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 };
303
+ declare namespace index$1 {
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
+ declare const sendOtp: z.ZodObject<{
308
+ email: z.ZodEmail;
309
+ }, z.core.$strip>;
310
+ declare const verifyOtp: z.ZodObject<{
311
+ otp: z.ZodString;
312
+ email: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strip>;
314
+ declare const verifyOtpResponse: z.ZodObject<{
315
+ id: z.ZodString;
316
+ }, z.core.$strip>;
317
+ type SafeSendOtp = z.output<typeof sendOtp>;
318
+ type SafeVerifyOtp = z.output<typeof verifyOtp>;
319
+ type SafeVerifyOtpResponse = z.output<typeof verifyOtpResponse>;
320
+
321
+ type verifyEmail_SafeSendOtp = SafeSendOtp;
322
+ type verifyEmail_SafeVerifyOtp = SafeVerifyOtp;
323
+ type verifyEmail_SafeVerifyOtpResponse = SafeVerifyOtpResponse;
324
+ declare const verifyEmail_sendOtp: typeof sendOtp;
325
+ declare const verifyEmail_verifyOtp: typeof verifyOtp;
326
+ declare const verifyEmail_verifyOtpResponse: typeof verifyOtpResponse;
327
+ declare namespace verifyEmail {
328
+ 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 };
329
+ }
330
+
331
+ declare namespace index {
332
+ export { verifyEmail as VerifyEmail };
333
+ }
334
+
335
+ export { index as common, index$1 as safari };
@@ -1,6 +1,21 @@
1
- import {
2
- __export
3
- } from "../chunk-MLKGABMK.js";
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/safari/index.ts
8
+ var safari_exports = {};
9
+ __export(safari_exports, {
10
+ BasicDetails: () => basic_details_exports,
11
+ BusinessDetails: () => business_details_exports,
12
+ DriverDetails: () => driver_details_exports,
13
+ Location: () => location_exports,
14
+ OperationalDays: () => operational_days_exports,
15
+ PersonalDetails: () => personal_details_exports,
16
+ Slot: () => slot_exports,
17
+ VehicleDetails: () => vehicle_details_exports
18
+ });
4
19
 
5
20
  // src/safari/basic-details.ts
6
21
  var basic_details_exports = {};
@@ -230,13 +245,32 @@ var save3 = z8.object({
230
245
  adhaarNumber: z8.string().trim().nonempty("required"),
231
246
  address: z8.string().trim().nonempty("required")
232
247
  });
248
+
249
+ // src/common/index.ts
250
+ var common_exports = {};
251
+ __export(common_exports, {
252
+ VerifyEmail: () => verify_email_exports
253
+ });
254
+
255
+ // src/common/verify-email.ts
256
+ var verify_email_exports = {};
257
+ __export(verify_email_exports, {
258
+ sendOtp: () => sendOtp,
259
+ verifyOtp: () => verifyOtp,
260
+ verifyOtpResponse: () => verifyOtpResponse
261
+ });
262
+ import { z as z9 } from "zod";
263
+ var sendOtp = z9.object({
264
+ email: z9.email("invalid").nonempty("required").trim().toLowerCase()
265
+ });
266
+ var verifyOtp = z9.object({
267
+ otp: z9.string().min(4, { message: "required" }),
268
+ email: z9.string().optional()
269
+ });
270
+ var verifyOtpResponse = z9.object({
271
+ id: z9.string()
272
+ });
233
273
  export {
234
- basic_details_exports as BasicDetails,
235
- business_details_exports as BusinessDetails,
236
- driver_details_exports as DriverDetails,
237
- location_exports as Location,
238
- operational_days_exports as OperationalDays,
239
- personal_details_exports as PersonalDetails,
240
- slot_exports as Slot,
241
- vehicle_details_exports as VehicleDetails
274
+ common_exports as common,
275
+ safari_exports as safari
242
276
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "dist/"
27
27
  ],
28
28
  "scripts": {
29
- "build": "tsup src/safari/index.ts src/common/index.ts --dts --format esm,cjs --out-dir dist --clean --splitting true",
29
+ "build": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean --splitting true",
30
30
  "clean": "rimraf dist",
31
31
  "prepublishOnly": "npm run clean && npm run build"
32
32
  },
@@ -1,9 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
-
8
-
9
- exports.__export = __export;
@@ -1,9 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- export {
8
- __export
9
- };
@@ -1,25 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunk75ZPJI57cjs = require('../chunk-75ZPJI57.cjs');
4
-
5
- // src/common/verify-email.ts
6
- var verify_email_exports = {};
7
- _chunk75ZPJI57cjs.__export.call(void 0, verify_email_exports, {
8
- sendOtp: () => sendOtp,
9
- verifyOtp: () => verifyOtp,
10
- verifyOtpResponse: () => verifyOtpResponse
11
- });
12
- var _zod = require('zod');
13
- var sendOtp = _zod.z.object({
14
- email: _zod.z.email("invalid").nonempty("required").trim().toLowerCase()
15
- });
16
- var verifyOtp = _zod.z.object({
17
- otp: _zod.z.string().min(4, { message: "required" }),
18
- email: _zod.z.string().optional()
19
- });
20
- var verifyOtpResponse = _zod.z.object({
21
- id: _zod.z.string()
22
- });
23
-
24
-
25
- exports.VerifyEmail = verify_email_exports;
@@ -1,27 +0,0 @@
1
- import { z } from 'zod';
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
- export { verifyEmail as VerifyEmail };
@@ -1,27 +0,0 @@
1
- import { z } from 'zod';
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
- export { verifyEmail as VerifyEmail };
@@ -1,25 +0,0 @@
1
- import {
2
- __export
3
- } from "../chunk-MLKGABMK.js";
4
-
5
- // src/common/verify-email.ts
6
- var verify_email_exports = {};
7
- __export(verify_email_exports, {
8
- sendOtp: () => sendOtp,
9
- verifyOtp: () => verifyOtp,
10
- verifyOtpResponse: () => verifyOtpResponse
11
- });
12
- import { z } from "zod";
13
- var sendOtp = z.object({
14
- email: z.email("invalid").nonempty("required").trim().toLowerCase()
15
- });
16
- var verifyOtp = z.object({
17
- otp: z.string().min(4, { message: "required" }),
18
- email: z.string().optional()
19
- });
20
- var verifyOtpResponse = z.object({
21
- id: z.string()
22
- });
23
- export {
24
- verify_email_exports as VerifyEmail
25
- };