@tripsam/onboarding 1.0.16 → 1.0.18

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);
@@ -124,9 +125,52 @@ 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
+ time12h: () => time12h,
136
+ update: () => update2
137
+ });
138
+ var import_zod4 = require("zod");
139
+ var time12h = import_zod4.z.string().trim().regex(/^((0[1-9]|1[0-2])):([0-5][0-9])\s?(AM|PM)$/i, "Use format hh:mm AM/PM").transform((v) => {
140
+ const [, hh, , mm, meridianRaw] = v.match(/^((0[1-9]|1[0-2])):([0-5][0-9])\s?(AM|PM)$/i);
141
+ const meridian = meridianRaw.toUpperCase();
142
+ let h = parseInt(hh, 10) % 12;
143
+ if (meridian === "PM") h += 12;
144
+ return h * 60 + parseInt(mm, 10);
145
+ });
146
+ var update2 = import_zod4.z.object({
147
+ id: import_zod4.z.string().trim().optional(),
148
+ name: import_zod4.z.string().trim().nonempty("required"),
149
+ description: import_zod4.z.string().trim().optional(),
150
+ startTime: time12h,
151
+ endTime: time12h,
152
+ minHour: import_zod4.z.coerce.number("invalid")
153
+ });
154
+ var create = import_zod4.z.object({
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 me3 = import_zod4.z.object({
162
+ id: import_zod4.z.string().trim().optional(),
163
+ name: import_zod4.z.string().trim().nonempty("required"),
164
+ description: import_zod4.z.string().trim().optional(),
165
+ startTime: import_zod4.z.string().trim().nonempty("required"),
166
+ endTime: import_zod4.z.string().trim().nonempty("required"),
167
+ minHour: import_zod4.z.coerce.number("invalid")
168
+ });
169
+ var meList = import_zod4.z.array(me3);
127
170
  // Annotate the CommonJS export names for ESM import in node:
128
171
  0 && (module.exports = {
129
172
  BasicDetails,
130
173
  Location,
174
+ Slot,
131
175
  VerifyEmail
132
176
  });
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,71 @@ 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 time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
164
+ declare const update: z.ZodObject<{
165
+ id: z.ZodOptional<z.ZodString>;
166
+ name: z.ZodString;
167
+ description: z.ZodOptional<z.ZodString>;
168
+ startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
169
+ endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
170
+ minHour: z.ZodCoercedNumber<unknown>;
171
+ }, z.core.$strip>;
172
+ declare const create: z.ZodObject<{
173
+ name: z.ZodString;
174
+ description: z.ZodOptional<z.ZodString>;
175
+ startTime: z.ZodString;
176
+ endTime: z.ZodString;
177
+ minHour: z.ZodCoercedNumber<unknown>;
178
+ }, z.core.$strip>;
179
+ declare const me: z.ZodObject<{
180
+ id: z.ZodOptional<z.ZodString>;
181
+ name: z.ZodString;
182
+ description: z.ZodOptional<z.ZodString>;
183
+ startTime: z.ZodString;
184
+ endTime: z.ZodString;
185
+ minHour: z.ZodCoercedNumber<unknown>;
186
+ }, z.core.$strip>;
187
+ declare const meList: z.ZodArray<z.ZodObject<{
188
+ id: z.ZodOptional<z.ZodString>;
189
+ name: z.ZodString;
190
+ description: z.ZodOptional<z.ZodString>;
191
+ startTime: z.ZodString;
192
+ endTime: z.ZodString;
193
+ minHour: z.ZodCoercedNumber<unknown>;
194
+ }, z.core.$strip>>;
195
+ type SafeMe = z.output<typeof me>;
196
+ type SafeList = z.output<typeof meList>;
197
+ type SafeCreate = z.output<typeof create>;
198
+ type SafeUpdate = z.output<typeof update>;
199
+
200
+ type slot_SafeCreate = SafeCreate;
201
+ type slot_SafeList = SafeList;
202
+ type slot_SafeMe = SafeMe;
203
+ type slot_SafeUpdate = SafeUpdate;
204
+ declare const slot_create: typeof create;
205
+ declare const slot_me: typeof me;
206
+ declare const slot_meList: typeof meList;
207
+ declare const slot_time12h: typeof time12h;
208
+ declare const slot_update: typeof update;
209
+ declare namespace slot {
210
+ 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_time12h as time12h, slot_update as update };
165
211
  }
166
212
 
167
- export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
213
+ 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,71 @@ 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 time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
164
+ declare const update: z.ZodObject<{
165
+ id: z.ZodOptional<z.ZodString>;
166
+ name: z.ZodString;
167
+ description: z.ZodOptional<z.ZodString>;
168
+ startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
169
+ endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
170
+ minHour: z.ZodCoercedNumber<unknown>;
171
+ }, z.core.$strip>;
172
+ declare const create: z.ZodObject<{
173
+ name: z.ZodString;
174
+ description: z.ZodOptional<z.ZodString>;
175
+ startTime: z.ZodString;
176
+ endTime: z.ZodString;
177
+ minHour: z.ZodCoercedNumber<unknown>;
178
+ }, z.core.$strip>;
179
+ declare const me: z.ZodObject<{
180
+ id: z.ZodOptional<z.ZodString>;
181
+ name: z.ZodString;
182
+ description: z.ZodOptional<z.ZodString>;
183
+ startTime: z.ZodString;
184
+ endTime: z.ZodString;
185
+ minHour: z.ZodCoercedNumber<unknown>;
186
+ }, z.core.$strip>;
187
+ declare const meList: z.ZodArray<z.ZodObject<{
188
+ id: z.ZodOptional<z.ZodString>;
189
+ name: z.ZodString;
190
+ description: z.ZodOptional<z.ZodString>;
191
+ startTime: z.ZodString;
192
+ endTime: z.ZodString;
193
+ minHour: z.ZodCoercedNumber<unknown>;
194
+ }, z.core.$strip>>;
195
+ type SafeMe = z.output<typeof me>;
196
+ type SafeList = z.output<typeof meList>;
197
+ type SafeCreate = z.output<typeof create>;
198
+ type SafeUpdate = z.output<typeof update>;
199
+
200
+ type slot_SafeCreate = SafeCreate;
201
+ type slot_SafeList = SafeList;
202
+ type slot_SafeMe = SafeMe;
203
+ type slot_SafeUpdate = SafeUpdate;
204
+ declare const slot_create: typeof create;
205
+ declare const slot_me: typeof me;
206
+ declare const slot_meList: typeof meList;
207
+ declare const slot_time12h: typeof time12h;
208
+ declare const slot_update: typeof update;
209
+ declare namespace slot {
210
+ 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_time12h as time12h, slot_update as update };
165
211
  }
