@tripsam/onboarding 1.0.50 → 1.0.52

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,2 +1,2 @@
1
- export { l as LocationAutoSuggest, o as Onboard, v as VerifyEmail } from '../index-CU85kS3x.cjs';
1
+ export { l as LocationAutoSuggest, o as Onboard, v as VerifyEmail } from '../index-DNcx8rxs.cjs';
2
2
  import 'zod';
@@ -1,2 +1,2 @@
1
- export { l as LocationAutoSuggest, o as Onboard, v as VerifyEmail } from '../index-CU85kS3x.js';
1
+ export { l as LocationAutoSuggest, o as Onboard, v as VerifyEmail } from '../index-DNcx8rxs.js';
2
2
  import 'zod';
@@ -67,18 +67,8 @@ declare const pickupLandmark: z.ZodObject<{
67
67
  type: z.ZodOptional<z.ZodString>;
68
68
  distanceKm: z.ZodCoercedNumber<unknown>;
69
69
  }, z.core.$strip>;
70
- declare const create$3: z.ZodObject<{
71
- locationId: z.ZodString;
72
- safariLocation: z.ZodString;
73
- pickupLocation: z.ZodString;
74
- pickupLandmarks: z.ZodArray<z.ZodObject<{
75
- id: z.ZodOptional<z.ZodString>;
76
- label: z.ZodString;
77
- type: z.ZodOptional<z.ZodString>;
78
- distanceKm: z.ZodCoercedNumber<unknown>;
79
- }, z.core.$strip>>;
80
- }, z.core.$strip>;
81
70
  declare const get: z.ZodObject<{
71
+ id: z.ZodString;
82
72
  location: z.ZodObject<{
83
73
  id: z.ZodString;
84
74
  name: z.ZodString;
@@ -107,7 +97,17 @@ declare const get: z.ZodObject<{
107
97
  type: z.ZodOptional<z.ZodString>;
108
98
  distanceKm: z.ZodCoercedNumber<unknown>;
109
99
  }, z.core.$strip>>;
110
- completed: z.ZodBoolean;
100
+ }, z.core.$strip>;
101
+ declare const create$3: z.ZodObject<{
102
+ locationId: z.ZodString;
103
+ safariLocation: z.ZodString;
104
+ pickupLocation: z.ZodString;
105
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodOptional<z.ZodString>;
107
+ label: z.ZodString;
108
+ type: z.ZodOptional<z.ZodString>;
109
+ distanceKm: z.ZodCoercedNumber<unknown>;
110
+ }, z.core.$strip>>;
111
111
  }, z.core.$strip>;
