@tripsam/main 2.0.3 → 2.0.4
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 +6 -8
- package/dist/index.d.cts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +6 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -157,17 +157,15 @@ var location = import_zod5.z.object({
|
|
|
157
157
|
// src/safari.ts
|
|
158
158
|
var safari_exports = {};
|
|
159
159
|
__export(safari_exports, {
|
|
160
|
-
|
|
160
|
+
safariSearchSchema: () => safariSearchSchema
|
|
161
161
|
});
|
|
162
162
|
var import_zod6 = __toESM(require("zod"), 1);
|
|
163
|
-
var
|
|
163
|
+
var safariSearchSchema = import_zod6.default.object({
|
|
164
164
|
locationId: import_zod6.default.string().optional(),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}).optional().default({ adults: 2, kids: 1, infants: 0 }),
|
|
170
|
-
date: import_zod6.default.string().default("").optional()
|
|
165
|
+
adults: import_zod6.default.number().min(1).default(2),
|
|
166
|
+
kids: import_zod6.default.number().min(0).default(1),
|
|
167
|
+
infants: import_zod6.default.number().min(0).default(0),
|
|
168
|
+
date: import_zod6.default.string().optional().default("")
|
|
171
169
|
});
|
|
172
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
173
171
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -133,21 +133,19 @@ declare namespace location$1 {
|
|
|
133
133
|
export { type location$1_SafeLocation as SafeLocation, type location$1_SafeSuggest as SafeSuggest, location$1_location as location, location$1_suggest as suggest };
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
declare const
|
|
136
|
+
declare const safariSearchSchema: z$1.ZodObject<{
|
|
137
137
|
locationId: z$1.ZodOptional<z$1.ZodString>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}, z$1.core.$strip>>>;
|
|
143
|
-
date: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
|
|
138
|
+
adults: z$1.ZodDefault<z$1.ZodNumber>;
|
|
139
|
+
kids: z$1.ZodDefault<z$1.ZodNumber>;
|
|
140
|
+
infants: z$1.ZodDefault<z$1.ZodNumber>;
|
|
141
|
+
date: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
144
142
|
}, z$1.core.$strip>;
|
|
145
|
-
type SafariSearch = z$1.infer<typeof
|
|
143
|
+
type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
146
144
|
|
|
147
145
|
type safari_SafariSearch = SafariSearch;
|
|
148
|
-
declare const
|
|
146
|
+
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
149
147
|
declare namespace safari {
|
|
150
|
-
export { type safari_SafariSearch as SafariSearch,
|
|
148
|
+
export { type safari_SafariSearch as SafariSearch, safari_safariSearchSchema as safariSearchSchema };
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, safari as Safari, signup as Signup, user as User };
|
package/dist/index.d.ts
CHANGED
|
@@ -133,21 +133,19 @@ declare namespace location$1 {
|
|
|
133
133
|
export { type location$1_SafeLocation as SafeLocation, type location$1_SafeSuggest as SafeSuggest, location$1_location as location, location$1_suggest as suggest };
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
declare const
|
|
136
|
+
declare const safariSearchSchema: z$1.ZodObject<{
|
|
137
137
|
locationId: z$1.ZodOptional<z$1.ZodString>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}, z$1.core.$strip>>>;
|
|
143
|
-
date: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
|
|
138
|
+
adults: z$1.ZodDefault<z$1.ZodNumber>;
|
|
139
|
+
kids: z$1.ZodDefault<z$1.ZodNumber>;
|
|
140
|
+
infants: z$1.ZodDefault<z$1.ZodNumber>;
|
|
141
|
+
date: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodString>>;
|
|
144
142
|
}, z$1.core.$strip>;
|
|
145
|
-
type SafariSearch = z$1.infer<typeof
|
|
143
|
+
type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
146
144
|
|
|
147
145
|
type safari_SafariSearch = SafariSearch;
|
|
148
|
-
declare const
|
|
146
|
+
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
149
147
|
declare namespace safari {
|
|
150
|
-
export { type safari_SafariSearch as SafariSearch,
|
|
148
|
+
export { type safari_SafariSearch as SafariSearch, safari_safariSearchSchema as safariSearchSchema };
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, safari as Safari, signup as Signup, user as User };
|
package/dist/index.js
CHANGED
|
@@ -122,17 +122,15 @@ var location = z5.object({
|
|
|
122
122
|
// src/safari.ts
|
|
123
123
|
var safari_exports = {};
|
|
124
124
|
__export(safari_exports, {
|
|
125
|
-
|
|
125
|
+
safariSearchSchema: () => safariSearchSchema
|
|
126
126
|
});
|
|
127
127
|
import z6 from "zod";
|
|
128
|
-
var
|
|
128
|
+
var safariSearchSchema = z6.object({
|
|
129
129
|
locationId: z6.string().optional(),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}).optional().default({ adults: 2, kids: 1, infants: 0 }),
|
|
135
|
-
date: z6.string().default("").optional()
|
|
130
|
+
adults: z6.number().min(1).default(2),
|
|
131
|
+
kids: z6.number().min(0).default(1),
|
|
132
|
+
infants: z6.number().min(0).default(0),
|
|
133
|
+
date: z6.string().optional().default("")
|
|
136
134
|
});
|
|
137
135
|
export {
|
|
138
136
|
auth_exports as Auth,
|