166
212
 
167
- export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
213
+ export { basicDetails as BasicDetails, location as Location, slot as Slot, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -102,8 +102,51 @@ 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
+ time12h: () => time12h,
113
+ update: () => update2
114
+ });
115
+ import { z as z4 } from "zod";
116
+ var time12h = z4.string().trim().regex(/^((0[1-9]|1[0-2])):([0-5][0-9])\s?(AM|PM)$/i, "Use format hh:mm AM/PM").transform((v) => {
117
+ const [, hh, , mm, meridianRaw] = v.match(/^((0[1-9]|1[0-2])):([0-5][0-9])\s?(AM|PM)$/i);
118
+ const meridian = meridianRaw.toUpperCase();
119
+ let h = parseInt(hh, 10) % 12;
120
+ if (meridian === "PM") h += 12;
121
+ return h * 60 + parseInt(mm, 10);
122
+ });
123
+ var update2 = z4.object({
124
+ id: z4.string().trim().optional(),
125
+ name: z4.string().trim().nonempty("required"),
126
+ description: z4.string().trim().optional(),
127
+ startTime: time12h,
128
+ endTime: time12h,
129
+ minHour: z4.coerce.number("invalid")
130
+ });
131
+ var create = z4.object({
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 me3 = z4.object({
139
+ id: z4.string().trim().optional(),
140
+ name: z4.string().trim().nonempty("required"),
141
+ description: z4.string().trim().optional(),
142
+ startTime: z4.string().trim().nonempty("required"),
143
+ endTime: z4.string().trim().nonempty("required"),
144
+ minHour: z4.coerce.number("invalid")
145
+ });
146
+ var meList = z4.array(me3);
105
147
  export {
106
148
  basic_details_exports as BasicDetails,
107
149
  location_exports as Location,
150
+ slot_exports as Slot,
108
151
  verify_email_exports as VerifyEmail
109
152
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",