@lyxa.ai/types 1.4.344 → 1.4.345-alpha.0

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.344
25
+ Version: 1.4.345-alpha.0
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.344",
3
+ "version": "1.4.345-alpha.0",
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;
@@ -648,7 +648,45 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
648
648
  totalPages: number;
649
649
  } | undefined;
650
650
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
651
- }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
651
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
652
+ success: z.ZodBoolean;
653
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
654
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
655
+ metadata: z.ZodOptional<z.ZodObject<{
656
+ page: z.ZodNumber;
657
+ size: z.ZodNumber;
658
+ totalElements: z.ZodNumber;
659
+ totalPages: z.ZodNumber;
660
+ }, "strip", z.ZodTypeAny, {
661
+ size: number;
662
+ page: number;
663
+ totalElements: number;
664
+ totalPages: number;
665
+ }, {
666
+ size: number;
667
+ page: number;
668
+ totalElements: number;
669
+ totalPages: number;
670
+ }>>;
671
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
672
+ }, "strip", z.ZodTypeAny, {
673
+ documents: T[];
674
+ metadata?: {
675
+ size: number;
676
+ page: number;
677
+ totalElements: number;
678
+ totalPages: number;
679
+ } | undefined;
680
+ }, {
681
+ documents: T[];
682
+ metadata?: {
683
+ size: number;
684
+ page: number;
685
+ totalElements: number;
686
+ totalPages: number;
687
+ } | undefined;
688
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
689
+ }>, any>[k]; } : never, z.baseObjectInputType<{
652
690
  success: z.ZodBoolean;
653
691
  message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
654
692
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -686,7 +724,45 @@ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodO
686
724
  totalPages: number;
687
725
  } | undefined;
688
726
  }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
689
- }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
727
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
728
+ success: z.ZodBoolean;
729
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
730
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
731
+ metadata: z.ZodOptional<z.ZodObject<{
732
+ page: z.ZodNumber;
733
+ size: z.ZodNumber;
734
+ totalElements: z.ZodNumber;
735
+ totalPages: z.ZodNumber;
736
+ }, "strip", z.ZodTypeAny, {
737
+ size: number;
738
+ page: number;
739
+ totalElements: number;
740
+ totalPages: number;
741
+ }, {
742
+ size: number;
743
+ page: number;
744
+ totalElements: number;
745
+ totalPages: number;
746
+ }>>;
747
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
748
+ }, "strip", z.ZodTypeAny, {
749
+ documents: T[];
750
+ metadata?: {
751
+ size: number;
752
+ page: number;
753
+ totalElements: number;
754
+ totalPages: number;
755
+ } | undefined;
756
+ }, {
757
+ documents: T[];
758
+ metadata?: {
759
+ size: number;
760
+ page: number;
761
+ totalElements: number;
762
+ totalPages: number;
763
+ } | undefined;
764
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
765
+ }>[k_1]; } : never>;
690
766
  export type PaginatedDTO<T> = {
691
767
  metadata: DTO<typeof metadataSchema>;
692
768
  documents: T[];
@@ -803,13 +879,13 @@ export declare const GetOneQuerySchema: z.ZodObject<{
803
879
  select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
804
880
  populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
805
881
  }, "strip", z.ZodTypeAny, {
806
- query?: Record<string, any> | undefined;
807
882
  select?: Record<string, 0 | 1> | undefined;
808
883
  populate?: any;
809
- }, {
810
884
  query?: Record<string, any> | undefined;
885
+ }, {
811
886
  select?: Record<string, 0 | 1> | undefined;
812
887
  populate?: any;
888
+ query?: Record<string, any> | undefined;
813
889
  }>;
814
890
  export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
815
891
  declare const ShareableLinkSchema: z.ZodObject<{
@@ -920,8 +996,8 @@ export declare const UpdateFcmTokenInputSchema: z.ZodObject<{
920
996
  fcmToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
921
997
  action: z.ZodNativeEnum<typeof ActionType>;
922
998
  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>;
999
+ appVersion: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1000
+ deviceId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
925
1001
  }, "strip", z.ZodTypeAny, {
926
1002
  fcmToken: string;
927
1003
  action: ActionType;
@@ -949,9 +1025,9 @@ export declare const AssignRiderSchema: z.ZodObject<{
949
1025
  export type AssignRiderDTO = DTO<typeof AssignRiderSchema>;
950
1026
  export declare const PaymentInformationSchema: z.ZodObject<{
951
1027
  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>;
1028
+ paymentIntentId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1029
+ orderId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
1030
+ transactionId: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
955
1031
  }, "strip", z.ZodTypeAny, {
956
1032
  cardType: CardType;
957
1033
  paymentIntentId?: string | undefined;
@@ -89,22 +89,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
89
89
  private baseSchema;
90
90
  constructor(baseFields: T, includeTimestamps?: boolean, includeTracking?: boolean);
91
91
  private createBaseSchema;
92
- getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
92
+ getBaseSchema(): z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
93
93
  getEntitySchema(): z.ZodObject<z.objectUtil.extendShape<T, {
94
94
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
95
- }> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<T_1[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
95
+ }> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
96
96
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
97
- }> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<T_2[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
97
+ }>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
98
98
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
99
- }> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<T_3[k]>; } : never, z.ZodTypeAny, "passthrough">>;
99
+ }> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
100
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
101
+ }>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
102
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
103
+ }> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
104
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
105
+ }>[k]>; } : never, z.ZodTypeAny, "passthrough">>;
100
106
  getIdSchema(): z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
