@lyxa.ai/core 1.4.296 → 1.4.297-test-1
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/socket/events/chatlist-message-send.socket.event.d.ts +16 -16
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +40 -40
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +16 -16
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +18 -18
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +38 -38
- package/dist/libraries/trpc/middlewares/auth.d.ts +3 -3
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +3 -3
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +3 -3
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +3 -3
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +88 -88
- package/dist/utilities/pagination.d.ts +6 -6
- package/dist/utilities/validation/common-validation.d.ts +115 -115
- package/package.json +4 -2
|
@@ -5,11 +5,11 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
|
-
tokenType: TokenType | undefined;
|
|
10
|
-
req: import("http").IncomingMessage;
|
|
11
8
|
requestId: string | undefined;
|
|
12
9
|
entity: import("../context").EntityContext | undefined;
|
|
10
|
+
req: import("http").IncomingMessage;
|
|
11
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
12
|
+
tokenType: TokenType | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
14
14
|
tokenRenewed: boolean | undefined;
|
|
15
15
|
}, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
|
|
@@ -4,11 +4,11 @@ interface RoleProtectedOptions {
|
|
|
4
4
|
allowedRoles: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
7
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
|
-
tokenType: import("../../auth").TokenType | undefined;
|
|
9
|
-
req: import("http").IncomingMessage;
|
|
10
7
|
requestId: string | undefined;
|
|
11
8
|
entity: import("../context").EntityContext | undefined;
|
|
9
|
+
req: import("http").IncomingMessage;
|
|
10
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
11
|
+
tokenType: import("../../auth").TokenType | undefined;
|
|
12
12
|
usedRefreshToken: boolean | undefined;
|
|
13
13
|
tokenRenewed: boolean | undefined;
|
|
14
14
|
}, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
|
|
@@ -3,11 +3,11 @@ interface PhoneVerifiedOptions {
|
|
|
3
3
|
entityTypes: AuthEntityType[];
|
|
4
4
|
}
|
|
5
5
|
export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
6
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
7
|
-
tokenType: import("../../auth").TokenType | undefined;
|
|
8
|
-
req: import("http").IncomingMessage;
|
|
9
6
|
requestId: string | undefined;
|
|
10
7
|
entity: import("../context").EntityContext | undefined;
|
|
8
|
+
req: import("http").IncomingMessage;
|
|
9
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
|
+
tokenType: import("../../auth").TokenType | undefined;
|
|
11
11
|
usedRefreshToken: boolean | undefined;
|
|
12
12
|
tokenRenewed: boolean | undefined;
|
|
13
13
|
}, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
|
|
@@ -5,11 +5,11 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
|
-
tokenType: TokenType | undefined;
|
|
10
|
-
req: import("http").IncomingMessage;
|
|
11
8
|
requestId: string | undefined;
|
|
12
9
|
entity: import("../context").EntityContext | undefined;
|
|
10
|
+
req: import("http").IncomingMessage;
|
|
11
|
+
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
12
|
+
tokenType: TokenType | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
14
14
|
tokenRenewed: boolean | undefined;
|
|
15
15
|
}, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.297-test-1",
|
|
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",
|
|
@@ -21,25 +21,25 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
size: number;
|
|
23
23
|
page: number;
|
|
24
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
24
25
|
search?: {
|
|
25
26
|
searchKey: string;
|
|
26
27
|
searchFields?: string[] | undefined;
|
|
27
28
|
} | undefined;
|
|
28
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
29
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
30
30
|
populate?: any;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
33
34
|
search?: {
|
|
34
35
|
searchKey: string;
|
|
35
36
|
searchFields?: string[] | undefined;
|
|
36
37
|
} | undefined;
|
|
37
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
38
|
-
size?: number | undefined;
|
|
39
38
|
select?: Record<string, 0 | 1> | undefined;
|
|
40
39
|
populate?: any;
|
|
41
|
-
|
|
40
|
+
size?: number | undefined;
|
|
42
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;
|
|
@@ -63,12 +63,12 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
63
63
|
longitude: z.ZodNumber;
|
|
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
|
+
address: string;
|
|
67
|
+
country: string;
|
|
66
68
|
location: {
|
|
67
69
|
type: GeoLocationType;
|
|
68
70
|
coordinates: [number, number];
|
|
69
71
|
};
|
|
70
|
-
address: string;
|
|
71
|
-
country: string;
|
|
72
72
|
latitude: number;
|
|
73
73
|
longitude: number;
|
|
74
74
|
description?: string | undefined;
|
|
@@ -76,12 +76,12 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
76
76
|
state?: string | undefined;
|
|
77
77
|
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
78
78
|
}, {
|
|
79
|
+
address: string;
|
|
80
|
+
country: string;
|
|
79
81
|
location: {
|
|
80
82
|
coordinates: [number, number];
|
|
81
83
|
type?: GeoLocationType | undefined;
|
|
82
84
|
};
|
|
83
|
-
address: string;
|
|
84
|
-
country: string;
|
|
85
85
|
latitude: number;
|
|
86
86
|
longitude: number;
|
|
87
87
|
description?: string | undefined;
|
|
@@ -116,12 +116,12 @@ export declare const UserAddressSchema: z.ZodObject<{
|
|
|
116
116
|
deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
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
|
+
address: string;
|
|
120
|
+
country: string;
|
|
119
121
|
location: {
|
|
120
122
|
type: GeoLocationType;
|
|
121
123
|
coordinates: [number, number];
|
|
122
124
|
};
|
|
123
|
-
address: string;
|
|
124
|
-
country: string;
|
|
125
125
|
latitude: number;
|
|
126
126
|
longitude: number;
|
|
127
127
|
addressLabel: string;
|
|
@@ -134,12 +134,12 @@ export declare const UserAddressSchema: z.ZodObject<{
|
|
|
134
134
|
deliveryOption?: string | undefined;
|
|
135
135
|
instructions?: string | undefined;
|
|
136
136
|
}, {
|
|
137
|
+
address: string;
|
|
138
|
+
country: string;
|
|
137
139
|
location: {
|
|
138
140
|
coordinates: [number, number];
|
|
139
141
|
type?: GeoLocationType | undefined;
|
|
140
142
|
};
|
|
141
|
-
address: string;
|
|
142
|
-
country: string;
|
|
143
143
|
latitude: number;
|
|
144
144
|
longitude: number;
|
|
145
145
|
addressLabel: string;
|
|
@@ -182,12 +182,12 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
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
|
+
address: string;
|
|
186
|
+
country: string;
|
|
185
187
|
location: {
|
|
186
188
|
type: GeoLocationType;
|
|
187
189
|
coordinates: [number, number];
|
|
188
190
|
};
|
|
189
|
-
address: string;
|
|
190
|
-
country: string;
|
|
191
191
|
latitude: number;
|
|
192
192
|
longitude: number;
|
|
193
193
|
addressLabel: string;
|
|
@@ -201,12 +201,12 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
201
201
|
instructions?: string | undefined;
|
|
202
202
|
}, {
|
|
203
203
|
_id: string | import("mongoose").Types.ObjectId;
|
|
204
|
+
address: string;
|
|
205
|
+
country: string;
|
|
204
206
|
location: {
|
|
205
207
|
coordinates: [number, number];
|
|
206
208
|
type?: GeoLocationType | undefined;
|
|
207
209
|
};
|
|
208
|
-
address: string;
|
|
209
|
-
country: string;
|
|
210
210
|
latitude: number;
|
|
211
211
|
longitude: number;
|
|
212
212
|
addressLabel: string;
|
|
@@ -248,16 +248,16 @@ 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
|
-
|
|
251
|
+
address: string;
|
|
252
|
+
country: string;
|
|
252
253
|
location: {
|
|
253
254
|
type: GeoLocationType;
|
|
254
255
|
coordinates: [number, number];
|
|
255
256
|
};
|
|
256
|
-
address: string;
|
|
257
|
-
country: string;
|
|
258
257
|
latitude: number;
|
|
259
258
|
longitude: number;
|
|
260
259
|
addressLabel: string;
|
|
260
|
+
name: string;
|
|
261
261
|
phoneNumber: string;
|
|
262
262
|
description?: string | undefined;
|
|
263
263
|
city?: string | undefined;
|
|
@@ -268,16 +268,16 @@ export declare const CourierAddressSchema: z.ZodObject<{
|
|
|
268
268
|
deliveryOption?: string | undefined;
|
|
269
269
|
instructions?: string | undefined;
|
|
270
270
|
}, {
|
|
271
|
-
|
|
271
|
+
address: string;
|
|
272
|
+
country: string;
|
|
272
273
|
location: {
|
|
273
274
|
coordinates: [number, number];
|
|
274
275
|
type?: GeoLocationType | undefined;
|
|
275
276
|
};
|
|
276
|
-
address: string;
|
|
277
|
-
country: string;
|
|
278
277
|
latitude: number;
|
|
279
278
|
longitude: number;
|
|
280
279
|
addressLabel: string;
|
|
280
|
+
name: string;
|
|
281
281
|
phoneNumber: string;
|
|
282
282
|
description?: string | undefined;
|
|
283
283
|
city?: 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
|
-
end: string;
|
|
310
309
|
start: string;
|
|
311
|
-
}, {
|
|
312
310
|
end: string;
|
|
311
|
+
}, {
|
|
313
312
|
start: string;
|
|
314
|
-
}>, {
|
|
315
313
|
end: string;
|
|
314
|
+
}>, {
|
|
316
315
|
start: string;
|
|
317
|
-
}, {
|
|
318
316
|
end: string;
|
|
317
|
+
}, {
|
|
319
318
|
start: string;
|
|
320
|
-
}>, {
|
|
321
319
|
end: string;
|
|
320
|
+
}>, {
|
|
322
321
|
start: string;
|
|
323
|
-
}, {
|
|
324
322
|
end: string;
|
|
323
|
+
}, {
|
|
325
324
|
start: string;
|
|
326
|
-
}>, "many">>, {
|
|
327
325
|
end: string;
|
|
326
|
+
}>, "many">>, {
|
|
328
327
|
start: string;
|
|
329
|
-
}[], {
|
|
330
328
|
end: string;
|
|
329
|
+
}[], {
|
|
331
330
|
start: string;
|
|
331
|
+
end: string;
|
|
332
332
|
}[] | undefined>;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
day: WeekDay;
|
|
335
334
|
status: WorkStatus;
|
|
335
|
+
day: WeekDay;
|
|
336
336
|
openingHours: {
|
|
337
|
-
end: string;
|
|
338
337
|
start: string;
|
|
338
|
+
end: string;
|
|
339
339
|
}[];
|
|
340
340
|
}, {
|
|
341
|
-
day: WeekDay;
|
|
342
341
|
status: WorkStatus;
|
|
342
|
+
day: WeekDay;
|
|
343
343
|
openingHours?: {
|
|
344
|
-
end: string;
|
|
345
344
|
start: string;
|
|
345
|
+
end: 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
|
-
end: string;
|
|
356
355
|
start: string;
|
|
357
|
-
}, {
|
|
358
356
|
end: string;
|
|
357
|
+
}, {
|
|
359
358
|
start: string;
|
|
360
|
-
}>, {
|
|
361
359
|
end: string;
|
|
360
|
+
}>, {
|
|
362
361
|
start: string;
|
|
363
|
-
}, {
|
|
364
362
|
end: string;
|
|
363
|
+
}, {
|
|
365
364
|
start: string;
|
|
366
|
-
}>, {
|
|
367
365
|
end: string;
|
|
366
|
+
}>, {
|
|
368
367
|
start: string;
|
|
369
|
-
}, {
|
|
370
368
|
end: string;
|
|
369
|
+
}, {
|
|
371
370
|
start: string;
|
|
371
|
+
end: string;
|
|
372
372
|
}>;
|
|
373
373
|
}, "strip", z.ZodTypeAny, {
|
|
374
|
-
date: Date;
|
|
375
374
|
status: HolidayWorkStatus;
|
|
375
|
+
date: Date;
|
|
376
376
|
closingHour: {
|
|
377
|
-
end: string;
|
|
378
377
|
start: string;
|
|
378
|
+
end: string;
|
|
379
379
|
};
|
|
380
380
|
}, {
|
|
381
|
-
date: string | Date;
|
|
382
381
|
status: HolidayWorkStatus;
|
|
382
|
+
date: string | Date;
|
|
383
383
|
closingHour: {
|
|
384
|
-
end: string;
|
|
385
384
|
start: string;
|
|
385
|
+
end: 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
|
-
end: string;
|
|
397
396
|
start: string;
|
|
398
|
-
}, {
|
|
399
397
|
end: string;
|
|
398
|
+
}, {
|
|
400
399
|
start: string;
|
|
401
|
-
}>, {
|
|
402
400
|
end: string;
|
|
401
|
+
}>, {
|
|
403
402
|
start: string;
|
|
404
|
-
}, {
|
|
405
403
|
end: string;
|
|
404
|
+
}, {
|
|
406
405
|
start: string;
|
|
407
|
-
}>, {
|
|
408
406
|
end: string;
|
|
407
|
+
}>, {
|
|
409
408
|
start: string;
|
|
410
|
-
}, {
|
|
411
409
|
end: string;
|
|
410
|
+
}, {
|
|
412
411
|
start: string;
|
|
413
|
-
}>, "many">>, {
|
|
414
412
|
end: string;
|
|
413
|
+
}>, "many">>, {
|
|
415
414
|
start: string;
|
|
416
|
-
}[], {
|
|
417
415
|
end: string;
|
|
416
|
+
}[], {
|
|
418
417
|
start: string;
|
|
418
|
+
end: string;
|
|
419
419
|
}[] | undefined>;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
|
-
day: WeekDay;
|
|
422
421
|
status: WorkStatus;
|
|
422
|
+
day: WeekDay;
|
|
423
423
|
openingHours: {
|
|
424
|
-
end: string;
|
|
425
424
|
start: string;
|
|
425
|
+
end: string;
|
|
426
426
|
}[];
|
|
427
427
|
}, {
|
|
428
|
-
day: WeekDay;
|
|
429
428
|
status: WorkStatus;
|
|
429
|
+
day: WeekDay;
|
|
430
430
|
openingHours?: {
|
|
431
|
-
end: string;
|
|
432
431
|
start: string;
|
|
432
|
+
end: string;
|
|
433
433
|
}[] | undefined;
|
|
434
434
|
}>, "many">>;
|
|
435
435
|
holidayHours: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -439,71 +439,71 @@ 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
|
-
end: string;
|
|
443
442
|
start: string;
|
|
444
|
-
}, {
|
|
445
443
|
end: string;
|
|
444
|
+
}, {
|
|
446
445
|
start: string;
|
|
447
|
-
}>, {
|
|
448
446
|
end: string;
|
|
447
|
+
}>, {
|
|
449
448
|
start: string;
|
|
450
|
-
}, {
|
|
451
449
|
end: string;
|
|
450
|
+
}, {
|
|
452
451
|
start: string;
|
|
453
|
-
}>, {
|
|
454
452
|
end: string;
|
|
453
|
+
}>, {
|
|
455
454
|
start: string;
|
|
456
|
-
}, {
|
|
457
455
|
end: string;
|
|
456
|
+
}, {
|
|
458
457
|
start: string;
|
|
458
|
+
end: string;
|
|
459
459
|
}>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
date: Date;
|
|
462
461
|
status: HolidayWorkStatus;
|
|
462
|
+
date: Date;
|
|
463
463
|
closingHour: {
|
|
464
|
-
end: string;
|
|
465
464
|
start: string;
|
|
465
|
+
end: string;
|
|
466
466
|
};
|
|
467
467
|
}, {
|
|
468
|
-
date: string | Date;
|
|
469
468
|
status: HolidayWorkStatus;
|
|
469
|
+
date: string | Date;
|
|
470
470
|
closingHour: {
|
|
471
|
-
end: string;
|
|
472
471
|
start: string;
|
|
472
|
+
end: string;
|
|
473
473
|
};
|
|
474
474
|
}>, "many">>;
|
|
475
475
|
}, "strip", z.ZodTypeAny, {
|
|
476
476
|
normalHours: {
|
|
477
|
-
day: WeekDay;
|
|
478
477
|
status: WorkStatus;
|
|
478
|
+
day: WeekDay;
|
|
479
479
|
openingHours: {
|
|
480
|
-
end: string;
|
|
481
480
|
start: string;
|
|
481
|
+
end: string;
|
|
482
482
|
}[];
|
|
483
483
|
}[];
|
|
484
484
|
holidayHours: {
|
|
485
|
-
date: Date;
|
|
486
485
|
status: HolidayWorkStatus;
|
|
486
|
+
date: Date;
|
|
487
487
|
closingHour: {
|
|
488
|
-
end: string;
|
|
489
488
|
start: string;
|
|
489
|
+
end: string;
|
|
490
490
|
};
|
|
491
491
|
}[];
|
|
492
492
|
}, {
|
|
493
493
|
normalHours?: {
|
|
494
|
-
day: WeekDay;
|
|
495
494
|
status: WorkStatus;
|
|
495
|
+
day: WeekDay;
|
|
496
496
|
openingHours?: {
|
|
497
|
-
end: string;
|
|
498
497
|
start: string;
|
|
498
|
+
end: string;
|
|
499
499
|
}[] | undefined;
|
|
500
500
|
}[] | undefined;
|
|
501
501
|
holidayHours?: {
|
|
502
|
-
date: string | Date;
|
|
503
502
|
status: HolidayWorkStatus;
|
|
503
|
+
date: string | Date;
|
|
504
504
|
closingHour: {
|
|
505
|
-
end: string;
|
|
506
505
|
start: string;
|
|
506
|
+
end: string;
|
|
507
507
|
};
|
|
508
508
|
}[] | undefined;
|
|
509
509
|
}>;
|
|
@@ -816,11 +816,11 @@ declare const ShareableLinkSchema: z.ZodObject<{
|
|
|
816
816
|
link: z.ZodString;
|
|
817
817
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
818
818
|
}, "strip", z.ZodTypeAny, {
|
|
819
|
-
link: string;
|
|
820
819
|
message: string;
|
|
821
|
-
}, {
|
|
822
820
|
link: string;
|
|
821
|
+
}, {
|
|
823
822
|
message: string;
|
|
823
|
+
link: string;
|
|
824
824
|
}>;
|
|
825
825
|
export declare const ShareableLinkResponseSchema: z.ZodObject<{
|
|
826
826
|
success: z.ZodBoolean;
|
|
@@ -843,16 +843,16 @@ export declare const ShareableLinkResponseSchema: z.ZodObject<{
|
|
|
843
843
|
totalPages: number;
|
|
844
844
|
}>>;
|
|
845
845
|
documents: z.ZodArray<z.ZodType<{
|
|
846
|
-
link: string;
|
|
847
846
|
message: string;
|
|
848
|
-
}, z.ZodTypeDef, {
|
|
849
847
|
link: string;
|
|
848
|
+
}, z.ZodTypeDef, {
|
|
850
849
|
message: string;
|
|
850
|
+
link: string;
|
|
851
851
|
}>, "many">;
|
|
852
852
|
}, "strip", z.ZodTypeAny, {
|
|
853
853
|
documents: {
|
|
854
|
-
link: string;
|
|
855
854
|
message: string;
|
|
855
|
+
link: string;
|
|
856
856
|
}[];
|
|
857
857
|
metadata?: {
|
|
858
858
|
size: number;
|
|
@@ -862,8 +862,8 @@ export declare const ShareableLinkResponseSchema: z.ZodObject<{
|
|
|
862
862
|
} | undefined;
|
|
863
863
|
}, {
|
|
864
864
|
documents: {
|
|
865
|
-
link: string;
|
|
866
865
|
message: string;
|
|
866
|
+
link: string;
|
|
867
867
|
}[];
|
|
868
868
|
metadata?: {
|
|
869
869
|
size: number;
|
|
@@ -872,22 +872,22 @@ export declare const ShareableLinkResponseSchema: z.ZodObject<{
|
|
|
872
872
|
totalPages: number;
|
|
873
873
|
} | undefined;
|
|
874
874
|
}>, z.ZodType<{
|
|
875
|
-
link: string;
|
|
876
875
|
message: string;
|
|
877
|
-
}, z.ZodTypeDef, {
|
|
878
876
|
link: string;
|
|
877
|
+
}, z.ZodTypeDef, {
|
|
879
878
|
message: string;
|
|
879
|
+
link: string;
|
|
880
880
|
}>]>>;
|
|
881
881
|
}, "strip", z.ZodTypeAny, {
|
|
882
882
|
message: string;
|
|
883
883
|
success: boolean;
|
|
884
884
|
data?: {
|
|
885
|
-
link: string;
|
|
886
885
|
message: string;
|
|
886
|
+
link: string;
|
|
887
887
|
} | {
|
|
888
888
|
documents: {
|
|
889
|
-
link: string;
|
|
890
889
|
message: string;
|
|
890
|
+
link: string;
|
|
891
891
|
}[];
|
|
892
892
|
metadata?: {
|
|
893
893
|
size: number;
|
|
@@ -900,12 +900,12 @@ export declare const ShareableLinkResponseSchema: z.ZodObject<{
|
|
|
900
900
|
message: string;
|
|
901
901
|
success: boolean;
|
|
902
902
|
data?: {
|
|
903
|
-
link: string;
|
|
904
903
|
message: string;
|
|
904
|
+
link: string;
|
|
905
905
|
} | {
|
|
906
906
|
documents: {
|
|
907
|
-
link: string;
|
|
908
907
|
message: string;
|
|
908
|
+
link: string;
|
|
909
909
|
}[];
|
|
910
910
|
metadata?: {
|
|
911
911
|
size: number;
|
|
@@ -940,11 +940,11 @@ export declare const AssignRiderSchema: z.ZodObject<{
|
|
|
940
940
|
_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>]>;
|
|
941
941
|
language: z.ZodNativeEnum<typeof Language>;
|
|
942
942
|
}, "strip", z.ZodTypeAny, {
|
|
943
|
-
language: Language;
|
|
944
943
|
_id: import("mongoose").Types.ObjectId;
|
|
945
|
-
}, {
|
|
946
944
|
language: Language;
|
|
945
|
+
}, {
|
|
947
946
|
_id: string | import("mongoose").Types.ObjectId;
|
|
947
|
+
language: Language;
|
|
948
948
|
}>;
|
|
949
949
|
export type AssignRiderDTO = DTO<typeof AssignRiderSchema>;
|
|
950
950
|
export declare const PaymentInformationSchema: z.ZodObject<{
|
|
@@ -22,25 +22,25 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
|
|
|
22
22
|
}, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>, z.ZodUndefined]>, "strip">>;
|
|
23
23
|
items: z.ZodArray<ItemType, "many">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
items: ItemType["_output"][];
|
|
25
26
|
metadata: {
|
|
26
|
-
page: number;
|
|
27
27
|
size: number;
|
|
28
|
+
page: number;
|
|
28
29
|
totalElements: number;
|
|
29
30
|
totalPages: number;
|
|
30
31
|
} & {
|
|
31
32
|
[k: string]: string | number | boolean | null | undefined;
|
|
32
33
|
};
|
|
33
|
-
items: ItemType["_output"][];
|
|
34
34
|
}, {
|
|
35
|
+
items: ItemType["_input"][];
|
|
35
36
|
metadata: {
|
|
36
|
-
page: number;
|
|
37
37
|
size: number;
|
|
38
|
+
page: number;
|
|
38
39
|
totalElements: number;
|
|
39
40
|
totalPages: number;
|
|
40
41
|
} & {
|
|
41
42
|
[k: string]: string | number | boolean | null | undefined;
|
|
42
43
|
};
|
|
43
|
-
items: ItemType["_input"][];
|
|
44
44
|
}>;
|
|
45
45
|
export interface RawPaginatedResult<T extends AnyParamConstructor<any>> {
|
|
46
46
|
metadata: {
|
|
@@ -62,15 +62,15 @@ export interface PaginatorOptions<TClass extends AnyParamConstructor<any>> {
|
|
|
62
62
|
}
|
|
63
63
|
export declare function createRawDocumentPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>): (options: PaginatorOptions<T>) => Promise<RawPaginatedResult<T>>;
|
|
64
64
|
export declare function createPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>, itemSchema: z.ZodTypeAny, transformFn?: (doc: DocumentType<T>) => z.infer<typeof itemSchema>): (options: PaginatorOptions<T>) => Promise<{
|
|
65
|
+
items: any[];
|
|
65
66
|
metadata: {
|
|
66
|
-
page: number;
|
|
67
67
|
size: number;
|
|
68
|
+
page: number;
|
|
68
69
|
totalElements: number;
|
|
69
70
|
totalPages: number;
|
|
70
71
|
} & {
|
|
71
72
|
[k: string]: string | number | boolean | null | undefined;
|
|
72
73
|
};
|
|
73
|
-
items: any[];
|
|
74
74
|
}>;
|
|
75
75
|
export declare function paginateAggregation(model: any, pipeline: any[], page?: number, size?: number, sort?: any, populateOptions?: any): Promise<{
|
|
76
76
|
metadata: {
|