@tripsam/onboarding 1.0.48 → 1.0.49

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,12 +1,39 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const safariTypes: {
4
+ readonly leopard_safari: "leopardSafari";
5
+ readonly tiger_safari: "tigerSafari";
6
+ readonly bird_watching: "birdWatching";
7
+ readonly village_safari: "villageSafari";
8
+ readonly lion_safari: "lionSafari";
9
+ readonly jungle_safari: "jungleSafari";
10
+ readonly other: "other";
11
+ };
12
+ declare const safeSas: z.ZodEnum<{
13
+ other: "other";
14
+ leopard_safari: "leopard_safari";
15
+ tiger_safari: "tiger_safari";
16
+ bird_watching: "bird_watching";
17
+ village_safari: "village_safari";
18
+ lion_safari: "lion_safari";
19
+ jungle_safari: "jungle_safari";
20
+ }>;
21
+ type SafariType = keyof typeof safariTypes;
3
22
  declare const get: z.ZodObject<{
4
23
  id: z.ZodString;
5
24
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6
25
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
26
  phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8
27
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
28
+ type: z.ZodEnum<{
29
+ other: "other";
30
+ leopard_safari: "leopard_safari";
31
+ tiger_safari: "tiger_safari";
32
+ bird_watching: "bird_watching";
33
+ village_safari: "village_safari";
34
+ lion_safari: "lion_safari";
35
+ jungle_safari: "jungle_safari";
36
+ }>;
10
37
  }, z.core.$strip>;
