@tripsam/onboarding 1.0.13 → 1.0.15

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.cjs CHANGED
@@ -73,6 +73,7 @@ __export(location_exports, {
73
73
  me: () => me2,
74
74
  minimum: () => minimum,
75
75
  minimumList: () => minimumList,
76
+ pickupLandmark: () => pickupLandmark,
76
77
  save: () => save,
77
78
  suggest: () => suggest
78
79
  });
@@ -103,25 +104,23 @@ var minimum = import_zod3.z.object({
103
104
  distanceKm: import_zod3.z.coerce.number()
104
105
  }))
105
106
  });
107
+ var pickupLandmark = import_zod3.z.object({
108
+ id: import_zod3.z.string().optional(),
109
+ label: import_zod3.z.string(),
110
+ type: import_zod3.z.string().optional(),
111
+ distanceKm: import_zod3.z.coerce.number()
112
+ });
106
113
  var save = import_zod3.z.object({
107
114
  locationId: import_zod3.z.string(),
108
115
  safariLocation: import_zod3.z.string(),
109
116
  pickupLocation: import_zod3.z.string(),
110
- landmarkId1: import_zod3.z.string().optional(),
111
- distanceFromLandmark1: import_zod3.z.string(),
112
- landmarkId2: import_zod3.z.string().optional(),
113
- distanceFromLandmark2: import_zod3.z.string()
117
+ pickupLandmarks: import_zod3.z.array(pickupLandmark)
114
118
  });
115
119
  var me2 = import_zod3.z.object({
116
120
  location: minimum,
117
121
  safariLocation: import_zod3.z.string(),
118
122
  pickupLocation: import_zod3.z.string(),
119
- landmarks: import_zod3.z.array(import_zod3.z.object({
120
- id: import_zod3.z.string(),
121
- label: import_zod3.z.string(),
122
- type: import_zod3.z.string().optional().default(""),
123
- distanceKm: import_zod3.z.coerce.number()
124
- })),
123
+ pickupLandmarks: import_zod3.z.array(pickupLandmark),
125
124
  completed: import_zod3.z.boolean()
126
125
  });
127
126
  var minimumList = import_zod3.z.array(minimum);
package/dist/index.d.cts CHANGED
@@ -73,14 +73,22 @@ declare const minimum: z.ZodObject<{
73
73
  distanceKm: z.ZodCoercedNumber<unknown>;
74
74
  }, z.core.$strip>>;
75
75
  }, z.core.$strip>;
76
+ declare const pickupLandmark: z.ZodObject<{
77
+ id: z.ZodOptional<z.ZodString>;
78
+ label: z.ZodString;
79
+ type: z.ZodOptional<z.ZodString>;
80
+ distanceKm: z.ZodCoercedNumber<unknown>;
81
+ }, z.core.$strip>;
76
82
  declare const save: z.ZodObject<{
77
83
  locationId: z.ZodString;
78
84
  safariLocation: z.ZodString;
79
85
  pickupLocation: z.ZodString;
80
- landmarkId1: z.ZodOptional<z.ZodString>;
81
- distanceFromLandmark1: z.ZodString;
82
- landmarkId2: z.ZodOptional<z.ZodString>;
83
- distanceFromLandmark2: z.ZodString;
86
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
87
+ id: z.ZodOptional<z.ZodString>;
88
+ label: z.ZodString;
89
+ type: z.ZodOptional<z.ZodString>;
90
+ distanceKm: z.ZodCoercedNumber<unknown>;
91
+ }, z.core.$strip>>;
84
92
  }, z.core.$strip>;
85
93
  declare const me: z.ZodObject<{
86
94
  location: z.ZodObject<{
@@ -105,10 +113,10 @@ declare const me: z.ZodObject<{
105
113
  }, z.core.$strip>;
106
114
  safariLocation: z.ZodString;
107
115
  pickupLocation: z.ZodString;
108
- landmarks: z.ZodArray<z.ZodObject<{
109
- id: z.ZodString;
116
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
117
+ id: z.ZodOptional<z.ZodString>;
110
118
  label: z.ZodString;
111
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
119
+ type: z.ZodOptional<z.ZodString>;
112
120
  distanceKm: z.ZodCoercedNumber<unknown>;
113
121
  }, z.core.$strip>>;
114
122
  completed: z.ZodBoolean;
@@ -138,19 +146,22 @@ type SafeMinimumList = z.output<typeof minimum>;
138
146
  type SafeSuggest = z.output<typeof suggest>;
139
147
  type SafeSave = z.output<typeof save>;
140
148
  type SafeMe = z.output<typeof me>;
149
+ type SafePickupLandmark = z.output<typeof pickupLandmark>;
141
150
 
142
151
  type location_SafeMe = SafeMe;
143
152
  type location_SafeMinimum = SafeMinimum;
144
153
  type location_SafeMinimumList = SafeMinimumList;
154
+ type location_SafePickupLandmark = SafePickupLandmark;
145
155
  type location_SafeSave = SafeSave;
146
156
  type location_SafeSuggest = SafeSuggest;
147
157
  declare const location_me: typeof me;
148
158
  declare const location_minimum: typeof minimum;
149
159
  declare const location_minimumList: typeof minimumList;
160
+ declare const location_pickupLandmark: typeof pickupLandmark;
150
161
  declare const location_save: typeof save;
151
162
  declare const location_suggest: typeof suggest;
152
163
  declare namespace location {
153
- export { type location_SafeMe as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSave as SafeSave, type location_SafeSuggest as SafeSuggest, location_me as me, location_minimum as minimum, location_minimumList as minimumList, location_save as save, location_suggest as suggest };
164
+ export { type location_SafeMe as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafePickupLandmark as SafePickupLandmark, type location_SafeSave as SafeSave, type location_SafeSuggest as SafeSuggest, location_me as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, location_save as save, location_suggest as suggest };
154
165
  }
155
166
 
156
167
  export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -73,14 +73,22 @@ declare const minimum: z.ZodObject<{
73
73
  distanceKm: z.ZodCoercedNumber<unknown>;
74
74
  }, z.core.$strip>>;
75
75
  }, z.core.$strip>;
76
+ declare const pickupLandmark: z.ZodObject<{
77
+ id: z.ZodOptional<z.ZodString>;
78
+ label: z.ZodString;
79
+ type: z.ZodOptional<z.ZodString>;
80
+ distanceKm: z.ZodCoercedNumber<unknown>;
81
+ }, z.core.$strip>;
76
82
  declare const save: z.ZodObject<{
77
83
  locationId: z.ZodString;
78
84
  safariLocation: z.ZodString;
79
85
  pickupLocation: z.ZodString;
80
- landmarkId1: z.ZodOptional<z.ZodString>;
81
- distanceFromLandmark1: z.ZodString;
82
- landmarkId2: z.ZodOptional<z.ZodString>;
83
- distanceFromLandmark2: z.ZodString;
86
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
87
+ id: z.ZodOptional<z.ZodString>;
88
+ label: z.ZodString;
89
+ type: z.ZodOptional<z.ZodString>;
90
+ distanceKm: z.ZodCoercedNumber<unknown>;
91
+ }, z.core.$strip>>;
84
92
  }, z.core.$strip>;
