@tripsam/onboarding 1.0.15 → 1.0.17

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
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  BasicDetails: () => basic_details_exports,
24
24
  Location: () => location_exports,
25
+ Slot: () => slot_exports,
25
26
  VerifyEmail: () => verify_email_exports
26
27
  });
27
28
  module.exports = __toCommonJS(index_exports);
@@ -111,9 +112,9 @@ var pickupLandmark = import_zod3.z.object({
111
112
  distanceKm: import_zod3.z.coerce.number()
112
113
  });
113
114
  var save = import_zod3.z.object({
114
- locationId: import_zod3.z.string(),
115
- safariLocation: import_zod3.z.string(),
116
- pickupLocation: import_zod3.z.string(),
115
+ locationId: import_zod3.z.string().trim().nonempty("required"),
116
+ safariLocation: import_zod3.z.string().trim().nonempty("required"),
117
+ pickupLocation: import_zod3.z.string().trim().nonempty("required"),
117
118
  pickupLandmarks: import_zod3.z.array(pickupLandmark)
118
119
  });
119
120
  var me2 = import_zod3.z.object({
@@ -124,9 +125,44 @@ var me2 = import_zod3.z.object({
124
125
  completed: import_zod3.z.boolean()
125
126
  });
126
127
  var minimumList = import_zod3.z.array(minimum);
128
+
129
+ // src/slot.ts
130
+ var slot_exports = {};
131
+ __export(slot_exports, {
132
+ create: () => create,
133
+ me: () => me3,
134
+ meList: () => meList,
135
+ update: () => update2
136
+ });
137
+ var import_zod4 = require("zod");
138
+ var update2 = import_zod4.z.object({
139
+ id: import_zod4.z.string().trim().optional(),
140
+ name: import_zod4.z.string().trim().nonempty("required"),
141
+ description: import_zod4.z.string().trim().optional(),
142
+ startTime: import_zod4.z.string().trim().nonempty("required"),
143
+ endTime: import_zod4.z.string().trim().nonempty("required"),
144
+ minHour: import_zod4.z.coerce.number("invalid")
145
+ });
146
+ var create = import_zod4.z.object({
147
+ name: import_zod4.z.string().trim().nonempty("required"),
148
+ description: import_zod4.z.string().trim().optional(),
149
+ startTime: import_zod4.z.string().trim().nonempty("required"),
150
+ endTime: import_zod4.z.string().trim().nonempty("required"),
151
+ minHour: import_zod4.z.coerce.number("invalid")
152
+ });
153
+ var me3 = import_zod4.z.object({
154
+ id: import_zod4.z.string().trim().optional(),
155
+ name: import_zod4.z.string().trim().nonempty("required"),
156
+ description: import_zod4.z.string().trim().optional(),
157
+ startTime: import_zod4.z.string().trim().nonempty("required"),
158
+ endTime: import_zod4.z.string().trim().nonempty("required"),
159
+ minHour: import_zod4.z.coerce.number("invalid")
160
+ });
161
+ var meList = import_zod4.z.array(me3);
127
162
  // Annotate the CommonJS export names for ESM import in node:
128
163
  0 && (module.exports = {
129
164
  BasicDetails,
130
165
  Location,
166
+ Slot,
131
167
  VerifyEmail
132
168
  });
package/dist/index.d.cts CHANGED
@@ -24,7 +24,7 @@ declare namespace verifyEmail {
24
24
  export { type verifyEmail_SafeSendOtp as SafeSendOtp, type verifyEmail_SafeVerifyOtp as SafeVerifyOtp, type verifyEmail_SafeVerifyOtpResponse as SafeVerifyOtpResponse, verifyEmail_sendOtp as sendOtp, verifyEmail_verifyOtp as verifyOtp, verifyEmail_verifyOtpResponse as verifyOtpResponse };
25
25
  }
26
26
 
27
- declare const me$1: z.ZodObject<{
27
+ declare const me$2: z.ZodObject<{
28
28
  id: z.ZodString;
29
29
  email: z.ZodString;
30
30
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -33,18 +33,16 @@ declare const me$1: z.ZodObject<{
33
33
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
34
  completed: z.ZodBoolean;
35
35
  }, z.core.$strip>;
36
- declare const update: z.ZodObject<{
36
+ declare const update$1: z.ZodObject<{
37
37
  name: z.ZodString;
38
38
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
39
39
  phoneNumber: z.ZodString;
40
40
  }, z.core.$strip>;
41
- type SafeMe$1 = z.infer<typeof me$1>;
42
- type SafeUpdate = z.output<typeof update>;
41
+ type SafeMe$2 = z.infer<typeof me$2>;
42
+ type SafeUpdate$1 = z.output<typeof update$1>;
43
43
 
44
- type basicDetails_SafeUpdate = SafeUpdate;
45
- declare const basicDetails_update: typeof update;
46
44
  declare namespace basicDetails {
47
- export { type SafeMe$1 as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, me$1 as me, basicDetails_update as update };
45
+ export { type SafeMe$2 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$2 as me, update$1 as update };
48
46
  }
49
47
 
50
48
  declare const suggest: z.ZodObject<{
@@ -90,7 +88,7 @@ declare const save: z.ZodObject<{
90
88
  distanceKm: z.ZodCoercedNumber<unknown>;
91
89
  }, z.core.$strip>>;
92
90
  }, z.core.$strip>;
93
- declare const me: z.ZodObject<{
91
+ declare const me$1: z.ZodObject<{
94
92
  location: z.ZodObject<{
95
93
  id: z.ZodString;
96
94
  name: z.ZodString;
@@ -145,23 +143,69 @@ type SafeMinimum = z.output<typeof minimum>;
145
143
  type SafeMinimumList = z.output<typeof minimum>;
146
144
  type SafeSuggest = z.output<typeof suggest>;
147
145
  type SafeSave = z.output<typeof save>;
148
- type SafeMe = z.output<typeof me>;
146
+ type SafeMe$1 = z.output<typeof me$1>;
149
147
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
150
148
 
151
- type location_SafeMe = SafeMe;
152
149
  type location_SafeMinimum = SafeMinimum;
153
150
  type location_SafeMinimumList = SafeMinimumList;
154
151
  type location_SafePickupLandmark = SafePickupLandmark;
155
152
  type location_SafeSave = SafeSave;
156
153
  type location_SafeSuggest = SafeSuggest;
157
- declare const location_me: typeof me;
158
154
  declare const location_minimum: typeof minimum;
159
155
  declare const location_minimumList: typeof minimumList;
160
156
  declare const location_pickupLandmark: typeof pickupLandmark;
161
157
  declare const location_save: typeof save;
162
158
  declare const location_suggest: typeof suggest;
163
159
  declare namespace location {
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 };
160
+ export { type SafeMe$1 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, me$1 as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, location_save as save, location_suggest as suggest };
161
+ }
162
+
163
+ declare const update: z.ZodObject<{
164
+ id: z.ZodOptional<z.ZodString>;
165
+ name: z.ZodString;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ startTime: z.ZodString;
168
+ endTime: z.ZodString;
169
+ minHour: z.ZodCoercedNumber<unknown>;
170
+ }, z.core.$strip>;
171
+ declare const create: z.ZodObject<{
172
+ name: z.ZodString;
173
+ description: z.ZodOptional<z.ZodString>;
174
+ startTime: z.ZodString;
175
+ endTime: z.ZodString;
176
+ minHour: z.ZodCoercedNumber<unknown>;
177
+ }, z.core.$strip>;
178
+ declare const me: z.ZodObject<{
179
+ id: z.ZodOptional<z.ZodString>;
180
+ name: z.ZodString;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ startTime: z.ZodString;
183
+ endTime: z.ZodString;
184
+ minHour: z.ZodCoercedNumber<unknown>;
185
+ }, z.core.$strip>;
186
+ declare const meList: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodOptional<z.ZodString>;
188
+ name: z.ZodString;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ startTime: z.ZodString;
191
+ endTime: z.ZodString;
192
+ minHour: z.ZodCoercedNumber<unknown>;
193
+ }, z.core.$strip>>;
194
+ type SafeMe = z.output<typeof me>;
195
+ type SafeList = z.output<typeof meList>;
196
+ type SafeCreate = z.output<typeof create>;
197
+ type SafeUpdate = z.output<typeof update>;
198
+
199
+ type slot_SafeCreate = SafeCreate;
200
+ type slot_SafeList = SafeList;
201
+ type slot_SafeMe = SafeMe;
202
+ type slot_SafeUpdate = SafeUpdate;
203
+ declare const slot_create: typeof create;
204
+ declare const slot_me: typeof me;
205
+ declare const slot_meList: typeof meList;
206
+ declare const slot_update: typeof update;
207
+ declare namespace slot {
208
+ export { type slot_SafeCreate as SafeCreate, type slot_SafeList as SafeList, type slot_SafeMe as SafeMe, type slot_SafeUpdate as SafeUpdate, slot_create as create, slot_me as me, slot_meList as meList, slot_update as update };
165
209
  }
166
210
 
167
- export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
211
+ export { basicDetails as BasicDetails, location as Location, slot as Slot, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@ declare namespace verifyEmail {
24
24
  export { type verifyEmail_SafeSendOtp as SafeSendOtp, type verifyEmail_SafeVerifyOtp as SafeVerifyOtp, type verifyEmail_SafeVerifyOtpResponse as SafeVerifyOtpResponse, verifyEmail_sendOtp as sendOtp, verifyEmail_verifyOtp as verifyOtp, verifyEmail_verifyOtpResponse as verifyOtpResponse };
25
25
  }
26
26
 
27
- declare const me$1: z.ZodObject<{
27
+ declare const me$2: z.ZodObject<{
28
28
  id: z.ZodString;
29
29
  email: z.ZodString;
30
30
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -33,18 +33,16 @@ declare const me$1: z.ZodObject<{
33
33
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
34
  completed: z.ZodBoolean;
35
35
  }, z.core.$strip>;
36
- declare const update: z.ZodObject<{
36
+ declare const update$1: z.ZodObject<{
37
37
  name: z.ZodString;
38
38
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
39
39
  phoneNumber: z.ZodString;
40
40
  }, z.core.$strip>;
41
- type SafeMe$1 = z.infer<typeof me$1>;
42
- type SafeUpdate = z.output<typeof update>;
41
+ type SafeMe$2 = z.infer<typeof me$2>;
42
+ type SafeUpdate$1 = z.output<typeof update$1>;
43
43
 
44
- type basicDetails_SafeUpdate = SafeUpdate;
45
- declare const basicDetails_update: typeof update;
46
44
  declare namespace basicDetails {
47
- export { type SafeMe$1 as SafeMe, type basicDetails_SafeUpdate as SafeUpdate, me$1 as me, basicDetails_update as update };
45
+ export { type SafeMe$2 as SafeMe, type SafeUpdate$1 as SafeUpdate, me$2 as me, update$1 as update };
48
46
  }
49
47
 
50
48
  declare const suggest: z.ZodObject<{
@@ -90,7 +88,7 @@ declare const save: z.ZodObject<{
90
88
  distanceKm: z.ZodCoercedNumber<unknown>;
91
89
  }, z.core.$strip>>;
92
90
  }, z.core.$strip>;
93
- declare const me: z.ZodObject<{
91
+ declare const me$1: z.ZodObject<{
94
92
  location: z.ZodObject<{
95
93
  id: z.ZodString;
96
94
  name: z.ZodString;
@@ -145,23 +143,69 @@ type SafeMinimum = z.output<typeof minimum>;
145
143
  type SafeMinimumList = z.output<typeof minimum>;
146
144
  type SafeSuggest = z.output<typeof suggest>;
147
145
  type SafeSave = z.output<typeof save>;
148
- type SafeMe = z.output<typeof me>;
146
+ type SafeMe$1 = z.output<typeof me$1>;
149
147
  type SafePickupLandmark = z.output<typeof pickupLandmark>;
150
148
 
151
- type location_SafeMe = SafeMe;
152
149
  type location_SafeMinimum = SafeMinimum;
153
150
  type location_SafeMinimumList = SafeMinimumList;
154
151
  type location_SafePickupLandmark = SafePickupLandmark;
155
152
  type location_SafeSave = SafeSave;
156
153
  type location_SafeSuggest = SafeSuggest;
157
- declare const location_me: typeof me;
158
154
  declare const location_minimum: typeof minimum;
159
155
  declare const location_minimumList: typeof minimumList;
160
156
  declare const location_pickupLandmark: typeof pickupLandmark;
161
157
  declare const location_save: typeof save;
162
158
  declare const location_suggest: typeof suggest;
163
159
  declare namespace location {
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 };
160
+ export { type SafeMe$1 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, me$1 as me, location_minimum as minimum, location_minimumList as minimumList, location_pickupLandmark as pickupLandmark, location_save as save, location_suggest as suggest };
161
+ }
162
+
163
+ declare const update: z.ZodObject<{
164
+ id: z.ZodOptional<z.ZodString>;
165
+ name: z.ZodString;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ startTime: z.ZodString;
168
+ endTime: z.ZodString;
169
+ minHour: z.ZodCoercedNumber<unknown>;
170
+ }, z.core.$strip>;
171
+ declare const create: z.ZodObject<{
172
+ name: z.ZodString;
173
+ description: z.ZodOptional<z.ZodString>;
174
+ startTime: z.ZodString;
175
+ endTime: z.ZodString;
176
+ minHour: z.ZodCoercedNumber<unknown>;
177
+ }, z.core.$strip>;
178
+ declare const me: z.ZodObject<{
179
+ id: z.ZodOptional<z.ZodString>;
180
+ name: z.ZodString;
181
+ description: z.ZodOptional<z.ZodString>;
182
+ startTime: z.ZodString;
183
+ endTime: z.ZodString;
184
+ minHour: z.ZodCoercedNumber<unknown>;
185
+ }, z.core.$strip>;
186
+ declare const meList: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodOptional<z.ZodString>;
188
+ name: z.ZodString;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ startTime: z.ZodString;
191
+ endTime: z.ZodString;
192
+ minHour: z.ZodCoercedNumber<unknown>;
193
+ }, z.core.$strip>>;
194
+ type SafeMe = z.output<typeof me>;
195
+ type SafeList = z.output<typeof meList>;
196
+ type SafeCreate = z.output<typeof create>;
197
+ type SafeUpdate = z.output<typeof update>;
198
+
199
+ type slot_SafeCreate = SafeCreate;
200
+ type slot_SafeList = SafeList;
201
+ type slot_SafeMe = SafeMe;
202
+ type slot_SafeUpdate = SafeUpdate;
203
+ declare const slot_create: typeof create;
204
+ declare const slot_me: typeof me;
205
+ declare const slot_meList: typeof meList;
206
+ declare const slot_update: typeof update;
207
+ declare namespace slot {
208
+ export { type slot_SafeCreate as SafeCreate, type slot_SafeList as SafeList, type slot_SafeMe as SafeMe, type slot_SafeUpdate as SafeUpdate, slot_create as create, slot_me as me, slot_meList as meList, slot_update as update };
165
209
  }
166
210
 
167
- export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
211
+ export { basicDetails as BasicDetails, location as Location, slot as Slot, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -89,9 +89,9 @@ var pickupLandmark = z3.object({
89
89
  distanceKm: z3.coerce.number()
90
90
  });
91
91
  var save = z3.object({
92
- locationId: z3.string(),
93
- safariLocation: z3.string(),
94
- pickupLocation: z3.string(),
92
+ locationId: z3.string().trim().nonempty("required"),
93
+ safariLocation: z3.string().trim().nonempty("required"),
94
+ pickupLocation: z3.string().trim().nonempty("required"),
95
95
  pickupLandmarks: z3.array(pickupLandmark)
96
96
  });
97
97
  var me2 = z3.object({
@@ -102,8 +102,43 @@ var me2 = z3.object({
102
102
  completed: z3.boolean()
103
103
  });
104
104
  var minimumList = z3.array(minimum);
105
+
106
+ // src/slot.ts
107
+ var slot_exports = {};
108
+ __export(slot_exports, {
109
+ create: () => create,
110
+ me: () => me3,
111
+ meList: () => meList,
112
+ update: () => update2
113
+ });
114
+ import { z as z4 } from "zod";
115
+ var update2 = z4.object({
116
+ id: z4.string().trim().optional(),
117
+ name: z4.string().trim().nonempty("required"),
118
+ description: z4.string().trim().optional(),
119
+ startTime: z4.string().trim().nonempty("required"),
120
+ endTime: z4.string().trim().nonempty("required"),
121
+ minHour: z4.coerce.number("invalid")
122
+ });
123
+ var create = z4.object({
124
+ name: z4.string().trim().nonempty("required"),
125
+ description: z4.string().trim().optional(),
126
+ startTime: z4.string().trim().nonempty("required"),
127
+ endTime: z4.string().trim().nonempty("required"),
128
+ minHour: z4.coerce.number("invalid")
129
+ });
130
+ var me3 = z4.object({
131
+ id: z4.string().trim().optional(),
132
+ name: z4.string().trim().nonempty("required"),
133
+ description: z4.string().trim().optional(),
134
+ startTime: z4.string().trim().nonempty("required"),
135
+ endTime: z4.string().trim().nonempty("required"),
136
+ minHour: z4.coerce.number("invalid")
137
+ });
138
+ var meList = z4.array(me3);
105
139
  export {
106
140
  basic_details_exports as BasicDetails,
107
141
  location_exports as Location,
142
+ slot_exports as Slot,
108
143
  verify_email_exports as VerifyEmail
109
144
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -12,7 +12,9 @@
12
12
  "require": "./dist/index.cjs"
13
13
  }
14
14
  },
15
- "files": ["dist/"],
15
+ "files": [
16
+ "dist/"
17
+ ],
16
18
  "scripts": {
17
19
  "build": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean --splitting false",
18
20
  "clean": "rimraf dist",
@@ -27,5 +29,7 @@
27
29
  "rimraf": "^5.0.0",
28
30
  "zod": "^4.1.11"
29
31
  },
30
- "publishConfig": { "access": "public" }
31
- }
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
+ }