112
112
  declare const update$1: z.ZodObject<{
113
113
  id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -125,13 +125,15 @@ type SafeGet = z.output<typeof get>;
125
125
  type SafeCreate$3 = z.output<typeof create$3>;
126
126
  type SafeUpdate$1 = z.output<typeof update$1>;
127
127
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
128
+ declare const defaultLocation: SafeGet;
128
129
 
129
130
  type location_SafeGet = SafeGet;
130
131
  type location_SafePickupLandmark = SafePickupLandmark;
132
+ declare const location_defaultLocation: typeof defaultLocation;
131
133
  declare const location_get: typeof get;
132
134
  declare const location_pickupLandmark: typeof pickupLandmark;
133
135
  declare namespace location {
134
- export { type SafeCreate$3 as SafeCreate, type location_SafeGet as SafeGet, type location_SafePickupLandmark as SafePickupLandmark, type SafeUpdate$1 as SafeUpdate, create$3 as create, location_get as get, location_pickupLandmark as pickupLandmark, update$1 as update };
136
+ export { type SafeCreate$3 as SafeCreate, type location_SafeGet as SafeGet, type location_SafePickupLandmark as SafePickupLandmark, type SafeUpdate$1 as SafeUpdate, create$3 as create, location_defaultLocation as defaultLocation, location_get as get, location_pickupLandmark as pickupLandmark, update$1 as update };
135
137
  }
136
138
 
137
139
  declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
@@ -67,18 +67,8 @@ declare const pickupLandmark: z.ZodObject<{
67
67
  type: z.ZodOptional<z.ZodString>;
68
68
  distanceKm: z.ZodCoercedNumber<unknown>;
69
69
  }, z.core.$strip>;
70
- declare const create$3: z.ZodObject<{
71
- locationId: z.ZodString;
72
- safariLocation: z.ZodString;
73
- pickupLocation: z.ZodString;
74
- pickupLandmarks: z.ZodArray<z.ZodObject<{
75
- id: z.ZodOptional<z.ZodString>;
76
- label: z.ZodString;
77
- type: z.ZodOptional<z.ZodString>;
78
- distanceKm: z.ZodCoercedNumber<unknown>;
79
- }, z.core.$strip>>;
80
- }, z.core.$strip>;
81
70
  declare const get: z.ZodObject<{
71
+ id: z.ZodString;
82
72
  location: z.ZodObject<{
83
73
  id: z.ZodString;
84
74
  name: z.ZodString;
@@ -107,7 +97,17 @@ declare const get: z.ZodObject<{
107
97
  type: z.ZodOptional<z.ZodString>;
108
98
  distanceKm: z.ZodCoercedNumber<unknown>;
109
99
  }, z.core.$strip>>;
110
- completed: z.ZodBoolean;
100
+ }, z.core.$strip>;
101
+ declare const create$3: z.ZodObject<{
102
+ locationId: z.ZodString;
103
+ safariLocation: z.ZodString;
104
+ pickupLocation: z.ZodString;
105
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodOptional<z.ZodString>;
107
+ label: z.ZodString;
108
+ type: z.ZodOptional<z.ZodString>;
109
+ distanceKm: z.ZodCoercedNumber<unknown>;
110
+ }, z.core.$strip>>;
111
111
  }, z.core.$strip>;
112
112
  declare const update$1: z.ZodObject<{
113
113
  id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -125,13 +125,15 @@ type SafeGet = z.output<typeof get>;
125
125
  type SafeCreate$3 = z.output<typeof create$3>;
126
126
  type SafeUpdate$1 = z.output<typeof update$1>;
127
127
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
128
+ declare const defaultLocation: SafeGet;
128
129
 
129
130
  type location_SafeGet = SafeGet;
130
131
  type location_SafePickupLandmark = SafePickupLandmark;
132
+ declare const location_defaultLocation: typeof defaultLocation;
131
133
  declare const location_get: typeof get;
132
134
  declare const location_pickupLandmark: typeof pickupLandmark;
133
135
  declare namespace location {
134
- export { type SafeCreate$3 as SafeCreate, type location_SafeGet as SafeGet, type location_SafePickupLandmark as SafePickupLandmark, type SafeUpdate$1 as SafeUpdate, create$3 as create, location_get as get, location_pickupLandmark as pickupLandmark, update$1 as update };
136
+ export { type SafeCreate$3 as SafeCreate, type location_SafeGet as SafeGet, type location_SafePickupLandmark as SafePickupLandmark, type SafeUpdate$1 as SafeUpdate, create$3 as create, location_defaultLocation as defaultLocation, location_get as get, location_pickupLandmark as pickupLandmark, update$1 as update };
135
137
  }
136
138
 
137
139
  declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
package/dist/index.cjs CHANGED
@@ -104,6 +104,7 @@ var defaultBasicDetails = {
104
104
  var location_exports2 = {};
105
105
  __export(location_exports2, {
106
106
  create: () => create2,
107
+ defaultLocation: () => defaultLocation,
107
108
  get: () => get2,
108
109
  pickupLandmark: () => pickupLandmark,
109
110
  update: () => update2
@@ -153,19 +154,19 @@ var pickupLandmark = import_zod3.z.object({
153
154
  type: import_zod3.z.string().optional(),
154
155
  distanceKm: import_zod3.z.coerce.number()
155
156
  });
157
+ var get2 = import_zod3.z.object({
158
+ id: import_zod3.z.string(),
159
+ location: locationDetails,
160
+ safariLocation: import_zod3.z.string(),
161
+ pickupLocation: import_zod3.z.string(),
162
+ pickupLandmarks: import_zod3.z.array(pickupLandmark)
163
+ });
156
164
  var create2 = import_zod3.z.object({
157
165
  locationId: import_zod3.z.string().trim().nonempty("required"),
158
166
  safariLocation: import_zod3.z.string().trim().nonempty("required"),
159
167
  pickupLocation: import_zod3.z.string().trim().nonempty("required"),
160
168
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
161
169
  });
162
- var get2 = import_zod3.z.object({
163
- location: locationDetails,
164
- safariLocation: import_zod3.z.string(),
165
- pickupLocation: import_zod3.z.string(),
166
- pickupLandmarks: import_zod3.z.array(pickupLandmark),
167
- completed: import_zod3.z.boolean()
168
- });
169
170
  var update2 = import_zod3.z.object({
170
171
  id: import_zod3.z.string().optional().default(""),
171
172
  locationId: import_zod3.z.string().trim().nonempty("required"),
@@ -173,6 +174,13 @@ var update2 = import_zod3.z.object({
173
174
  pickupLocation: import_zod3.z.string().trim().nonempty("required"),
174
175
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
175
176
  });
177
+ var defaultLocation = {
178
+ id: "",
179
+ location: null,
180
+ safariLocation: "",
181
+ pickupLocation: "",
182
+ pickupLandmarks: []
183
+ };
176
184
 
177
185
  // src/safari/slot.ts
178
186
  var slot_exports = {};
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-B5G8saI_.cjs';
2
- export { i as CommonOnboarding } from './index-CU85kS3x.cjs';
1
+ export { i as SafariOnboarding } from './index-CGi168wq.cjs';
2
+ export { i as CommonOnboarding } from './index-DNcx8rxs.cjs';
3
3
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { i as SafariOnboarding } from './index-B5G8saI_.js';
2
- export { i as CommonOnboarding } from './index-CU85kS3x.js';
1
+ export { i as SafariOnboarding } from './index-CGi168wq.js';
2
+ export { i as CommonOnboarding } from './index-DNcx8rxs.js';
3
3
  import 'zod';
package/dist/index.js CHANGED
@@ -73,6 +73,7 @@ var defaultBasicDetails = {
73
73
  var location_exports2 = {};
74
74
  __export(location_exports2, {
75
75
  create: () => create2,
76
+ defaultLocation: () => defaultLocation,
76
77
  get: () => get2,
77
78
  pickupLandmark: () => pickupLandmark,
78
79
  update: () => update2
@@ -122,19 +123,19 @@ var pickupLandmark = z3.object({
122
123
  type: z3.string().optional(),
123
124
  distanceKm: z3.coerce.number()
124
125
  });
126
+ var get2 = z3.object({
127
+ id: z3.string(),
128
+ location: locationDetails,
129
+ safariLocation: z3.string(),
130
+ pickupLocation: z3.string(),
131
+ pickupLandmarks: z3.array(pickupLandmark)
132
+ });
125
133
  var create2 = z3.object({
126
134
  locationId: z3.string().trim().nonempty("required"),
127
135
  safariLocation: z3.string().trim().nonempty("required"),
128
136
  pickupLocation: z3.string().trim().nonempty("required"),
129
137
  pickupLandmarks: z3.array(pickupLandmark)
130
138
  });
131
- var get2 = z3.object({
132
- location: locationDetails,
133
- safariLocation: z3.string(),
134
- pickupLocation: z3.string(),
135
- pickupLandmarks: z3.array(pickupLandmark),
136
- completed: z3.boolean()
137
- });
138
139
  var update2 = z3.object({
139
140
  id: z3.string().optional().default(""),
140
141
  locationId: z3.string().trim().nonempty("required"),
@@ -142,6 +143,13 @@ var update2 = z3.object({
142
143
  pickupLocation: z3.string().trim().nonempty("required"),
143
144
  pickupLandmarks: z3.array(pickupLandmark)
144
145
  });
146
+ var defaultLocation = {
147
+ id: "",
148
+ location: null,
149
+ safariLocation: "",
150
+ pickupLocation: "",
151
+ pickupLandmarks: []
152
+ };
145
153
 
146
154
  // src/safari/slot.ts
147
155
  var slot_exports = {};
@@ -97,6 +97,7 @@ var defaultBasicDetails = {
97
97
  var location_exports = {};
98
98
  __export(location_exports, {
99
99
  create: () => create2,
100
+ defaultLocation: () => defaultLocation,
100
101
  get: () => get2,
101
102
  pickupLandmark: () => pickupLandmark,
102
103
  update: () => update2
@@ -140,19 +141,19 @@ var pickupLandmark = import_zod3.z.object({
140
141
  type: import_zod3.z.string().optional(),
141
142
  distanceKm: import_zod3.z.coerce.number()
142
143
  });
144
+ var get2 = import_zod3.z.object({
145
+ id: import_zod3.z.string(),
146
+ location: locationDetails,
147
+ safariLocation: import_zod3.z.string(),
148
+ pickupLocation: import_zod3.z.string(),
149
+ pickupLandmarks: import_zod3.z.array(pickupLandmark)
150
+ });
143
151
  var create2 = import_zod3.z.object({
144
152
  locationId: import_zod3.z.string().trim().nonempty("required"),
145
153
  safariLocation: import_zod3.z.string().trim().nonempty("required"),
146
154
  pickupLocation: import_zod3.z.string().trim().nonempty("required"),
147
155
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
148
156
  });
149
- var get2 = import_zod3.z.object({
150
- location: locationDetails,
151
- safariLocation: import_zod3.z.string(),
152
- pickupLocation: import_zod3.z.string(),
153
- pickupLandmarks: import_zod3.z.array(pickupLandmark),
154
- completed: import_zod3.z.boolean()
155
- });
156
157
  var update2 = import_zod3.z.object({
157
158
  id: import_zod3.z.string().optional().default(""),
158
159
  locationId: import_zod3.z.string().trim().nonempty("required"),
@@ -160,6 +161,13 @@ var update2 = import_zod3.z.object({
160
161
  pickupLocation: import_zod3.z.string().trim().nonempty("required"),
161
162
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
162
163
  });
164
+ var defaultLocation = {
165
+ id: "",
166
+ location: null,
167
+ safariLocation: "",
168
+ pickupLocation: "",
169
+ pickupLandmarks: []
170
+ };
163
171
 
164
172
  // src/safari/slot.ts
165
173
  var slot_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-B5G8saI_.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-CGi168wq.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-B5G8saI_.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-CGi168wq.js';
2
2
  import 'zod';
@@ -59,6 +59,7 @@ var defaultBasicDetails = {
59
59
  var location_exports = {};
60
60
  __export(location_exports, {
61
61
  create: () => create2,
62
+ defaultLocation: () => defaultLocation,
62
63
  get: () => get2,
63
64
  pickupLandmark: () => pickupLandmark,
64
65
  update: () => update2
@@ -102,19 +103,19 @@ var pickupLandmark = z3.object({
102
103
  type: z3.string().optional(),
103
104
  distanceKm: z3.coerce.number()
104
105
  });
106
+ var get2 = z3.object({
107
+ id: z3.string(),
108
+ location: locationDetails,
109
+ safariLocation: z3.string(),
110
+ pickupLocation: z3.string(),
111
+ pickupLandmarks: z3.array(pickupLandmark)
112
+ });
105
113
  var create2 = z3.object({
106
114
  locationId: z3.string().trim().nonempty("required"),
107
115
  safariLocation: z3.string().trim().nonempty("required"),
108
116
  pickupLocation: z3.string().trim().nonempty("required"),
109
117
  pickupLandmarks: z3.array(pickupLandmark)
110
118
  });
111
- var get2 = z3.object({
112
- location: locationDetails,
113
- safariLocation: z3.string(),
114
- pickupLocation: z3.string(),
115
- pickupLandmarks: z3.array(pickupLandmark),
116
- completed: z3.boolean()
117
- });
118
119
  var update2 = z3.object({
119
120
  id: z3.string().optional().default(""),
120
121
  locationId: z3.string().trim().nonempty("required"),
@@ -122,6 +123,13 @@ var update2 = z3.object({
122
123
  pickupLocation: z3.string().trim().nonempty("required"),
123
124
  pickupLandmarks: z3.array(pickupLandmark)
124
125
  });
126
+ var defaultLocation = {
127
+ id: "",
128
+ location: null,
129
+ safariLocation: "",
130
+ pickupLocation: "",
131
+ pickupLandmarks: []
132
+ };
125
133
 
126
134
  // src/safari/slot.ts
127
135
  var slot_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -27,11 +27,11 @@ declare namespace verifyEmail {
27
27
  declare const onboard: z.ZodObject<{
28
28
  id: z.ZodString;
29
29
  status: z.ZodEnum<{
30
- completed: "completed";
31
30
  pending: "pending";
32
31
  in_review: "in_review";
33
32
  approved: "approved";
34
33
  rejected: "rejected";
34
+ completed: "completed";
35
35
  }>;
36
36
  remark: z.ZodDefault<z.ZodOptional<z.ZodString>>;
37
37
  currentStep: z.ZodDefault<z.ZodNumber>;
@@ -27,11 +27,11 @@ declare namespace verifyEmail {
27
27
  declare const onboard: z.ZodObject<{
28
28
  id: z.ZodString;
29
29
  status: z.ZodEnum<{
30
- completed: "completed";
31
30
  pending: "pending";
32
31
  in_review: "in_review";
33
32
  approved: "approved";
34
33
  rejected: "rejected";
34
+ completed: "completed";
35
35
  }>;
36
36
  remark: z.ZodDefault<z.ZodOptional<z.ZodString>>;
37
37
  currentStep: z.ZodDefault<z.ZodNumber>;