85
93
  declare const me: z.ZodObject<{
86
94
  location: z.ZodObject<{
@@ -105,10 +113,10 @@ declare const me: z.ZodObject<{
105
113
  }, z.core.$strip>;
106
114
  safariLocation: z.ZodString;
107
115
  pickupLocation: z.ZodString;
108
- landmarks: z.ZodArray<z.ZodObject<{
109
- id: z.ZodString;
116
+ pickupLandmarks: z.ZodArray<z.ZodObject<{
117
+ id: z.ZodOptional<z.ZodString>;
110
118
  label: z.ZodString;
111
- type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
119
+ type: z.ZodOptional<z.ZodString>;
112
120
  distanceKm: z.ZodCoercedNumber<unknown>;
113
121
  }, z.core.$strip>>;
114
122
  completed: z.ZodBoolean;
@@ -138,19 +146,22 @@ type SafeMinimumList = z.output<typeof minimum>;
138
146
  type SafeSuggest = z.output<typeof suggest>;
139
147
  type SafeSave = z.output<typeof save>;
140
148
  type SafeMe = z.output<typeof me>;
149
+ type SafePickupLandmark = z.output<typeof pickupLandmark>;
141
150
 
142
151
  type location_SafeMe = SafeMe;
143
152
  type location_SafeMinimum = SafeMinimum;
144
153
  type location_SafeMinimumList = SafeMinimumList;
154
+ type location_SafePickupLandmark = SafePickupLandmark;
145
155
  type location_SafeSave = SafeSave;
146
156
  type location_SafeSuggest = SafeSuggest;
147
157
  declare const location_me: typeof me;
148
158
  declare const location_minimum: typeof minimum;
149
159
  declare const location_minimumList: typeof minimumList;
160
+ declare const location_pickupLandmark: typeof pickupLandmark;
150
161
  declare const location_save: typeof save;
151
162
  declare const location_suggest: typeof suggest;
152
163
  declare namespace location {
153
- export { type location_SafeMe as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSave as SafeSave, type location_SafeSuggest as SafeSuggest, location_me as me, location_minimum as minimum, location_minimumList as minimumList, location_save as save, location_suggest as suggest };
164
+ export { type location_SafeMe as SafeMe, type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafePickupLandmark as SafePickupLandmark, type location_SafeSave as SafeSave, type location_SafeSuggest as SafeSuggest, location_me as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, location_save as save, location_suggest as suggest };
154
165
  }
155
166
 
156
167
  export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -51,6 +51,7 @@ __export(location_exports, {
51
51
  me: () => me2,
52
52
  minimum: () => minimum,
53
53
  minimumList: () => minimumList,
54
+ pickupLandmark: () => pickupLandmark,
54
55
  save: () => save,
55
56
  suggest: () => suggest
56
57
  });
@@ -81,25 +82,23 @@ var minimum = z3.object({
81
82
  distanceKm: z3.coerce.number()
82
83
  }))
83
84
  });
85
+ var pickupLandmark = z3.object({
86
+ id: z3.string().optional(),
87
+ label: z3.string(),
88
+ type: z3.string().optional(),
89
+ distanceKm: z3.coerce.number()
90
+ });
84
91
  var save = z3.object({
85
92
  locationId: z3.string(),
86
93
  safariLocation: z3.string(),
87
94
  pickupLocation: z3.string(),
88
- landmarkId1: z3.string().optional(),
89
- distanceFromLandmark1: z3.string(),
90
- landmarkId2: z3.string().optional(),
91
- distanceFromLandmark2: z3.string()
95
+ pickupLandmarks: z3.array(pickupLandmark)
92
96
  });
93
97
  var me2 = z3.object({
94
98
  location: minimum,
95
99
  safariLocation: z3.string(),
96
100
  pickupLocation: z3.string(),
97
- landmarks: z3.array(z3.object({
98
- id: z3.string(),
99
- label: z3.string(),
100
- type: z3.string().optional().default(""),
101
- distanceKm: z3.coerce.number()
102
- })),
101
+ pickupLandmarks: z3.array(pickupLandmark),
103
102
  completed: z3.boolean()
104
103
  });
105
104
  var minimumList = z3.array(minimum);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",