@tripsam/onboarding 1.0.97 → 1.0.99

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.
@@ -74,7 +74,8 @@ declare const pickupLandmark: z.ZodObject<{
74
74
  id: z.ZodOptional<z.ZodString>;
75
75
  label: z.ZodString;
76
76
  type: z.ZodOptional<z.ZodString>;
77
- distanceKm: z.ZodCoercedNumber<unknown>;
77
+ lat: z.ZodCoercedNumber<unknown>;
78
+ lng: z.ZodCoercedNumber<unknown>;
78
79
  }, z.core.$strip>;
79
80
  declare const get$6: z.ZodObject<{
80
81
  id: z.ZodString;
@@ -100,33 +101,48 @@ declare const get$6: z.ZodObject<{
100
101
  }, z.core.$strip>;
101
102
  safariLocation: z.ZodString;
102
103
  pickupLocation: z.ZodString;
104
+ safariLocationLat: z.ZodCoercedNumber<unknown>;
105
+ safariLocationLng: z.ZodCoercedNumber<unknown>;
106
+ pickupLocationLat: z.ZodCoercedNumber<unknown>;
107
+ pickupLocationLng: z.ZodCoercedNumber<unknown>;
103
108
  pickupLandmarks: z.ZodArray<z.ZodObject<{
104
109
  id: z.ZodOptional<z.ZodString>;
105
110
  label: z.ZodString;
106
111
  type: z.ZodOptional<z.ZodString>;
107
- distanceKm: z.ZodCoercedNumber<unknown>;
112
+ lat: z.ZodCoercedNumber<unknown>;
113
+ lng: z.ZodCoercedNumber<unknown>;
108
114
  }, z.core.$strip>>;
109
115
  }, z.core.$strip>;
110
116
  declare const create$4: z.ZodObject<{
111
117
  locationId: z.ZodString;
112
118
  safariLocation: z.ZodString;
113
119
  pickupLocation: z.ZodString;
120
+ safariLocationLat: z.ZodCoercedNumber<unknown>;
121
+ safariLocationLng: z.ZodCoercedNumber<unknown>;
122
+ pickupLocationLat: z.ZodCoercedNumber<unknown>;
123
+ pickupLocationLng: z.ZodCoercedNumber<unknown>;
114
124
  pickupLandmarks: z.ZodArray<z.ZodObject<{
115
125
  id: z.ZodOptional<z.ZodString>;
116
126
  label: z.ZodString;
117
127
  type: z.ZodOptional<z.ZodString>;
118
- distanceKm: z.ZodCoercedNumber<unknown>;
128
+ lat: z.ZodCoercedNumber<unknown>;
129
+ lng: z.ZodCoercedNumber<unknown>;
119
130
  }, z.core.$strip>>;
120
131
  }, z.core.$strip>;
121
132
  declare const update$4: z.ZodObject<{
122
133
  locationId: z.ZodString;
123
134
  safariLocation: z.ZodString;
124
135
  pickupLocation: z.ZodString;
136
+ safariLocationLat: z.ZodCoercedNumber<unknown>;
137
+ safariLocationLng: z.ZodCoercedNumber<unknown>;
138
+ pickupLocationLat: z.ZodCoercedNumber<unknown>;
139
+ pickupLocationLng: z.ZodCoercedNumber<unknown>;
125
140
  pickupLandmarks: z.ZodArray<z.ZodObject<{
126
141
  id: z.ZodOptional<z.ZodString>;
127
142
  label: z.ZodString;
128
143
  type: z.ZodOptional<z.ZodString>;
129
- distanceKm: z.ZodCoercedNumber<unknown>;
144
+ lat: z.ZodCoercedNumber<unknown>;
145
+ lng: z.ZodCoercedNumber<unknown>;
130
146
  }, z.core.$strip>>;
131
147
  id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
132
148
  }, z.core.$strip>;
