@tripsam/onboarding 1.0.9 → 1.0.10

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
@@ -58,7 +58,8 @@ var me = import_zod2.z.object({
58
58
  name: import_zod2.z.string().trim().optional().default(""),
59
59
  countryCode: import_zod2.z.string().optional().default("+91"),
60
60
  phoneNumber: import_zod2.z.string().optional().default(""),
61
- isPhoneVerified: import_zod2.z.boolean().optional().default(false)
61
+ isPhoneVerified: import_zod2.z.boolean().optional().default(false),
62
+ completed: import_zod2.z.boolean()
62
63
  });
63
64
  var update = import_zod2.z.object({
64
65
  name: import_zod2.z.string().nonempty("required").trim(),
@@ -69,8 +70,10 @@ var update = import_zod2.z.object({
69
70
  // src/location.ts
70
71
  var location_exports = {};
71
72
  __export(location_exports, {
73
+ get: () => get,
72
74
  minimum: () => minimum,
73
75
  minimumList: () => minimumList,
76
+ save: () => save,
74
77
  suggest: () => suggest
75
78
  });
76
79
  var import_zod3 = require("zod");
@@ -100,6 +103,33 @@ var minimum = import_zod3.z.object({
100
103
  distanceKm: import_zod3.z.coerce.number()
101
104
  }))
102
105
  });
106
+ var save = import_zod3.z.object({
107
+ locationId: import_zod3.z.string().optional(),
108
+ safariLocation: import_zod3.z.string(),
109
+ pickupLocation: import_zod3.z.string(),
110
+ landmarkId1: import_zod3.z.string().optional(),
111
+ distanceFromLandmark1: import_zod3.z.string().optional(),
112
+ landmarkId2: import_zod3.z.string().optional(),
113
+ distanceFromLandmark2: import_zod3.z.string().optional()
114
+ });
115
+ var get = import_zod3.z.object({
116
+ location: minimum,
117
+ safariLocation: import_zod3.z.string(),
118
+ pickupLocation: import_zod3.z.string(),
119
+ landmark1: {
120
+ id: import_zod3.z.string(),
121
+ label: import_zod3.z.string(),
122
+ type: import_zod3.z.string().optional().default(""),
123
+ distanceKm: import_zod3.z.coerce.number()
124
+ },
125
+ landmark2: {
126
+ id: import_zod3.z.string(),
127
+ label: import_zod3.z.string(),
128
+ type: import_zod3.z.string().optional().default(""),
129
+ distanceKm: import_zod3.z.coerce.number()
130
+ },
131
+ new: import_zod3.z.boolean()
132
+ });
103
133
  var minimumList = import_zod3.z.array(minimum);
104
134
  // Annotate the CommonJS export names for ESM import in node:
105
135
  0 && (module.exports = {
package/dist/index.d.cts CHANGED
@@ -31,6 +31,7 @@ declare const me: z.ZodObject<{
31
31
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
32
  phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
33
33
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
+ completed: z.ZodBoolean;
34
35
  }, z.core.$strip>;
35
36
  declare const update: z.ZodObject<{
36
37
  name: z.ZodString;
@@ -74,6 +75,52 @@ declare const minimum: z.ZodObject<{
74
75
  distanceKm: z.ZodCoercedNumber<unknown>;
75
76
  }, z.core.$strip>>;
76
77
  }, z.core.$strip>;
78
+ declare const save: z.ZodObject<{
79
+ locationId: z.ZodOptional<z.ZodString>;
80
+ safariLocation: z.ZodString;
81
+ pickupLocation: z.ZodString;
82
+ landmarkId1: z.ZodOptional<z.ZodString>;
83
+ distanceFromLandmark1: z.ZodOptional<z.ZodString>;
84
+ landmarkId2: z.ZodOptional<z.ZodString>;
85
+ distanceFromLandmark2: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>;
87
+ declare const get: z.ZodObject<{
88
+ location: z.ZodObject<{
89
+ id: z.ZodString;
90
+ name: z.ZodString;
91
+ area: z.ZodString;
92
+ startLat: z.ZodCoercedNumber<unknown>;
93
+ startLng: z.ZodCoercedNumber<unknown>;
94
+ endLat: z.ZodCoercedNumber<unknown>;
95
+ endLng: z.ZodCoercedNumber<unknown>;
96
+ address: z.ZodObject<{
97
+ city: z.ZodString;
98
+ state: z.ZodString;
99
+ }, z.core.$strip>;
100
+ metadata: z.ZodObject<{}, z.core.$strip>;
101
+ landmarks: z.ZodArray<z.ZodObject<{
102
+ id: z.ZodString;
103
+ label: z.ZodString;
104
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
105
+ distanceKm: z.ZodCoercedNumber<unknown>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>;
108
+ safariLocation: z.ZodString;
109
+ pickupLocation: z.ZodString;
110
+ landmark1: {
111
+ id: z.ZodString;
112
+ label: z.ZodString;
113
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
114
+ distanceKm: z.ZodCoercedNumber<unknown>;
115
+ };
116
+ landmark2: {
117
+ id: z.ZodString;
118
+ label: z.ZodString;
119
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
120
+ distanceKm: z.ZodCoercedNumber<unknown>;
121
+ };
122
+ new: z.ZodBoolean;
123
+ }, z.core.$strip>;
77
124
  declare const minimumList: z.ZodArray<z.ZodObject<{
78
125
  id: z.ZodString;
79
126
  name: z.ZodString;
@@ -101,11 +148,13 @@ type SafeSuggest = z.output<typeof suggest>;
101
148
  type location_SafeMinimum = SafeMinimum;
102
149
  type location_SafeMinimumList = SafeMinimumList;
103
150
  type location_SafeSuggest = SafeSuggest;
151
+ declare const location_get: typeof get;
104
152
  declare const location_minimum: typeof minimum;
105
153
  declare const location_minimumList: typeof minimumList;
154
+ declare const location_save: typeof save;
106
155
  declare const location_suggest: typeof suggest;
107
156
  declare namespace location {
108
- export { type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_minimumList as minimumList, location_suggest as suggest };
157
+ export { type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSuggest as SafeSuggest, location_get as get, location_minimum as minimum, location_minimumList as minimumList, location_save as save, location_suggest as suggest };
109
158
  }
110
159
 
111
160
  export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.d.ts CHANGED
@@ -31,6 +31,7 @@ declare const me: z.ZodObject<{
31
31
  countryCode: z.ZodDefault<z.ZodOptional<z.ZodString>>;
32
32
  phoneNumber: z.ZodDefault<z.ZodOptional<z.ZodString>>;
33
33
  isPhoneVerified: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
34
+ completed: z.ZodBoolean;
34
35
  }, z.core.$strip>;
35
36
  declare const update: z.ZodObject<{
36
37
  name: z.ZodString;
@@ -74,6 +75,52 @@ declare const minimum: z.ZodObject<{
74
75
  distanceKm: z.ZodCoercedNumber<unknown>;
75
76
  }, z.core.$strip>>;
76
77
  }, z.core.$strip>;
78
+ declare const save: z.ZodObject<{
79
+ locationId: z.ZodOptional<z.ZodString>;
80
+ safariLocation: z.ZodString;
81
+ pickupLocation: z.ZodString;
82
+ landmarkId1: z.ZodOptional<z.ZodString>;
83
+ distanceFromLandmark1: z.ZodOptional<z.ZodString>;
84
+ landmarkId2: z.ZodOptional<z.ZodString>;
85
+ distanceFromLandmark2: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>;
87
+ declare const get: z.ZodObject<{
88
+ location: z.ZodObject<{
89
+ id: z.ZodString;
90
+ name: z.ZodString;
91
+ area: z.ZodString;
92
+ startLat: z.ZodCoercedNumber<unknown>;
93
+ startLng: z.ZodCoercedNumber<unknown>;
94
+ endLat: z.ZodCoercedNumber<unknown>;
95
+ endLng: z.ZodCoercedNumber<unknown>;
96
+ address: z.ZodObject<{
97
+ city: z.ZodString;
98
+ state: z.ZodString;
99
+ }, z.core.$strip>;
100
+ metadata: z.ZodObject<{}, z.core.$strip>;
101
+ landmarks: z.ZodArray<z.ZodObject<{
102
+ id: z.ZodString;
103
+ label: z.ZodString;
104
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
105
+ distanceKm: z.ZodCoercedNumber<unknown>;
106
+ }, z.core.$strip>>;
107
+ }, z.core.$strip>;
108
+ safariLocation: z.ZodString;
109
+ pickupLocation: z.ZodString;
110
+ landmark1: {
111
+ id: z.ZodString;
112
+ label: z.ZodString;
113
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
114
+ distanceKm: z.ZodCoercedNumber<unknown>;
115
+ };
116
+ landmark2: {
117
+ id: z.ZodString;
118
+ label: z.ZodString;
119
+ type: z.ZodDefault<z.ZodOptional<z.ZodString>>;
120
+ distanceKm: z.ZodCoercedNumber<unknown>;
121
+ };
122
+ new: z.ZodBoolean;
123
+ }, z.core.$strip>;
77
124
  declare const minimumList: z.ZodArray<z.ZodObject<{
78
125
  id: z.ZodString;
79
126
  name: z.ZodString;
@@ -101,11 +148,13 @@ type SafeSuggest = z.output<typeof suggest>;
101
148
  type location_SafeMinimum = SafeMinimum;
102
149
  type location_SafeMinimumList = SafeMinimumList;
103
150
  type location_SafeSuggest = SafeSuggest;
151
+ declare const location_get: typeof get;
104
152
  declare const location_minimum: typeof minimum;
105
153
  declare const location_minimumList: typeof minimumList;
154
+ declare const location_save: typeof save;
106
155
  declare const location_suggest: typeof suggest;
107
156
  declare namespace location {
108
- export { type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSuggest as SafeSuggest, location_minimum as minimum, location_minimumList as minimumList, location_suggest as suggest };
157
+ export { type location_SafeMinimum as SafeMinimum, type location_SafeMinimumList as SafeMinimumList, type location_SafeSuggest as SafeSuggest, location_get as get, location_minimum as minimum, location_minimumList as minimumList, location_save as save, location_suggest as suggest };
109
158
  }
110
159
 
111
160
  export { basicDetails as BasicDetails, location as Location, verifyEmail as VerifyEmail };
package/dist/index.js CHANGED
@@ -36,7 +36,8 @@ var me = z2.object({
36
36
  name: z2.string().trim().optional().default(""),
37
37
  countryCode: z2.string().optional().default("+91"),
38
38
  phoneNumber: z2.string().optional().default(""),
39
- isPhoneVerified: z2.boolean().optional().default(false)
39
+ isPhoneVerified: z2.boolean().optional().default(false),
40
+ completed: z2.boolean()
40
41
  });
41
42
  var update = z2.object({
42
43
  name: z2.string().nonempty("required").trim(),
@@ -47,8 +48,10 @@ var update = z2.object({
47
48
  // src/location.ts
48
49
  var location_exports = {};
49
50
  __export(location_exports, {
51
+ get: () => get,
50
52
  minimum: () => minimum,
51
53
  minimumList: () => minimumList,
54
+ save: () => save,
52
55
  suggest: () => suggest
53
56
  });
54
57
  import { z as z3 } from "zod";
@@ -78,6 +81,33 @@ var minimum = z3.object({
78
81
  distanceKm: z3.coerce.number()
79
82
  }))
80
83
  });
84
+ var save = z3.object({
85
+ locationId: z3.string().optional(),
86
+ safariLocation: z3.string(),
87
+ pickupLocation: z3.string(),
88
+ landmarkId1: z3.string().optional(),
89
+ distanceFromLandmark1: z3.string().optional(),
90
+ landmarkId2: z3.string().optional(),
91
+ distanceFromLandmark2: z3.string().optional()
92
+ });
93
+ var get = z3.object({
94
+ location: minimum,
95
+ safariLocation: z3.string(),
96
+ pickupLocation: z3.string(),
97
+ landmark1: {
98
+ id: z3.string(),
99
+ label: z3.string(),
100
+ type: z3.string().optional().default(""),
101
+ distanceKm: z3.coerce.number()
102
+ },
103
+ landmark2: {
104
+ id: z3.string(),
105
+ label: z3.string(),
106
+ type: z3.string().optional().default(""),
107
+ distanceKm: z3.coerce.number()
108
+ },
109
+ new: z3.boolean()
110
+ });
81
111
  var minimumList = z3.array(minimum);
82
112
  export {
83
113
  basic_details_exports as BasicDetails,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripsam/onboarding",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",