@tripsam/onboarding 1.0.35 → 1.0.36

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,5 +1,16 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const stepEnum: z.ZodEnum<{
4
+ basic_info: "basic_info";
5
+ operational_days: "operational_days";
6
+ locations: "locations";
7
+ slots: "slots";
8
+ vehicle_details: "vehicle_details";
9
+ driver_details: "driver_details";
10
+ business_details: "business_details";
11
+ personal_details: "personal_details";
12
+ submitted: "submitted";
13
+ }>;
3
14
  declare const me$7: z.ZodObject<{
4
15
  id: z.ZodString;
5
16
  email: z.ZodString;
@@ -7,18 +18,38 @@ declare const me$7: z.ZodObject<{
7
18
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8
19
  phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9
20
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
- completed: z.ZodBoolean;
21
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
22
+ status: z.ZodEnum<{
23
+ pending: "pending";
24
+ in_review: "in_review";
25
+ approved: "approved";
26
+ rejected: "rejected";
27
+ }>;
28
+ lastCompletedStep: z.ZodEnum<{
29
+ basic_info: "basic_info";
30
+ operational_days: "operational_days";
31
+ locations: "locations";
32
+ slots: "slots";
33
+ vehicle_details: "vehicle_details";
34
+ driver_details: "driver_details";
35
+ business_details: "business_details";
36
+ personal_details: "personal_details";
37
+ submitted: "submitted";
38
+ }>;
39
+ remark: z.ZodDefault<z.ZodOptional<z.ZodString>>;
11
40
  }, z.core.$strip>;
12
41
  declare const update$1: z.ZodObject<{
13
42
  name: z.ZodString;
14
43
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15
44
  phoneNumber: z.ZodString;
45
+ type: z.ZodString;
16
46
  }, z.core.$strip>;
17
47
  type SafeMe$7 = z.infer<typeof me$7>;
18
48
  type SafeUpdate$1 = z.output<typeof update$1>;
19
49
 
50
+ declare const basicDetails_stepEnum: typeof stepEnum;
20
51
  declare namespace basicDetails {
21
- export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, update$1 as update };
52
+ export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, basicDetails_stepEnum as stepEnum, update$1 as update };
22
53
  }
23
54
 
