@tripsam/onboarding 1.0.96 → 1.0.98
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.
- package/dist/{index-DqgzmWv0.d.cts → index-Dm19HgrH.d.cts} +19 -10
- package/dist/{index-DqgzmWv0.d.ts → index-Dm19HgrH.d.ts} +19 -10
- package/dist/index.cjs +14 -11
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -11
- package/dist/safari/index.cjs +14 -11
- package/dist/safari/index.d.cts +1 -1
- package/dist/safari/index.d.ts +1 -1
- package/dist/safari/index.js +14 -11
- package/package.json +2 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
/** @deprecated */
|
|
4
3
|
declare const safariTypes: {
|
|
5
4
|
readonly LEOPARD_SAFARI: "leopardSafari";
|
|
6
5
|
readonly TIGER_SAFARI: "tigerSafari";
|
|
@@ -24,53 +23,51 @@ declare const get$7: z.ZodObject<{
|
|
|
24
23
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
25
24
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
26
25
|
isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
-
type: z.ZodEnum<{
|
|
26
|
+
type: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
28
27
|
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
29
28
|
TIGER_SAFARI: "TIGER_SAFARI";
|
|
30
29
|
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
31
30
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
32
31
|
LION_SAFARI: "LION_SAFARI";
|
|
33
32
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
34
|
-
}
|
|
33
|
+
}>>>;
|
|
35
34
|
}, z.core.$strip>;
|
|
36
35
|
declare const create$5: z.ZodObject<{
|
|
37
36
|
name: z.ZodString;
|
|
38
37
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
39
38
|
phone: z.ZodString;
|
|
40
|
-
type: z.ZodEnum<{
|
|
39
|
+
type: z.ZodArray<z.ZodEnum<{
|
|
41
40
|
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
42
41
|
TIGER_SAFARI: "TIGER_SAFARI";
|
|
43
42
|
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
44
43
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
45
44
|
LION_SAFARI: "LION_SAFARI";
|
|
46
45
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
47
|
-
}
|
|
46
|
+
}>>;
|
|
48
47
|
}, z.core.$strip>;
|
|
49
48
|
declare const update$5: z.ZodObject<{
|
|
50
49
|
id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
51
50
|
name: z.ZodString;
|
|
52
51
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
53
52
|
phone: z.ZodString;
|
|
54
|
-
type: z.ZodEnum<{
|
|
53
|
+
type: z.ZodArray<z.ZodEnum<{
|
|
55
54
|
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
56
55
|
TIGER_SAFARI: "TIGER_SAFARI";
|
|
57
56
|
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
58
57
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
59
58
|
LION_SAFARI: "LION_SAFARI";
|
|
60
59
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
61
|
-
}
|
|
60
|
+
}>>;
|
|
62
61
|
}, z.core.$strip>;
|
|
63
62
|
type SafeGet$7 = z.infer<typeof get$7>;
|
|
64
63
|
type SafeUpdate$5 = z.output<typeof update$5>;
|
|
65
64
|
type SafeCreate$5 = z.output<typeof create$5>;
|
|
66
|
-
declare const defaultBasicDetails: SafeGet$7;
|
|
67
65
|
|
|
68
66
|
type basicDetails_SafariType = SafariType;
|
|
69
|
-
declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
|
|
70
67
|
declare const basicDetails_safariTypes: typeof safariTypes;
|
|
71
68
|
declare const basicDetails_safeSas: typeof safeSas;
|
|
72
69
|
declare namespace basicDetails {
|
|
73
|
-
export { type basicDetails_SafariType as SafariType, type SafeCreate$5 as SafeCreate, type SafeGet$7 as SafeGet, type SafeUpdate$5 as SafeUpdate, create$5 as create,
|
|
70
|
+
export { type basicDetails_SafariType as SafariType, type SafeCreate$5 as SafeCreate, type SafeGet$7 as SafeGet, type SafeUpdate$5 as SafeUpdate, create$5 as create, get$7 as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$5 as update };
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
declare const pickupLandmark: z.ZodObject<{
|
|
@@ -103,6 +100,10 @@ declare const get$6: z.ZodObject<{
|
|
|
103
100
|
}, z.core.$strip>;
|
|
104
101
|
safariLocation: z.ZodString;
|
|
105
102
|
pickupLocation: z.ZodString;
|
|
103
|
+
safariLocationLat: z.ZodCoercedNumber<unknown>;
|
|
104
|
+
safariLocationLng: z.ZodCoercedNumber<unknown>;
|
|
105
|
+
pickupLocationLat: z.ZodCoercedNumber<unknown>;
|
|
106
|
+
pickupLocationLng: z.ZodCoercedNumber<unknown>;
|
|
106
107
|
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
107
108
|
id: z.ZodOptional<z.ZodString>;
|
|
108
109
|
label: z.ZodString;
|
|
@@ -114,6 +115,10 @@ declare const create$4: z.ZodObject<{
|
|
|
114
115
|
locationId: z.ZodString;
|
|
115
116
|
safariLocation: z.ZodString;
|
|
116
117
|
pickupLocation: z.ZodString;
|
|
118
|
+
safariLocationLat: z.ZodCoercedNumber<unknown>;
|
|
119
|
+
safariLocationLng: z.ZodCoercedNumber<unknown>;
|
|
120
|
+
pickupLocationLat: z.ZodCoercedNumber<unknown>;
|
|
121
|
+
pickupLocationLng: z.ZodCoercedNumber<unknown>;
|
|
117
122
|
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
118
123
|
id: z.ZodOptional<z.ZodString>;
|
|
119
124
|
label: z.ZodString;
|
|
@@ -125,6 +130,10 @@ declare const update$4: z.ZodObject<{
|
|
|
125
130
|
locationId: z.ZodString;
|
|
126
131
|
safariLocation: z.ZodString;
|
|
127
132
|
pickupLocation: z.ZodString;
|
|
133
|
+
safariLocationLat: z.ZodCoercedNumber<unknown>;
|
|
134
|
+
safariLocationLng: z.ZodCoercedNumber<unknown>;
|
|
135
|
+
pickupLocationLat: z.ZodCoercedNumber<unknown>;
|
|
136
|
+
pickupLocationLng: z.ZodCoercedNumber<unknown>;
|
|
128
137
|
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
129
138
|
id: z.ZodOptional<z.ZodString>;
|
|
130
139
|
label: z.ZodString;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
/** @deprecated */
|
|
4
3
|
declare const safariTypes: {
|
|
5
4
|
readonly LEOPARD_SAFARI: "leopardSafari";
|
|
6
5
|
readonly TIGER_SAFARI: "tigerSafari";
|
|
@@ -24,53 +23,51 @@ declare const get$7: z.ZodObject<{
|
|
|
24
23
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
25
24
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
26
25
|
isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
27
|
-
type: z.ZodEnum<{
|
|
26
|
+
type: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
28
27
|
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
29
28
|
TIGER_SAFARI: "TIGER_SAFARI";
|
|
30
29
|
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
31
30
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
32
31
|
LION_SAFARI: "LION_SAFARI";
|
|
33
32
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
34
|
-
}
|
|
33
|
+
}>>>;
|
|
35
34
|
}, z.core.$strip>;
|
|
36
35
|
declare const create$5: z.ZodObject<{
|
|
37
36
|
name: z.ZodString;
|
|
38
37
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
39
38
|
phone: z.ZodString;
|
|
40
|
-
type: z.ZodEnum<{
|
|
39
|
+
type: z.ZodArray<z.ZodEnum<{
|
|
41
40
|
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
42
41
|
TIGER_SAFARI: "TIGER_SAFARI";
|
|
43
42
|
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
44
43
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
45
44
|
LION_SAFARI: "LION_SAFARI";
|
|
46
45
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
47
|
-
}
|
|
46
|
+
}>>;
|
|
48
47
|
}, z.core.$strip>;
|
|
49
48
|
declare const update$5: z.ZodObject<{
|
|
50
49
|
id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
51
50
|
name: z.ZodString;
|
|
52
51
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
53
52
|
phone: z.ZodString;
|
|
54
|
-
type: z.ZodEnum<{
|
|
53
|
+
type: z.ZodArray<z.ZodEnum<{
|
|
55
54
|
LEOPARD_SAFARI: "LEOPARD_SAFARI";
|
|
56
55
|
TIGER_SAFARI: "TIGER_SAFARI";
|
|
57
56
|
BIRD_WATCHING_SAFARI: "BIRD_WATCHING_SAFARI";
|
|
58
57
|
VILLAGE_SAFARI: "VILLAGE_SAFARI";
|
|
59
58
|
LION_SAFARI: "LION_SAFARI";
|
|
60
59
|
JUNGLE_SAFARI: "JUNGLE_SAFARI";
|
|
61
|
-
}
|
|
60
|
+
}>>;
|
|
62
61
|
}, z.core.$strip>;
|
|
63
62
|
type SafeGet$7 = z.infer<typeof get$7>;
|
|
64
63
|
type SafeUpdate$5 = z.output<typeof update$5>;
|
|
65
64
|
type SafeCreate$5 = z.output<typeof create$5>;
|
|
66
|
-
declare const defaultBasicDetails: SafeGet$7;
|
|
67
65
|
|
|
68
66
|
type basicDetails_SafariType = SafariType;
|
|
69
|
-
declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
|
|
70
67
|
declare const basicDetails_safariTypes: typeof safariTypes;
|
|
71
68
|
declare const basicDetails_safeSas: typeof safeSas;
|
|
72
69
|
declare namespace basicDetails {
|
|
73
|
-
export { type basicDetails_SafariType as SafariType, type SafeCreate$5 as SafeCreate, type SafeGet$7 as SafeGet, type SafeUpdate$5 as SafeUpdate, create$5 as create,
|
|
70
|
+
export { type basicDetails_SafariType as SafariType, type SafeCreate$5 as SafeCreate, type SafeGet$7 as SafeGet, type SafeUpdate$5 as SafeUpdate, create$5 as create, get$7 as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$5 as update };
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
declare const pickupLandmark: z.ZodObject<{
|
|
@@ -103,6 +100,10 @@ declare const get$6: z.ZodObject<{
|
|
|
103
100
|
}, z.core.$strip>;
|
|
104
101
|
safariLocation: z.ZodString;
|
|
105
102
|
pickupLocation: z.ZodString;
|
|
103
|
+
safariLocationLat: z.ZodCoercedNumber<unknown>;
|
|
104
|
+
safariLocationLng: z.ZodCoercedNumber<unknown>;
|
|
105
|
+
pickupLocationLat: z.ZodCoercedNumber<unknown>;
|
|
106
|
+
pickupLocationLng: z.ZodCoercedNumber<unknown>;
|
|
106
107
|
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
107
108
|
id: z.ZodOptional<z.ZodString>;
|
|
108
109
|
label: z.ZodString;
|
|
@@ -114,6 +115,10 @@ declare const create$4: z.ZodObject<{
|
|
|
114
115
|
locationId: z.ZodString;
|
|
115
116
|
safariLocation: z.ZodString;
|
|
116
117
|
pickupLocation: z.ZodString;
|
|
118
|
+
safariLocationLat: z.ZodCoercedNumber<unknown>;
|
|
119
|
+
safariLocationLng: z.ZodCoercedNumber<unknown>;
|
|
120
|
+
pickupLocationLat: z.ZodCoercedNumber<unknown>;
|
|
121
|
+
pickupLocationLng: z.ZodCoercedNumber<unknown>;
|
|
117
122
|
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
118
123
|
id: z.ZodOptional<z.ZodString>;
|
|
119
124
|
label: z.ZodString;
|
|
@@ -125,6 +130,10 @@ declare const update$4: z.ZodObject<{
|
|
|
125
130
|
locationId: z.ZodString;
|
|
126
131
|
safariLocation: z.ZodString;
|
|
127
132
|
pickupLocation: z.ZodString;
|
|
133
|
+
safariLocationLat: z.ZodCoercedNumber<unknown>;
|
|
134
|
+
safariLocationLng: z.ZodCoercedNumber<unknown>;
|
|
135
|
+
pickupLocationLat: z.ZodCoercedNumber<unknown>;
|
|
136
|
+
pickupLocationLng: z.ZodCoercedNumber<unknown>;
|
|
128
137
|
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
129
138
|
id: z.ZodOptional<z.ZodString>;
|
|
130
139
|
label: z.ZodString;
|
package/dist/index.cjs
CHANGED
|
@@ -54,7 +54,6 @@ __export(safari_exports, {
|
|
|
54
54
|
var basic_details_exports = {};
|
|
55
55
|
__export(basic_details_exports, {
|
|
56
56
|
create: () => create,
|
|
57
|
-
defaultBasicDetails: () => defaultBasicDetails,
|
|
58
57
|
get: () => get,
|
|
59
58
|
safariTypes: () => safariTypes,
|
|
60
59
|
safeSas: () => safeSas,
|
|
@@ -76,26 +75,18 @@ var get = import_zod.z.object({
|
|
|
76
75
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
77
76
|
phone: import_zod.z.string().optional().default(""),
|
|
78
77
|
isPhoneVerified: import_zod.z.boolean().optional().default(false),
|
|
79
|
-
type: safeSas
|
|
78
|
+
type: safeSas.array().default([])
|
|
80
79
|
});
|
|
81
80
|
var create = import_zod.z.object({
|
|
82
81
|
name: import_zod.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
83
82
|
countryCode: import_zod.z.string().trim().min(2, "min").max(5, "max").default("+91"),
|
|
84
83
|
phone: import_zod.z.string().trim().nonempty("required").min(5, "min").max(15, "max"),
|
|
85
|
-
type: import_zod.z.enum(Object.keys(safariTypes), "invalid")
|
|
84
|
+
type: import_zod.z.array(import_zod.z.enum(Object.keys(safariTypes), "invalid"))
|
|
86
85
|
});
|
|
87
86
|
var update = import_zod.z.object({
|
|
88
87
|
...create.shape,
|
|
89
88
|
id: import_zod.z.string().optional().default("")
|
|
90
89
|
});
|
|
91
|
-
var defaultBasicDetails = {
|
|
92
|
-
id: "",
|
|
93
|
-
name: "",
|
|
94
|
-
countryCode: "+91",
|
|
95
|
-
phone: "",
|
|
96
|
-
isPhoneVerified: false,
|
|
97
|
-
type: "LEOPARD_SAFARI"
|
|
98
|
-
};
|
|
99
90
|
|
|
100
91
|
// src/safari/location.ts
|
|
101
92
|
var location_exports2 = {};
|
|
@@ -156,12 +147,20 @@ var get2 = import_zod3.z.object({
|
|
|
156
147
|
location: locationDetails,
|
|
157
148
|
safariLocation: import_zod3.z.string(),
|
|
158
149
|
pickupLocation: import_zod3.z.string(),
|
|
150
|
+
safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
151
|
+
safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
152
|
+
pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
153
|
+
pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
159
154
|
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
160
155
|
});
|
|
161
156
|
var create2 = import_zod3.z.object({
|
|
162
157
|
locationId: import_zod3.z.string().trim().nonempty("required"),
|
|
163
158
|
safariLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
164
159
|
pickupLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
160
|
+
safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
161
|
+
safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
162
|
+
pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
163
|
+
pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
165
164
|
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
166
165
|
});
|
|
167
166
|
var update2 = import_zod3.z.object({
|
|
@@ -173,6 +172,10 @@ var defaultLocation = {
|
|
|
173
172
|
location: null,
|
|
174
173
|
safariLocation: "",
|
|
175
174
|
pickupLocation: "",
|
|
175
|
+
safariLocationLat: 1,
|
|
176
|
+
safariLocationLng: 2,
|
|
177
|
+
pickupLocationLat: 1,
|
|
178
|
+
pickupLocationLng: 1,
|
|
176
179
|
pickupLandmarks: []
|
|
177
180
|
};
|
|
178
181
|
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -23,7 +23,6 @@ __export(safari_exports, {
|
|
|
23
23
|
var basic_details_exports = {};
|
|
24
24
|
__export(basic_details_exports, {
|
|
25
25
|
create: () => create,
|
|
26
|
-
defaultBasicDetails: () => defaultBasicDetails,
|
|
27
26
|
get: () => get,
|
|
28
27
|
safariTypes: () => safariTypes,
|
|
29
28
|
safeSas: () => safeSas,
|
|
@@ -45,26 +44,18 @@ var get = z.object({
|
|
|
45
44
|
countryCode: z.string().optional().default("+91"),
|
|
46
45
|
phone: z.string().optional().default(""),
|
|
47
46
|
isPhoneVerified: z.boolean().optional().default(false),
|
|
48
|
-
type: safeSas
|
|
47
|
+
type: safeSas.array().default([])
|
|
49
48
|
});
|
|
50
49
|
var create = z.object({
|
|
51
50
|
name: z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
52
51
|
countryCode: z.string().trim().min(2, "min").max(5, "max").default("+91"),
|
|
53
52
|
phone: z.string().trim().nonempty("required").min(5, "min").max(15, "max"),
|
|
54
|
-
type: z.enum(Object.keys(safariTypes), "invalid")
|
|
53
|
+
type: z.array(z.enum(Object.keys(safariTypes), "invalid"))
|
|
55
54
|
});
|
|
56
55
|
var update = z.object({
|
|
57
56
|
...create.shape,
|
|
58
57
|
id: z.string().optional().default("")
|
|
59
58
|
});
|
|
60
|
-
var defaultBasicDetails = {
|
|
61
|
-
id: "",
|
|
62
|
-
name: "",
|
|
63
|
-
countryCode: "+91",
|
|
64
|
-
phone: "",
|
|
65
|
-
isPhoneVerified: false,
|
|
66
|
-
type: "LEOPARD_SAFARI"
|
|
67
|
-
};
|
|
68
59
|
|
|
69
60
|
// src/safari/location.ts
|
|
70
61
|
var location_exports2 = {};
|
|
@@ -125,12 +116,20 @@ var get2 = z3.object({
|
|
|
125
116
|
location: locationDetails,
|
|
126
117
|
safariLocation: z3.string(),
|
|
127
118
|
pickupLocation: z3.string(),
|
|
119
|
+
safariLocationLat: z3.coerce.number().min(-90).max(90),
|
|
120
|
+
safariLocationLng: z3.coerce.number().min(-180).max(180),
|
|
121
|
+
pickupLocationLat: z3.coerce.number().min(-90).max(90),
|
|
122
|
+
pickupLocationLng: z3.coerce.number().min(-180).max(180),
|
|
128
123
|
pickupLandmarks: z3.array(pickupLandmark)
|
|
129
124
|
});
|
|
130
125
|
var create2 = z3.object({
|
|
131
126
|
locationId: z3.string().trim().nonempty("required"),
|
|
132
127
|
safariLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
133
128
|
pickupLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
129
|
+
safariLocationLat: z3.coerce.number().min(-90).max(90),
|
|
130
|
+
safariLocationLng: z3.coerce.number().min(-180).max(180),
|
|
131
|
+
pickupLocationLat: z3.coerce.number().min(-90).max(90),
|
|
132
|
+
pickupLocationLng: z3.coerce.number().min(-180).max(180),
|
|
134
133
|
pickupLandmarks: z3.array(pickupLandmark)
|
|
135
134
|
});
|
|
136
135
|
var update2 = z3.object({
|
|
@@ -142,6 +141,10 @@ var defaultLocation = {
|
|
|
142
141
|
location: null,
|
|
143
142
|
safariLocation: "",
|
|
144
143
|
pickupLocation: "",
|
|
144
|
+
safariLocationLat: 1,
|
|
145
|
+
safariLocationLng: 2,
|
|
146
|
+
pickupLocationLat: 1,
|
|
147
|
+
pickupLocationLng: 1,
|
|
145
148
|
pickupLandmarks: []
|
|
146
149
|
};
|
|
147
150
|
|
package/dist/safari/index.cjs
CHANGED
|
@@ -47,7 +47,6 @@ module.exports = __toCommonJS(safari_exports);
|
|
|
47
47
|
var basic_details_exports = {};
|
|
48
48
|
__export(basic_details_exports, {
|
|
49
49
|
create: () => create,
|
|
50
|
-
defaultBasicDetails: () => defaultBasicDetails,
|
|
51
50
|
get: () => get,
|
|
52
51
|
safariTypes: () => safariTypes,
|
|
53
52
|
safeSas: () => safeSas,
|
|
@@ -69,26 +68,18 @@ var get = import_zod.z.object({
|
|
|
69
68
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
70
69
|
phone: import_zod.z.string().optional().default(""),
|
|
71
70
|
isPhoneVerified: import_zod.z.boolean().optional().default(false),
|
|
72
|
-
type: safeSas
|
|
71
|
+
type: safeSas.array().default([])
|
|
73
72
|
});
|
|
74
73
|
var create = import_zod.z.object({
|
|
75
74
|
name: import_zod.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
76
75
|
countryCode: import_zod.z.string().trim().min(2, "min").max(5, "max").default("+91"),
|
|
77
76
|
phone: import_zod.z.string().trim().nonempty("required").min(5, "min").max(15, "max"),
|
|
78
|
-
type: import_zod.z.enum(Object.keys(safariTypes), "invalid")
|
|
77
|
+
type: import_zod.z.array(import_zod.z.enum(Object.keys(safariTypes), "invalid"))
|
|
79
78
|
});
|
|
80
79
|
var update = import_zod.z.object({
|
|
81
80
|
...create.shape,
|
|
82
81
|
id: import_zod.z.string().optional().default("")
|
|
83
82
|
});
|
|
84
|
-
var defaultBasicDetails = {
|
|
85
|
-
id: "",
|
|
86
|
-
name: "",
|
|
87
|
-
countryCode: "+91",
|
|
88
|
-
phone: "",
|
|
89
|
-
isPhoneVerified: false,
|
|
90
|
-
type: "LEOPARD_SAFARI"
|
|
91
|
-
};
|
|
92
83
|
|
|
93
84
|
// src/safari/location.ts
|
|
94
85
|
var location_exports = {};
|
|
@@ -143,12 +134,20 @@ var get2 = import_zod3.z.object({
|
|
|
143
134
|
location: locationDetails,
|
|
144
135
|
safariLocation: import_zod3.z.string(),
|
|
145
136
|
pickupLocation: import_zod3.z.string(),
|
|
137
|
+
safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
138
|
+
safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
139
|
+
pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
140
|
+
pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
146
141
|
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
147
142
|
});
|
|
148
143
|
var create2 = import_zod3.z.object({
|
|
149
144
|
locationId: import_zod3.z.string().trim().nonempty("required"),
|
|
150
145
|
safariLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
151
146
|
pickupLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
147
|
+
safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
148
|
+
safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
149
|
+
pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
|
|
150
|
+
pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
|
|
152
151
|
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
153
152
|
});
|
|
154
153
|
var update2 = import_zod3.z.object({
|
|
@@ -160,6 +159,10 @@ var defaultLocation = {
|
|
|
160
159
|
location: null,
|
|
161
160
|
safariLocation: "",
|
|
162
161
|
pickupLocation: "",
|
|
162
|
+
safariLocationLat: 1,
|
|
163
|
+
safariLocationLng: 2,
|
|
164
|
+
pickupLocationLat: 1,
|
|
165
|
+
pickupLocationLng: 1,
|
|
163
166
|
pickupLandmarks: []
|
|
164
167
|
};
|
|
165
168
|
|
package/dist/safari/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, r as RateMatrix, s as Slot, c as Step, v as VehicleDetails } from '../index-
|
|
1
|
+
export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, r as RateMatrix, s as Slot, c as Step, v as VehicleDetails } from '../index-Dm19HgrH.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/safari/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, r as RateMatrix, s as Slot, c as Step, v as VehicleDetails } from '../index-
|
|
1
|
+
export { b as BasicDetails, a as BusinessDetails, d as DriverDetails, l as Location, o as OperationalDays, p as PersonalDetails, r as RateMatrix, s as Slot, c as Step, v as VehicleDetails } from '../index-Dm19HgrH.js';
|
|
2
2
|
import 'zod';
|
package/dist/safari/index.js
CHANGED
|
@@ -8,7 +8,6 @@ var __export = (target, all) => {
|
|
|
8
8
|
var basic_details_exports = {};
|
|
9
9
|
__export(basic_details_exports, {
|
|
10
10
|
create: () => create,
|
|
11
|
-
defaultBasicDetails: () => defaultBasicDetails,
|
|
12
11
|
get: () => get,
|
|
13
12
|
safariTypes: () => safariTypes,
|
|
14
13
|
safeSas: () => safeSas,
|
|
@@ -30,26 +29,18 @@ var get = z.object({
|
|
|
30
29
|
countryCode: z.string().optional().default("+91"),
|
|
31
30
|
phone: z.string().optional().default(""),
|
|
32
31
|
isPhoneVerified: z.boolean().optional().default(false),
|
|
33
|
-
type: safeSas
|
|
32
|
+
type: safeSas.array().default([])
|
|
34
33
|
});
|
|
35
34
|
var create = z.object({
|
|
36
35
|
name: z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
37
36
|
countryCode: z.string().trim().min(2, "min").max(5, "max").default("+91"),
|
|
38
37
|
phone: z.string().trim().nonempty("required").min(5, "min").max(15, "max"),
|
|
39
|
-
type: z.enum(Object.keys(safariTypes), "invalid")
|
|
38
|
+
type: z.array(z.enum(Object.keys(safariTypes), "invalid"))
|
|
40
39
|
});
|
|
41
40
|
var update = z.object({
|
|
42
41
|
...create.shape,
|
|
43
42
|
id: z.string().optional().default("")
|
|
44
43
|
});
|
|
45
|
-
var defaultBasicDetails = {
|
|
46
|
-
id: "",
|
|
47
|
-
name: "",
|
|
48
|
-
countryCode: "+91",
|
|
49
|
-
phone: "",
|
|
50
|
-
isPhoneVerified: false,
|
|
51
|
-
type: "LEOPARD_SAFARI"
|
|
52
|
-
};
|
|
53
44
|
|
|
54
45
|
// src/safari/location.ts
|
|
55
46
|
var location_exports = {};
|
|
@@ -104,12 +95,20 @@ var get2 = z3.object({
|
|
|
104
95
|
location: locationDetails,
|
|
105
96
|
safariLocation: z3.string(),
|
|
106
97
|
pickupLocation: z3.string(),
|
|
98
|
+
safariLocationLat: z3.coerce.number().min(-90).max(90),
|
|
99
|
+
safariLocationLng: z3.coerce.number().min(-180).max(180),
|
|
100
|
+
pickupLocationLat: z3.coerce.number().min(-90).max(90),
|
|
101
|
+
pickupLocationLng: z3.coerce.number().min(-180).max(180),
|
|
107
102
|
pickupLandmarks: z3.array(pickupLandmark)
|
|
108
103
|
});
|
|
109
104
|
var create2 = z3.object({
|
|
110
105
|
locationId: z3.string().trim().nonempty("required"),
|
|
111
106
|
safariLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
112
107
|
pickupLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
|
|
108
|
+
safariLocationLat: z3.coerce.number().min(-90).max(90),
|
|
109
|
+
safariLocationLng: z3.coerce.number().min(-180).max(180),
|
|
110
|
+
pickupLocationLat: z3.coerce.number().min(-90).max(90),
|
|
111
|
+
pickupLocationLng: z3.coerce.number().min(-180).max(180),
|
|
113
112
|
pickupLandmarks: z3.array(pickupLandmark)
|
|
114
113
|
});
|
|
115
114
|
var update2 = z3.object({
|
|
@@ -121,6 +120,10 @@ var defaultLocation = {
|
|
|
121
120
|
location: null,
|
|
122
121
|
safariLocation: "",
|
|
123
122
|
pickupLocation: "",
|
|
123
|
+
safariLocationLat: 1,
|
|
124
|
+
safariLocationLng: 2,
|
|
125
|
+
pickupLocationLat: 1,
|
|
126
|
+
pickupLocationLng: 1,
|
|
124
127
|
pickupLandmarks: []
|
|
125
128
|
};
|
|
126
129
|
|
package/package.json
CHANGED