@tripsam/onboarding 1.0.49 → 1.0.51
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/common/index.cjs +48 -0
- package/dist/common/index.d.cts +1 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +37 -0
- package/dist/index-DNcx8rxs.d.cts +111 -0
- package/dist/index-DNcx8rxs.d.ts +111 -0
- package/dist/{index-B0RC7NWC.d.cts → index-EotV0cTk.d.cts} +37 -78
- package/dist/{index-B0RC7NWC.d.ts → index-EotV0cTk.d.ts} +37 -78
- package/dist/index.cjs +195 -162
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +168 -145
- package/dist/safari/index.cjs +172 -146
- package/dist/safari/index.d.cts +1 -1
- package/dist/safari/index.d.ts +1 -1
- package/dist/safari/index.js +144 -128
- package/package.json +1 -1
- package/dist/index-C-yUFJEx.d.cts +0 -51
- package/dist/index-C-yUFJEx.d.ts +0 -51
|
@@ -19,7 +19,7 @@ declare const safeSas: z.ZodEnum<{
|
|
|
19
19
|
jungle_safari: "jungle_safari";
|
|
20
20
|
}>;
|
|
21
21
|
type SafariType = keyof typeof safariTypes;
|
|
22
|
-
declare const get: z.ZodObject<{
|
|
22
|
+
declare const get$1: z.ZodObject<{
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
25
25
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -35,78 +35,39 @@ declare const get: z.ZodObject<{
|
|
|
35
35
|
jungle_safari: "jungle_safari";
|
|
36
36
|
}>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
|
-
declare const create$
|
|
38
|
+
declare const create$4: z.ZodObject<{
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
41
41
|
phoneNumber: z.ZodString;
|
|
42
42
|
type: z.ZodString;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
|
-
declare const update$
|
|
44
|
+
declare const update$2: z.ZodObject<{
|
|
45
45
|
id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
46
46
|
name: z.ZodString;
|
|
47
47
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
48
48
|
phoneNumber: z.ZodString;
|
|
49
49
|
type: z.ZodString;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
|
-
type SafeGet = z.infer<typeof get>;
|
|
52
|
-
type SafeUpdate$
|
|
53
|
-
type SafeCreate$
|
|
54
|
-
declare const defaultBasicDetails: SafeGet;
|
|
51
|
+
type SafeGet$1 = z.infer<typeof get$1>;
|
|
52
|
+
type SafeUpdate$2 = z.output<typeof update$2>;
|
|
53
|
+
type SafeCreate$4 = z.output<typeof create$4>;
|
|
54
|
+
declare const defaultBasicDetails: SafeGet$1;
|
|
55
55
|
|
|
56
56
|
type basicDetails_SafariType = SafariType;
|
|
57
|
-
type basicDetails_SafeGet = SafeGet;
|
|
58
57
|
declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
|
|
59
|
-
declare const basicDetails_get: typeof get;
|
|
60
58
|
declare const basicDetails_safariTypes: typeof safariTypes;
|
|
61
59
|
declare const basicDetails_safeSas: typeof safeSas;
|
|
62
60
|
declare namespace basicDetails {
|
|
63
|
-
export { type basicDetails_SafariType as SafariType, type SafeCreate$
|
|
61
|
+
export { type basicDetails_SafariType as SafariType, type SafeCreate$4 as SafeCreate, type SafeGet$1 as SafeGet, type SafeUpdate$2 as SafeUpdate, create$4 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, get$1 as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$2 as update };
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
declare const suggest: z.ZodObject<{
|
|
67
|
-
q: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
68
|
-
lat: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
69
|
-
lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
70
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
declare const minimum: z.ZodObject<{
|
|
73
|
-
id: z.ZodString;
|
|
74
|
-
name: z.ZodString;
|
|
75
|
-
area: z.ZodString;
|
|
76
|
-
startLat: z.ZodCoercedNumber<unknown>;
|
|
77
|
-
startLng: z.ZodCoercedNumber<unknown>;
|
|
78
|
-
endLat: z.ZodCoercedNumber<unknown>;
|
|
79
|
-
endLng: z.ZodCoercedNumber<unknown>;
|
|
80
|
-
address: z.ZodObject<{
|
|
81
|
-
city: z.ZodString;
|
|
82
|
-
state: z.ZodString;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
85
|
-
landmarks: z.ZodArray<z.ZodObject<{
|
|
86
|
-
id: z.ZodString;
|
|
87
|
-
label: z.ZodString;
|
|
88
|
-
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
89
|
-
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
90
|
-
}, z.core.$strip>>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
64
|
declare const pickupLandmark: z.ZodObject<{
|
|
93
65
|
id: z.ZodOptional<z.ZodString>;
|
|
94
66
|
label: z.ZodString;
|
|
95
67
|
type: z.ZodOptional<z.ZodString>;
|
|
96
68
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
97
69
|
}, z.core.$strip>;
|
|
98
|
-
declare const
|
|
99
|
-
locationId: z.ZodString;
|
|
100
|
-
safariLocation: z.ZodString;
|
|
101
|
-
pickupLocation: z.ZodString;
|
|
102
|
-
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
103
|
-
id: z.ZodOptional<z.ZodString>;
|
|
104
|
-
label: z.ZodString;
|
|
105
|
-
type: z.ZodOptional<z.ZodString>;
|
|
106
|
-
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
declare const me$7: z.ZodObject<{
|
|
70
|
+
declare const get: z.ZodObject<{
|
|
110
71
|
location: z.ZodObject<{
|
|
111
72
|
id: z.ZodString;
|
|
112
73
|
name: z.ZodString;
|
|
@@ -135,45 +96,43 @@ declare const me$7: z.ZodObject<{
|
|
|
135
96
|
type: z.ZodOptional<z.ZodString>;
|
|
136
97
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
137
98
|
}, z.core.$strip>>;
|
|
138
|
-
completed: z.ZodBoolean;
|
|
139
99
|
}, z.core.$strip>;
|
|
140
|
-
declare const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
endLat: z.ZodCoercedNumber<unknown>;
|
|
147
|
-
endLng: z.ZodCoercedNumber<unknown>;
|
|
148
|
-
address: z.ZodObject<{
|
|
149
|
-
city: z.ZodString;
|
|
150
|
-
state: z.ZodString;
|
|
151
|
-
}, z.core.$strip>;
|
|
152
|
-
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
153
|
-
landmarks: z.ZodArray<z.ZodObject<{
|
|
154
|
-
id: z.ZodString;
|
|
100
|
+
declare const create$3: z.ZodObject<{
|
|
101
|
+
locationId: z.ZodString;
|
|
102
|
+
safariLocation: z.ZodString;
|
|
103
|
+
pickupLocation: z.ZodString;
|
|
104
|
+
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodOptional<z.ZodString>;
|
|
155
106
|
label: z.ZodString;
|
|
156
|
-
type: z.
|
|
107
|
+
type: z.ZodOptional<z.ZodString>;
|
|
157
108
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
158
109
|
}, z.core.$strip>>;
|
|
159
|
-
}, z.core.$strip
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
declare const update$1: z.ZodObject<{
|
|
112
|
+
id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
113
|
+
locationId: z.ZodString;
|
|
114
|
+
safariLocation: z.ZodString;
|
|
115
|
+
pickupLocation: z.ZodString;
|
|
116
|
+
pickupLandmarks: z.ZodArray<z.ZodObject<{
|
|
117
|
+
id: z.ZodOptional<z.ZodString>;
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
type: z.ZodOptional<z.ZodString>;
|
|
120
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
type SafeGet = z.output<typeof get>;
|
|
124
|
+
type SafeCreate$3 = z.output<typeof create$3>;
|
|
125
|
+
type SafeUpdate$1 = z.output<typeof update$1>;
|
|
165
126
|
type SafePickupLandmark = z.output<typeof pickupLandmark>;
|
|
127
|
+
declare const defaultLocation: SafeGet;
|
|
166
128
|
|
|
167
|
-
type
|
|
168
|
-
type location_SafeMinimumList = SafeMinimumList;
|
|
129
|
+
type location_SafeGet = SafeGet;
|
|
169
130
|
type location_SafePickupLandmark = SafePickupLandmark;
|
|
170
|
-
|
|
171
|
-
declare const
|
|
172
|
-
declare const location_minimumList: typeof minimumList;
|
|
131
|
+
declare const location_defaultLocation: typeof defaultLocation;
|
|
132
|
+
declare const location_get: typeof get;
|
|
173
133
|
declare const location_pickupLandmark: typeof pickupLandmark;
|
|
174
|
-
declare const location_suggest: typeof suggest;
|
|
175
134
|
declare namespace location {
|
|
176
|
-
export { type
|
|
135
|
+
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 };
|
|
177
136
|
}
|
|
178
137
|
|
|
179
138
|
declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/index.ts
|
|
@@ -31,7 +41,7 @@ __export(safari_exports, {
|
|
|
31
41
|
BasicDetails: () => basic_details_exports,
|
|
32
42
|
BusinessDetails: () => business_details_exports,
|
|
33
43
|
DriverDetails: () => driver_details_exports,
|
|
34
|
-
Location: () =>
|
|
44
|
+
Location: () => location_exports2,
|
|
35
45
|
OperationalDays: () => operational_days_exports,
|
|
36
46
|
PersonalDetails: () => personal_details_exports,
|
|
37
47
|
Slot: () => slot_exports,
|
|
@@ -91,75 +101,97 @@ var defaultBasicDetails = {
|
|
|
91
101
|
};
|
|
92
102
|
|
|
93
103
|
// src/safari/location.ts
|
|
104
|
+
var location_exports2 = {};
|
|
105
|
+
__export(location_exports2, {
|
|
106
|
+
create: () => create2,
|
|
107
|
+
defaultLocation: () => defaultLocation,
|
|
108
|
+
get: () => get2,
|
|
109
|
+
pickupLandmark: () => pickupLandmark,
|
|
110
|
+
update: () => update2
|
|
111
|
+
});
|
|
112
|
+
var import_zod3 = require("zod");
|
|
113
|
+
|
|
114
|
+
// src/common/location.ts
|
|
94
115
|
var location_exports = {};
|
|
95
116
|
__export(location_exports, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
name: import_zod2.z.string(),
|
|
113
|
-
area: import_zod2.z.string(),
|
|
114
|
-
startLat: import_zod2.z.coerce.number(),
|
|
115
|
-
startLng: import_zod2.z.coerce.number(),
|
|
116
|
-
endLat: import_zod2.z.coerce.number(),
|
|
117
|
-
endLng: import_zod2.z.coerce.number(),
|
|
118
|
-
address: import_zod2.z.object({
|
|
119
|
-
city: import_zod2.z.string(),
|
|
120
|
-
state: import_zod2.z.string()
|
|
117
|
+
autocompleteRequest: () => autocompleteRequest,
|
|
118
|
+
autocompleteResponse: () => autocompleteResponse,
|
|
119
|
+
locationDetails: () => locationDetails
|
|
120
|
+
});
|
|
121
|
+
var import_zod2 = __toESM(require("zod"), 1);
|
|
122
|
+
var locationDetails = import_zod2.default.object({
|
|
123
|
+
id: import_zod2.default.string(),
|
|
124
|
+
name: import_zod2.default.string(),
|
|
125
|
+
area: import_zod2.default.string(),
|
|
126
|
+
startLat: import_zod2.default.coerce.number(),
|
|
127
|
+
startLng: import_zod2.default.coerce.number(),
|
|
128
|
+
endLat: import_zod2.default.coerce.number(),
|
|
129
|
+
endLng: import_zod2.default.coerce.number(),
|
|
130
|
+
address: import_zod2.default.object({
|
|
131
|
+
city: import_zod2.default.string(),
|
|
132
|
+
state: import_zod2.default.string()
|
|
121
133
|
}),
|
|
122
|
-
metadata: import_zod2.
|
|
123
|
-
landmarks: import_zod2.
|
|
124
|
-
id: import_zod2.
|
|
125
|
-
label: import_zod2.
|
|
126
|
-
type: import_zod2.
|
|
127
|
-
distanceKm: import_zod2.
|
|
134
|
+
metadata: import_zod2.default.object(),
|
|
135
|
+
landmarks: import_zod2.default.array(import_zod2.default.object({
|
|
136
|
+
id: import_zod2.default.string(),
|
|
137
|
+
label: import_zod2.default.string(),
|
|
138
|
+
type: import_zod2.default.string().optional().default(""),
|
|
139
|
+
distanceKm: import_zod2.default.coerce.number()
|
|
128
140
|
}))
|
|
129
141
|
});
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
});
|
|
136
|
-
var
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
142
|
+
var autocompleteRequest = import_zod2.default.object({
|
|
143
|
+
q: import_zod2.default.string().trim().optional().default(""),
|
|
144
|
+
lat: import_zod2.default.coerce.number().optional(),
|
|
145
|
+
lng: import_zod2.default.coerce.number().optional(),
|
|
146
|
+
limit: import_zod2.default.coerce.number().int().min(1).max(50).default(20)
|
|
147
|
+
});
|
|
148
|
+
var autocompleteResponse = import_zod2.default.array(locationDetails);
|
|
149
|
+
|
|
150
|
+
// src/safari/location.ts
|
|
151
|
+
var pickupLandmark = import_zod3.z.object({
|
|
152
|
+
id: import_zod3.z.string().optional(),
|
|
153
|
+
label: import_zod3.z.string(),
|
|
154
|
+
type: import_zod3.z.string().optional(),
|
|
155
|
+
distanceKm: import_zod3.z.coerce.number()
|
|
156
|
+
});
|
|
157
|
+
var get2 = import_zod3.z.object({
|
|
158
|
+
location: locationDetails,
|
|
159
|
+
safariLocation: import_zod3.z.string(),
|
|
160
|
+
pickupLocation: import_zod3.z.string(),
|
|
161
|
+
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
162
|
+
});
|
|
163
|
+
var create2 = import_zod3.z.object({
|
|
164
|
+
locationId: import_zod3.z.string().trim().nonempty("required"),
|
|
165
|
+
safariLocation: import_zod3.z.string().trim().nonempty("required"),
|
|
166
|
+
pickupLocation: import_zod3.z.string().trim().nonempty("required"),
|
|
167
|
+
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
168
|
+
});
|
|
169
|
+
var update2 = import_zod3.z.object({
|
|
170
|
+
id: import_zod3.z.string().optional().default(""),
|
|
171
|
+
locationId: import_zod3.z.string().trim().nonempty("required"),
|
|
172
|
+
safariLocation: import_zod3.z.string().trim().nonempty("required"),
|
|
173
|
+
pickupLocation: import_zod3.z.string().trim().nonempty("required"),
|
|
174
|
+
pickupLandmarks: import_zod3.z.array(pickupLandmark)
|
|
175
|
+
});
|
|
176
|
+
var defaultLocation = {
|
|
177
|
+
location: null,
|
|
178
|
+
safariLocation: "",
|
|
179
|
+
pickupLocation: "",
|
|
180
|
+
pickupLandmarks: []
|
|
181
|
+
};
|
|
150
182
|
|
|
151
183
|
// src/safari/slot.ts
|
|
152
184
|
var slot_exports = {};
|
|
153
185
|
__export(slot_exports, {
|
|
154
|
-
create: () =>
|
|
155
|
-
me: () =>
|
|
186
|
+
create: () => create3,
|
|
187
|
+
me: () => me,
|
|
156
188
|
meList: () => meList,
|
|
157
189
|
time12h: () => time12h,
|
|
158
|
-
update: () =>
|
|
190
|
+
update: () => update3
|
|
159
191
|
});
|
|
160
|
-
var
|
|
192
|
+
var import_zod4 = require("zod");
|
|
161
193
|
var TIME_12H = /^(0?[1-9]|1[0-2]):([0-5][0-9])(?:[\u00A0\u202F\s]*)?(AM|PM)$/i;
|
|
162
|
-
var time12h =
|
|
194
|
+
var time12h = import_zod4.z.string().trim().regex(TIME_12H, "Use format hh:mm AM/PM").transform((v) => {
|
|
163
195
|
const m = v.match(TIME_12H);
|
|
164
196
|
const hh = m[1];
|
|
165
197
|
const mm = m[2];
|
|
@@ -168,39 +200,39 @@ var time12h = import_zod3.z.string().trim().regex(TIME_12H, "Use format hh:mm AM
|
|
|
168
200
|
if (meridian === "PM") h += 12;
|
|
169
201
|
return h * 60 + parseInt(mm, 10);
|
|
170
202
|
});
|
|
171
|
-
var
|
|
172
|
-
id:
|
|
173
|
-
name:
|
|
174
|
-
description:
|
|
203
|
+
var update3 = import_zod4.z.object({
|
|
204
|
+
id: import_zod4.z.string().trim().optional(),
|
|
205
|
+
name: import_zod4.z.string().trim().nonempty("required"),
|
|
206
|
+
description: import_zod4.z.string().trim().optional(),
|
|
175
207
|
startTime: time12h,
|
|
176
208
|
endTime: time12h,
|
|
177
|
-
minHour:
|
|
209
|
+
minHour: import_zod4.z.coerce.number("invalid")
|
|
178
210
|
});
|
|
179
|
-
var
|
|
180
|
-
name:
|
|
181
|
-
description:
|
|
211
|
+
var create3 = import_zod4.z.object({
|
|
212
|
+
name: import_zod4.z.string().trim().nonempty("required"),
|
|
213
|
+
description: import_zod4.z.string().trim().optional(),
|
|
182
214
|
startTime: time12h,
|
|
183
215
|
endTime: time12h,
|
|
184
|
-
minHour:
|
|
216
|
+
minHour: import_zod4.z.coerce.number("invalid")
|
|
185
217
|
});
|
|
186
|
-
var
|
|
187
|
-
id:
|
|
188
|
-
name:
|
|
189
|
-
description:
|
|
190
|
-
startTime:
|
|
191
|
-
endTime:
|
|
192
|
-
minHour:
|
|
218
|
+
var me = import_zod4.z.object({
|
|
219
|
+
id: import_zod4.z.string().trim(),
|
|
220
|
+
name: import_zod4.z.string().trim().nonempty("required"),
|
|
221
|
+
description: import_zod4.z.string().trim().optional(),
|
|
222
|
+
startTime: import_zod4.z.coerce.number(),
|
|
223
|
+
endTime: import_zod4.z.coerce.number(),
|
|
224
|
+
minHour: import_zod4.z.coerce.number("invalid")
|
|
193
225
|
});
|
|
194
|
-
var meList =
|
|
226
|
+
var meList = import_zod4.z.array(me);
|
|
195
227
|
|
|
196
228
|
// src/safari/operational-days.ts
|
|
197
229
|
var operational_days_exports = {};
|
|
198
230
|
__export(operational_days_exports, {
|
|
199
231
|
Weekday: () => Weekday,
|
|
200
|
-
me: () =>
|
|
232
|
+
me: () => me2
|
|
201
233
|
});
|
|
202
|
-
var
|
|
203
|
-
var Weekday =
|
|
234
|
+
var import_zod5 = require("zod");
|
|
235
|
+
var Weekday = import_zod5.z.enum([
|
|
204
236
|
"sunday",
|
|
205
237
|
"monday",
|
|
206
238
|
"tuesday",
|
|
@@ -209,117 +241,118 @@ var Weekday = import_zod4.z.enum([
|
|
|
209
241
|
"friday",
|
|
210
242
|
"saturday"
|
|
211
243
|
]);
|
|
212
|
-
var
|
|
213
|
-
operationalDays:
|
|
244
|
+
var me2 = import_zod5.z.object({
|
|
245
|
+
operationalDays: import_zod5.z.array(Weekday).transform((arr) => Array.from(new Set(arr)))
|
|
214
246
|
});
|
|
215
247
|
|
|
216
248
|
// src/safari/vehicle-details.ts
|
|
217
249
|
var vehicle_details_exports = {};
|
|
218
250
|
__export(vehicle_details_exports, {
|
|
219
|
-
me: () =>
|
|
220
|
-
save: () =>
|
|
251
|
+
me: () => me3,
|
|
252
|
+
save: () => save
|
|
221
253
|
});
|
|
222
|
-
var
|
|
223
|
-
var
|
|
224
|
-
id:
|
|
225
|
-
vehicleName:
|
|
226
|
-
registrationNumber:
|
|
227
|
-
serviceRoutine:
|
|
228
|
-
operatedSince:
|
|
229
|
-
maxCapacity:
|
|
230
|
-
});
|
|
231
|
-
var
|
|
232
|
-
vehicleName:
|
|
233
|
-
registrationNumber:
|
|
234
|
-
serviceRoutine:
|
|
235
|
-
operatedSince:
|
|
236
|
-
maxCapacity:
|
|
254
|
+
var import_zod6 = require("zod");
|
|
255
|
+
var me3 = import_zod6.z.object({
|
|
256
|
+
id: import_zod6.z.string(),
|
|
257
|
+
vehicleName: import_zod6.z.string().trim(),
|
|
258
|
+
registrationNumber: import_zod6.z.string().trim().toUpperCase(),
|
|
259
|
+
serviceRoutine: import_zod6.z.coerce.number(),
|
|
260
|
+
operatedSince: import_zod6.z.coerce.number().min(2010),
|
|
261
|
+
maxCapacity: import_zod6.z.coerce.number().min(2).max(15)
|
|
262
|
+
});
|
|
263
|
+
var save = import_zod6.z.object({
|
|
264
|
+
vehicleName: import_zod6.z.string().trim().nonempty("required"),
|
|
265
|
+
registrationNumber: import_zod6.z.string().trim().nonempty("required").toUpperCase(),
|
|
266
|
+
serviceRoutine: import_zod6.z.coerce.number("invalid"),
|
|
267
|
+
operatedSince: import_zod6.z.coerce.number("invalid").min(2010, "min"),
|
|
268
|
+
maxCapacity: import_zod6.z.coerce.number("invalid").min(2, "min").max(15, "max")
|
|
237
269
|
});
|
|
238
270
|
|
|
239
271
|
// src/safari/driver-details.ts
|
|
240
272
|
var driver_details_exports = {};
|
|
241
273
|
__export(driver_details_exports, {
|
|
242
|
-
create: () =>
|
|
243
|
-
me: () =>
|
|
274
|
+
create: () => create4,
|
|
275
|
+
me: () => me4,
|
|
244
276
|
meList: () => meList2
|
|
245
277
|
});
|
|
246
|
-
var
|
|
247
|
-
var
|
|
248
|
-
id:
|
|
249
|
-
driverName:
|
|
250
|
-
licenseNumber:
|
|
251
|
-
experience:
|
|
278
|
+
var import_zod7 = require("zod");
|
|
279
|
+
var me4 = import_zod7.z.object({
|
|
280
|
+
id: import_zod7.z.string(),
|
|
281
|
+
driverName: import_zod7.z.string().trim(),
|
|
282
|
+
licenseNumber: import_zod7.z.string().trim().toUpperCase(),
|
|
283
|
+
experience: import_zod7.z.coerce.number()
|
|
252
284
|
});
|
|
253
|
-
var
|
|
254
|
-
driverName:
|
|
255
|
-
licenseNumber:
|
|
256
|
-
experience:
|
|
285
|
+
var create4 = import_zod7.z.object({
|
|
286
|
+
driverName: import_zod7.z.string().trim().nonempty("required"),
|
|
287
|
+
licenseNumber: import_zod7.z.string().trim().nonempty("required").toUpperCase(),
|
|
288
|
+
experience: import_zod7.z.coerce.number().min(1, "min")
|
|
257
289
|
});
|
|
258
|
-
var meList2 =
|
|
290
|
+
var meList2 = import_zod7.z.array(me4);
|
|
259
291
|
|
|
260
292
|
// src/safari/business-details.ts
|
|
261
293
|
var business_details_exports = {};
|
|
262
294
|
__export(business_details_exports, {
|
|
263
|
-
create: () =>
|
|
264
|
-
me: () =>
|
|
265
|
-
});
|
|
266
|
-
var import_zod7 = require("zod");
|
|
267
|
-
var me6 = import_zod7.z.object({
|
|
268
|
-
bankAccountNumber: import_zod7.z.string().trim(),
|
|
269
|
-
bankName: import_zod7.z.string().trim(),
|
|
270
|
-
accountHolderName: import_zod7.z.string().trim(),
|
|
271
|
-
gstNumber: import_zod7.z.string().trim().optional(),
|
|
272
|
-
businessNumber: import_zod7.z.string().trim().optional(),
|
|
273
|
-
ifscCode: import_zod7.z.string().trim()
|
|
295
|
+
create: () => create5,
|
|
296
|
+
me: () => me5
|
|
274
297
|
});
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
gstNumber:
|
|
281
|
-
businessNumber:
|
|
298
|
+
var import_zod8 = require("zod");
|
|
299
|
+
var me5 = import_zod8.z.object({
|
|
300
|
+
bankAccountNumber: import_zod8.z.string().trim(),
|
|
301
|
+
bankName: import_zod8.z.string().trim(),
|
|
302
|
+
accountHolderName: import_zod8.z.string().trim(),
|
|
303
|
+
gstNumber: import_zod8.z.string().trim().optional(),
|
|
304
|
+
businessNumber: import_zod8.z.string().trim().optional(),
|
|
305
|
+
ifscCode: import_zod8.z.string().trim()
|
|
306
|
+
});
|
|
307
|
+
var create5 = import_zod8.z.object({
|
|
308
|
+
bankAccountNumber: import_zod8.z.string().trim().nonempty("required"),
|
|
309
|
+
bankName: import_zod8.z.string().trim().nonempty("required"),
|
|
310
|
+
accountHolderName: import_zod8.z.string().trim().nonempty("required"),
|
|
311
|
+
ifscCode: import_zod8.z.string().trim().nonempty("required"),
|
|
312
|
+
gstNumber: import_zod8.z.string().trim().optional(),
|
|
313
|
+
businessNumber: import_zod8.z.string().trim().optional()
|
|
282
314
|
});
|
|
283
315
|
|
|
284
316
|
// src/safari/personal-details.ts
|
|
285
317
|
var personal_details_exports = {};
|
|
286
318
|
__export(personal_details_exports, {
|
|
287
|
-
me: () =>
|
|
288
|
-
save: () =>
|
|
319
|
+
me: () => me6,
|
|
320
|
+
save: () => save2
|
|
289
321
|
});
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
-
adhaarNumber:
|
|
293
|
-
address:
|
|
322
|
+
var import_zod9 = require("zod");
|
|
323
|
+
var me6 = import_zod9.z.object({
|
|
324
|
+
adhaarNumber: import_zod9.z.string().trim(),
|
|
325
|
+
address: import_zod9.z.string().trim()
|
|
294
326
|
});
|
|
295
|
-
var
|
|
296
|
-
adhaarNumber:
|
|
297
|
-
address:
|
|
327
|
+
var save2 = import_zod9.z.object({
|
|
328
|
+
adhaarNumber: import_zod9.z.string().trim().nonempty("required"),
|
|
329
|
+
address: import_zod9.z.string().trim().nonempty("required")
|
|
298
330
|
});
|
|
299
331
|
|
|
300
332
|
// src/safari/step.ts
|
|
301
333
|
var step_exports = {};
|
|
302
334
|
__export(step_exports, {
|
|
303
|
-
me: () =>
|
|
335
|
+
me: () => me7,
|
|
304
336
|
steps: () => steps
|
|
305
337
|
});
|
|
306
|
-
var
|
|
307
|
-
var steps =
|
|
308
|
-
var
|
|
309
|
-
email:
|
|
310
|
-
name:
|
|
311
|
-
countryCode:
|
|
312
|
-
phoneNumber:
|
|
313
|
-
isPhoneVerified:
|
|
314
|
-
type:
|
|
315
|
-
status:
|
|
338
|
+
var import_zod10 = require("zod");
|
|
339
|
+
var steps = import_zod10.z.enum(["basic_info", "location"]);
|
|
340
|
+
var me7 = import_zod10.z.object({
|
|
341
|
+
email: import_zod10.z.string(),
|
|
342
|
+
name: import_zod10.z.string().trim().optional().default(""),
|
|
343
|
+
countryCode: import_zod10.z.string().optional().default("+91"),
|
|
344
|
+
phoneNumber: import_zod10.z.string().optional().default(""),
|
|
345
|
+
isPhoneVerified: import_zod10.z.boolean().optional().default(false),
|
|
346
|
+
type: import_zod10.z.string().optional().default(""),
|
|
347
|
+
status: import_zod10.z.enum(["pending", "in_review", "approved", "rejected"]).optional().default("pending"),
|
|
316
348
|
currentStep: steps,
|
|
317
|
-
remarks:
|
|
349
|
+
remarks: import_zod10.z.string().optional().default("")
|
|
318
350
|
});
|
|
319
351
|
|
|
320
352
|
// src/common/index.ts
|
|
321
353
|
var common_exports = {};
|
|
322
354
|
__export(common_exports, {
|
|
355
|
+
LocationAutoSuggest: () => location_exports,
|
|
323
356
|
Onboard: () => onboard_exports,
|
|
324
357
|
VerifyEmail: () => verify_email_exports
|
|
325
358
|
});
|
|
@@ -331,16 +364,16 @@ __export(verify_email_exports, {
|
|
|
331
364
|
verifyOtp: () => verifyOtp,
|
|
332
365
|
verifyOtpResponse: () => verifyOtpResponse
|
|
333
366
|
});
|
|
334
|
-
var
|
|
335
|
-
var sendOtp =
|
|
336
|
-
email:
|
|
367
|
+
var import_zod11 = require("zod");
|
|
368
|
+
var sendOtp = import_zod11.z.object({
|
|
369
|
+
email: import_zod11.z.email("invalid").nonempty("required").trim().toLowerCase()
|
|
337
370
|
});
|
|
338
|
-
var verifyOtp =
|
|
339
|
-
otp:
|
|
340
|
-
email:
|
|
371
|
+
var verifyOtp = import_zod11.z.object({
|
|
372
|
+
otp: import_zod11.z.string().min(4, { message: "required" }),
|
|
373
|
+
email: import_zod11.z.string().optional()
|
|
341
374
|
});
|
|
342
|
-
var verifyOtpResponse =
|
|
343
|
-
id:
|
|
375
|
+
var verifyOtpResponse = import_zod11.z.object({
|
|
376
|
+
id: import_zod11.z.string()
|
|
344
377
|
});
|
|
345
378
|
|
|
346
379
|
// src/common/onboard.ts
|
|
@@ -348,12 +381,12 @@ var onboard_exports = {};
|
|
|
348
381
|
__export(onboard_exports, {
|
|
349
382
|
onboard: () => onboard
|
|
350
383
|
});
|
|
351
|
-
var
|
|
352
|
-
var onboard =
|
|
353
|
-
id:
|
|
354
|
-
status:
|
|
355
|
-
remark:
|
|
356
|
-
currentStep:
|
|
384
|
+
var import_zod12 = require("zod");
|
|
385
|
+
var onboard = import_zod12.z.object({
|
|
386
|
+
id: import_zod12.z.string(),
|
|
387
|
+
status: import_zod12.z.enum(["pending", "in_review", "approved", "rejected", "completed"]),
|
|
388
|
+
remark: import_zod12.z.string().optional().default(""),
|
|
389
|
+
currentStep: import_zod12.z.number().default(1)
|
|
357
390
|
});
|
|
358
391
|
// Annotate the CommonJS export names for ESM import in node:
|
|
359
392
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { i as SafariOnboarding } from './index-
|
|
2
|
-
export { i as CommonOnboarding } from './index-
|
|
1
|
+
export { i as SafariOnboarding } from './index-EotV0cTk.cjs';
|
|
2
|
+
export { i as CommonOnboarding } from './index-DNcx8rxs.cjs';
|
|
3
3
|
import 'zod';
|