@tripsam/main 2.0.1 → 2.0.2

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 CHANGED
@@ -112,6 +112,7 @@ var verifyOtp3 = import_zod4.z.object({
112
112
  // src/location.ts
113
113
  var location_exports = {};
114
114
  __export(location_exports, {
115
+ location: () => location,
115
116
  suggest: () => suggest
116
117
  });
117
118
  var import_zod5 = require("zod");
@@ -121,6 +122,26 @@ var suggest = import_zod5.z.object({
121
122
  lng: import_zod5.z.coerce.number().optional(),
122
123
  limit: import_zod5.z.coerce.number().int().min(1).max(50).default(20)
123
124
  });
125
+ var location = import_zod5.z.object({
126
+ id: import_zod5.z.string(),
127
+ name: import_zod5.z.string(),
128
+ area: import_zod5.z.string(),
129
+ startLat: import_zod5.z.coerce.number(),
130
+ startLng: import_zod5.z.coerce.number(),
131
+ endLat: import_zod5.z.coerce.number(),
132
+ endLng: import_zod5.z.coerce.number(),
133
+ address: import_zod5.z.object({
134
+ city: import_zod5.z.string(),
135
+ state: import_zod5.z.string()
136
+ }),
137
+ metadata: import_zod5.z.object(),
138
+ landmarks: import_zod5.z.array(import_zod5.z.object({
139
+ id: import_zod5.z.string(),
140
+ label: import_zod5.z.string(),
141
+ type: import_zod5.z.string().optional().default(""),
142
+ distanceKm: import_zod5.z.coerce.number()
143
+ }))
144
+ });
124
145
  // Annotate the CommonJS export names for ESM import in node:
125
146
  0 && (module.exports = {
126
147
  Auth,
package/dist/index.d.cts CHANGED
@@ -102,12 +102,35 @@ 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 location_SafeSuggest = SafeSuggest;
108
- declare const location_suggest: typeof suggest;
109
- declare namespace location {
110
- export { type location_SafeSuggest as SafeSuggest, location_suggest as suggest };
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 };
111
134
  }
112
135
 
113
- export { auth as Auth, location as Location, resetPassword as ResetPassword, signup as Signup, user as User };
136
+ export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, signup as Signup, user as User };
package/dist/index.d.ts CHANGED
@@ -102,12 +102,35 @@ 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 location_SafeSuggest = SafeSuggest;
108
- declare const location_suggest: typeof suggest;
109
- declare namespace location {
110
- export { type location_SafeSuggest as SafeSuggest, location_suggest as suggest };
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 };
111
134
  }
112
135
 
113
- export { auth as Auth, location as Location, resetPassword as ResetPassword, signup as Signup, user as User };
136
+ export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, 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,6 +98,26 @@ 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
+ });
100
121
  export {
101
122
  auth_exports as Auth,
102
123
  location_exports as Location,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/main",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
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": ["dist/"],
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": { "access": "public" }
31
- }
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
+ }