@lyxa.ai/core 1.4.319 → 1.4.320
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/dist/libraries/mongo/models/user-shop-history.model.d.ts +5 -1
- package/dist/libraries/mongo/models/user-shop-history.model.js +17 -3
- package/dist/libraries/mongo/models/user-shop-history.model.js.map +1 -1
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +33 -33
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +20 -20
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +8 -8
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +8 -8
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +24 -24
- package/dist/libraries/trpc/middlewares/auth.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +2 -2
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +12 -12
- package/dist/utilities/pagination.d.ts +3 -3
- package/dist/utilities/validation/common-validation.d.ts +80 -80
- package/package.json +1 -1
|
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
26
26
|
searchKey: string;
|
|
27
27
|
searchFields?: string[] | undefined;
|
|
28
28
|
} | undefined;
|
|
29
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
30
29
|
populate?: any;
|
|
30
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
sort?: Record<string, 1 | -1> | undefined;
|
|
@@ -35,11 +35,11 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
35
35
|
searchKey: string;
|
|
36
36
|
searchFields?: string[] | undefined;
|
|
37
37
|
} | undefined;
|
|
38
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
39
38
|
populate?: any;
|
|
39
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
40
|
+
query?: Record<string, any> | undefined;
|
|
40
41
|
size?: number | undefined;
|
|
41
42
|
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;
|
|
@@ -64,30 +64,30 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
64
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
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
address: string;
|
|
67
|
-
country: string;
|
|
68
67
|
location: {
|
|
69
68
|
type: GeoLocationType;
|
|
70
69
|
coordinates: [number, number];
|
|
71
70
|
};
|
|
71
|
+
country: string;
|
|
72
72
|
latitude: number;
|
|
73
73
|
longitude: number;
|
|
74
|
+
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
74
75
|
description?: string | undefined;
|
|
75
76
|
city?: string | undefined;
|
|
76
77
|
state?: string | undefined;
|
|
77
|
-
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
address: string;
|
|
80
|
-
country: string;
|
|
81
80
|
location: {
|
|
82
81
|
coordinates: [number, number];
|
|
83
82
|
type?: GeoLocationType | undefined;
|
|
84
83
|
};
|
|
84
|
+
country: string;
|
|
85
85
|
latitude: number;
|
|
86
86
|
longitude: number;
|
|
87
|
+
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
87
88
|
description?: string | undefined;
|
|
88
89
|
city?: string | undefined;
|
|
89
90
|
state?: string | undefined;
|
|
90
|
-
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
91
91
|
}>;
|
|
92
92
|
export type AddressDTO = DTO<typeof AddressSchema>;
|
|
93
93
|
export declare const UserAddressSchema: z.ZodObject<{
|
|
@@ -117,38 +117,38 @@ export declare const UserAddressSchema: z.ZodObject<{
|
|
|
117
117
|
instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
address: string;
|
|
120
|
-
country: string;
|
|
121
120
|
location: {
|
|
122
121
|
type: GeoLocationType;
|
|
123
122
|
coordinates: [number, number];
|
|
124
123
|
};
|
|
124
|
+
country: string;
|
|
125
125
|
latitude: number;
|
|
126
126
|
longitude: number;
|
|
127
127
|
addressLabel: string;
|
|
128
128
|
apartment: string;
|
|
129
129
|
buildingName: string;
|
|
130
|
+
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
130
131
|
description?: string | undefined;
|
|
131
132
|
city?: string | undefined;
|
|
132
133
|
state?: string | undefined;
|
|
133
|
-
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
134
134
|
deliveryOption?: string | undefined;
|
|
135
135
|
instructions?: string | undefined;
|
|
136
136
|
}, {
|
|
137
137
|
address: string;
|
|
138
|
-
country: string;
|
|
139
138
|
location: {
|
|
140
139
|
coordinates: [number, number];
|
|
141
140
|
type?: GeoLocationType | undefined;
|
|
142
141
|
};
|
|
142
|
+
country: string;
|
|
143
143
|
latitude: number;
|
|
144
144
|
longitude: number;
|
|
145
145
|
addressLabel: string;
|
|
146
146
|
apartment: string;
|
|
147
147
|
buildingName: string;
|
|
148
|
+
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
148
149
|
description?: string | undefined;
|
|
149
150
|
city?: string | undefined;
|
|
150
151
|
state?: string | undefined;
|
|
151
|
-
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
152
152
|
deliveryOption?: string | undefined;
|
|
153
153
|
instructions?: string | undefined;
|
|
154
154
|
}>;
|
|
@@ -183,39 +183,39 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
184
|
_id: import("mongoose").Types.ObjectId;
|
|
185
185
|
address: string;
|
|
186
|
-
country: string;
|
|
187
186
|
location: {
|
|
188
187
|
type: GeoLocationType;
|
|
189
188
|
coordinates: [number, number];
|
|
190
189
|
};
|
|
190
|
+
country: string;
|
|
191
191
|
latitude: number;
|
|
192
192
|
longitude: number;
|
|
193
193
|
addressLabel: string;
|
|
194
194
|
apartment: string;
|
|
195
195
|
buildingName: string;
|
|
196
|
+
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
196
197
|
description?: string | undefined;
|
|
197
198
|
city?: string | undefined;
|
|
198
199
|
state?: string | undefined;
|
|
199
|
-
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
200
200
|
deliveryOption?: string | undefined;
|
|
201
201
|
instructions?: string | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
_id: string | import("mongoose").Types.ObjectId;
|
|
204
204
|
address: string;
|
|
205
|
-
country: string;
|
|
206
205
|
location: {
|
|
207
206
|
coordinates: [number, number];
|
|
208
207
|
type?: GeoLocationType | undefined;
|
|
209
208
|
};
|
|
209
|
+
country: string;
|
|
210
210
|
latitude: number;
|
|
211
211
|
longitude: number;
|
|
212
212
|
addressLabel: string;
|
|
213
213
|
apartment: string;
|
|
214
214
|
buildingName: string;
|
|
215
|
+
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
215
216
|
description?: string | undefined;
|
|
216
217
|
city?: string | undefined;
|
|
217
218
|
state?: string | undefined;
|
|
218
|
-
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
219
219
|
deliveryOption?: string | undefined;
|
|
220
220
|
instructions?: string | undefined;
|
|
221
221
|
}>;
|
|
@@ -248,41 +248,41 @@ export declare const CourierAddressSchema: z.ZodObject<{
|
|
|
248
248
|
apartment: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
249
249
|
buildingName: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
250
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
name: string;
|
|
251
252
|
address: string;
|
|
252
|
-
country: string;
|
|
253
253
|
location: {
|
|
254
254
|
type: GeoLocationType;
|
|
255
255
|
coordinates: [number, number];
|
|
256
256
|
};
|
|
257
|
+
phoneNumber: string;
|
|
258
|
+
country: string;
|
|
257
259
|
latitude: number;
|
|
258
260
|
longitude: number;
|
|
259
261
|
addressLabel: string;
|
|
260
|
-
|
|
261
|
-
phoneNumber: string;
|
|
262
|
+
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
262
263
|
description?: string | undefined;
|
|
263
264
|
city?: string | undefined;
|
|
264
265
|
state?: string | undefined;
|
|
265
|
-
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
266
266
|
apartment?: string | undefined;
|
|
267
267
|
buildingName?: string | undefined;
|
|
268
268
|
deliveryOption?: string | undefined;
|
|
269
269
|
instructions?: string | undefined;
|
|
270
270
|
}, {
|
|
271
|
+
name: string;
|
|
271
272
|
address: string;
|
|
272
|
-
country: string;
|
|
273
273
|
location: {
|
|
274
274
|
coordinates: [number, number];
|
|
275
275
|
type?: GeoLocationType | undefined;
|
|
276
276
|
};
|
|
277
|
+
phoneNumber: string;
|
|
278
|
+
country: string;
|
|
277
279
|
latitude: number;
|
|
278
280
|
longitude: number;
|
|
279
281
|
addressLabel: string;
|
|
280
|
-
|
|
281
|
-
phoneNumber: string;
|
|
282
|
+
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
282
283
|
description?: string | undefined;
|
|
283
284
|
city?: string | undefined;
|
|
284
285
|
state?: string | undefined;
|
|
285
|
-
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
286
286
|
apartment?: string | undefined;
|
|
287
287
|
buildingName?: string | undefined;
|
|
288
288
|
deliveryOption?: string | undefined;
|
|
@@ -306,43 +306,43 @@ export declare const NormalHourSchema: z.ZodObject<{
|
|
|
306
306
|
start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
307
307
|
end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
start: string;
|
|
310
309
|
end: string;
|
|
311
|
-
}, {
|
|
312
310
|
start: string;
|
|
311
|
+
}, {
|
|
313
312
|
end: string;
|
|
314
|
-
}>, {
|
|
315
313
|
start: string;
|
|
314
|
+
}>, {
|
|
316
315
|
end: string;
|
|
317
|
-
}, {
|
|
318
316
|
start: string;
|
|
317
|
+
}, {
|
|
319
318
|
end: string;
|
|
320
|
-
}>, {
|
|
321
319
|
start: string;
|
|
320
|
+
}>, {
|
|
322
321
|
end: string;
|
|
323
|
-
}, {
|
|
324
322
|
start: string;
|
|
323
|
+
}, {
|
|
325
324
|
end: string;
|
|
326
|
-
}>, "many">>, {
|
|
327
325
|
start: string;
|
|
326
|
+
}>, "many">>, {
|
|
328
327
|
end: string;
|
|
329
|
-
}[], {
|
|
330
328
|
start: string;
|
|
329
|
+
}[], {
|
|
331
330
|
end: string;
|
|
331
|
+
start: string;
|
|
332
332
|
}[] | undefined>;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
334
|
status: WorkStatus;
|
|
335
335
|
day: WeekDay;
|
|
336
336
|
openingHours: {
|
|
337
|
-
start: string;
|
|
338
337
|
end: string;
|
|
338
|
+
start: string;
|
|
339
339
|
}[];
|
|
340
340
|
}, {
|
|
341
341
|
status: WorkStatus;
|
|
342
342
|
day: WeekDay;
|
|
343
343
|
openingHours?: {
|
|
344
|
-
start: string;
|
|
345
344
|
end: string;
|
|
345
|
+
start: string;
|
|
346
346
|
}[] | undefined;
|
|
347
347
|
}>;
|
|
348
348
|
export declare const HolidayHourSchema: z.ZodObject<{
|
|
@@ -352,37 +352,37 @@ export declare const HolidayHourSchema: z.ZodObject<{
|
|
|
352
352
|
start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
353
353
|
end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
start: string;
|
|
356
355
|
end: string;
|
|
357
|
-
}, {
|
|
358
356
|
start: string;
|
|
357
|
+
}, {
|
|
359
358
|
end: string;
|
|
360
|
-
}>, {
|
|
361
359
|
start: string;
|
|
360
|
+
}>, {
|
|
362
361
|
end: string;
|
|
363
|
-
}, {
|
|
364
362
|
start: string;
|
|
363
|
+
}, {
|
|
365
364
|
end: string;
|
|
366
|
-
}>, {
|
|
367
365
|
start: string;
|
|
366
|
+
}>, {
|
|
368
367
|
end: string;
|
|
369
|
-
}, {
|
|
370
368
|
start: string;
|
|
369
|
+
}, {
|
|
371
370
|
end: string;
|
|
371
|
+
start: string;
|
|
372
372
|
}>;
|
|
373
373
|
}, "strip", z.ZodTypeAny, {
|
|
374
374
|
status: HolidayWorkStatus;
|
|
375
375
|
date: Date;
|
|
376
376
|
closingHour: {
|
|
377
|
-
start: string;
|
|
378
377
|
end: string;
|
|
378
|
+
start: string;
|
|
379
379
|
};
|
|
380
380
|
}, {
|
|
381
381
|
status: HolidayWorkStatus;
|
|
382
382
|
date: string | Date;
|
|
383
383
|
closingHour: {
|
|
384
|
-
start: string;
|
|
385
384
|
end: string;
|
|
385
|
+
start: string;
|
|
386
386
|
};
|
|
387
387
|
}>;
|
|
388
388
|
export declare const WorkHourSettingSchema: z.ZodObject<{
|
|
@@ -393,43 +393,43 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
|
|
|
393
393
|
start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
394
394
|
end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
395
395
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
start: string;
|
|
397
396
|
end: string;
|
|
398
|
-
}, {
|
|
399
397
|
start: string;
|
|
398
|
+
}, {
|
|
400
399
|
end: string;
|
|
401
|
-
}>, {
|
|
402
400
|
start: string;
|
|
401
|
+
}>, {
|
|
403
402
|
end: string;
|
|
404
|
-
}, {
|
|
405
403
|
start: string;
|
|
404
|
+
}, {
|
|
406
405
|
end: string;
|
|
407
|
-
}>, {
|
|
408
406
|
start: string;
|
|
407
|
+
}>, {
|
|
409
408
|
end: string;
|
|
410
|
-
}, {
|
|
411
409
|
start: string;
|
|
410
|
+
}, {
|
|
412
411
|
end: string;
|
|
413
|
-
}>, "many">>, {
|
|
414
412
|
start: string;
|
|
413
|
+
}>, "many">>, {
|
|
415
414
|
end: string;
|
|
416
|
-
}[], {
|
|
417
415
|
start: string;
|
|
416
|
+
}[], {
|
|
418
417
|
end: string;
|
|
418
|
+
start: string;
|
|
419
419
|
}[] | undefined>;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
421
|
status: WorkStatus;
|
|
422
422
|
day: WeekDay;
|
|
423
423
|
openingHours: {
|
|
424
|
-
start: string;
|
|
425
424
|
end: string;
|
|
425
|
+
start: string;
|
|
426
426
|
}[];
|
|
427
427
|
}, {
|
|
428
428
|
status: WorkStatus;
|
|
429
429
|
day: WeekDay;
|
|
430
430
|
openingHours?: {
|
|
431
|
-
start: string;
|
|
432
431
|
end: string;
|
|
432
|
+
start: string;
|
|
433
433
|
}[] | undefined;
|
|
434
434
|
}>, "many">>;
|
|
435
435
|
holidayHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -439,37 +439,37 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
|
|
|
439
439
|
start: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
440
440
|
end: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
441
441
|
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
start: string;
|
|
443
442
|
end: string;
|
|
444
|
-
}, {
|
|
445
443
|
start: string;
|
|
444
|
+
}, {
|
|
446
445
|
end: string;
|
|
447
|
-
}>, {
|
|
448
446
|
start: string;
|
|
447
|
+
}>, {
|
|
449
448
|
end: string;
|
|
450
|
-
}, {
|
|
451
449
|
start: string;
|
|
450
|
+
}, {
|
|
452
451
|
end: string;
|
|
453
|
-
}>, {
|
|
454
452
|
start: string;
|
|
453
|
+
}>, {
|
|
455
454
|
end: string;
|
|
456
|
-
}, {
|
|
457
455
|
start: string;
|
|
456
|
+
}, {
|
|
458
457
|
end: string;
|
|
458
|
+
start: string;
|
|
459
459
|
}>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
461
|
status: HolidayWorkStatus;
|
|
462
462
|
date: Date;
|
|
463
463
|
closingHour: {
|
|
464
|
-
start: string;
|
|
465
464
|
end: string;
|
|
465
|
+
start: string;
|
|
466
466
|
};
|
|
467
467
|
}, {
|
|
468
468
|
status: HolidayWorkStatus;
|
|
469
469
|
date: string | Date;
|
|
470
470
|
closingHour: {
|
|
471
|
-
start: string;
|
|
472
471
|
end: string;
|
|
472
|
+
start: string;
|
|
473
473
|
};
|
|
474
474
|
}>, "many">>;
|
|
475
475
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -477,16 +477,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
|
|
|
477
477
|
status: WorkStatus;
|
|
478
478
|
day: WeekDay;
|
|
479
479
|
openingHours: {
|
|
480
|
-
start: string;
|
|
481
480
|
end: string;
|
|
481
|
+
start: string;
|
|
482
482
|
}[];
|
|
483
483
|
}[];
|
|
484
484
|
holidayHours: {
|
|
485
485
|
status: HolidayWorkStatus;
|
|
486
486
|
date: Date;
|
|
487
487
|
closingHour: {
|
|
488
|
-
start: string;
|
|
489
488
|
end: string;
|
|
489
|
+
start: string;
|
|
490
490
|
};
|
|
491
491
|
}[];
|
|
492
492
|
}, {
|
|
@@ -494,16 +494,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
|
|
|
494
494
|
status: WorkStatus;
|
|
495
495
|
day: WeekDay;
|
|
496
496
|
openingHours?: {
|
|
497
|
-
start: string;
|
|
498
497
|
end: string;
|
|
498
|
+
start: string;
|
|
499
499
|
}[] | undefined;
|
|
500
500
|
}[] | undefined;
|
|
501
501
|
holidayHours?: {
|
|
502
502
|
status: HolidayWorkStatus;
|
|
503
503
|
date: string | Date;
|
|
504
504
|
closingHour: {
|
|
505
|
-
start: string;
|
|
506
505
|
end: string;
|
|
506
|
+
start: string;
|
|
507
507
|
};
|
|
508
508
|
}[] | undefined;
|
|
509
509
|
}>;
|
|
@@ -736,12 +736,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
736
736
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
737
737
|
}, "strip", z.ZodTypeAny, {
|
|
738
738
|
_id: import("mongoose").Types.ObjectId;
|
|
739
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
740
739
|
populate?: any;
|
|
740
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
741
741
|
}, {
|
|
742
742
|
_id: string | import("mongoose").Types.ObjectId;
|
|
743
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
744
743
|
populate?: any;
|
|
744
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
745
745
|
}>;
|
|
746
746
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
747
747
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -754,12 +754,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
754
754
|
_id: import("mongoose").Types.ObjectId;
|
|
755
755
|
withAttributeHiddenItems: boolean;
|
|
756
756
|
withAddonsHiddenItems: boolean;
|
|
757
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
758
757
|
populate?: any;
|
|
758
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
759
759
|
}, {
|
|
760
760
|
_id: string | import("mongoose").Types.ObjectId;
|
|
761
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
762
761
|
populate?: any;
|
|
762
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
763
763
|
withAttributeHiddenItems?: boolean | undefined;
|
|
764
764
|
withAddonsHiddenItems?: boolean | undefined;
|
|
765
765
|
}>;
|
|
@@ -773,15 +773,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
773
773
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
774
774
|
}, "strip", z.ZodTypeAny, {
|
|
775
775
|
_id: import("mongoose").Types.ObjectId;
|
|
776
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
777
776
|
populate?: any;
|
|
777
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
778
778
|
groupByCategories?: boolean | undefined;
|
|
779
779
|
getParentCategory?: boolean | undefined;
|
|
780
780
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
781
781
|
}, {
|
|
782
782
|
_id: string | import("mongoose").Types.ObjectId;
|
|
783
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
784
783
|
populate?: any;
|
|
784
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
785
785
|
groupByCategories?: boolean | undefined;
|
|
786
786
|
getParentCategory?: boolean | undefined;
|
|
787
787
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
@@ -791,11 +791,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
791
791
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
792
792
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
795
794
|
populate?: any;
|
|
796
|
-
}, {
|
|
797
795
|
select?: Record<string, 0 | 1> | undefined;
|
|
796
|
+
}, {
|
|
798
797
|
populate?: any;
|
|
798
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
799
799
|
}>>;
|
|
800
800
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
801
801
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -803,12 +803,12 @@ 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
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
807
806
|
populate?: any;
|
|
807
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
808
808
|
query?: Record<string, any> | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
811
810
|
populate?: any;
|
|
811
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
812
812
|
query?: Record<string, any> | undefined;
|
|
813
813
|
}>;
|
|
814
814
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|
|
@@ -954,13 +954,13 @@ export declare const PaymentInformationSchema: z.ZodObject<{
|
|
|
954
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
|
-
paymentIntentId?: string | undefined;
|
|
958
957
|
orderId?: string | undefined;
|
|
958
|
+
paymentIntentId?: string | undefined;
|
|
959
959
|
transactionId?: string | undefined;
|
|
960
960
|
}, {
|
|
961
|
-
cardType?: CardType | undefined;
|
|
962
|
-
paymentIntentId?: string | undefined;
|
|
963
961
|
orderId?: string | undefined;
|
|
962
|
+
paymentIntentId?: string | undefined;
|
|
963
|
+
cardType?: CardType | undefined;
|
|
964
964
|
transactionId?: string | undefined;
|
|
965
965
|
}>;
|
|
966
966
|
export type PaymentInformationDTO = DTO<typeof PaymentInformationSchema>;
|
|
@@ -983,13 +983,13 @@ export declare const CashBackAmountSchema: z.ZodObject<{
|
|
|
983
983
|
amount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
984
984
|
secondaryAmount: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
985
985
|
}, "strip", z.ZodTypeAny, {
|
|
986
|
-
cashbackRate?: number | undefined;
|
|
987
986
|
amount?: number | undefined;
|
|
988
987
|
secondaryAmount?: number | undefined;
|
|
989
|
-
}, {
|
|
990
988
|
cashbackRate?: number | undefined;
|
|
989
|
+
}, {
|
|
991
990
|
amount?: number | undefined;
|
|
992
991
|
secondaryAmount?: number | undefined;
|
|
992
|
+
cashbackRate?: number | undefined;
|
|
993
993
|
}>;
|
|
994
994
|
export type CashBackAmountDTO = DTO<typeof CashBackAmountSchema>;
|
|
995
995
|
export declare const PaymentRecordSchema: z.ZodObject<{
|
|
@@ -1004,16 +1004,16 @@ export declare const PaymentRecordSchema: z.ZodObject<{
|
|
|
1004
1004
|
amount: number;
|
|
1005
1005
|
provider: PaymentProvider;
|
|
1006
1006
|
authorizedAmount: number;
|
|
1007
|
-
paymentIntentId?: string | null | undefined;
|
|
1008
1007
|
orderId?: string | null | undefined;
|
|
1008
|
+
paymentIntentId?: string | null | undefined;
|
|
1009
1009
|
transactionId?: string | null | undefined;
|
|
1010
1010
|
externalId?: number | null | undefined;
|
|
1011
1011
|
}, {
|
|
1012
1012
|
amount: number;
|
|
1013
1013
|
provider: PaymentProvider;
|
|
1014
1014
|
authorizedAmount: number;
|
|
1015
|
-
paymentIntentId?: string | null | undefined;
|
|
1016
1015
|
orderId?: string | null | undefined;
|
|
1016
|
+
paymentIntentId?: string | null | undefined;
|
|
1017
1017
|
transactionId?: string | null | undefined;
|
|
1018
1018
|
externalId?: number | null | undefined;
|
|
1019
1019
|
}>;
|