@lyxa.ai/types 1.4.337 → 1.4.339

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.337
25
+ Version: 1.4.339
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.337",
3
+ "version": "1.4.339",
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;
28
25
  search?: {
29
26
  searchKey: string;
30
27
  searchFields?: string[] | undefined;
31
28
  } | undefined;
32
- }, {
33
- sort?: Record<string, 1 | -1> | undefined;
34
- size?: number | undefined;
35
- page?: number | undefined;
36
- query?: Record<string, any> | undefined;
37
29
  select?: Record<string, 0 | 1> | undefined;
38
30
  populate?: any;
31
+ query?: Record<string, any> | undefined;
32
+ }, {
33
+ sort?: Record<string, 1 | -1> | undefined;
39
34
  search?: {
40
35
  searchKey: string;
41
36
  searchFields?: string[] | undefined;
42
37
  } | 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.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>;
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>>;
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.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>;
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>>;
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,12 +113,9 @@ 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.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>;
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>>;
118
118
  }, "strip", z.ZodTypeAny, {
119
- addressLabel: string;
120
- apartment: string;
121
- buildingName: string;
122
119
  address: string;
123
120
  country: string;
124
121
  location: {
@@ -127,16 +124,16 @@ export declare const UserAddressSchema: z.ZodObject<{
127
124
  };
128
125
  latitude: number;
129
126
  longitude: number;
130
- deliveryOption?: string | undefined;
131
- instructions?: string | undefined;
127
+ addressLabel: string;
128
+ apartment: string;
129
+ buildingName: string;
132
130
  description?: string | undefined;
133
131
  city?: string | undefined;
134
132
  state?: string | undefined;
135
133
  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;
140
137
  address: string;
141
138
  country: string;
142
139
  location: {
@@ -145,19 +142,22 @@ export declare const UserAddressSchema: z.ZodObject<{
145
142
  };
146
143
  latitude: number;
147
144
  longitude: number;
148
- deliveryOption?: string | undefined;
149
- instructions?: string | undefined;
145
+ addressLabel: string;
146
+ apartment: string;
147
+ buildingName: string;
150
148
  description?: string | undefined;
151
149
  city?: string | undefined;
152
150
  state?: string | undefined;
153
151
  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.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>;
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>>;
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,15 +176,12 @@ 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.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>;
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>>;
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;
188
185
  address: string;
189
186
  country: string;
190
187
  location: {
@@ -193,17 +190,17 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
193
190
  };
194
191
  latitude: number;
195
192
  longitude: number;
196
- deliveryOption?: string | undefined;
197
- instructions?: string | undefined;
193
+ addressLabel: string;
194
+ apartment: string;
195
+ buildingName: string;
198
196
  description?: string | undefined;
199
197
  city?: string | undefined;
200
198
  state?: string | undefined;
201
199
  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;
207
204
  address: string;
208
205
  country: string;
209
206
  location: {
@@ -212,19 +209,22 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
212
209
  };
213
210
  latitude: number;
214
211
  longitude: number;
215
- deliveryOption?: string | undefined;
216
- instructions?: string | undefined;
212
+ addressLabel: string;
213
+ apartment: string;
214
+ buildingName: string;
217
215
  description?: string | undefined;
218
216
  city?: string | undefined;
219
217
  state?: string | undefined;
220
218
  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.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>;
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>>;
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,15 +240,14 @@ 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.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>;
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>>;
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.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>;
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>>;
250
250
  }, "strip", z.ZodTypeAny, {
251
- addressLabel: string;
252
251
  address: string;
253
252
  country: string;
254
253
  location: {
@@ -257,18 +256,18 @@ export declare const CourierAddressSchema: z.ZodObject<{
257
256
  };
258
257
  latitude: number;
259
258
  longitude: number;
259
+ addressLabel: string;
260
260
  name: string;
261
261
  phoneNumber: string;
262
- apartment?: string | undefined;
263
- buildingName?: string | undefined;
264
- deliveryOption?: string | undefined;
265
- instructions?: string | undefined;
266
262
  description?: string | undefined;
267
263
  city?: string | undefined;
268
264
  state?: string | undefined;
269
265
  zone?: import("mongoose").Types.ObjectId | undefined;
266
+ apartment?: string | undefined;
267
+ buildingName?: string | undefined;
268
+ deliveryOption?: string | undefined;
269
+ instructions?: string | undefined;
270
270
  }, {
271
- addressLabel: string;
272
271
  address: string;
273
272
  country: string;
274
273
  location: {
@@ -277,16 +276,17 @@ export declare const CourierAddressSchema: z.ZodObject<{
277
276
  };
278
277
  latitude: number;
279
278
  longitude: number;
279
+ addressLabel: string;
280
280
  name: string;
281
281
  phoneNumber: string;
282
- apartment?: string | undefined;
283
- buildingName?: string | undefined;
284
- deliveryOption?: string | undefined;
285
- instructions?: string | undefined;
286
282
  description?: string | undefined;
287
283
  city?: string | undefined;
288
284
  state?: string | undefined;
289
285
  zone?: string | import("mongoose").Types.ObjectId | undefined;
286
+ apartment?: string | undefined;
287
+ buildingName?: string | undefined;
288
+ deliveryOption?: string | undefined;
289
+ instructions?: string | 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.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
513
+ deviceId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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;
807
806
  select?: Record<string, 0 | 1> | undefined;
808
807
  populate?: any;
809
- }, {
810
808
  query?: Record<string, any> | undefined;
809
+ }, {
811
810
  select?: Record<string, 0 | 1> | undefined;
812
811
  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.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>;
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>>;
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.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>;
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>>;
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.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>;
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>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  addressLabel: string;
11
11
  apartment: string;