@@ -74,7 +74,8 @@ declare const pickupLandmark: z.ZodObject<{
74
74
  id: z.ZodOptional<z.ZodString>;
75
75
  label: z.ZodString;
76
76
  type: z.ZodOptional<z.ZodString>;
77
- distanceKm: z.ZodCoercedNumber<unknown>;
77
+ lat: z.ZodCoercedNumber<unknown>;
78
+ lng: z.ZodCoercedNumber<unknown>;
78
79
  }, z.core.$strip>;
79
80
  declare const get$6: z.ZodObject<{
80
81
  id: z.ZodString;
@@ -100,33 +101,48 @@ declare const get$6: z.ZodObject<{
100
101
  }, z.core.$strip>;
101
102
  safariLocation: z.ZodString;
102
103
  pickupLocation: z.ZodString;
104
+ safariLocationLat: z.ZodCoercedNumber<unknown>;
105
+ safariLocationLng: z.ZodCoercedNumber<unknown>;
106
+ pickupLocationLat: z.ZodCoercedNumber<unknown>;
107
+ pickupLocationLng: z.ZodCoercedNumber<unknown>;
103
108
  pickupLandmarks: z.ZodArray<z.ZodObject<{
104
109
  id: z.ZodOptional<z.ZodString>;
105
110
  label: z.ZodString;
106
111
  type: z.ZodOptional<z.ZodString>;
107
- distanceKm: z.ZodCoercedNumber<unknown>;
112
+ lat: z.ZodCoercedNumber<unknown>;
113
+ lng: z.ZodCoercedNumber<unknown>;
108
114
  }, z.core.$strip>>;
109
115
  }, z.core.$strip>;
110
116
  declare const create$4: z.ZodObject<{
111
117
  locationId: z.ZodString;
112
118
  safariLocation: z.ZodString;
113
119
  pickupLocation: z.ZodString;
120
+ safariLocationLat: z.ZodCoercedNumber<unknown>;
121
+ safariLocationLng: z.ZodCoercedNumber<unknown>;
122
+ pickupLocationLat: z.ZodCoercedNumber<unknown>;
123
+ pickupLocationLng: z.ZodCoercedNumber<unknown>;
114
124
  pickupLandmarks: z.ZodArray<z.ZodObject<{
115
125
  id: z.ZodOptional<z.ZodString>;
116
126
  label: z.ZodString;
117
127
  type: z.ZodOptional<z.ZodString>;
118
- distanceKm: z.ZodCoercedNumber<unknown>;
128
+ lat: z.ZodCoercedNumber<unknown>;
129
+ lng: z.ZodCoercedNumber<unknown>;
119
130
  }, z.core.$strip>>;
120
131
  }, z.core.$strip>;
121
132
  declare const update$4: z.ZodObject<{
122
133
  locationId: z.ZodString;
123
134
  safariLocation: z.ZodString;
124
135
  pickupLocation: z.ZodString;
136
+ safariLocationLat: z.ZodCoercedNumber<unknown>;
137
+ safariLocationLng: z.ZodCoercedNumber<unknown>;
138
+ pickupLocationLat: z.ZodCoercedNumber<unknown>;
139
+ pickupLocationLng: z.ZodCoercedNumber<unknown>;
125
140
  pickupLandmarks: z.ZodArray<z.ZodObject<{
126
141
  id: z.ZodOptional<z.ZodString>;
127
142
  label: z.ZodString;
128
143
  type: z.ZodOptional<z.ZodString>;
129
- distanceKm: z.ZodCoercedNumber<unknown>;
144
+ lat: z.ZodCoercedNumber<unknown>;
145
+ lng: z.ZodCoercedNumber<unknown>;
130
146
  }, z.core.$strip>>;
131
147
  id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
132
148
  }, z.core.$strip>;
package/dist/index.cjs CHANGED
@@ -140,19 +140,28 @@ var pickupLandmark = import_zod3.z.object({
140
140
  id: import_zod3.z.string().optional(),
141
141
  label: import_zod3.z.string(),
142
142
  type: import_zod3.z.string().optional(),
143
- distanceKm: import_zod3.z.coerce.number()
143
+ lat: import_zod3.z.coerce.number().min(-90).max(90),
144
+ lng: import_zod3.z.coerce.number().min(-180).max(180)
144
145
  });
