@tripsam/main 2.0.1 → 2.0.3
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 +49 -0
- package/dist/index.d.cts +46 -6
- package/dist/index.d.ts +46 -6
- package/dist/index.js +38 -0
- package/package.json +8 -4
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
|
});
|
|
@@ -112,6 +123,7 @@ var verifyOtp3 = import_zod4.z.object({
|
|
|
112
123
|
// src/location.ts
|
|
113
124
|
var location_exports = {};
|
|
114
125
|
__export(location_exports, {
|
|
126
|
+
location: () => location,
|
|
115
127
|
suggest: () => suggest
|
|
116
128
|
});
|
|
117
129
|
var import_zod5 = require("zod");
|
|
@@ -121,11 +133,48 @@ var suggest = import_zod5.z.object({
|
|
|
121
133
|
lng: import_zod5.z.coerce.number().optional(),
|
|
122
134
|
limit: import_zod5.z.coerce.number().int().min(1).max(50).default(20)
|
|
123
135
|
});
|
|
136
|
+
var location = import_zod5.z.object({
|
|
137
|
+
id: import_zod5.z.string(),
|
|
138
|
+
name: import_zod5.z.string(),
|
|
139
|
+
area: import_zod5.z.string(),
|
|
140
|
+
startLat: import_zod5.z.coerce.number(),
|
|
141
|
+
startLng: import_zod5.z.coerce.number(),
|
|
142
|
+
endLat: import_zod5.z.coerce.number(),
|
|
143
|
+
endLng: import_zod5.z.coerce.number(),
|
|
144
|
+
address: import_zod5.z.object({
|
|
145
|
+
city: import_zod5.z.string(),
|
|
146
|
+
state: import_zod5.z.string()
|
|
147
|
+
}),
|
|
148
|
+
metadata: import_zod5.z.object(),
|
|
149
|
+
landmarks: import_zod5.z.array(import_zod5.z.object({
|
|
150
|
+
id: import_zod5.z.string(),
|
|
151
|
+
label: import_zod5.z.string(),
|
|
152
|
+
type: import_zod5.z.string().optional().default(""),
|
|
153
|
+
distanceKm: import_zod5.z.coerce.number()
|
|
154
|
+
}))
|
|
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
|
+
guest: import_zod6.default.object({
|
|
166
|
+
adults: import_zod6.default.number().default(2),
|
|
167
|
+
kids: import_zod6.default.number().default(1),
|
|
168
|
+
infants: import_zod6.default.number().default(0)
|
|
169
|
+
}).optional().default({ adults: 2, kids: 1, infants: 0 }),
|
|
170
|
+
date: import_zod6.default.string().default("").optional()
|
|
171
|
+
});
|
|
124
172
|
// Annotate the CommonJS export names for ESM import in node:
|
|
125
173
|
0 && (module.exports = {
|
|
126
174
|
Auth,
|
|
127
175
|
Location,
|
|
128
176
|
ResetPassword,
|
|
177
|
+
Safari,
|
|
129
178
|
Signup,
|
|
130
179
|
User
|
|
131
180
|
});
|
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;
|
|
@@ -102,12 +102,52 @@ declare const suggest: z.ZodObject<{
|
|
|
102
102
|
lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
103
103
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
104
104
|
}, z.core.$strip>;
|
|
105
|
+
declare const location: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
area: z.ZodString;
|
|
109
|
+
startLat: z.ZodCoercedNumber<unknown>;
|
|
110
|
+
startLng: z.ZodCoercedNumber<unknown>;
|
|
111
|
+
endLat: z.ZodCoercedNumber<unknown>;
|
|
112
|
+
endLng: z.ZodCoercedNumber<unknown>;
|
|
113
|
+
address: z.ZodObject<{
|
|
114
|
+
city: z.ZodString;
|
|
115
|
+
state: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
118
|
+
landmarks: z.ZodArray<z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
label: z.ZodString;
|
|
121
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
122
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
type SafeLocation = z.output<typeof location>;
|
|
105
126
|
type SafeSuggest = z.output<typeof suggest>;
|
|
106
127
|
|
|
107
|
-
type
|
|
108
|
-
|
|
109
|
-
declare
|
|
110
|
-
|
|
128
|
+
type location$1_SafeLocation = SafeLocation;
|
|
129
|
+
type location$1_SafeSuggest = SafeSuggest;
|
|
130
|
+
declare const location$1_location: typeof location;
|
|
131
|
+
declare const location$1_suggest: typeof suggest;
|
|
132
|
+
declare namespace location$1 {
|
|
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
|
+
}
|
|
135
|
+
|
|
136
|
+
declare const SafariSearchSchema: z$1.ZodObject<{
|
|
137
|
+
locationId: z$1.ZodOptional<z$1.ZodString>;
|
|
138
|
+
guest: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodObject<{
|
|
139
|
+
adults: z$1.ZodDefault<z$1.ZodNumber>;
|
|
140
|
+
kids: z$1.ZodDefault<z$1.ZodNumber>;
|
|
141
|
+
infants: z$1.ZodDefault<z$1.ZodNumber>;
|
|
142
|
+
}, z$1.core.$strip>>>;
|
|
143
|
+
date: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
|
|
144
|
+
}, z$1.core.$strip>;
|
|
145
|
+
type SafariSearch = z$1.infer<typeof SafariSearchSchema>;
|
|
146
|
+
|
|
147
|
+
type safari_SafariSearch = SafariSearch;
|
|
148
|
+
declare const safari_SafariSearchSchema: typeof SafariSearchSchema;
|
|
149
|
+
declare namespace safari {
|
|
150
|
+
export { type safari_SafariSearch as SafariSearch, safari_SafariSearchSchema as SafariSearchSchema };
|
|
111
151
|
}
|
|
112
152
|
|
|
113
|
-
export { auth as Auth, location as Location, resetPassword as ResetPassword, signup as Signup, user as User };
|
|
153
|
+
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;
|
|
@@ -102,12 +102,52 @@ declare const suggest: z.ZodObject<{
|
|
|
102
102
|
lng: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
103
103
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
104
104
|
}, z.core.$strip>;
|
|
105
|
+
declare const location: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
area: z.ZodString;
|
|
109
|
+
startLat: z.ZodCoercedNumber<unknown>;
|
|
110
|
+
startLng: z.ZodCoercedNumber<unknown>;
|
|
111
|
+
endLat: z.ZodCoercedNumber<unknown>;
|
|
112
|
+
endLng: z.ZodCoercedNumber<unknown>;
|
|
113
|
+
address: z.ZodObject<{
|
|
114
|
+
city: z.ZodString;
|
|
115
|
+
state: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
metadata: z.ZodObject<{}, z.core.$strip>;
|
|
118
|
+
landmarks: z.ZodArray<z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
label: z.ZodString;
|
|
121
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
122
|
+
distanceKm: z.ZodCoercedNumber<unknown>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
type SafeLocation = z.output<typeof location>;
|
|
105
126
|
type SafeSuggest = z.output<typeof suggest>;
|
|
106
127
|
|
|
107
|
-
type
|
|
108
|
-
|
|
109
|
-
declare
|
|
110
|
-
|
|
128
|
+
type location$1_SafeLocation = SafeLocation;
|
|
129
|
+
type location$1_SafeSuggest = SafeSuggest;
|
|
130
|
+
declare const location$1_location: typeof location;
|
|
131
|
+
declare const location$1_suggest: typeof suggest;
|
|
132
|
+
declare namespace location$1 {
|
|
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
|
+
}
|
|
135
|
+
|
|
136
|
+
declare const SafariSearchSchema: z$1.ZodObject<{
|
|
137
|
+
locationId: z$1.ZodOptional<z$1.ZodString>;
|
|
138
|
+
guest: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodObject<{
|
|
139
|
+
adults: z$1.ZodDefault<z$1.ZodNumber>;
|
|
140
|
+
kids: z$1.ZodDefault<z$1.ZodNumber>;
|
|
141
|
+
infants: z$1.ZodDefault<z$1.ZodNumber>;
|
|
142
|
+
}, z$1.core.$strip>>>;
|
|
143
|
+
date: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodString>>;
|
|
144
|
+
}, z$1.core.$strip>;
|
|
145
|
+
type SafariSearch = z$1.infer<typeof SafariSearchSchema>;
|
|
146
|
+
|
|
147
|
+
type safari_SafariSearch = SafariSearch;
|
|
148
|
+
declare const safari_SafariSearchSchema: typeof SafariSearchSchema;
|
|
149
|
+
declare namespace safari {
|
|
150
|
+
export { type safari_SafariSearch as SafariSearch, safari_SafariSearchSchema as SafariSearchSchema };
|
|
111
151
|
}
|
|
112
152
|
|
|
113
|
-
export { auth as Auth, location as Location, resetPassword as ResetPassword, signup as Signup, user as User };
|
|
153
|
+
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
|
@@ -88,6 +88,7 @@ var verifyOtp3 = z4.object({
|
|
|
88
88
|
// src/location.ts
|
|
89
89
|
var location_exports = {};
|
|
90
90
|
__export(location_exports, {
|
|
91
|
+
location: () => location,
|
|
91
92
|
suggest: () => suggest
|
|
92
93
|
});
|
|
93
94
|
import { z as z5 } from "zod";
|
|
@@ -97,10 +98,47 @@ var suggest = z5.object({
|
|
|
97
98
|
lng: z5.coerce.number().optional(),
|
|
98
99
|
limit: z5.coerce.number().int().min(1).max(50).default(20)
|
|
99
100
|
});
|
|
101
|
+
var location = z5.object({
|
|
102
|
+
id: z5.string(),
|
|
103
|
+
name: z5.string(),
|
|
104
|
+
area: z5.string(),
|
|
105
|
+
startLat: z5.coerce.number(),
|
|
106
|
+
startLng: z5.coerce.number(),
|
|
107
|
+
endLat: z5.coerce.number(),
|
|
108
|
+
endLng: z5.coerce.number(),
|
|
109
|
+
address: z5.object({
|
|
110
|
+
city: z5.string(),
|
|
111
|
+
state: z5.string()
|
|
112
|
+
}),
|
|
113
|
+
metadata: z5.object(),
|
|
114
|
+
landmarks: z5.array(z5.object({
|
|
115
|
+
id: z5.string(),
|
|
116
|
+
label: z5.string(),
|
|
117
|
+
type: z5.string().optional().default(""),
|
|
118
|
+
distanceKm: z5.coerce.number()
|
|
119
|
+
}))
|
|
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
|
+
guest: z6.object({
|
|
131
|
+
adults: z6.number().default(2),
|
|
132
|
+
kids: z6.number().default(1),
|
|
133
|
+
infants: z6.number().default(0)
|
|
134
|
+
}).optional().default({ adults: 2, kids: 1, infants: 0 }),
|
|
135
|
+
date: z6.string().default("").optional()
|
|
136
|
+
});
|
|
100
137
|
export {
|
|
101
138
|
auth_exports as Auth,
|
|
102
139
|
location_exports as Location,
|
|
103
140
|
reset_password_exports as ResetPassword,
|
|
141
|
+
safari_exports as Safari,
|
|
104
142
|
signup_exports as Signup,
|
|
105
143
|
user_exports as User
|
|
106
144
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tripsam/main",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"require": "./dist/index.cjs"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/"
|
|
17
|
+
],
|
|
16
18
|
"scripts": {
|
|
17
19
|
"build": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean --splitting false",
|
|
18
20
|
"clean": "rimraf dist",
|
|
@@ -27,5 +29,7 @@
|
|
|
27
29
|
"rimraf": "^5.0.0",
|
|
28
30
|
"zod": "^4.1.11"
|
|
29
31
|
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|