@tripsam/onboarding 1.0.47 → 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;
@@ -24,11 +51,16 @@ declare const update$1: z.ZodObject<{
24
51
  type SafeGet = z.infer<typeof get>;
25
52
  type SafeUpdate$1 = z.output<typeof update$1>;
26
53
  type SafeCreate$3 = z.output<typeof create$3>;
54
+ declare const defaultBasicDetails: SafeGet;
27
55
 
56
+ type basicDetails_SafariType = SafariType;
28
57
  type basicDetails_SafeGet = SafeGet;
58
+ declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
29
59
  declare const basicDetails_get: typeof get;
60
+ declare const basicDetails_safariTypes: typeof safariTypes;
61
+ declare const basicDetails_safeSas: typeof safeSas;
30
62
  declare namespace basicDetails {
31
- export { type SafeCreate$3 as SafeCreate, type basicDetails_SafeGet as SafeGet, type SafeUpdate$1 as SafeUpdate, create$3 as create, 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 };
32
64
  }
33
65
 
34
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;
@@ -24,11 +51,16 @@ declare const update$1: z.ZodObject<{
24
51
  type SafeGet = z.infer<typeof get>;
25
52
  type SafeUpdate$1 = z.output<typeof update$1>;
26
53
  type SafeCreate$3 = z.output<typeof create$3>;
54
+ declare const defaultBasicDetails: SafeGet;
27
55
 
56
+ type basicDetails_SafariType = SafariType;
28
57
  type basicDetails_SafeGet = SafeGet;
58
+ declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
29
59
  declare const basicDetails_get: typeof get;
60
+ declare const basicDetails_safariTypes: typeof safariTypes;
61
+ declare const basicDetails_safeSas: typeof safeSas;
30
62
  declare namespace basicDetails {
31
- export { type SafeCreate$3 as SafeCreate, type basicDetails_SafeGet as SafeGet, type SafeUpdate$1 as SafeUpdate, create$3 as create, 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 };
32
64
  }
33
65
 
34
66
  declare const suggest: z.ZodObject<{
package/dist/index.cjs CHANGED
@@ -43,17 +43,30 @@ __export(safari_exports, {
43
43
  var basic_details_exports = {};
44
44
  __export(basic_details_exports, {
45
45
  create: () => create,
46
+ defaultBasicDetails: () => defaultBasicDetails,
46
47
  get: () => get,
48
+ safariTypes: () => safariTypes,
49
+ safeSas: () => safeSas,
47
50
  update: () => update
48
51
  });
49
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));
50
63
  var get = import_zod.z.object({
51
64
  id: import_zod.z.string(),
52
65
  name: import_zod.z.string().trim().optional().default(""),
53
66
  countryCode: import_zod.z.string().optional().default("+91"),
54
67
  phoneNumber: import_zod.z.string().optional().default(""),
55
68
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
56
- type: import_zod.z.string().optional().default("")
69
+ type: safeSas
57
70
  });
58
71
  var create = import_zod.z.object({
59
72
  name: import_zod.z.string().nonempty("required").trim(),
@@ -68,6 +81,14 @@ var update = import_zod.z.object({
68
81
  phoneNumber: import_zod.z.string().nonempty("required"),
69
82
  type: import_zod.z.string().nonempty("required")
70
83
  });
84
+ var defaultBasicDetails = {
85
+ id: "",
86
+ name: "",
87
+ countryCode: "+91",
88
+ phoneNumber: "",
89
+ isPhoneVerified: false,
90
+ type: "leopard_safari"
91
+ };
71
92
 
72
93
  // src/safari/location.ts
73
94
  var location_exports = {};
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-CvkMgCvP.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-CvkMgCvP.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
@@ -22,17 +22,30 @@ __export(safari_exports, {
22
22
  var basic_details_exports = {};
23
23
  __export(basic_details_exports, {
24
24
  create: () => create,
25
+ defaultBasicDetails: () => defaultBasicDetails,
25
26
  get: () => get,
27
+ safariTypes: () => safariTypes,
28
+ safeSas: () => safeSas,
26
29
  update: () => update
27
30
  });
28
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));
29
42
  var get = z.object({
30
43
  id: z.string(),
31
44
  name: z.string().trim().optional().default(""),
32
45
  countryCode: z.string().optional().default("+91"),
33
46
  phoneNumber: z.string().optional().default(""),
34
47
  isPhoneVerified: z.boolean().optional().default(false),
35
- type: z.string().optional().default("")
48
+ type: safeSas
36
49
  });
37
50
  var create = z.object({
38
51
  name: z.string().nonempty("required").trim(),
@@ -47,6 +60,14 @@ var update = z.object({
47
60
  phoneNumber: z.string().nonempty("required"),
48
61
  type: z.string().nonempty("required")
49
62
  });
63
+ var defaultBasicDetails = {
64
+ id: "",
65
+ name: "",
66
+ countryCode: "+91",
67
+ phoneNumber: "",
68
+ isPhoneVerified: false,
69
+ type: "leopard_safari"
70
+ };
50
71
 
51
72
  // src/safari/location.ts
52
73
  var location_exports = {};
@@ -36,17 +36,30 @@ module.exports = __toCommonJS(safari_exports);
36
36
  var basic_details_exports = {};
37
37
  __export(basic_details_exports, {
38
38
  create: () => create,
39
+ defaultBasicDetails: () => defaultBasicDetails,
39
40
  get: () => get,
41
+ safariTypes: () => safariTypes,
42
+ safeSas: () => safeSas,
40
43
  update: () => update
41
44
  });
42
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));
43
56
  var get = import_zod.z.object({
44
57
  id: import_zod.z.string(),
45
58
  name: import_zod.z.string().trim().optional().default(""),
46
59
  countryCode: import_zod.z.string().optional().default("+91"),
47
60
  phoneNumber: import_zod.z.string().optional().default(""),
48
61
  isPhoneVerified: import_zod.z.boolean().optional().default(false),
49
- type: import_zod.z.string().optional().default("")
62
+ type: safeSas
50
63
  });
51
64
  var create = import_zod.z.object({
52
65
  name: import_zod.z.string().nonempty("required").trim(),
@@ -61,6 +74,14 @@ var update = import_zod.z.object({
61
74
  phoneNumber: import_zod.z.string().nonempty("required"),
62
75
  type: import_zod.z.string().nonempty("required")
63
76
  });
77
+ var defaultBasicDetails = {
78
+ id: "",
79
+ name: "",
80
+ countryCode: "+91",
81
+ phoneNumber: "",
82
+ isPhoneVerified: false,
83
+ type: "leopard_safari"
84
+ };
64
85
 
65
86
  // src/safari/location.ts
66
87
  var location_exports = {};
@@ -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-CvkMgCvP.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-CvkMgCvP.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';
@@ -8,17 +8,30 @@ var __export = (target, all) => {
8
8
  var basic_details_exports = {};
9
9
  __export(basic_details_exports, {
10
10
  create: () => create,
11
+ defaultBasicDetails: () => defaultBasicDetails,
11
12
  get: () => get,
13
+ safariTypes: () => safariTypes,
14
+ safeSas: () => safeSas,
12
15
  update: () => update
13
16
  });
14
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));
15
28
  var get = z.object({
16
29
  id: z.string(),
17
30
  name: z.string().trim().optional().default(""),
18
31
  countryCode: z.string().optional().default("+91"),
19
32
  phoneNumber: z.string().optional().default(""),
20
33
  isPhoneVerified: z.boolean().optional().default(false),
21
- type: z.string().optional().default("")
34
+ type: safeSas
22
35
  });
23
36
  var create = z.object({
24
37
  name: z.string().nonempty("required").trim(),
@@ -33,6 +46,14 @@ var update = z.object({
33
46
  phoneNumber: z.string().nonempty("required"),
34
47
  type: z.string().nonempty("required")
35
48
  });
49
+ var defaultBasicDetails = {
50
+ id: "",
51
+ name: "",
52
+ countryCode: "+91",
53
+ phoneNumber: "",
54
+ isPhoneVerified: false,
55
+ type: "leopard_safari"
56
+ };
36
57
 
37
58
  // src/safari/location.ts
38
59
  var location_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",