@tripsam/onboarding 1.0.52 → 1.0.54
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-CGi168wq.d.cts → index-QD3jMySR.d.cts} +27 -20
- package/dist/{index-CGi168wq.d.ts → index-QD3jMySR.d.ts} +27 -20
- package/dist/index.cjs +28 -24
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -24
- package/dist/safari/index.cjs +28 -24
- package/dist/safari/index.d.cts +1 -1
- package/dist/safari/index.d.ts +1 -1
- package/dist/safari/index.js +28 -24
- package/package.json +1 -1
|
@@ -19,11 +19,11 @@ declare const safeSas: z.ZodEnum<{
|
|
|
19
19
|
jungle_safari: "jungle_safari";
|
|
20
20
|
}>;
|
|
21
21
|
type SafariType = keyof typeof safariTypes;
|
|
22
|
-
declare const get$
|
|
22
|
+
declare const get$2: 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>>;
|
|
26
|
-
|
|
26
|
+
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
27
27
|
isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
28
28
|
type: z.ZodEnum<{
|
|
29
29
|
other: "other";
|
|
@@ -38,27 +38,27 @@ declare const get$1: z.ZodObject<{
|
|
|
38
38
|
declare const create$4: z.ZodObject<{
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
41
|
-
|
|
41
|
+
phone: z.ZodString;
|
|
42
42
|
type: z.ZodString;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
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
|
+
phone: z.ZodString;
|
|
49
49
|
type: z.ZodString;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
|
-
type SafeGet$
|
|
51
|
+
type SafeGet$2 = z.infer<typeof get$2>;
|
|
52
52
|
type SafeUpdate$2 = z.output<typeof update$2>;
|
|
53
53
|
type SafeCreate$4 = z.output<typeof create$4>;
|
|
54
|
-
declare const defaultBasicDetails: SafeGet$
|
|
54
|
+
declare const defaultBasicDetails: SafeGet$2;
|
|
55
55
|
|
|
56
56
|
type basicDetails_SafariType = SafariType;
|
|
57
57
|
declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
|
|
58
58
|
declare const basicDetails_safariTypes: typeof safariTypes;
|
|
59
59
|
declare const basicDetails_safeSas: typeof safeSas;
|
|
60
60
|
declare namespace basicDetails {
|
|
61
|
-
export { type basicDetails_SafariType as SafariType, type SafeCreate$4 as SafeCreate, type SafeGet$
|
|
61
|
+
export { type basicDetails_SafariType as SafariType, type SafeCreate$4 as SafeCreate, type SafeGet$2 as SafeGet, type SafeUpdate$2 as SafeUpdate, create$4 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, get$2 as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$2 as update };
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare const pickupLandmark: z.ZodObject<{
|
|
@@ -67,7 +67,7 @@ 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 get: z.ZodObject<{
|
|
70
|
+
declare const get$1: z.ZodObject<{
|
|
71
71
|
id: z.ZodString;
|
|
72
72
|
location: z.ZodObject<{
|
|
73
73
|
id: z.ZodString;
|
|
@@ -121,38 +121,39 @@ declare const update$1: z.ZodObject<{
|
|
|
121
121
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
122
122
|
}, z.core.$strip>>;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
|
-
type SafeGet = z.output<typeof get>;
|
|
124
|
+
type SafeGet$1 = z.output<typeof get$1>;
|
|
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
|
+
declare const defaultLocation: SafeGet$1;
|
|
129
129
|
|
|
130
|
-
type location_SafeGet = SafeGet;
|
|
131
130
|
type location_SafePickupLandmark = SafePickupLandmark;
|
|
132
131
|
declare const location_defaultLocation: typeof defaultLocation;
|
|
133
|
-
declare const location_get: typeof get;
|
|
134
132
|
declare const location_pickupLandmark: typeof pickupLandmark;
|
|
135
133
|
declare namespace location {
|
|
136
|
-
export { type SafeCreate$3 as SafeCreate, type
|
|
134
|
+
export { type SafeCreate$3 as SafeCreate, type SafeGet$1 as SafeGet, type location_SafePickupLandmark as SafePickupLandmark, type SafeUpdate$1 as SafeUpdate, create$3 as create, location_defaultLocation as defaultLocation, get$1 as get, location_pickupLandmark as pickupLandmark, update$1 as update };
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
140
138
|
declare const update: z.ZodObject<{
|
|
141
139
|
id: z.ZodOptional<z.ZodString>;
|
|
142
140
|
name: z.ZodString;
|
|
143
|
-
description: z.ZodOptional<z.ZodString
|
|
141
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
144
142
|
startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
145
143
|
endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
146
144
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
147
145
|
}, z.core.$strip>;
|
|
148
146
|
declare const create$2: z.ZodObject<{
|
|
149
147
|
name: z.ZodString;
|
|
150
|
-
description: z.ZodOptional<z.ZodString
|
|
148
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
151
149
|
startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
152
150
|
endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
153
151
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
154
152
|
}, z.core.$strip>;
|
|
155
|
-
declare const
|
|
153
|
+
declare const remove: z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
declare const get: z.ZodObject<{
|
|
156
157
|
id: z.ZodString;
|
|
157
158
|
name: z.ZodString;
|
|
158
159
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -160,7 +161,7 @@ declare const me$6: z.ZodObject<{
|
|
|
160
161
|
endTime: z.ZodCoercedNumber<unknown>;
|
|
161
162
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
162
163
|
}, z.core.$strip>;
|
|
163
|
-
declare const
|
|
164
|
+
declare const list: z.ZodArray<z.ZodObject<{
|
|
164
165
|
id: z.ZodString;
|
|
165
166
|
name: z.ZodString;
|
|
166
167
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -168,16 +169,22 @@ declare const meList$1: z.ZodArray<z.ZodObject<{
|
|
|
168
169
|
endTime: z.ZodCoercedNumber<unknown>;
|
|
169
170
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
170
171
|
}, z.core.$strip>>;
|
|
171
|
-
type
|
|
172
|
-
type SafeList$1 = z.output<typeof
|
|
172
|
+
type SafeGet = z.output<typeof get>;
|
|
173
|
+
type SafeList$1 = z.output<typeof list>;
|
|
173
174
|
type SafeCreate$2 = z.output<typeof create$2>;
|
|
174
175
|
type SafeUpdate = z.output<typeof update>;
|
|
176
|
+
type SafeRemove = z.output<typeof remove>;
|
|
175
177
|
|
|
178
|
+
type slot_SafeGet = SafeGet;
|
|
179
|
+
type slot_SafeRemove = SafeRemove;
|
|
176
180
|
type slot_SafeUpdate = SafeUpdate;
|
|
181
|
+
declare const slot_get: typeof get;
|
|
182
|
+
declare const slot_list: typeof list;
|
|
183
|
+
declare const slot_remove: typeof remove;
|
|
177
184
|
declare const slot_time12h: typeof time12h;
|
|
178
185
|
declare const slot_update: typeof update;
|
|
179
186
|
declare namespace slot {
|
|
180
|
-
export { type SafeCreate$2 as SafeCreate, type SafeList$1 as SafeList, type
|
|
187
|
+
export { type SafeCreate$2 as SafeCreate, type slot_SafeGet as SafeGet, type SafeList$1 as SafeList, type slot_SafeRemove as SafeRemove, type slot_SafeUpdate as SafeUpdate, create$2 as create, slot_get as get, slot_list as list, slot_remove as remove, slot_time12h as time12h, slot_update as update };
|
|
181
188
|
}
|
|
182
189
|
|
|
183
190
|
declare const Weekday: z.ZodEnum<{
|
|
@@ -19,11 +19,11 @@ declare const safeSas: z.ZodEnum<{
|
|
|
19
19
|
jungle_safari: "jungle_safari";
|
|
20
20
|
}>;
|
|
21
21
|
type SafariType = keyof typeof safariTypes;
|
|
22
|
-
declare const get$
|
|
22
|
+
declare const get$2: 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>>;
|
|
26
|
-
|
|
26
|
+
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
27
27
|
isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
28
28
|
type: z.ZodEnum<{
|
|
29
29
|
other: "other";
|
|
@@ -38,27 +38,27 @@ declare const get$1: z.ZodObject<{
|
|
|
38
38
|
declare const create$4: z.ZodObject<{
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
41
|
-
|
|
41
|
+
phone: z.ZodString;
|
|
42
42
|
type: z.ZodString;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
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
|
+
phone: z.ZodString;
|
|
49
49
|
type: z.ZodString;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
|
-
type SafeGet$
|
|
51
|
+
type SafeGet$2 = z.infer<typeof get$2>;
|
|
52
52
|
type SafeUpdate$2 = z.output<typeof update$2>;
|
|
53
53
|
type SafeCreate$4 = z.output<typeof create$4>;
|
|
54
|
-
declare const defaultBasicDetails: SafeGet$
|
|
54
|
+
declare const defaultBasicDetails: SafeGet$2;
|
|
55
55
|
|
|
56
56
|
type basicDetails_SafariType = SafariType;
|
|
57
57
|
declare const basicDetails_defaultBasicDetails: typeof defaultBasicDetails;
|
|
58
58
|
declare const basicDetails_safariTypes: typeof safariTypes;
|
|
59
59
|
declare const basicDetails_safeSas: typeof safeSas;
|
|
60
60
|
declare namespace basicDetails {
|
|
61
|
-
export { type basicDetails_SafariType as SafariType, type SafeCreate$4 as SafeCreate, type SafeGet$
|
|
61
|
+
export { type basicDetails_SafariType as SafariType, type SafeCreate$4 as SafeCreate, type SafeGet$2 as SafeGet, type SafeUpdate$2 as SafeUpdate, create$4 as create, basicDetails_defaultBasicDetails as defaultBasicDetails, get$2 as get, basicDetails_safariTypes as safariTypes, basicDetails_safeSas as safeSas, update$2 as update };
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
declare const pickupLandmark: z.ZodObject<{
|
|
@@ -67,7 +67,7 @@ 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 get: z.ZodObject<{
|
|
70
|
+
declare const get$1: z.ZodObject<{
|
|
71
71
|
id: z.ZodString;
|
|
72
72
|
location: z.ZodObject<{
|
|
73
73
|
id: z.ZodString;
|
|
@@ -121,38 +121,39 @@ declare const update$1: z.ZodObject<{
|
|
|
121
121
|
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
122
122
|
}, z.core.$strip>>;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
|
-
type SafeGet = z.output<typeof get>;
|
|
124
|
+
type SafeGet$1 = z.output<typeof get$1>;
|
|
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
|
+
declare const defaultLocation: SafeGet$1;
|
|
129
129
|
|
|
130
|
-
type location_SafeGet = SafeGet;
|
|
131
130
|
type location_SafePickupLandmark = SafePickupLandmark;
|
|
132
131
|
declare const location_defaultLocation: typeof defaultLocation;
|
|
133
|
-
declare const location_get: typeof get;
|
|
134
132
|
declare const location_pickupLandmark: typeof pickupLandmark;
|
|
135
133
|
declare namespace location {
|
|
136
|
-
export { type SafeCreate$3 as SafeCreate, type
|
|
134
|
+
export { type SafeCreate$3 as SafeCreate, type SafeGet$1 as SafeGet, type location_SafePickupLandmark as SafePickupLandmark, type SafeUpdate$1 as SafeUpdate, create$3 as create, location_defaultLocation as defaultLocation, get$1 as get, location_pickupLandmark as pickupLandmark, update$1 as update };
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
declare const time12h: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
140
138
|
declare const update: z.ZodObject<{
|
|
141
139
|
id: z.ZodOptional<z.ZodString>;
|
|
142
140
|
name: z.ZodString;
|
|
143
|
-
description: z.ZodOptional<z.ZodString
|
|
141
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
144
142
|
startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
145
143
|
endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
146
144
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
147
145
|
}, z.core.$strip>;
|
|
148
146
|
declare const create$2: z.ZodObject<{
|
|
149
147
|
name: z.ZodString;
|
|
150
|
-
description: z.ZodOptional<z.ZodString
|
|
148
|
+
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
151
149
|
startTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
152
150
|
endTime: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
153
151
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
154
152
|
}, z.core.$strip>;
|
|
155
|
-
declare const
|
|
153
|
+
declare const remove: z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
declare const get: z.ZodObject<{
|
|
156
157
|
id: z.ZodString;
|
|
157
158
|
name: z.ZodString;
|
|
158
159
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -160,7 +161,7 @@ declare const me$6: z.ZodObject<{
|
|
|
160
161
|
endTime: z.ZodCoercedNumber<unknown>;
|
|
161
162
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
162
163
|
}, z.core.$strip>;
|
|
163
|
-
declare const
|
|
164
|
+
declare const list: z.ZodArray<z.ZodObject<{
|
|
164
165
|
id: z.ZodString;
|
|
165
166
|
name: z.ZodString;
|
|
166
167
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -168,16 +169,22 @@ declare const meList$1: z.ZodArray<z.ZodObject<{
|
|
|
168
169
|
endTime: z.ZodCoercedNumber<unknown>;
|
|
169
170
|
minHour: z.ZodCoercedNumber<unknown>;
|
|
170
171
|
}, z.core.$strip>>;
|
|
171
|
-
type
|
|
172
|
-
type SafeList$1 = z.output<typeof
|
|
172
|
+
type SafeGet = z.output<typeof get>;
|
|
173
|
+
type SafeList$1 = z.output<typeof list>;
|
|
173
174
|
type SafeCreate$2 = z.output<typeof create$2>;
|
|
174
175
|
type SafeUpdate = z.output<typeof update>;
|
|
176
|
+
type SafeRemove = z.output<typeof remove>;
|
|
175
177
|
|
|
178
|
+
type slot_SafeGet = SafeGet;
|
|
179
|
+
type slot_SafeRemove = SafeRemove;
|
|
176
180
|
type slot_SafeUpdate = SafeUpdate;
|
|
181
|
+
declare const slot_get: typeof get;
|
|
182
|
+
declare const slot_list: typeof list;
|
|
183
|
+
declare const slot_remove: typeof remove;
|
|
177
184
|
declare const slot_time12h: typeof time12h;
|
|
178
185
|
declare const slot_update: typeof update;
|
|
179
186
|
declare namespace slot {
|
|
180
|
-
export { type SafeCreate$2 as SafeCreate, type SafeList$1 as SafeList, type
|
|
187
|
+
export { type SafeCreate$2 as SafeCreate, type slot_SafeGet as SafeGet, type SafeList$1 as SafeList, type slot_SafeRemove as SafeRemove, type slot_SafeUpdate as SafeUpdate, create$2 as create, slot_get as get, slot_list as list, slot_remove as remove, slot_time12h as time12h, slot_update as update };
|
|
181
188
|
}
|
|
182
189
|
|
|
183
190
|
declare const Weekday: z.ZodEnum<{
|
package/dist/index.cjs
CHANGED
|
@@ -74,28 +74,28 @@ var get = import_zod.z.object({
|
|
|
74
74
|
id: import_zod.z.string(),
|
|
75
75
|
name: import_zod.z.string().trim().optional().default(""),
|
|
76
76
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
77
|
-
|
|
77
|
+
phone: import_zod.z.string().optional().default(""),
|
|
78
78
|
isPhoneVerified: import_zod.z.boolean().optional().default(false),
|
|
79
79
|
type: safeSas
|
|
80
80
|
});
|
|
81
81
|
var create = import_zod.z.object({
|
|
82
82
|
name: import_zod.z.string().nonempty("required").trim(),
|
|
83
83
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
84
|
-
|
|
84
|
+
phone: import_zod.z.string().nonempty("required"),
|
|
85
85
|
type: import_zod.z.string().nonempty("required")
|
|
86
86
|
});
|
|
87
87
|
var update = import_zod.z.object({
|
|
88
88
|
id: import_zod.z.string().optional().default(""),
|
|
89
89
|
name: import_zod.z.string().nonempty("required").trim(),
|
|
90
90
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
91
|
-
|
|
91
|
+
phone: import_zod.z.string().nonempty("required"),
|
|
92
92
|
type: import_zod.z.string().nonempty("required")
|
|
93
93
|
});
|
|
94
94
|
var defaultBasicDetails = {
|
|
95
95
|
id: "",
|
|
96
96
|
name: "",
|
|
97
97
|
countryCode: "+91",
|
|
98
|
-
|
|
98
|
+
phone: "",
|
|
99
99
|
isPhoneVerified: false,
|
|
100
100
|
type: "leopard_safari"
|
|
101
101
|
};
|
|
@@ -186,8 +186,9 @@ var defaultLocation = {
|
|
|
186
186
|
var slot_exports = {};
|
|
187
187
|
__export(slot_exports, {
|
|
188
188
|
create: () => create3,
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
get: () => get3,
|
|
190
|
+
list: () => list,
|
|
191
|
+
remove: () => remove,
|
|
191
192
|
time12h: () => time12h,
|
|
192
193
|
update: () => update3
|
|
193
194
|
});
|
|
@@ -205,19 +206,22 @@ var time12h = import_zod4.z.string().trim().regex(TIME_12H, "Use format hh:mm AM
|
|
|
205
206
|
var update3 = import_zod4.z.object({
|
|
206
207
|
id: import_zod4.z.string().trim().optional(),
|
|
207
208
|
name: import_zod4.z.string().trim().nonempty("required"),
|
|
208
|
-
description: import_zod4.z.string().trim().optional(),
|
|
209
|
+
description: import_zod4.z.string().trim().optional().default(""),
|
|
209
210
|
startTime: time12h,
|
|
210
211
|
endTime: time12h,
|
|
211
212
|
minHour: import_zod4.z.coerce.number("invalid")
|
|
212
213
|
});
|
|
213
214
|
var create3 = import_zod4.z.object({
|
|
214
215
|
name: import_zod4.z.string().trim().nonempty("required"),
|
|
215
|
-
description: import_zod4.z.string().trim().optional(),
|
|
216
|
+
description: import_zod4.z.string().trim().optional().default(""),
|
|
216
217
|
startTime: time12h,
|
|
217
218
|
endTime: time12h,
|
|
218
219
|
minHour: import_zod4.z.coerce.number("invalid")
|
|
219
220
|
});
|
|
220
|
-
var
|
|
221
|
+
var remove = import_zod4.z.object({
|
|
222
|
+
id: import_zod4.z.string().trim()
|
|
223
|
+
});
|
|
224
|
+
var get3 = import_zod4.z.object({
|
|
221
225
|
id: import_zod4.z.string().trim(),
|
|
222
226
|
name: import_zod4.z.string().trim().nonempty("required"),
|
|
223
227
|
description: import_zod4.z.string().trim().optional(),
|
|
@@ -225,13 +229,13 @@ var me = import_zod4.z.object({
|
|
|
225
229
|
endTime: import_zod4.z.coerce.number(),
|
|
226
230
|
minHour: import_zod4.z.coerce.number("invalid")
|
|
227
231
|
});
|
|
228
|
-
var
|
|
232
|
+
var list = import_zod4.z.array(get3);
|
|
229
233
|
|
|
230
234
|
// src/safari/operational-days.ts
|
|
231
235
|
var operational_days_exports = {};
|
|
232
236
|
__export(operational_days_exports, {
|
|
233
237
|
Weekday: () => Weekday,
|
|
234
|
-
me: () =>
|
|
238
|
+
me: () => me
|
|
235
239
|
});
|
|
236
240
|
var import_zod5 = require("zod");
|
|
237
241
|
var Weekday = import_zod5.z.enum([
|
|
@@ -243,18 +247,18 @@ var Weekday = import_zod5.z.enum([
|
|
|
243
247
|
"friday",
|
|
244
248
|
"saturday"
|
|
245
249
|
]);
|
|
246
|
-
var
|
|
250
|
+
var me = import_zod5.z.object({
|
|
247
251
|
operationalDays: import_zod5.z.array(Weekday).transform((arr) => Array.from(new Set(arr)))
|
|
248
252
|
});
|
|
249
253
|
|
|
250
254
|
// src/safari/vehicle-details.ts
|
|
251
255
|
var vehicle_details_exports = {};
|
|
252
256
|
__export(vehicle_details_exports, {
|
|
253
|
-
me: () =>
|
|
257
|
+
me: () => me2,
|
|
254
258
|
save: () => save
|
|
255
259
|
});
|
|
256
260
|
var import_zod6 = require("zod");
|
|
257
|
-
var
|
|
261
|
+
var me2 = import_zod6.z.object({
|
|
258
262
|
id: import_zod6.z.string(),
|
|
259
263
|
vehicleName: import_zod6.z.string().trim(),
|
|
260
264
|
registrationNumber: import_zod6.z.string().trim().toUpperCase(),
|
|
@@ -274,11 +278,11 @@ var save = import_zod6.z.object({
|
|
|
274
278
|
var driver_details_exports = {};
|
|
275
279
|
__export(driver_details_exports, {
|
|
276
280
|
create: () => create4,
|
|
277
|
-
me: () =>
|
|
278
|
-
meList: () =>
|
|
281
|
+
me: () => me3,
|
|
282
|
+
meList: () => meList
|
|
279
283
|
});
|
|
280
284
|
var import_zod7 = require("zod");
|
|
281
|
-
var
|
|
285
|
+
var me3 = import_zod7.z.object({
|
|
282
286
|
id: import_zod7.z.string(),
|
|
283
287
|
driverName: import_zod7.z.string().trim(),
|
|
284
288
|
licenseNumber: import_zod7.z.string().trim().toUpperCase(),
|
|
@@ -289,16 +293,16 @@ var create4 = import_zod7.z.object({
|
|
|
289
293
|
licenseNumber: import_zod7.z.string().trim().nonempty("required").toUpperCase(),
|
|
290
294
|
experience: import_zod7.z.coerce.number().min(1, "min")
|
|
291
295
|
});
|
|
292
|
-
var
|
|
296
|
+
var meList = import_zod7.z.array(me3);
|
|
293
297
|
|
|
294
298
|
// src/safari/business-details.ts
|
|
295
299
|
var business_details_exports = {};
|
|
296
300
|
__export(business_details_exports, {
|
|
297
301
|
create: () => create5,
|
|
298
|
-
me: () =>
|
|
302
|
+
me: () => me4
|
|
299
303
|
});
|
|
300
304
|
var import_zod8 = require("zod");
|
|
301
|
-
var
|
|
305
|
+
var me4 = import_zod8.z.object({
|
|
302
306
|
bankAccountNumber: import_zod8.z.string().trim(),
|
|
303
307
|
bankName: import_zod8.z.string().trim(),
|
|
304
308
|
accountHolderName: import_zod8.z.string().trim(),
|
|
@@ -318,11 +322,11 @@ var create5 = import_zod8.z.object({
|
|
|
318
322
|
// src/safari/personal-details.ts
|
|
319
323
|
var personal_details_exports = {};
|
|
320
324
|
__export(personal_details_exports, {
|
|
321
|
-
me: () =>
|
|
325
|
+
me: () => me5,
|
|
322
326
|
save: () => save2
|
|
323
327
|
});
|
|
324
328
|
var import_zod9 = require("zod");
|
|
325
|
-
var
|
|
329
|
+
var me5 = import_zod9.z.object({
|
|
326
330
|
adhaarNumber: import_zod9.z.string().trim(),
|
|
327
331
|
address: import_zod9.z.string().trim()
|
|
328
332
|
});
|
|
@@ -334,12 +338,12 @@ var save2 = import_zod9.z.object({
|
|
|
334
338
|
// src/safari/step.ts
|
|
335
339
|
var step_exports = {};
|
|
336
340
|
__export(step_exports, {
|
|
337
|
-
me: () =>
|
|
341
|
+
me: () => me6,
|
|
338
342
|
steps: () => steps
|
|
339
343
|
});
|
|
340
344
|
var import_zod10 = require("zod");
|
|
341
345
|
var steps = import_zod10.z.enum(["basic_info", "location"]);
|
|
342
|
-
var
|
|
346
|
+
var me6 = import_zod10.z.object({
|
|
343
347
|
email: import_zod10.z.string(),
|
|
344
348
|
name: import_zod10.z.string().trim().optional().default(""),
|
|
345
349
|
countryCode: import_zod10.z.string().optional().default("+91"),
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -43,28 +43,28 @@ var get = z.object({
|
|
|
43
43
|
id: z.string(),
|
|
44
44
|
name: z.string().trim().optional().default(""),
|
|
45
45
|
countryCode: z.string().optional().default("+91"),
|
|
46
|
-
|
|
46
|
+
phone: z.string().optional().default(""),
|
|
47
47
|
isPhoneVerified: z.boolean().optional().default(false),
|
|
48
48
|
type: safeSas
|
|
49
49
|
});
|
|
50
50
|
var create = z.object({
|
|
51
51
|
name: z.string().nonempty("required").trim(),
|
|
52
52
|
countryCode: z.string().optional().default("+91"),
|
|
53
|
-
|
|
53
|
+
phone: z.string().nonempty("required"),
|
|
54
54
|
type: z.string().nonempty("required")
|
|
55
55
|
});
|
|
56
56
|
var update = z.object({
|
|
57
57
|
id: z.string().optional().default(""),
|
|
58
58
|
name: z.string().nonempty("required").trim(),
|
|
59
59
|
countryCode: z.string().optional().default("+91"),
|
|
60
|
-
|
|
60
|
+
phone: z.string().nonempty("required"),
|
|
61
61
|
type: z.string().nonempty("required")
|
|
62
62
|
});
|
|
63
63
|
var defaultBasicDetails = {
|
|
64
64
|
id: "",
|
|
65
65
|
name: "",
|
|
66
66
|
countryCode: "+91",
|
|
67
|
-
|
|
67
|
+
phone: "",
|
|
68
68
|
isPhoneVerified: false,
|
|
69
69
|
type: "leopard_safari"
|
|
70
70
|
};
|
|
@@ -155,8 +155,9 @@ var defaultLocation = {
|
|
|
155
155
|
var slot_exports = {};
|
|
156
156
|
__export(slot_exports, {
|
|
157
157
|
create: () => create3,
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
get: () => get3,
|
|
159
|
+
list: () => list,
|
|
160
|
+
remove: () => remove,
|
|
160
161
|
time12h: () => time12h,
|
|
161
162
|
update: () => update3
|
|
162
163
|
});
|
|
@@ -174,19 +175,22 @@ var time12h = z4.string().trim().regex(TIME_12H, "Use format hh:mm AM/PM").trans
|
|
|
174
175
|
var update3 = z4.object({
|
|
175
176
|
id: z4.string().trim().optional(),
|
|
176
177
|
name: z4.string().trim().nonempty("required"),
|
|
177
|
-
description: z4.string().trim().optional(),
|
|
178
|
+
description: z4.string().trim().optional().default(""),
|
|
178
179
|
startTime: time12h,
|
|
179
180
|
endTime: time12h,
|
|
180
181
|
minHour: z4.coerce.number("invalid")
|
|
181
182
|
});
|
|
182
183
|
var create3 = z4.object({
|
|
183
184
|
name: z4.string().trim().nonempty("required"),
|
|
184
|
-
description: z4.string().trim().optional(),
|
|
185
|
+
description: z4.string().trim().optional().default(""),
|
|
185
186
|
startTime: time12h,
|
|
186
187
|
endTime: time12h,
|
|
187
188
|
minHour: z4.coerce.number("invalid")
|
|
188
189
|
});
|
|
189
|
-
var
|
|
190
|
+
var remove = z4.object({
|
|
191
|
+
id: z4.string().trim()
|
|
192
|
+
});
|
|
193
|
+
var get3 = z4.object({
|
|
190
194
|
id: z4.string().trim(),
|
|
191
195
|
name: z4.string().trim().nonempty("required"),
|
|
192
196
|
description: z4.string().trim().optional(),
|
|
@@ -194,13 +198,13 @@ var me = z4.object({
|
|
|
194
198
|
endTime: z4.coerce.number(),
|
|
195
199
|
minHour: z4.coerce.number("invalid")
|
|
196
200
|
});
|
|
197
|
-
var
|
|
201
|
+
var list = z4.array(get3);
|
|
198
202
|
|
|
199
203
|
// src/safari/operational-days.ts
|
|
200
204
|
var operational_days_exports = {};
|
|
201
205
|
__export(operational_days_exports, {
|
|
202
206
|
Weekday: () => Weekday,
|
|
203
|
-
me: () =>
|
|
207
|
+
me: () => me
|
|
204
208
|
});
|
|
205
209
|
import { z as z5 } from "zod";
|
|
206
210
|
var Weekday = z5.enum([
|
|
@@ -212,18 +216,18 @@ var Weekday = z5.enum([
|
|
|
212
216
|
"friday",
|
|
213
217
|
"saturday"
|
|
214
218
|
]);
|
|
215
|
-
var
|
|
219
|
+
var me = z5.object({
|
|
216
220
|
operationalDays: z5.array(Weekday).transform((arr) => Array.from(new Set(arr)))
|
|
217
221
|
});
|
|
218
222
|
|
|
219
223
|
// src/safari/vehicle-details.ts
|
|
220
224
|
var vehicle_details_exports = {};
|
|
221
225
|
__export(vehicle_details_exports, {
|
|
222
|
-
me: () =>
|
|
226
|
+
me: () => me2,
|
|
223
227
|
save: () => save
|
|
224
228
|
});
|
|
225
229
|
import { z as z6 } from "zod";
|
|
226
|
-
var
|
|
230
|
+
var me2 = z6.object({
|
|
227
231
|
id: z6.string(),
|
|
228
232
|
vehicleName: z6.string().trim(),
|
|
229
233
|
registrationNumber: z6.string().trim().toUpperCase(),
|
|
@@ -243,11 +247,11 @@ var save = z6.object({
|
|
|
243
247
|
var driver_details_exports = {};
|
|
244
248
|
__export(driver_details_exports, {
|
|
245
249
|
create: () => create4,
|
|
246
|
-
me: () =>
|
|
247
|
-
meList: () =>
|
|
250
|
+
me: () => me3,
|
|
251
|
+
meList: () => meList
|
|
248
252
|
});
|
|
249
253
|
import { z as z7 } from "zod";
|
|
250
|
-
var
|
|
254
|
+
var me3 = z7.object({
|
|
251
255
|
id: z7.string(),
|
|
252
256
|
driverName: z7.string().trim(),
|
|
253
257
|
licenseNumber: z7.string().trim().toUpperCase(),
|
|
@@ -258,16 +262,16 @@ var create4 = z7.object({
|
|
|
258
262
|
licenseNumber: z7.string().trim().nonempty("required").toUpperCase(),
|
|
259
263
|
experience: z7.coerce.number().min(1, "min")
|
|
260
264
|
});
|
|
261
|
-
var
|
|
265
|
+
var meList = z7.array(me3);
|
|
262
266
|
|
|
263
267
|
// src/safari/business-details.ts
|
|
264
268
|
var business_details_exports = {};
|
|
265
269
|
__export(business_details_exports, {
|
|
266
270
|
create: () => create5,
|
|
267
|
-
me: () =>
|
|
271
|
+
me: () => me4
|
|
268
272
|
});
|
|
269
273
|
import { z as z8 } from "zod";
|
|
270
|
-
var
|
|
274
|
+
var me4 = z8.object({
|
|
271
275
|
bankAccountNumber: z8.string().trim(),
|
|
272
276
|
bankName: z8.string().trim(),
|
|
273
277
|
accountHolderName: z8.string().trim(),
|
|
@@ -287,11 +291,11 @@ var create5 = z8.object({
|
|
|
287
291
|
// src/safari/personal-details.ts
|
|
288
292
|
var personal_details_exports = {};
|
|
289
293
|
__export(personal_details_exports, {
|
|
290
|
-
me: () =>
|
|
294
|
+
me: () => me5,
|
|
291
295
|
save: () => save2
|
|
292
296
|
});
|
|
293
297
|
import { z as z9 } from "zod";
|
|
294
|
-
var
|
|
298
|
+
var me5 = z9.object({
|
|
295
299
|
adhaarNumber: z9.string().trim(),
|
|
296
300
|
address: z9.string().trim()
|
|
297
301
|
});
|
|
@@ -303,12 +307,12 @@ var save2 = z9.object({
|
|
|
303
307
|
// src/safari/step.ts
|
|
304
308
|
var step_exports = {};
|
|
305
309
|
__export(step_exports, {
|
|
306
|
-
me: () =>
|
|
310
|
+
me: () => me6,
|
|
307
311
|
steps: () => steps
|
|
308
312
|
});
|
|
309
313
|
import { z as z10 } from "zod";
|
|
310
314
|
var steps = z10.enum(["basic_info", "location"]);
|
|
311
|
-
var
|
|
315
|
+
var me6 = z10.object({
|
|
312
316
|
email: z10.string(),
|
|
313
317
|
name: z10.string().trim().optional().default(""),
|
|
314
318
|
countryCode: z10.string().optional().default("+91"),
|
package/dist/safari/index.cjs
CHANGED
|
@@ -67,28 +67,28 @@ var get = import_zod.z.object({
|
|
|
67
67
|
id: import_zod.z.string(),
|
|
68
68
|
name: import_zod.z.string().trim().optional().default(""),
|
|
69
69
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
70
|
-
|
|
70
|
+
phone: import_zod.z.string().optional().default(""),
|
|
71
71
|
isPhoneVerified: import_zod.z.boolean().optional().default(false),
|
|
72
72
|
type: safeSas
|
|
73
73
|
});
|
|
74
74
|
var create = import_zod.z.object({
|
|
75
75
|
name: import_zod.z.string().nonempty("required").trim(),
|
|
76
76
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
77
|
-
|
|
77
|
+
phone: import_zod.z.string().nonempty("required"),
|
|
78
78
|
type: import_zod.z.string().nonempty("required")
|
|
79
79
|
});
|
|
80
80
|
var update = import_zod.z.object({
|
|
81
81
|
id: import_zod.z.string().optional().default(""),
|
|
82
82
|
name: import_zod.z.string().nonempty("required").trim(),
|
|
83
83
|
countryCode: import_zod.z.string().optional().default("+91"),
|
|
84
|
-
|
|
84
|
+
phone: import_zod.z.string().nonempty("required"),
|
|
85
85
|
type: import_zod.z.string().nonempty("required")
|
|
86
86
|
});
|
|
87
87
|
var defaultBasicDetails = {
|
|
88
88
|
id: "",
|
|
89
89
|
name: "",
|
|
90
90
|
countryCode: "+91",
|
|
91
|
-
|
|
91
|
+
phone: "",
|
|
92
92
|
isPhoneVerified: false,
|
|
93
93
|
type: "leopard_safari"
|
|
94
94
|
};
|
|
@@ -173,8 +173,9 @@ var defaultLocation = {
|
|
|
173
173
|
var slot_exports = {};
|
|
174
174
|
__export(slot_exports, {
|
|
175
175
|
create: () => create3,
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
get: () => get3,
|
|
177
|
+
list: () => list,
|
|
178
|
+
remove: () => remove,
|
|
178
179
|
time12h: () => time12h,
|
|
179
180
|
update: () => update3
|
|
180
181
|
});
|
|
@@ -192,19 +193,22 @@ var time12h = import_zod4.z.string().trim().regex(TIME_12H, "Use format hh:mm AM
|
|
|
192
193
|
var update3 = import_zod4.z.object({
|
|
193
194
|
id: import_zod4.z.string().trim().optional(),
|
|
194
195
|
name: import_zod4.z.string().trim().nonempty("required"),
|
|
195
|
-
description: import_zod4.z.string().trim().optional(),
|
|
196
|
+
description: import_zod4.z.string().trim().optional().default(""),
|
|
196
197
|
startTime: time12h,
|
|
197
198
|
endTime: time12h,
|
|
198
199
|
minHour: import_zod4.z.coerce.number("invalid")
|
|
199
200
|
});
|
|
200
201
|
var create3 = import_zod4.z.object({
|
|
201
202
|
name: import_zod4.z.string().trim().nonempty("required"),
|
|
202
|
-
description: import_zod4.z.string().trim().optional(),
|
|
203
|
+
description: import_zod4.z.string().trim().optional().default(""),
|
|
203
204
|
startTime: time12h,
|
|
204
205
|
endTime: time12h,
|
|
205
206
|
minHour: import_zod4.z.coerce.number("invalid")
|
|
206
207
|
});
|
|
207
|
-
var
|
|
208
|
+
var remove = import_zod4.z.object({
|
|
209
|
+
id: import_zod4.z.string().trim()
|
|
210
|
+
});
|
|
211
|
+
var get3 = import_zod4.z.object({
|
|
208
212
|
id: import_zod4.z.string().trim(),
|
|
209
213
|
name: import_zod4.z.string().trim().nonempty("required"),
|
|
210
214
|
description: import_zod4.z.string().trim().optional(),
|
|
@@ -212,13 +216,13 @@ var me = import_zod4.z.object({
|
|
|
212
216
|
endTime: import_zod4.z.coerce.number(),
|
|
213
217
|
minHour: import_zod4.z.coerce.number("invalid")
|
|
214
218
|
});
|
|
215
|
-
var
|
|
219
|
+
var list = import_zod4.z.array(get3);
|
|
216
220
|
|
|
217
221
|
// src/safari/operational-days.ts
|
|
218
222
|
var operational_days_exports = {};
|
|
219
223
|
__export(operational_days_exports, {
|
|
220
224
|
Weekday: () => Weekday,
|
|
221
|
-
me: () =>
|
|
225
|
+
me: () => me
|
|
222
226
|
});
|
|
223
227
|
var import_zod5 = require("zod");
|
|
224
228
|
var Weekday = import_zod5.z.enum([
|
|
@@ -230,18 +234,18 @@ var Weekday = import_zod5.z.enum([
|
|
|
230
234
|
"friday",
|
|
231
235
|
"saturday"
|
|
232
236
|
]);
|
|
233
|
-
var
|
|
237
|
+
var me = import_zod5.z.object({
|
|
234
238
|
operationalDays: import_zod5.z.array(Weekday).transform((arr) => Array.from(new Set(arr)))
|
|
235
239
|
});
|
|
236
240
|
|
|
237
241
|
// src/safari/vehicle-details.ts
|
|
238
242
|
var vehicle_details_exports = {};
|
|
239
243
|
__export(vehicle_details_exports, {
|
|
240
|
-
me: () =>
|
|
244
|
+
me: () => me2,
|
|
241
245
|
save: () => save
|
|
242
246
|
});
|
|
243
247
|
var import_zod6 = require("zod");
|
|
244
|
-
var
|
|
248
|
+
var me2 = import_zod6.z.object({
|
|
245
249
|
id: import_zod6.z.string(),
|
|
246
250
|
vehicleName: import_zod6.z.string().trim(),
|
|
247
251
|
registrationNumber: import_zod6.z.string().trim().toUpperCase(),
|
|
@@ -261,11 +265,11 @@ var save = import_zod6.z.object({
|
|
|
261
265
|
var driver_details_exports = {};
|
|
262
266
|
__export(driver_details_exports, {
|
|
263
267
|
create: () => create4,
|
|
264
|
-
me: () =>
|
|
265
|
-
meList: () =>
|
|
268
|
+
me: () => me3,
|
|
269
|
+
meList: () => meList
|
|
266
270
|
});
|
|
267
271
|
var import_zod7 = require("zod");
|
|
268
|
-
var
|
|
272
|
+
var me3 = import_zod7.z.object({
|
|
269
273
|
id: import_zod7.z.string(),
|
|
270
274
|
driverName: import_zod7.z.string().trim(),
|
|
271
275
|
licenseNumber: import_zod7.z.string().trim().toUpperCase(),
|
|
@@ -276,16 +280,16 @@ var create4 = import_zod7.z.object({
|
|
|
276
280
|
licenseNumber: import_zod7.z.string().trim().nonempty("required").toUpperCase(),
|
|
277
281
|
experience: import_zod7.z.coerce.number().min(1, "min")
|
|
278
282
|
});
|
|
279
|
-
var
|
|
283
|
+
var meList = import_zod7.z.array(me3);
|
|
280
284
|
|
|
281
285
|
// src/safari/business-details.ts
|
|
282
286
|
var business_details_exports = {};
|
|
283
287
|
__export(business_details_exports, {
|
|
284
288
|
create: () => create5,
|
|
285
|
-
me: () =>
|
|
289
|
+
me: () => me4
|
|
286
290
|
});
|
|
287
291
|
var import_zod8 = require("zod");
|
|
288
|
-
var
|
|
292
|
+
var me4 = import_zod8.z.object({
|
|
289
293
|
bankAccountNumber: import_zod8.z.string().trim(),
|
|
290
294
|
bankName: import_zod8.z.string().trim(),
|
|
291
295
|
accountHolderName: import_zod8.z.string().trim(),
|
|
@@ -305,11 +309,11 @@ var create5 = import_zod8.z.object({
|
|
|
305
309
|
// src/safari/personal-details.ts
|
|
306
310
|
var personal_details_exports = {};
|
|
307
311
|
__export(personal_details_exports, {
|
|
308
|
-
me: () =>
|
|
312
|
+
me: () => me5,
|
|
309
313
|
save: () => save2
|
|
310
314
|
});
|
|
311
315
|
var import_zod9 = require("zod");
|
|
312
|
-
var
|
|
316
|
+
var me5 = import_zod9.z.object({
|
|
313
317
|
adhaarNumber: import_zod9.z.string().trim(),
|
|
314
318
|
address: import_zod9.z.string().trim()
|
|
315
319
|
});
|
|
@@ -321,12 +325,12 @@ var save2 = import_zod9.z.object({
|
|
|
321
325
|
// src/safari/step.ts
|
|
322
326
|
var step_exports = {};
|
|
323
327
|
__export(step_exports, {
|
|
324
|
-
me: () =>
|
|
328
|
+
me: () => me6,
|
|
325
329
|
steps: () => steps
|
|
326
330
|
});
|
|
327
331
|
var import_zod10 = require("zod");
|
|
328
332
|
var steps = import_zod10.z.enum(["basic_info", "location"]);
|
|
329
|
-
var
|
|
333
|
+
var me6 = import_zod10.z.object({
|
|
330
334
|
email: import_zod10.z.string(),
|
|
331
335
|
name: import_zod10.z.string().trim().optional().default(""),
|
|
332
336
|
countryCode: import_zod10.z.string().optional().default("+91"),
|
package/dist/safari/index.d.cts
CHANGED
|
@@ -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-
|
|
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-QD3jMySR.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/safari/index.d.ts
CHANGED
|
@@ -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-
|
|
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-QD3jMySR.js';
|
|
2
2
|
import 'zod';
|
package/dist/safari/index.js
CHANGED
|
@@ -29,28 +29,28 @@ var get = z.object({
|
|
|
29
29
|
id: z.string(),
|
|
30
30
|
name: z.string().trim().optional().default(""),
|
|
31
31
|
countryCode: z.string().optional().default("+91"),
|
|
32
|
-
|
|
32
|
+
phone: z.string().optional().default(""),
|
|
33
33
|
isPhoneVerified: z.boolean().optional().default(false),
|
|
34
34
|
type: safeSas
|
|
35
35
|
});
|
|
36
36
|
var create = z.object({
|
|
37
37
|
name: z.string().nonempty("required").trim(),
|
|
38
38
|
countryCode: z.string().optional().default("+91"),
|
|
39
|
-
|
|
39
|
+
phone: z.string().nonempty("required"),
|
|
40
40
|
type: z.string().nonempty("required")
|
|
41
41
|
});
|
|
42
42
|
var update = z.object({
|
|
43
43
|
id: z.string().optional().default(""),
|
|
44
44
|
name: z.string().nonempty("required").trim(),
|
|
45
45
|
countryCode: z.string().optional().default("+91"),
|
|
46
|
-
|
|
46
|
+
phone: z.string().nonempty("required"),
|
|
47
47
|
type: z.string().nonempty("required")
|
|
48
48
|
});
|
|
49
49
|
var defaultBasicDetails = {
|
|
50
50
|
id: "",
|
|
51
51
|
name: "",
|
|
52
52
|
countryCode: "+91",
|
|
53
|
-
|
|
53
|
+
phone: "",
|
|
54
54
|
isPhoneVerified: false,
|
|
55
55
|
type: "leopard_safari"
|
|
56
56
|
};
|
|
@@ -135,8 +135,9 @@ var defaultLocation = {
|
|
|
135
135
|
var slot_exports = {};
|
|
136
136
|
__export(slot_exports, {
|
|
137
137
|
create: () => create3,
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
get: () => get3,
|
|
139
|
+
list: () => list,
|
|
140
|
+
remove: () => remove,
|
|
140
141
|
time12h: () => time12h,
|
|
141
142
|
update: () => update3
|
|
142
143
|
});
|
|
@@ -154,19 +155,22 @@ var time12h = z4.string().trim().regex(TIME_12H, "Use format hh:mm AM/PM").trans
|
|
|
154
155
|
var update3 = z4.object({
|
|
155
156
|
id: z4.string().trim().optional(),
|
|
156
157
|
name: z4.string().trim().nonempty("required"),
|
|
157
|
-
description: z4.string().trim().optional(),
|
|
158
|
+
description: z4.string().trim().optional().default(""),
|
|
158
159
|
startTime: time12h,
|
|
159
160
|
endTime: time12h,
|
|
160
161
|
minHour: z4.coerce.number("invalid")
|
|
161
162
|
});
|
|
162
163
|
var create3 = z4.object({
|
|
163
164
|
name: z4.string().trim().nonempty("required"),
|
|
164
|
-
description: z4.string().trim().optional(),
|
|
165
|
+
description: z4.string().trim().optional().default(""),
|
|
165
166
|
startTime: time12h,
|
|
166
167
|
endTime: time12h,
|
|
167
168
|
minHour: z4.coerce.number("invalid")
|
|
168
169
|
});
|
|
169
|
-
var
|
|
170
|
+
var remove = z4.object({
|
|
171
|
+
id: z4.string().trim()
|
|
172
|
+
});
|
|
173
|
+
var get3 = z4.object({
|
|
170
174
|
id: z4.string().trim(),
|
|
171
175
|
name: z4.string().trim().nonempty("required"),
|
|
172
176
|
description: z4.string().trim().optional(),
|
|
@@ -174,13 +178,13 @@ var me = z4.object({
|
|
|
174
178
|
endTime: z4.coerce.number(),
|
|
175
179
|
minHour: z4.coerce.number("invalid")
|
|
176
180
|
});
|
|
177
|
-
var
|
|
181
|
+
var list = z4.array(get3);
|
|
178
182
|
|
|
179
183
|
// src/safari/operational-days.ts
|
|
180
184
|
var operational_days_exports = {};
|
|
181
185
|
__export(operational_days_exports, {
|
|
182
186
|
Weekday: () => Weekday,
|
|
183
|
-
me: () =>
|
|
187
|
+
me: () => me
|
|
184
188
|
});
|
|
185
189
|
import { z as z5 } from "zod";
|
|
186
190
|
var Weekday = z5.enum([
|
|
@@ -192,18 +196,18 @@ var Weekday = z5.enum([
|
|
|
192
196
|
"friday",
|
|
193
197
|
"saturday"
|
|
194
198
|
]);
|
|
195
|
-
var
|
|
199
|
+
var me = z5.object({
|
|
196
200
|
operationalDays: z5.array(Weekday).transform((arr) => Array.from(new Set(arr)))
|
|
197
201
|
});
|
|
198
202
|
|
|
199
203
|
// src/safari/vehicle-details.ts
|
|
200
204
|
var vehicle_details_exports = {};
|
|
201
205
|
__export(vehicle_details_exports, {
|
|
202
|
-
me: () =>
|
|
206
|
+
me: () => me2,
|
|
203
207
|
save: () => save
|
|
204
208
|
});
|
|
205
209
|
import { z as z6 } from "zod";
|
|
206
|
-
var
|
|
210
|
+
var me2 = z6.object({
|
|
207
211
|
id: z6.string(),
|
|
208
212
|
vehicleName: z6.string().trim(),
|
|
209
213
|
registrationNumber: z6.string().trim().toUpperCase(),
|
|
@@ -223,11 +227,11 @@ var save = z6.object({
|
|
|
223
227
|
var driver_details_exports = {};
|
|
224
228
|
__export(driver_details_exports, {
|
|
225
229
|
create: () => create4,
|
|
226
|
-
me: () =>
|
|
227
|
-
meList: () =>
|
|
230
|
+
me: () => me3,
|
|
231
|
+
meList: () => meList
|
|
228
232
|
});
|
|
229
233
|
import { z as z7 } from "zod";
|
|
230
|
-
var
|
|
234
|
+
var me3 = z7.object({
|
|
231
235
|
id: z7.string(),
|
|
232
236
|
driverName: z7.string().trim(),
|
|
233
237
|
licenseNumber: z7.string().trim().toUpperCase(),
|
|
@@ -238,16 +242,16 @@ var create4 = z7.object({
|
|
|
238
242
|
licenseNumber: z7.string().trim().nonempty("required").toUpperCase(),
|
|
239
243
|
experience: z7.coerce.number().min(1, "min")
|
|
240
244
|
});
|
|
241
|
-
var
|
|
245
|
+
var meList = z7.array(me3);
|
|
242
246
|
|
|
243
247
|
// src/safari/business-details.ts
|
|
244
248
|
var business_details_exports = {};
|
|
245
249
|
__export(business_details_exports, {
|
|
246
250
|
create: () => create5,
|
|
247
|
-
me: () =>
|
|
251
|
+
me: () => me4
|
|
248
252
|
});
|
|
249
253
|
import { z as z8 } from "zod";
|
|
250
|
-
var
|
|
254
|
+
var me4 = z8.object({
|
|
251
255
|
bankAccountNumber: z8.string().trim(),
|
|
252
256
|
bankName: z8.string().trim(),
|
|
253
257
|
accountHolderName: z8.string().trim(),
|
|
@@ -267,11 +271,11 @@ var create5 = z8.object({
|
|
|
267
271
|
// src/safari/personal-details.ts
|
|
268
272
|
var personal_details_exports = {};
|
|
269
273
|
__export(personal_details_exports, {
|
|
270
|
-
me: () =>
|
|
274
|
+
me: () => me5,
|
|
271
275
|
save: () => save2
|
|
272
276
|
});
|
|
273
277
|
import { z as z9 } from "zod";
|
|
274
|
-
var
|
|
278
|
+
var me5 = z9.object({
|
|
275
279
|
adhaarNumber: z9.string().trim(),
|
|
276
280
|
address: z9.string().trim()
|
|
277
281
|
});
|
|
@@ -283,12 +287,12 @@ var save2 = z9.object({
|
|
|
283
287
|
// src/safari/step.ts
|
|
284
288
|
var step_exports = {};
|
|
285
289
|
__export(step_exports, {
|
|
286
|
-
me: () =>
|
|
290
|
+
me: () => me6,
|
|
287
291
|
steps: () => steps
|
|
288
292
|
});
|
|
289
293
|
import { z as z10 } from "zod";
|
|
290
294
|
var steps = z10.enum(["basic_info", "location"]);
|
|
291
|
-
var
|
|
295
|
+
var me6 = z10.object({
|
|
292
296
|
email: z10.string(),
|
|
293
297
|
name: z10.string().trim().optional().default(""),
|
|
294
298
|
countryCode: z10.string().optional().default("+91"),
|