@tripsam/main 2.0.2 → 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 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,28 @@ 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
+ 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
+ });
145
172
  // Annotate the CommonJS export names for ESM import in node:
146
173
  0 && (module.exports = {
147
174
  Auth,
148
175
  Location,
149
176
  ResetPassword,
177
+ Safari,
150
178
  Signup,
151
179
  User
152
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;
@@ -133,4 +133,21 @@ 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
- export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, signup as Signup, user as User };
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 };
151
+ }
152
+
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;
@@ -133,4 +133,21 @@ 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
- export { auth as Auth, location$1 as Location, resetPassword as ResetPassword, signup as Signup, user as User };
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 };
151
+ }
152
+
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
@@ -118,10 +118,27 @@ 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
+ 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
+ });
121
137
  export {
122
138
  auth_exports as Auth,
123
139
  location_exports as Location,
124
140
  reset_password_exports as ResetPassword,
141
+ safari_exports as Safari,
125
142
  signup_exports as Signup,
126
143
  user_exports as User
127
144
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/main",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",