@lyxa.ai/types 1.4.343 → 1.4.344

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/README.md CHANGED
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.343
25
+ Version: 1.4.344
26
26
 
27
27
  ## Dependencies
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.343",
3
+ "version": "1.4.344",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -30,9 +30,9 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
30
30
  searchFields?: string[] | undefined;
31
31
  } | undefined;
32
32
  }, {
33
+ sort?: Record<string, 1 | -1> | undefined;
33
34
  size?: number | undefined;
34
35
  page?: number | undefined;
35
- sort?: Record<string, 1 | -1> | undefined;
36
36
  query?: Record<string, any> | undefined;
37
37
  select?: Record<string, 0 | 1> | undefined;
38
38
  populate?: any;
@@ -45,9 +45,9 @@ export type FilterDTO = z.infer<typeof FilterSchema>;
45
45
  export declare const StringSchema: z.ZodString;
46
46
  export declare const AddressSchema: z.ZodObject<{
47
47
  address: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
48
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
49
- city: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
50
- state: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
48
+ description: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
49
+ city: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
50
+ state: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
51
51
  country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
52
52
  location: z.ZodObject<{
53
53
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
@@ -92,9 +92,9 @@ export declare const AddressSchema: z.ZodObject<{
92
92
  export type AddressDTO = DTO<typeof AddressSchema>;
93
93
  export declare const UserAddressSchema: z.ZodObject<{
94
94
  address: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
95
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
96
- city: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
97
- state: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
95
+ description: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
96
+ city: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
97
+ state: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
98
98
  country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
99
99
  location: z.ZodObject<{
100
100
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
@@ -113,9 +113,12 @@ export declare const UserAddressSchema: z.ZodObject<{
113
113
  addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
114
114
  apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
115
115
  buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
116
- deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
117
- instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
116
+ deliveryOption: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
117
+ instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
118
118
  }, "strip", z.ZodTypeAny, {
119
+ addressLabel: string;
120
+ apartment: string;
121
+ buildingName: string;
119
122
  address: string;
120
123
  country: string;
121
124
  location: {
@@ -124,16 +127,16 @@ export declare const UserAddressSchema: z.ZodObject<{
124
127
  };
125
128
  latitude: number;
126
129
  longitude: number;
127
- addressLabel: string;
128
- apartment: string;
129
- buildingName: string;
130
+ deliveryOption?: string | undefined;
131
+ instructions?: string | undefined;
130
132
  description?: string | undefined;
131
133
  city?: string | undefined;
132
134
  state?: string | undefined;
133
135
  zone?: import("mongoose").Types.ObjectId | undefined;
134
- deliveryOption?: string | undefined;
135
- instructions?: string | undefined;
136
136
  }, {
137
+ addressLabel: string;
138
+ apartment: string;
139
+ buildingName: string;
137
140
  address: string;
138
141
  country: string;
139
142
  location: {
@@ -142,22 +145,19 @@ export declare const UserAddressSchema: z.ZodObject<{
142
145
  };
143
146
  latitude: number;
144
147
  longitude: number;
145
- addressLabel: string;
146
- apartment: string;
147
- buildingName: string;
148
+ deliveryOption?: string | undefined;
149
+ instructions?: string | undefined;
148
150
  description?: string | undefined;
149
151
  city?: string | undefined;
150
152
  state?: string | undefined;
151
153
  zone?: string | import("mongoose").Types.ObjectId | undefined;
152
- deliveryOption?: string | undefined;
153
- instructions?: string | undefined;
154
154
  }>;
155
155
  export type UserAddressDTO = DTO<typeof UserAddressSchema>;
156
156
  export declare const RegularOrderAddressSchema: z.ZodObject<{
157
157
  address: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
158
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
159
- city: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
160
- state: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
158
+ description: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
159
+ city: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
160
+ state: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
161
161
  country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
162
162
  location: z.ZodObject<{
163
163
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
@@ -176,11 +176,15 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
176
176
  addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
177
177
  apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
178
178
  buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
179
- deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
180
- instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
179
+ deliveryOption: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
180
+ instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
181
181
  } & {
182
182
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
183
183
  }, "strip", z.ZodTypeAny, {
184
+ _id: import("mongoose").Types.ObjectId;
185
+ addressLabel: string;
186
+ apartment: string;
187
+ buildingName: string;
184
188
  address: string;
185
189
  country: string;
186
190
  location: {
@@ -189,17 +193,17 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
189
193
  };
190
194
  latitude: number;
191
195
  longitude: number;
192
- addressLabel: string;
193
- apartment: string;
194
- buildingName: string;
195
- _id: import("mongoose").Types.ObjectId;
196
+ deliveryOption?: string | undefined;
197
+ instructions?: string | undefined;
196
198
  description?: string | undefined;
197
199
  city?: string | undefined;
198
200
  state?: string | undefined;
199
201
  zone?: import("mongoose").Types.ObjectId | undefined;
200
- deliveryOption?: string | undefined;
201
- instructions?: string | undefined;
202
202
  }, {
203
+ _id: string | import("mongoose").Types.ObjectId;
204
+ addressLabel: string;
205
+ apartment: string;
206
+ buildingName: string;
203
207
  address: string;
204
208
  country: string;
205
209
  location: {
@@ -208,23 +212,19 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
208
212
  };
209
213
  latitude: number;
210
214
  longitude: number;
211
- addressLabel: string;
212
- apartment: string;
213
- buildingName: string;
214
- _id: string | import("mongoose").Types.ObjectId;
215
+ deliveryOption?: string | undefined;
216
+ instructions?: string | undefined;
215
217
  description?: string | undefined;
216
218
  city?: string | undefined;
217
219
  state?: string | undefined;
218
220
  zone?: string | import("mongoose").Types.ObjectId | undefined;
219
- deliveryOption?: string | undefined;
220
- instructions?: string | undefined;
221
221
  }>;
222
222
  export type RegularOrderAddressDTO = DTO<typeof RegularOrderAddressSchema>;
223
223
  export declare const CourierAddressSchema: z.ZodObject<{
224
224
  address: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
225
- description: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
226
- city: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
227
- state: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
225
+ description: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
226
+ city: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
227
+ state: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
228
228
  country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
229
229
  location: z.ZodObject<{
230
230
  type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
@@ -240,14 +240,15 @@ export declare const CourierAddressSchema: z.ZodObject<{
240
240
  longitude: z.ZodNumber;
241
241
  zone: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
242
242
  addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
243
- deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
244
- instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
243
+ deliveryOption: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
244
+ instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
245
245
  } & {
246
246
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
247
247
  phoneNumber: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
248
- apartment: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
249
- buildingName: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
248
+ apartment: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
249
+ buildingName: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
250
250
  }, "strip", z.ZodTypeAny, {
251
+ addressLabel: string;
251
252
  address: string;
252
253
  country: string;
253
254
  location: {
@@ -256,18 +257,18 @@ export declare const CourierAddressSchema: z.ZodObject<{
256
257
  };
257
258
  latitude: number;
258
259
  longitude: number;
259
- addressLabel: string;
260
260
  name: string;
261
261
  phoneNumber: string;
262
- description?: string | undefined;
263
- city?: string | undefined;
264
- state?: string | undefined;
265
- zone?: import("mongoose").Types.ObjectId | undefined;
266
262
  apartment?: string | undefined;
267
263
  buildingName?: string | undefined;
268
264
  deliveryOption?: string | undefined;
269
265
  instructions?: string | undefined;
266
+ description?: string | undefined;
267
+ city?: string | undefined;
268
+ state?: string | undefined;
269
+ zone?: import("mongoose").Types.ObjectId | undefined;
270
270
  }, {
271
+ addressLabel: string;
271
272
  address: string;
272
273
  country: string;
273
274
  location: {
@@ -276,17 +277,16 @@ export declare const CourierAddressSchema: z.ZodObject<{
276
277
  };
277
278
  latitude: number;
278
279
  longitude: number;
279
- addressLabel: string;
280
280
  name: string;
281
281
  phoneNumber: string;
282
- description?: string | undefined;
283
- city?: string | undefined;
284
- state?: string | undefined;
285
- zone?: string | import("mongoose").Types.ObjectId | undefined;
286
282
  apartment?: string | undefined;
287
283
  buildingName?: string | undefined;
288
284
  deliveryOption?: string | undefined;
289
285
  instructions?: string | undefined;
286
+ description?: string | undefined;
287
+ city?: string | undefined;
288
+ state?: string | undefined;
289
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
290
290
  }>;
291
291
  export type CourierAddressDTO = DTO<typeof CourierAddressSchema>;
292
292
  export declare const DurationSchema: z.ZodObject<{
@@ -510,7 +510,7 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
510
510
  export declare const LoginSchema: z.ZodObject<{
511
511
  email: z.ZodEffects<z.ZodString, string, string>;
512
512
  password: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
513
- deviceId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
513
+ deviceId: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
514
514
  }, "strip", z.ZodTypeAny, {
515
515
  email: string;
516
516
  password: string;
@@ -920,8 +920,8 @@ export declare const UpdateFcmTokenInputSchema: z.ZodObject<{
920
920
  fcmToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
921
921
  action: z.ZodNativeEnum<typeof ActionType>;
922
922
  platform: z.ZodOptional<z.ZodNativeEnum<typeof AppPlatform>>;
923
- appVersion: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
924
- deviceId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
923
+ appVersion: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
924
+ deviceId: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
925
925
  }, "strip", z.ZodTypeAny, {
926
926
  fcmToken: string;
927
927
  action: ActionType;
@@ -949,9 +949,9 @@ export declare const AssignRiderSchema: z.ZodObject<{
949
949
  export type AssignRiderDTO = DTO<typeof AssignRiderSchema>;
950
950
  export declare const PaymentInformationSchema: z.ZodObject<{
951
951
  cardType: z.ZodDefault<z.ZodNativeEnum<typeof CardType>>;
952
- paymentIntentId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
953
- orderId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
954
- transactionId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
952
+ paymentIntentId: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
953
+ orderId: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
954
+ transactionId: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
955
955
  }, "strip", z.ZodTypeAny, {
956
956
  cardType: CardType;
957
957
  paymentIntentId?: string | undefined;