@lyxa.ai/types 1.0.137

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.
@@ -0,0 +1,773 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from './global-validation';
3
+ import { GeoLocationType, HolidayWorkStatus, WeekDay, WorkStatus } from '../enum';
4
+ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
5
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>>>;
8
+ query: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
9
+ select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
10
+ populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
11
+ search: z.ZodOptional<z.ZodObject<{
12
+ searchKey: z.ZodString;
13
+ searchFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ searchKey: string;
16
+ searchFields?: string[] | undefined;
17
+ }, {
18
+ searchKey: string;
19
+ searchFields?: string[] | undefined;
20
+ }>>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ size: number;
23
+ page: number;
24
+ search?: {
25
+ searchKey: string;
26
+ searchFields?: string[] | undefined;
27
+ } | undefined;
28
+ sort?: Record<string, 1 | -1> | undefined;
29
+ select?: Record<string, 0 | 1> | undefined;
30
+ populate?: any;
31
+ query?: Record<string, any> | undefined;
32
+ }, {
33
+ search?: {
34
+ searchKey: string;
35
+ searchFields?: string[] | undefined;
36
+ } | undefined;
37
+ sort?: Record<string, 1 | -1> | undefined;
38
+ size?: number | undefined;
39
+ select?: Record<string, 0 | 1> | undefined;
40
+ populate?: any;
41
+ query?: Record<string, any> | undefined;
42
+ page?: number | undefined;
43
+ }>>;
44
+ export type FilterDTO = z.infer<typeof FilterSchema>;
45
+ export declare const StringSchema: z.ZodString;
46
+ export declare const AddressSchema: z.ZodObject<{
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.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
50
+ state: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
51
+ country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
52
+ location: z.ZodObject<{
53
+ type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
54
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: GeoLocationType;
57
+ coordinates: [number, number];
58
+ }, {
59
+ coordinates: [number, number];
60
+ type?: GeoLocationType | undefined;
61
+ }>;
62
+ latitude: z.ZodNumber;
63
+ longitude: z.ZodNumber;
64
+ 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>]>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ location: {
67
+ type: GeoLocationType;
68
+ coordinates: [number, number];
69
+ };
70
+ address: string;
71
+ city: string;
72
+ state: string;
73
+ country: string;
74
+ latitude: number;
75
+ longitude: number;
76
+ description?: string | undefined;
77
+ zone?: import("mongoose").Types.ObjectId | undefined;
78
+ }, {
79
+ location: {
80
+ coordinates: [number, number];
81
+ type?: GeoLocationType | undefined;
82
+ };
83
+ address: string;
84
+ city: string;
85
+ state: string;
86
+ country: string;
87
+ latitude: number;
88
+ longitude: number;
89
+ description?: string | undefined;
90
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
91
+ }>;
92
+ export type AddressDTO = DTO<typeof AddressSchema>;
93
+ export declare const UserAddressSchema: z.ZodObject<{
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.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
97
+ state: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
98
+ country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
99
+ location: z.ZodObject<{
100
+ type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
101
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ type: GeoLocationType;
104
+ coordinates: [number, number];
105
+ }, {
106
+ coordinates: [number, number];
107
+ type?: GeoLocationType | undefined;
108
+ }>;
109
+ latitude: z.ZodNumber;
110
+ longitude: z.ZodNumber;
111
+ 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>]>>;
112
+ } & {
113
+ addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
114
+ apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
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>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ location: {
120
+ type: GeoLocationType;
121
+ coordinates: [number, number];
122
+ };
123
+ address: string;
124
+ city: string;
125
+ state: string;
126
+ country: string;
127
+ latitude: number;
128
+ longitude: number;
129
+ addressLabel: string;
130
+ apartment: string;
131
+ buildingName: string;
132
+ description?: string | undefined;
133
+ zone?: import("mongoose").Types.ObjectId | undefined;
134
+ deliveryOption?: string | undefined;
135
+ instructions?: string | undefined;
136
+ }, {
137
+ location: {
138
+ coordinates: [number, number];
139
+ type?: GeoLocationType | undefined;
140
+ };
141
+ address: string;
142
+ city: string;
143
+ state: string;
144
+ country: string;
145
+ latitude: number;
146
+ longitude: number;
147
+ addressLabel: string;
148
+ apartment: string;
149
+ buildingName: string;
150
+ description?: string | undefined;
151
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
152
+ deliveryOption?: string | undefined;
153
+ instructions?: string | undefined;
154
+ }>;
155
+ export type UserAddressDTO = DTO<typeof UserAddressSchema>;
156
+ export declare const CourierAddressSchema: z.ZodObject<{
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.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
160
+ state: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
161
+ country: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
162
+ location: z.ZodObject<{
163
+ type: z.ZodDefault<z.ZodNativeEnum<typeof GeoLocationType>>;
164
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ type: GeoLocationType;
167
+ coordinates: [number, number];
168
+ }, {
169
+ coordinates: [number, number];
170
+ type?: GeoLocationType | undefined;
171
+ }>;
172
+ latitude: z.ZodNumber;
173
+ longitude: z.ZodNumber;
174
+ 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>]>>;
175
+ } & {
176
+ addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
177
+ apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
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>>;
181
+ } & {
182
+ name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
183
+ phoneNumber: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ name: string;
186
+ location: {
187
+ type: GeoLocationType;
188
+ coordinates: [number, number];
189
+ };
190
+ address: string;
191
+ city: string;
192
+ state: string;
193
+ country: string;
194
+ latitude: number;
195
+ longitude: number;
196
+ addressLabel: string;
197
+ apartment: string;
198
+ buildingName: string;
199
+ phoneNumber: string;
200
+ description?: string | undefined;
201
+ zone?: import("mongoose").Types.ObjectId | undefined;
202
+ deliveryOption?: string | undefined;
203
+ instructions?: string | undefined;
204
+ }, {
205
+ name: string;
206
+ location: {
207
+ coordinates: [number, number];
208
+ type?: GeoLocationType | undefined;
209
+ };
210
+ address: string;
211
+ city: string;
212
+ state: string;
213
+ country: string;
214
+ latitude: number;
215
+ longitude: number;
216
+ addressLabel: string;
217
+ apartment: string;
218
+ buildingName: string;
219
+ phoneNumber: string;
220
+ description?: string | undefined;
221
+ zone?: string | import("mongoose").Types.ObjectId | undefined;
222
+ deliveryOption?: string | undefined;
223
+ instructions?: string | undefined;
224
+ }>;
225
+ export type CourierAddressDTO = DTO<typeof CourierAddressSchema>;
226
+ export declare const DurationSchema: z.ZodObject<{
227
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
228
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ start: Date;
231
+ end?: Date | undefined;
232
+ }, {
233
+ start: string | Date;
234
+ end?: string | Date | undefined;
235
+ }>;
236
+ export declare const NormalHourSchema: z.ZodObject<{
237
+ day: z.ZodNativeEnum<typeof WeekDay>;
238
+ status: z.ZodNativeEnum<typeof WorkStatus>;
239
+ openingHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
240
+ start: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
241
+ end: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ end: string;
244
+ start: string;
245
+ }, {
246
+ end: string;
247
+ start: string;
248
+ }>, "many">>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ day: WeekDay;
251
+ status: WorkStatus;
252
+ openingHours: {
253
+ end: string;
254
+ start: string;
255
+ }[];
256
+ }, {
257
+ day: WeekDay;
258
+ status: WorkStatus;
259
+ openingHours?: {
260
+ end: string;
261
+ start: string;
262
+ }[] | undefined;
263
+ }>;
264
+ export declare const HolidayHourSchema: z.ZodObject<{
265
+ date: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
266
+ status: z.ZodNativeEnum<typeof HolidayWorkStatus>;
267
+ closingHour: z.ZodObject<{
268
+ start: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
269
+ end: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ end: string;
272
+ start: string;
273
+ }, {
274
+ end: string;
275
+ start: string;
276
+ }>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ date: Date;
279
+ status: HolidayWorkStatus;
280
+ closingHour: {
281
+ end: string;
282
+ start: string;
283
+ };
284
+ }, {
285
+ date: string | Date;
286
+ status: HolidayWorkStatus;
287
+ closingHour: {
288
+ end: string;
289
+ start: string;
290
+ };
291
+ }>;
292
+ export declare const WorkHourSettingSchema: z.ZodObject<{
293
+ normalHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
294
+ day: z.ZodNativeEnum<typeof WeekDay>;
295
+ status: z.ZodNativeEnum<typeof WorkStatus>;
296
+ openingHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
297
+ start: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
298
+ end: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ end: string;
301
+ start: string;
302
+ }, {
303
+ end: string;
304
+ start: string;
305
+ }>, "many">>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ day: WeekDay;
308
+ status: WorkStatus;
309
+ openingHours: {
310
+ end: string;
311
+ start: string;
312
+ }[];
313
+ }, {
314
+ day: WeekDay;
315
+ status: WorkStatus;
316
+ openingHours?: {
317
+ end: string;
318
+ start: string;
319
+ }[] | undefined;
320
+ }>, "many">>;
321
+ holidayHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
322
+ date: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
323
+ status: z.ZodNativeEnum<typeof HolidayWorkStatus>;
324
+ closingHour: z.ZodObject<{
325
+ start: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
326
+ end: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ end: string;
329
+ start: string;
330
+ }, {
331
+ end: string;
332
+ start: string;
333
+ }>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ date: Date;
336
+ status: HolidayWorkStatus;
337
+ closingHour: {
338
+ end: string;
339
+ start: string;
340
+ };
341
+ }, {
342
+ date: string | Date;
343
+ status: HolidayWorkStatus;
344
+ closingHour: {
345
+ end: string;
346
+ start: string;
347
+ };
348
+ }>, "many">>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ normalHours: {
351
+ day: WeekDay;
352
+ status: WorkStatus;
353
+ openingHours: {
354
+ end: string;
355
+ start: string;
356
+ }[];
357
+ }[];
358
+ holidayHours: {
359
+ date: Date;
360
+ status: HolidayWorkStatus;
361
+ closingHour: {
362
+ end: string;
363
+ start: string;
364
+ };
365
+ }[];
366
+ }, {
367
+ normalHours?: {
368
+ day: WeekDay;
369
+ status: WorkStatus;
370
+ openingHours?: {
371
+ end: string;
372
+ start: string;
373
+ }[] | undefined;
374
+ }[] | undefined;
375
+ holidayHours?: {
376
+ date: string | Date;
377
+ status: HolidayWorkStatus;
378
+ closingHour: {
379
+ end: string;
380
+ start: string;
381
+ };
382
+ }[] | undefined;
383
+ }>;
384
+ export declare const LoginSchema: z.ZodObject<{
385
+ email: z.ZodString;
386
+ password: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ email: string;
389
+ password: string;
390
+ }, {
391
+ email: string;
392
+ password: string;
393
+ }>;
394
+ export type LoginDTO = DTO<typeof LoginSchema>;
395
+ export declare const createPaginatedSchema: <T>(documentSchema: z.ZodSchema<T>) => z.ZodObject<{
396
+ metadata: z.ZodOptional<z.ZodObject<{
397
+ page: z.ZodNumber;
398
+ size: z.ZodNumber;
399
+ totalElements: z.ZodNumber;
400
+ totalPages: z.ZodNumber;
401
+ }, "strip", z.ZodTypeAny, {
402
+ size: number;
403
+ page: number;
404
+ totalElements: number;
405
+ totalPages: number;
406
+ }, {
407
+ size: number;
408
+ page: number;
409
+ totalElements: number;
410
+ totalPages: number;
411
+ }>>;
412
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
413
+ }, "strip", z.ZodTypeAny, {
414
+ documents: T[];
415
+ metadata?: {
416
+ size: number;
417
+ page: number;
418
+ totalElements: number;
419
+ totalPages: number;
420
+ } | undefined;
421
+ }, {
422
+ documents: T[];
423
+ metadata?: {
424
+ size: number;
425
+ page: number;
426
+ totalElements: number;
427
+ totalPages: number;
428
+ } | undefined;
429
+ }>;
430
+ export declare const createResponseSchema: <T>(schema: z.ZodSchema<T>) => z.ZodObject<{
431
+ success: z.ZodBoolean;
432
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
433
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
434
+ metadata: z.ZodOptional<z.ZodObject<{
435
+ page: z.ZodNumber;
436
+ size: z.ZodNumber;
437
+ totalElements: z.ZodNumber;
438
+ totalPages: z.ZodNumber;
439
+ }, "strip", z.ZodTypeAny, {
440
+ size: number;
441
+ page: number;
442
+ totalElements: number;
443
+ totalPages: number;
444
+ }, {
445
+ size: number;
446
+ page: number;
447
+ totalElements: number;
448
+ totalPages: number;
449
+ }>>;
450
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
451
+ }, "strip", z.ZodTypeAny, {
452
+ documents: T[];
453
+ metadata?: {
454
+ size: number;
455
+ page: number;
456
+ totalElements: number;
457
+ totalPages: number;
458
+ } | undefined;
459
+ }, {
460
+ documents: T[];
461
+ metadata?: {
462
+ size: number;
463
+ page: number;
464
+ totalElements: number;
465
+ totalPages: number;
466
+ } | undefined;
467
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
468
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
469
+ success: z.ZodBoolean;
470
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
471
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
472
+ metadata: z.ZodOptional<z.ZodObject<{
473
+ page: z.ZodNumber;
474
+ size: z.ZodNumber;
475
+ totalElements: z.ZodNumber;
476
+ totalPages: z.ZodNumber;
477
+ }, "strip", z.ZodTypeAny, {
478
+ size: number;
479
+ page: number;
480
+ totalElements: number;
481
+ totalPages: number;
482
+ }, {
483
+ size: number;
484
+ page: number;
485
+ totalElements: number;
486
+ totalPages: number;
487
+ }>>;
488
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
489
+ }, "strip", z.ZodTypeAny, {
490
+ documents: T[];
491
+ metadata?: {
492
+ size: number;
493
+ page: number;
494
+ totalElements: number;
495
+ totalPages: number;
496
+ } | undefined;
497
+ }, {
498
+ documents: T[];
499
+ metadata?: {
500
+ size: number;
501
+ page: number;
502
+ totalElements: number;
503
+ totalPages: number;
504
+ } | undefined;
505
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
506
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
507
+ success: z.ZodBoolean;
508
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
509
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
510
+ metadata: z.ZodOptional<z.ZodObject<{
511
+ page: z.ZodNumber;
512
+ size: z.ZodNumber;
513
+ totalElements: z.ZodNumber;
514
+ totalPages: z.ZodNumber;
515
+ }, "strip", z.ZodTypeAny, {
516
+ size: number;
517
+ page: number;
518
+ totalElements: number;
519
+ totalPages: number;
520
+ }, {
521
+ size: number;
522
+ page: number;
523
+ totalElements: number;
524
+ totalPages: number;
525
+ }>>;
526
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
527
+ }, "strip", z.ZodTypeAny, {
528
+ documents: T[];
529
+ metadata?: {
530
+ size: number;
531
+ page: number;
532
+ totalElements: number;
533
+ totalPages: number;
534
+ } | undefined;
535
+ }, {
536
+ documents: T[];
537
+ metadata?: {
538
+ size: number;
539
+ page: number;
540
+ totalElements: number;
541
+ totalPages: number;
542
+ } | undefined;
543
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
544
+ }>, any>[k]; } : never, z.baseObjectInputType<{
545
+ success: z.ZodBoolean;
546
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
547
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
548
+ metadata: z.ZodOptional<z.ZodObject<{
549
+ page: z.ZodNumber;
550
+ size: z.ZodNumber;
551
+ totalElements: z.ZodNumber;
552
+ totalPages: z.ZodNumber;
553
+ }, "strip", z.ZodTypeAny, {
554
+ size: number;
555
+ page: number;
556
+ totalElements: number;
557
+ totalPages: number;
558
+ }, {
559
+ size: number;
560
+ page: number;
561
+ totalElements: number;
562
+ totalPages: number;
563
+ }>>;
564
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
565
+ }, "strip", z.ZodTypeAny, {
566
+ documents: T[];
567
+ metadata?: {
568
+ size: number;
569
+ page: number;
570
+ totalElements: number;
571
+ totalPages: number;
572
+ } | undefined;
573
+ }, {
574
+ documents: T[];
575
+ metadata?: {
576
+ size: number;
577
+ page: number;
578
+ totalElements: number;
579
+ totalPages: number;
580
+ } | undefined;
581
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
582
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
583
+ success: z.ZodBoolean;
584
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
585
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
586
+ metadata: z.ZodOptional<z.ZodObject<{
587
+ page: z.ZodNumber;
588
+ size: z.ZodNumber;
589
+ totalElements: z.ZodNumber;
590
+ totalPages: z.ZodNumber;
591
+ }, "strip", z.ZodTypeAny, {
592
+ size: number;
593
+ page: number;
594
+ totalElements: number;
595
+ totalPages: number;
596
+ }, {
597
+ size: number;
598
+ page: number;
599
+ totalElements: number;
600
+ totalPages: number;
601
+ }>>;
602
+ documents: z.ZodArray<z.ZodType<T, z.ZodTypeDef, T>, "many">;
603
+ }, "strip", z.ZodTypeAny, {
604
+ documents: T[];
605
+ metadata?: {
606
+ size: number;
607
+ page: number;
608
+ totalElements: number;
609
+ totalPages: number;
610
+ } | undefined;
611
+ }, {
612
+ documents: T[];
613
+ metadata?: {
614
+ size: number;
615
+ page: number;
616
+ totalElements: number;
617
+ totalPages: number;
618
+ } | undefined;
619
+ }>, z.ZodType<T, z.ZodTypeDef, T>]>>;
620
+ }>[k_1]; } : never>;
621
+ export declare const TokenSchema: z.ZodObject<{
622
+ accessToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
623
+ refreshToken: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ accessToken: string;
626
+ refreshToken: string;
627
+ }, {
628
+ accessToken: string;
629
+ refreshToken: string;
630
+ }>;
631
+ export declare const UpdateSortingOrderSchema: z.ZodObject<{
632
+ _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>]>;
633
+ newPosition: z.ZodNumber;
634
+ }, "strip", z.ZodTypeAny, {
635
+ _id: import("mongoose").Types.ObjectId;
636
+ newPosition: number;
637
+ }, {
638
+ _id: string | import("mongoose").Types.ObjectId;
639
+ newPosition: number;
640
+ }>;
641
+ export type UpdateSortingOrderDTO = DTO<typeof UpdateSortingOrderSchema>;
642
+ export declare const DeleteSchema: z.ZodObject<{
643
+ _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>]>;
644
+ softDelete: z.ZodDefault<z.ZodBoolean>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ _id: import("mongoose").Types.ObjectId;
647
+ softDelete: boolean;
648
+ }, {
649
+ _id: string | import("mongoose").Types.ObjectId;
650
+ softDelete?: boolean | undefined;
651
+ }>;
652
+ export type DeleteDTO = DTO<typeof DeleteSchema>;
653
+ export declare const IdSchema: 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>]>;
654
+ export declare const GetByIdInputSchema: z.ZodObject<{
655
+ _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>]>;
656
+ select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
657
+ populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ _id: import("mongoose").Types.ObjectId;
660
+ select?: Record<string, 0 | 1> | undefined;
661
+ populate?: any;
662
+ }, {
663
+ _id: string | import("mongoose").Types.ObjectId;
664
+ select?: Record<string, 0 | 1> | undefined;
665
+ populate?: any;
666
+ }>;
667
+ export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
668
+ export declare const GetOneQuerySchema: z.ZodObject<{
669
+ query: z.ZodOptional<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>;
670
+ select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
671
+ populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ select?: Record<string, 0 | 1> | undefined;
674
+ populate?: any;
675
+ query?: Record<string, any> | undefined;
676
+ }, {
677
+ select?: Record<string, 0 | 1> | undefined;
678
+ populate?: any;
679
+ query?: Record<string, any> | undefined;
680
+ }>;
681
+ export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
682
+ declare const ShareableLinkSchema: z.ZodObject<{
683
+ link: z.ZodString;
684
+ }, "strip", z.ZodTypeAny, {
685
+ link: string;
686
+ }, {
687
+ link: string;
688
+ }>;
689
+ export declare const ShareableLinkResponseSchema: z.ZodObject<{
690
+ success: z.ZodBoolean;
691
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
692
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
693
+ metadata: z.ZodOptional<z.ZodObject<{
694
+ page: z.ZodNumber;
695
+ size: z.ZodNumber;
696
+ totalElements: z.ZodNumber;
697
+ totalPages: z.ZodNumber;
698
+ }, "strip", z.ZodTypeAny, {
699
+ size: number;
700
+ page: number;
701
+ totalElements: number;
702
+ totalPages: number;
703
+ }, {
704
+ size: number;
705
+ page: number;
706
+ totalElements: number;
707
+ totalPages: number;
708
+ }>>;
709
+ documents: z.ZodArray<z.ZodType<{
710
+ link: string;
711
+ }, z.ZodTypeDef, {
712
+ link: string;
713
+ }>, "many">;
714
+ }, "strip", z.ZodTypeAny, {
715
+ documents: {
716
+ link: string;
717
+ }[];
718
+ metadata?: {
719
+ size: number;
720
+ page: number;
721
+ totalElements: number;
722
+ totalPages: number;
723
+ } | undefined;
724
+ }, {
725
+ documents: {
726
+ link: string;
727
+ }[];
728
+ metadata?: {
729
+ size: number;
730
+ page: number;
731
+ totalElements: number;
732
+ totalPages: number;
733
+ } | undefined;
734
+ }>, z.ZodType<{
735
+ link: string;
736
+ }, z.ZodTypeDef, {
737
+ link: string;
738
+ }>]>>;
739
+ }, "strip", z.ZodTypeAny, {
740
+ message: string;
741
+ success: boolean;
742
+ data?: {
743
+ link: string;
744
+ } | {
745
+ documents: {
746
+ link: string;
747
+ }[];
748
+ metadata?: {
749
+ size: number;
750
+ page: number;
751
+ totalElements: number;
752
+ totalPages: number;
753
+ } | undefined;
754
+ } | undefined;
755
+ }, {
756
+ message: string;
757
+ success: boolean;
758
+ data?: {
759
+ link: string;
760
+ } | {
761
+ documents: {
762
+ link: string;
763
+ }[];
764
+ metadata?: {
765
+ size: number;
766
+ page: number;
767
+ totalElements: number;
768
+ totalPages: number;
769
+ } | undefined;
770
+ } | undefined;
771
+ }>;
772
+ export type ShareableLinkDTO = DTO<typeof ShareableLinkSchema>;
773
+ export {};