24
55
  declare const suggest: z.ZodObject<{
@@ -1,5 +1,16 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const stepEnum: z.ZodEnum<{
4
+ basic_info: "basic_info";
5
+ operational_days: "operational_days";
6
+ locations: "locations";
7
+ slots: "slots";
8
+ vehicle_details: "vehicle_details";
9
+ driver_details: "driver_details";
10
+ business_details: "business_details";
11
+ personal_details: "personal_details";
12
+ submitted: "submitted";
13
+ }>;
3
14
  declare const me$7: z.ZodObject<{
4
15
  id: z.ZodString;
5
16
  email: z.ZodString;
@@ -7,18 +18,38 @@ declare const me$7: z.ZodObject<{
7
18
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8
19
  phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9
20
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10
- completed: z.ZodBoolean;
21
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
22
+ status: z.ZodEnum<{
23
+ pending: "pending";
24
+ in_review: "in_review";
25
+ approved: "approved";
26
+ rejected: "rejected";
27
+ }>;
28
+ lastCompletedStep: z.ZodEnum<{
29
+ basic_info: "basic_info";
30
+ operational_days: "operational_days";
31
+ locations: "locations";
32
+ slots: "slots";
33
+ vehicle_details: "vehicle_details";
34
+ driver_details: "driver_details";
35
+ business_details: "business_details";
36
+ personal_details: "personal_details";
37
+ submitted: "submitted";
38
+ }>;
39
+ remark: z.ZodDefault<z.ZodOptional<z.ZodString>>;
11
40
  }, z.core.$strip>;
12
41
  declare const update$1: z.ZodObject<{
13
42
  name: z.ZodString;
14
43
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15
44
  phoneNumber: z.ZodString;
45
+ type: z.ZodString;
16
46
  }, z.core.$strip>;
17
47
  type SafeMe$7 = z.infer<typeof me$7>;
18
48
  type SafeUpdate$1 = z.output<typeof update$1>;
19
49
 
50
+ declare const basicDetails_stepEnum: typeof stepEnum;
20
51
  declare namespace basicDetails {
21
- export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, update$1 as update };
52
+ export { type SafeMe$7 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$7 as me, basicDetails_stepEnum as stepEnum, update$1 as update };
22
53
  }
23
54
 
24
55
  declare const suggest: z.ZodObject<{
package/dist/index.cjs CHANGED
@@ -42,9 +42,11 @@ __export(safari_exports, {
42
42
  var basic_details_exports = {};
43
43
  __export(basic_details_exports, {
44
44
  me: () => me,
45
+ stepEnum: () => stepEnum,
45
46
  update: () => update
46
47
  });
47
48
  var import_zod = require("zod");
49
+ var stepEnum = import_zod.z.enum(["basic_info", "operational_days", "locations", "slots", "vehicle_details", "driver_details", "business_details", "personal_details", "submitted"]);
48
50
  var me = import_zod.z.object({
49
51
  id: import_zod.z.string(),
50
52
  email: import_zod.z.string(),
@@ -52,12 +54,16 @@ var me = import_zod.z.object({
52
54
  countryCode: import_zod.z.string().optional().default("+91"),
53
55
  phoneNumber: import_zod.z.string().optional().default(""),
54
56
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
55
- completed: import_zod.z.boolean()
57
+ type: import_zod.z.string().optional().default(""),
58
+ status: import_zod.z.enum(["pending", "in_review", "approved", "rejected"]),
59
+ lastCompletedStep: stepEnum,
60
+ remark: import_zod.z.string().optional().default("")
56
61
  });
57
62
  var update = import_zod.z.object({
58
63
  name: import_zod.z.string().nonempty("required").trim(),
59
64
  countryCode: import_zod.z.string().optional().default("+91"),
60
- phoneNumber: import_zod.z.string().nonempty("required")
65
+ phoneNumber: import_zod.z.string().nonempty("required"),
66
+ type: import_zod.z.string().nonempty("required")
61
67
  });
62
68
 
63
69
  // src/safari/location.ts
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-CJRaz6vd.cjs';
1
+ export { i as SafariOnboarding } from './index-CZy05gkx.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-CJRaz6vd.js';
1
+ export { i as SafariOnboarding } from './index-CZy05gkx.js';
2
2
  export { i as CommonOnboarding } from './index-Bv8ss_jR.js';
3
3
  import 'zod';
package/dist/index.js CHANGED
@@ -21,9 +21,11 @@ __export(safari_exports, {
21
21
  var basic_details_exports = {};
22
22
  __export(basic_details_exports, {
23
23
  me: () => me,
24
+ stepEnum: () => stepEnum,
24
25
  update: () => update
25
26
  });
26
27
  import { z } from "zod";
28
+ var stepEnum = z.enum(["basic_info", "operational_days", "locations", "slots", "vehicle_details", "driver_details", "business_details", "personal_details", "submitted"]);
27
29
  var me = z.object({
28
30
  id: z.string(),
29
31
  email: z.string(),
@@ -31,12 +33,16 @@ var me = z.object({
31
33
  countryCode: z.string().optional().default("+91"),
32
34
  phoneNumber: z.string().optional().default(""),
33
35
  isPhoneVerified: z.boolean().optional().default(false),
34
- completed: z.boolean()
36
+ type: z.string().optional().default(""),
37
+ status: z.enum(["pending", "in_review", "approved", "rejected"]),
38
+ lastCompletedStep: stepEnum,
39
+ remark: z.string().optional().default("")
35
40
  });
36
41
  var update = z.object({
37
42
  name: z.string().nonempty("required").trim(),
38
43
  countryCode: z.string().optional().default("+91"),
39
- phoneNumber: z.string().nonempty("required")
44
+ phoneNumber: z.string().nonempty("required"),
45
+ type: z.string().nonempty("required")
40
46
  });
41
47
 
42
48
  // src/safari/location.ts
@@ -35,9 +35,11 @@ module.exports = __toCommonJS(safari_exports);
35
35
  var basic_details_exports = {};
36
36
  __export(basic_details_exports, {
37
37
  me: () => me,
38
+ stepEnum: () => stepEnum,
38
39
  update: () => update
39
40
  });
40
41
  var import_zod = require("zod");
42
+ var stepEnum = import_zod.z.enum(["basic_info", "operational_days", "locations", "slots", "vehicle_details", "driver_details", "business_details", "personal_details", "submitted"]);
41
43
  var me = import_zod.z.object({
42
44
  id: import_zod.z.string(),
43
45
  email: import_zod.z.string(),
@@ -45,12 +47,16 @@ var me = import_zod.z.object({
45
47
  countryCode: import_zod.z.string().optional().default("+91"),
46
48
  phoneNumber: import_zod.z.string().optional().default(""),
47
49
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
48
- completed: import_zod.z.boolean()
50
+ type: import_zod.z.string().optional().default(""),
51
+ status: import_zod.z.enum(["pending", "in_review", "approved", "rejected"]),
52
+ lastCompletedStep: stepEnum,
53
+ remark: import_zod.z.string().optional().default("")
49
54
  });
50
55
  var update = import_zod.z.object({
51
56
  name: import_zod.z.string().nonempty("required").trim(),
52
57
  countryCode: import_zod.z.string().optional().default("+91"),
53
- phoneNumber: import_zod.z.string().nonempty("required")
58
+ phoneNumber: import_zod.z.string().nonempty("required"),
59
+ type: import_zod.z.string().nonempty("required")
54
60
  });
55
61
 
56
62
  // src/safari/location.ts
@@ -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-CJRaz6vd.cjs';
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-CZy05gkx.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-CJRaz6vd.js';
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-CZy05gkx.js';
2
2
  import 'zod';
@@ -8,9 +8,11 @@ var __export = (target, all) => {
8
8
  var basic_details_exports = {};
9
9
  __export(basic_details_exports, {
10
10
  me: () => me,
11
+ stepEnum: () => stepEnum,
11
12
  update: () => update
12
13
  });
13
14
  import { z } from "zod";
15
+ var stepEnum = z.enum(["basic_info", "operational_days", "locations", "slots", "vehicle_details", "driver_details", "business_details", "personal_details", "submitted"]);
14
16
  var me = z.object({
15
17
  id: z.string(),
16
18
  email: z.string(),
@@ -18,12 +20,16 @@ var me = z.object({
18
20
  countryCode: z.string().optional().default("+91"),
19
21
  phoneNumber: z.string().optional().default(""),
20
22
  isPhoneVerified: z.boolean().optional().default(false),
21
- completed: z.boolean()
23
+ type: z.string().optional().default(""),
24
+ status: z.enum(["pending", "in_review", "approved", "rejected"]),
25
+ lastCompletedStep: stepEnum,
26
+ remark: z.string().optional().default("")
22
27
  });
23
28
  var update = z.object({
24
29
  name: z.string().nonempty("required").trim(),
25
30
  countryCode: z.string().optional().default("+91"),
26
- phoneNumber: z.string().nonempty("required")
31
+ phoneNumber: z.string().nonempty("required"),
32
+ type: z.string().nonempty("required")
27
33
  });
28
34
 
29
35
  // src/safari/location.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",