@tripsam/main 2.0.2 → 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 +26 -0
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +15 -0
- package/package.json +1 -1
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
|
|
@@ -23,6 +33,7 @@ __export(index_exports, {
|
|
|
23
33
|
Auth: () => auth_exports,
|
|
24
34
|
Location: () => location_exports,
|
|
25
35
|
ResetPassword: () => reset_password_exports,
|
|
36
|
+
Safari: () => safari_exports,
|
|
26
37
|
Signup: () => signup_exports,
|
|
27
38
|
User: () => user_exports
|
|
28
39
|
});
|
|
@@ -142,11 +153,26 @@ var location = import_zod5.z.object({
|
|
|
142
153
|
distanceKm: import_zod5.z.coerce.number()
|
|
143
154
|
}))
|
|
144
155
|
});
|
|
156
|
+
|
|
157
|
+
// src/safari.ts
|
|
158
|
+
var safari_exports = {};
|
|
159
|
+
__export(safari_exports, {
|
|
160
|
+
safariSearchSchema: () => safariSearchSchema
|
|
161
|
+
});
|
|
162
|
+
var import_zod6 = __toESM(require("zod"), 1);
|
|
163
|
+
var safariSearchSchema = import_zod6.default.object({
|
|
164
|
+
locationId: import_zod6.default.string().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("")
|
|
169
|
+
});
|
|
145
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
146
171
|
0 && (module.exports = {
|
|
147
172
|
Auth,
|
|
148
173
|
Location,
|
|
149
174
|
ResetPassword,
|
|
175
|
+
Safari,
|
|
150
176
|
Signup,
|
|
151
177
|
User
|
|
152
178
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import z$1, { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const checkMe: z.ZodObject<{
|
|
4
4
|
email: z.ZodEmail;
|
|
@@ -133,4 +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
|
-
|
|
136
|
+
declare const safariSearchSchema: z$1.ZodObject<{
|
|
137
|
+
locationId: z$1.ZodOptional<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>>;
|
|
142
|
+
}, z$1.core.$strip>;
|
|
143
|
+
type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
144
|
+
|
|
145
|
+
type safari_SafariSearch = SafariSearch;
|
|
146
|
+
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
147
|
+
declare namespace safari {
|
|
148
|
+
export { type safari_SafariSearch as SafariSearch, safari_safariSearchSchema as safariSearchSchema };
|
|
149
|
+
}
|
|
150
|
+
|
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import z$1, { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const checkMe: z.ZodObject<{
|
|
4
4
|
email: z.ZodEmail;
|
|
@@ -133,4 +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
|
-
|
|
136
|
+
declare const safariSearchSchema: z$1.ZodObject<{
|
|
137
|
+
locationId: z$1.ZodOptional<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>>;
|
|
142
|
+
}, z$1.core.$strip>;
|
|
143
|
+
type SafariSearch = z$1.infer<typeof safariSearchSchema>;
|
|
144
|
+
|
|
145
|
+
type safari_SafariSearch = SafariSearch;
|
|
146
|
+
declare const safari_safariSearchSchema: typeof safariSearchSchema;
|
|
147
|
+
declare namespace safari {
|
|
148
|
+
export { type safari_SafariSearch as SafariSearch, safari_safariSearchSchema as safariSearchSchema };
|
|
149
|
+
}
|
|
150
|
+
|
|
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
|
@@ -118,10 +118,25 @@ var location = z5.object({
|
|
|
118
118
|
distanceKm: z5.coerce.number()
|
|
119
119
|
}))
|
|
120
120
|
});
|
|
121
|
+
|
|
122
|
+
// src/safari.ts
|
|
123
|
+
var safari_exports = {};
|
|
124
|
+
__export(safari_exports, {
|
|
125
|
+
safariSearchSchema: () => safariSearchSchema
|
|
126
|
+
});
|
|
127
|
+
import z6 from "zod";
|
|
128
|
+
var safariSearchSchema = z6.object({
|
|
129
|
+
locationId: z6.string().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("")
|
|
134
|
+
});
|
|
121
135
|
export {
|
|
122
136
|
auth_exports as Auth,
|
|
123
137
|
location_exports as Location,
|
|
124
138
|
reset_password_exports as ResetPassword,
|
|
139
|
+
safari_exports as Safari,
|
|
125
140
|
signup_exports as Signup,
|
|
126
141
|
user_exports as User
|
|
127
142
|
};
|