@lyxa.ai/types 1.4.348 → 1.4.349

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.348
25
+ Version: 1.4.349
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.348",
3
+ "version": "1.4.349",
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",
@@ -22,32 +22,32 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
22
22
  size: number;
23
23
  page: number;
24
24
  sort?: Record<string, 1 | -1> | undefined;
25
+ query?: Record<string, any> | undefined;
26
+ select?: Record<string, 0 | 1> | undefined;
27
+ populate?: any;
25
28
  search?: {
26
29
  searchKey: string;
27
30
  searchFields?: string[] | undefined;
28
31
  } | undefined;
29
- select?: Record<string, 0 | 1> | undefined;
30
- populate?: any;
31
- query?: Record<string, any> | undefined;
32
32
  }, {
33
33
  sort?: Record<string, 1 | -1> | undefined;
34
+ size?: number | undefined;
35
+ page?: number | undefined;
36
+ query?: Record<string, any> | undefined;
37
+ select?: Record<string, 0 | 1> | undefined;
38
+ populate?: any;
34
39
  search?: {
35
40
  searchKey: string;
36
41
  searchFields?: string[] | undefined;
37
42
  } | undefined;
38
- select?: Record<string, 0 | 1> | undefined;
39
- populate?: any;
40
- size?: number | undefined;
41
- page?: number | undefined;
42
- query?: Record<string, any> | undefined;
43
43
  }>>;
44
44
  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,12 +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
184
  _id: import("mongoose").Types.ObjectId;
185
+ addressLabel: string;
186
+ apartment: string;
187
+ buildingName: string;
185
188
  address: string;
186
189
  country: string;
187
190
  location: {
@@ -190,17 +193,17 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
190
193
  };
191
194
  latitude: number;
192
195
  longitude: number;
193
- addressLabel: string;
194
- apartment: string;
195
- buildingName: string;
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
203
  _id: string | import("mongoose").Types.ObjectId;
204
+ addressLabel: string;
205
+ apartment: string;
206
+ buildingName: string;
204
207
  address: string;
205
208
  country: string;
206
209
  location: {
@@ -209,22 +212,19 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
209
212
  };
210
213
  latitude: number;
211
214
  longitude: number;
212
- addressLabel: string;
213
- apartment: string;
214
- buildingName: string;
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;
@@ -803,13 +803,13 @@ export declare const GetOneQuerySchema: z.ZodObject<{
803
803
  select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
804
804
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
805
805
  }, "strip", z.ZodTypeAny, {
806
+ query?: Record<string, any> | undefined;
806
807
  select?: Record<string, 0 | 1> | undefined;
807
808
  populate?: any;
808
- query?: Record<string, any> | undefined;
809
809
  }, {
810
+ query?: Record<string, any> | undefined;
810
811
  select?: Record<string, 0 | 1> | undefined;
811
812
  populate?: any;
812
- query?: Record<string, any> | undefined;
813
813
  }>;
814
814
  export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
815
815
  declare const ShareableLinkSchema: z.ZodObject<{
@@ -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;
@@ -4,8 +4,8 @@ export declare const UserAddressFrontendSchema: z.ZodObject<{
4
4
  addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
5
  apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
6
6
  buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
- deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
8
- instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
7
+ deliveryOption: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
8
+ instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  addressLabel: string;
11
11
  apartment: string;