145
146
  var get2 = import_zod3.z.object({
146
147
  id: import_zod3.z.string(),
147
148
  location: locationDetails,
148
149
  safariLocation: import_zod3.z.string(),
149
150
  pickupLocation: import_zod3.z.string(),
151
+ safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
152
+ safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
153
+ pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
154
+ pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
150
155
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
151
156
  });
152
157
  var create2 = import_zod3.z.object({
153
158
  locationId: import_zod3.z.string().trim().nonempty("required"),
154
159
  safariLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
155
160
  pickupLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
161
+ safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
162
+ safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
163
+ pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
164
+ pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
156
165
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
157
166
  });
158
167
  var update2 = import_zod3.z.object({
@@ -164,6 +173,10 @@ var defaultLocation = {
164
173
  location: null,
165
174
  safariLocation: "",
166
175
  pickupLocation: "",
176
+ safariLocationLat: 1,
177
+ safariLocationLng: 2,
178
+ pickupLocationLat: 1,
179
+ pickupLocationLng: 1,
167
180
  pickupLandmarks: []
168
181
  };
169
182
 
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-CktW00zQ.cjs';
1
+ export { i as SafariOnboarding } from './index-BUwSHmS_.cjs';
2
2
  export { i as CommonOnboarding } from './index-BJuwZblE.cjs';
3
3
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-CktW00zQ.js';
1
+ export { i as SafariOnboarding } from './index-BUwSHmS_.js';
2
2
  export { i as CommonOnboarding } from './index-BJuwZblE.js';
3
3
  import 'zod';
package/dist/index.js CHANGED
@@ -109,19 +109,28 @@ var pickupLandmark = z3.object({
109
109
  id: z3.string().optional(),
110
110
  label: z3.string(),
111
111
  type: z3.string().optional(),
112
- distanceKm: z3.coerce.number()
112
+ lat: z3.coerce.number().min(-90).max(90),
113
+ lng: z3.coerce.number().min(-180).max(180)
113
114
  });
114
115
  var get2 = z3.object({
115
116
  id: z3.string(),
116
117
  location: locationDetails,
117
118
  safariLocation: z3.string(),
118
119
  pickupLocation: z3.string(),
120
+ safariLocationLat: z3.coerce.number().min(-90).max(90),
121
+ safariLocationLng: z3.coerce.number().min(-180).max(180),
122
+ pickupLocationLat: z3.coerce.number().min(-90).max(90),
123
+ pickupLocationLng: z3.coerce.number().min(-180).max(180),
119
124
  pickupLandmarks: z3.array(pickupLandmark)
120
125
  });
121
126
  var create2 = z3.object({
122
127
  locationId: z3.string().trim().nonempty("required"),
123
128
  safariLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
124
129
  pickupLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
130
+ safariLocationLat: z3.coerce.number().min(-90).max(90),
131
+ safariLocationLng: z3.coerce.number().min(-180).max(180),
132
+ pickupLocationLat: z3.coerce.number().min(-90).max(90),
133
+ pickupLocationLng: z3.coerce.number().min(-180).max(180),
125
134
  pickupLandmarks: z3.array(pickupLandmark)
126
135
  });
127
136
  var update2 = z3.object({
@@ -133,6 +142,10 @@ var defaultLocation = {
133
142
  location: null,
134
143
  safariLocation: "",
135
144
  pickupLocation: "",
145
+ safariLocationLat: 1,
146
+ safariLocationLng: 2,
147
+ pickupLocationLat: 1,
148
+ pickupLocationLng: 1,
136
149
  pickupLandmarks: []
137
150
  };
138
151
 
@@ -127,19 +127,28 @@ var pickupLandmark = import_zod3.z.object({
127
127
  id: import_zod3.z.string().optional(),
128
128
  label: import_zod3.z.string(),
129
129
  type: import_zod3.z.string().optional(),
130
- distanceKm: import_zod3.z.coerce.number()
130
+ lat: import_zod3.z.coerce.number().min(-90).max(90),
131
+ lng: import_zod3.z.coerce.number().min(-180).max(180)
131
132
  });
132
133
  var get2 = import_zod3.z.object({
133
134
  id: import_zod3.z.string(),
134
135
  location: locationDetails,
135
136
  safariLocation: import_zod3.z.string(),
136
137
  pickupLocation: import_zod3.z.string(),
138
+ safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
139
+ safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
140
+ pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
141
+ pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
137
142
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
138
143
  });
139
144
  var create2 = import_zod3.z.object({
140
145
  locationId: import_zod3.z.string().trim().nonempty("required"),
141
146
  safariLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
142
147
  pickupLocation: import_zod3.z.string().trim().nonempty("required").min(2, "min").max(50, "max"),
148
+ safariLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
149
+ safariLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
150
+ pickupLocationLat: import_zod3.z.coerce.number().min(-90).max(90),
151
+ pickupLocationLng: import_zod3.z.coerce.number().min(-180).max(180),
143
152
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
144
153
  });
145
154
  var update2 = import_zod3.z.object({
@@ -151,6 +160,10 @@ var defaultLocation = {
151
160
  location: null,
152
161
  safariLocation: "",
153
162
  pickupLocation: "",
163
+ safariLocationLat: 1,
164
+ safariLocationLng: 2,
165
+ pickupLocationLat: 1,
166
+ pickupLocationLng: 1,
154
167
  pickupLandmarks: []
155
168
  };
156
169
 
@@ -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-CktW00zQ.cjs';
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-BUwSHmS_.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, r as RateMatrix, s as Slot, c as Step, v as VehicleDetails } from '../index-CktW00zQ.js';
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-BUwSHmS_.js';
2
2
  import 'zod';
@@ -88,19 +88,28 @@ var pickupLandmark = z3.object({
88
88
  id: z3.string().optional(),
89
89
  label: z3.string(),
90
90
  type: z3.string().optional(),
91
- distanceKm: z3.coerce.number()
91
+ lat: z3.coerce.number().min(-90).max(90),
92
+ lng: z3.coerce.number().min(-180).max(180)
92
93
  });
93
94
  var get2 = z3.object({
94
95
  id: z3.string(),
95
96
  location: locationDetails,
96
97
  safariLocation: z3.string(),
97
98
  pickupLocation: z3.string(),
99
+ safariLocationLat: z3.coerce.number().min(-90).max(90),
100
+ safariLocationLng: z3.coerce.number().min(-180).max(180),
101
+ pickupLocationLat: z3.coerce.number().min(-90).max(90),
102
+ pickupLocationLng: z3.coerce.number().min(-180).max(180),
98
103
  pickupLandmarks: z3.array(pickupLandmark)
99
104
  });
100
105
  var create2 = z3.object({
101
106
  locationId: z3.string().trim().nonempty("required"),
102
107
  safariLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
103
108
  pickupLocation: z3.string().trim().nonempty("required").min(2, "min").max(50, "max"),
109
+ safariLocationLat: z3.coerce.number().min(-90).max(90),
110
+ safariLocationLng: z3.coerce.number().min(-180).max(180),
111
+ pickupLocationLat: z3.coerce.number().min(-90).max(90),
112
+ pickupLocationLng: z3.coerce.number().min(-180).max(180),
104
113
  pickupLandmarks: z3.array(pickupLandmark)
105
114
  });
106
115
  var update2 = z3.object({
@@ -112,6 +121,10 @@ var defaultLocation = {
112
121
  location: null,
113
122
  safariLocation: "",
114
123
  pickupLocation: "",
124
+ safariLocationLat: 1,
125
+ safariLocationLng: 2,
126
+ pickupLocationLat: 1,
127
+ pickupLocationLng: 1,
115
128
  pickupLandmarks: []
116
129
  };
117
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -42,4 +42,4 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  }
45
- }
45
+ }