11
38
  declare const create$3: z.ZodObject<{
12
39
  name: z.ZodString;
@@ -26,11 +53,14 @@ type SafeUpdate$1 = z.output<typeof update$1>;
26
53
  type SafeCreate$3 = z.output<typeof create$3>;
27
54
  declare const defaultBasicDetails: SafeGet;
28
55
 
56
+ type basicDetails_SafariType = SafariType;
29
57
  type basicDetails_SafeGet = SafeGet;
30
58
  declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
31
59
  declare const basicDetails_get: typeof get;
60
+ declare const basicDetails_safariTypes: typeof safariTypes;
61
+ declare const basicDetails_safeSas: typeof safeSas;
32
62
  declare namespace basicDetails {
33
- export { type SafeCreate$3 as SafeCreate, type basicDetails_SafeGet as SafeGet, type SafeUpdate$1 as SafeUpdate, create$3 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, basicDetails_get as get, update$1 as update };
63
+ export { type basicDetails_SafariType as SafariType, type SafeCreate$3 as SafeCreate, type basicDetails_SafeGet as SafeGet, type SafeUpdate$1 as SafeUpdate, create$3 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, basicDetails_get as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$1 as update };
34
64
  }
35
65
 
36
66
  declare const suggest: z.ZodObject<{
@@ -1,12 +1,39 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const safariTypes: {
4
+ readonly leopard_safari: "leopardSafari";
5
+ readonly tiger_safari: "tigerSafari";
6
+ readonly bird_watching: "birdWatching";
7
+ readonly village_safari: "villageSafari";
8
+ readonly lion_safari: "lionSafari";
9
+ readonly jungle_safari: "jungleSafari";
10
+ readonly other: "other";
11
+ };
12
+ declare const safeSas: z.ZodEnum<{
13
+ other: "other";
14
+ leopard_safari: "leopard_safari";
15
+ tiger_safari: "tiger_safari";
16
+ bird_watching: "bird_watching";
17
+ village_safari: "village_safari";
18
+ lion_safari: "lion_safari";
19
+ jungle_safari: "jungle_safari";
20
+ }>;
21
+ type SafariType = keyof typeof safariTypes;
3
22
  declare const get: z.ZodObject<{
4
23
  id: z.ZodString;
5
24
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6
25
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7
26
  phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8
27
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
28
+ type: z.ZodEnum<{
29
+ other: "other";
30
+ leopard_safari: "leopard_safari";
31
+ tiger_safari: "tiger_safari";
32
+ bird_watching: "bird_watching";
33
+ village_safari: "village_safari";
34
+ lion_safari: "lion_safari";
35
+ jungle_safari: "jungle_safari";
36
+ }>;
10
37
  }, z.core.$strip>;
11
38
  declare const create$3: z.ZodObject<{
12
39
  name: z.ZodString;
@@ -26,11 +53,14 @@ type SafeUpdate$1 = z.output<typeof update$1>;
26
53
  type SafeCreate$3 = z.output<typeof create$3>;
27
54
  declare const defaultBasicDetails: SafeGet;
28
55
 
56
+ type basicDetails_SafariType = SafariType;
29
57
  type basicDetails_SafeGet = SafeGet;
30
58
  declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
31
59
  declare const basicDetails_get: typeof get;
60
+ declare const basicDetails_safariTypes: typeof safariTypes;
61
+ declare const basicDetails_safeSas: typeof safeSas;
32
62
  declare namespace basicDetails {
33
- export { type SafeCreate$3 as SafeCreate, type basicDetails_SafeGet as SafeGet, type SafeUpdate$1 as SafeUpdate, create$3 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, basicDetails_get as get, update$1 as update };
63
+ export { type basicDetails_SafariType as SafariType, type SafeCreate$3 as SafeCreate, type basicDetails_SafeGet as SafeGet, type SafeUpdate$1 as SafeUpdate, create$3 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, basicDetails_get as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$1 as update };
34
64
  }
35
65
 
36
66
  declare const suggest: z.ZodObject<{
package/dist/index.cjs CHANGED
@@ -45,16 +45,28 @@ __export(basic_details_exports, {
45
45
  create: () => create,
46
46
  defaultBasicDetails: () => defaultBasicDetails,
47
47
  get: () => get,
48
+ safariTypes: () => safariTypes,
49
+ safeSas: () => safeSas,
48
50
  update: () => update
49
51
  });
50
52
  var import_zod = require("zod");
53
+ var safariTypes = {
54
+ leopard_safari: "leopardSafari",
55
+ tiger_safari: "tigerSafari",
56
+ bird_watching: "birdWatching",
57
+ village_safari: "villageSafari",
58
+ lion_safari: "lionSafari",
59
+ jungle_safari: "jungleSafari",
60
+ other: "other"
61
+ };
62
+ var safeSas = import_zod.z.enum(Object.keys(safariTypes));
51
63
  var get = import_zod.z.object({
52
64
  id: import_zod.z.string(),
53
65
  name: import_zod.z.string().trim().optional().default(""),
54
66
  countryCode: import_zod.z.string().optional().default("+91"),
55
67
  phoneNumber: import_zod.z.string().optional().default(""),
56
68
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
57
- type: import_zod.z.string().optional().default("")
69
+ type: safeSas
58
70
  });
59
71
  var create = import_zod.z.object({
60
72
  name: import_zod.z.string().nonempty("required").trim(),
@@ -75,7 +87,7 @@ var defaultBasicDetails = {
75
87
  countryCode: "+91",
76
88
  phoneNumber: "",
77
89
  isPhoneVerified: false,
78
- type: ""
90
+ type: "leopard_safari"
79
91
  };
80
92
 
81
93
  // src/safari/location.ts
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-B5NSs4eA.cjs';
1
+ export { i as SafariOnboarding } from './index-B0RC7NWC.cjs';
2
2
  export { i as CommonOnboarding } from './index-C-yUFJEx.cjs';
3
3
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-B5NSs4eA.js';
1
+ export { i as SafariOnboarding } from './index-B0RC7NWC.js';
2
2
  export { i as CommonOnboarding } from './index-C-yUFJEx.js';
3
3
  import 'zod';
package/dist/index.js CHANGED
@@ -24,16 +24,28 @@ __export(basic_details_exports, {
24
24
  create: () => create,
25
25
  defaultBasicDetails: () => defaultBasicDetails,
26
26
  get: () => get,
27
+ safariTypes: () => safariTypes,
28
+ safeSas: () => safeSas,
27
29
  update: () => update
28
30
  });
29
31
  import { z } from "zod";
32
+ var safariTypes = {
33
+ leopard_safari: "leopardSafari",
34
+ tiger_safari: "tigerSafari",
35
+ bird_watching: "birdWatching",
36
+ village_safari: "villageSafari",
37
+ lion_safari: "lionSafari",
38
+ jungle_safari: "jungleSafari",
39
+ other: "other"
40
+ };
41
+ var safeSas = z.enum(Object.keys(safariTypes));
30
42
  var get = z.object({
31
43
  id: z.string(),
32
44
  name: z.string().trim().optional().default(""),
33
45
  countryCode: z.string().optional().default("+91"),
34
46
  phoneNumber: z.string().optional().default(""),
35
47
  isPhoneVerified: z.boolean().optional().default(false),
36
- type: z.string().optional().default("")
48
+ type: safeSas
37
49
  });
38
50
  var create = z.object({
39
51
  name: z.string().nonempty("required").trim(),
@@ -54,7 +66,7 @@ var defaultBasicDetails = {
54
66
  countryCode: "+91",
55
67
  phoneNumber: "",
56
68
  isPhoneVerified: false,
57
- type: ""
69
+ type: "leopard_safari"
58
70
  };
59
71
 
60
72
  // src/safari/location.ts
@@ -38,16 +38,28 @@ __export(basic_details_exports, {
38
38
  create: () => create,
39
39
  defaultBasicDetails: () => defaultBasicDetails,
40
40
  get: () => get,
41
+ safariTypes: () => safariTypes,
42
+ safeSas: () => safeSas,
41
43
  update: () => update
42
44
  });
43
45
  var import_zod = require("zod");
46
+ var safariTypes = {
47
+ leopard_safari: "leopardSafari",
48
+ tiger_safari: "tigerSafari",
49
+ bird_watching: "birdWatching",
50
+ village_safari: "villageSafari",
51
+ lion_safari: "lionSafari",
52
+ jungle_safari: "jungleSafari",
53
+ other: "other"
54
+ };
55
+ var safeSas = import_zod.z.enum(Object.keys(safariTypes));
44
56
  var get = import_zod.z.object({
45
57
  id: import_zod.z.string(),
46
58
  name: import_zod.z.string().trim().optional().default(""),
47
59
  countryCode: import_zod.z.string().optional().default("+91"),
48
60
  phoneNumber: import_zod.z.string().optional().default(""),
49
61
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
50
- type: import_zod.z.string().optional().default("")
62
+ type: safeSas
51
63
  });
52
64
  var create = import_zod.z.object({
53
65
  name: import_zod.z.string().nonempty("required").trim(),
@@ -68,7 +80,7 @@ var defaultBasicDetails = {
68
80
  countryCode: "+91",
69
81
  phoneNumber: "",
70
82
  isPhoneVerified: false,
71
- type: ""
83
+ type: "leopard_safari"
72
84
  };
73
85
 
74
86
  // 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, c as Step, v as VehicleDetails } from '../index-B5NSs4eA.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-B0RC7NWC.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, c as Step, v as VehicleDetails } from '../index-B5NSs4eA.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-B0RC7NWC.js';
2
2
  import 'zod';
@@ -10,16 +10,28 @@ __export(basic_details_exports, {
10
10
  create: () => create,
11
11
  defaultBasicDetails: () => defaultBasicDetails,
12
12
  get: () => get,
13
+ safariTypes: () => safariTypes,
14
+ safeSas: () => safeSas,
13
15
  update: () => update
14
16
  });
15
17
  import { z } from "zod";
18
+ var safariTypes = {
19
+ leopard_safari: "leopardSafari",
20
+ tiger_safari: "tigerSafari",
21
+ bird_watching: "birdWatching",
22
+ village_safari: "villageSafari",
23
+ lion_safari: "lionSafari",
24
+ jungle_safari: "jungleSafari",
25
+ other: "other"
26
+ };
27
+ var safeSas = z.enum(Object.keys(safariTypes));
16
28
  var get = z.object({
17
29
  id: z.string(),
18
30
  name: z.string().trim().optional().default(""),
19
31
  countryCode: z.string().optional().default("+91"),
20
32
  phoneNumber: z.string().optional().default(""),
21
33
  isPhoneVerified: z.boolean().optional().default(false),
22
- type: z.string().optional().default("")
34
+ type: safeSas
23
35
  });
24
36
  var create = z.object({
25
37
  name: z.string().nonempty("required").trim(),
@@ -40,7 +52,7 @@ var defaultBasicDetails = {
40
52
  countryCode: "+91",
41
53
  phoneNumber: "",
42
54
  isPhoneVerified: false,
43
- type: ""
55
+ type: "leopard_safari"
44
56
  };
45
57
 
46
58
  // src/safari/location.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",