101
107
  getUpdateSchema(excludeFields?: ExcludeFromUpdate): z.ZodObject<z.objectUtil.extendShape<T, {
102
108
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
103
- }> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<T_1[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
109
+ }> extends infer T_1 extends z.ZodRawShape ? { [k in keyof T_1]: z.ZodOptional<z.objectUtil.extendShape<T, {
110
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
111
+ }>[k]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
112
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
113
+ }> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<z.objectUtil.extendShape<T, {
114
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
115
+ }>[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
104
116
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
105
- }> extends infer T_2 extends z.ZodRawShape ? { [k in keyof T_2]: z.ZodOptional<T_2[k]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
117
+ }> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
106
118
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
107
- }> extends infer T_3 extends z.ZodRawShape ? { [k in keyof T_3]: z.ZodOptional<T_3[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
119
+ }>[k]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
108
120
  [x: string]: z.ZodOptional<z.ZodTypeAny>;
109
121
  }, "strict", z.ZodTypeAny, {
110
122
  [x: string]: any;
@@ -127,22 +139,34 @@ export declare class SchemaBuilder<T extends z.ZodRawShape> {
127
139
  [x: string]: any;
128
140
  }>;
129
141
  getAllSchemas(excludeFromUpdate?: ExcludeFromUpdate): {
130
- BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
142
+ BaseSchema: z.ZodObject<T, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T>, any>[k]; } : never, z.baseObjectInputType<T> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<T>[k_1]; } : never>;
131
143
  EntitySchema: z.ZodObject<z.objectUtil.extendShape<T, {
132
144
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
133
- }> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<T_3[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
145
+ }> extends infer T_3 extends z.ZodRawShape ? { [k_2 in keyof T_3]: z.ZodOptional<z.objectUtil.extendShape<T, {
134
146
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
135
- }> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<T_4[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
147
+ }>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
136
148
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
137
- }> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<T_5[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
149
+ }> extends infer T_4 extends z.ZodRawShape ? { [k_2 in keyof T_4]: z.ZodOptional<z.objectUtil.extendShape<T, {
150
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
151
+ }>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
152
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
153
+ }> extends infer T_5 extends z.ZodRawShape ? { [k_2 in keyof T_5]: z.ZodOptional<z.objectUtil.extendShape<T, {
154
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
155
+ }>[k_2]>; } : never, z.ZodTypeAny, "passthrough">>;
138
156
  IdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
139
157
  UpdateSchema: z.ZodObject<z.objectUtil.extendShape<T, {
140
158
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
141
- }> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<T_6[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
159
+ }> extends infer T_6 extends z.ZodRawShape ? { [k_2 in keyof T_6]: z.ZodOptional<z.objectUtil.extendShape<T, {
160
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
161
+ }>[k_2]>; } : never, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<T, {
162
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
163
+ }> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<z.objectUtil.extendShape<T, {
164
+ _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
165
+ }>[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
142
166
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
143
- }> extends infer T_7 extends z.ZodRawShape ? { [k_2 in keyof T_7]: z.ZodOptional<T_7[k_2]>; } : never, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<T, {
167
+ }> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<z.objectUtil.extendShape<T, {
144
168
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>;
145
- }> extends infer T_8 extends z.ZodRawShape ? { [k_2 in keyof T_8]: z.ZodOptional<T_8[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
169
+ }>[k_2]>; } : never, z.ZodTypeAny, "passthrough">> | z.ZodObject<{
146
170
  [x: string]: z.ZodOptional<z.ZodTypeAny>;
147
171
  }, "strict", z.ZodTypeAny, {
148
172
  [x: string]: any;
@@ -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;