@lyxa.ai/core 1.4.301 → 1.4.302
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/chatroom-message-send.socket.event.d.ts +13 -13
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +36 -36
- 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 +13 -13
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +8 -8
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/shared/common-methods.d.ts +1 -0
- package/dist/types/utilities/shared/common-methods.js +4 -0
- package/dist/types/utilities/shared/common-methods.js.map +1 -1
- package/dist/utilities/pagination.d.ts +3 -3
- package/dist/utilities/shared/common-methods.d.ts +1 -0
- package/dist/utilities/shared/common-methods.js +4 -0
- package/dist/utilities/shared/common-methods.js.map +1 -1
- package/dist/utilities/validation/common-validation.d.ts +82 -82
- package/package.json +1 -1
|
@@ -63,8 +63,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
63
63
|
orderId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
|
|
64
64
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
createdAt: Date;
|
|
67
66
|
_id: import("mongoose").Types.ObjectId;
|
|
67
|
+
createdAt: Date;
|
|
68
68
|
sender: {
|
|
69
69
|
type: UserRef;
|
|
70
70
|
name: string;
|
|
@@ -85,12 +85,12 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
85
85
|
longitude?: number | undefined;
|
|
86
86
|
} | undefined;
|
|
87
87
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
88
|
-
content?: string | undefined;
|
|
89
88
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
89
|
+
content?: string | undefined;
|
|
90
90
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
createdAt: Date;
|
|
93
92
|
_id: import("mongoose").Types.ObjectId;
|
|
93
|
+
createdAt: Date;
|
|
94
94
|
sender: {
|
|
95
95
|
type: UserRef;
|
|
96
96
|
name: string;
|
|
@@ -111,8 +111,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
111
111
|
longitude?: number | undefined;
|
|
112
112
|
} | undefined;
|
|
113
113
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
114
|
-
content?: string | undefined;
|
|
115
114
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
115
|
+
content?: string | undefined;
|
|
116
116
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
|
|
@@ -124,14 +124,14 @@ export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
|
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
type: ChatroomType;
|
|
126
126
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
127
|
-
lastMessage?: string | undefined;
|
|
128
127
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
128
|
+
lastMessage?: string | undefined;
|
|
129
129
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
type: ChatroomType;
|
|
132
132
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
133
|
-
lastMessage?: string | undefined;
|
|
134
133
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
134
|
+
lastMessage?: string | undefined;
|
|
135
135
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
export type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatroomMessageSendPushOutputSchema>;
|
|
@@ -199,8 +199,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
199
199
|
orderId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
|
|
200
200
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
createdAt: Date;
|
|
203
202
|
_id: import("mongoose").Types.ObjectId;
|
|
203
|
+
createdAt: Date;
|
|
204
204
|
sender: {
|
|
205
205
|
type: UserRef;
|
|
206
206
|
name: string;
|
|
@@ -221,12 +221,12 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
221
221
|
longitude?: number | undefined;
|
|
222
222
|
} | undefined;
|
|
223
223
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
224
|
-
content?: string | undefined;
|
|
225
224
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
225
|
+
content?: string | undefined;
|
|
226
226
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
227
227
|
}, {
|
|
228
|
-
createdAt: Date;
|
|
229
228
|
_id: import("mongoose").Types.ObjectId;
|
|
229
|
+
createdAt: Date;
|
|
230
230
|
sender: {
|
|
231
231
|
type: UserRef;
|
|
232
232
|
name: string;
|
|
@@ -247,8 +247,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
247
247
|
longitude?: number | undefined;
|
|
248
248
|
} | undefined;
|
|
249
249
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
250
|
-
content?: string | undefined;
|
|
251
250
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
251
|
+
content?: string | undefined;
|
|
252
252
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
253
253
|
}>;
|
|
254
254
|
pushNotificationOutput: z.ZodObject<{
|
|
@@ -260,14 +260,14 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
261
|
type: ChatroomType;
|
|
262
262
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
263
|
-
lastMessage?: string | undefined;
|
|
264
263
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
264
|
+
lastMessage?: string | undefined;
|
|
265
265
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
266
266
|
}, {
|
|
267
267
|
type: ChatroomType;
|
|
268
268
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
269
|
-
lastMessage?: string | undefined;
|
|
270
269
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
270
|
+
lastMessage?: string | undefined;
|
|
271
271
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
};
|
|
@@ -278,8 +278,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
278
278
|
getPushNotificationPayload(): {
|
|
279
279
|
type: ChatroomType;
|
|
280
280
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
281
|
-
lastMessage?: string | undefined;
|
|
282
281
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
282
|
+
lastMessage?: string | undefined;
|
|
283
283
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
protected getIdentifier(): string;
|
|
@@ -39,108 +39,108 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
39
39
|
riderTips: z.ZodNumber;
|
|
40
40
|
secondaryRiderTips: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
total: number;
|
|
42
43
|
deliveryFee: number;
|
|
43
44
|
secondaryDeliveryFee: number;
|
|
44
45
|
riderTips: number;
|
|
45
46
|
secondaryRiderTips: number;
|
|
46
|
-
total: number;
|
|
47
47
|
secondaryTotal: number;
|
|
48
48
|
paidAmount: number;
|
|
49
49
|
secondaryPaidAmount: number;
|
|
50
50
|
}, {
|
|
51
|
+
total: number;
|
|
51
52
|
deliveryFee: number;
|
|
52
53
|
secondaryDeliveryFee: number;
|
|
53
54
|
riderTips: number;
|
|
54
55
|
secondaryRiderTips: number;
|
|
55
|
-
total: number;
|
|
56
56
|
secondaryTotal: number;
|
|
57
57
|
paidAmount: number;
|
|
58
58
|
secondaryPaidAmount: number;
|
|
59
59
|
}>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
paymentMethod: PaymentMethod;
|
|
61
62
|
pricing: {
|
|
63
|
+
total: number;
|
|
62
64
|
deliveryFee: number;
|
|
63
65
|
secondaryDeliveryFee: number;
|
|
64
66
|
riderTips: number;
|
|
65
67
|
secondaryRiderTips: number;
|
|
66
|
-
total: number;
|
|
67
68
|
secondaryTotal: number;
|
|
68
69
|
paidAmount: number;
|
|
69
70
|
secondaryPaidAmount: number;
|
|
70
71
|
};
|
|
71
72
|
shopProfit: number;
|
|
72
|
-
paymentMethod: PaymentMethod;
|
|
73
73
|
}, {
|
|
74
|
+
paymentMethod: PaymentMethod;
|
|
74
75
|
pricing: {
|
|
76
|
+
total: number;
|
|
75
77
|
deliveryFee: number;
|
|
76
78
|
secondaryDeliveryFee: number;
|
|
77
79
|
riderTips: number;
|
|
78
80
|
secondaryRiderTips: number;
|
|
79
|
-
total: number;
|
|
80
81
|
secondaryTotal: number;
|
|
81
82
|
paidAmount: number;
|
|
82
83
|
secondaryPaidAmount: number;
|
|
83
84
|
};
|
|
84
85
|
shopProfit: number;
|
|
85
|
-
paymentMethod: PaymentMethod;
|
|
86
86
|
}>;
|
|
87
87
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
88
88
|
triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
89
89
|
orderActionType: z.ZodNativeEnum<typeof OrderAction>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
createdAt: Date;
|
|
91
93
|
user: {
|
|
92
94
|
_id: import("mongoose").Types.ObjectId;
|
|
93
95
|
name: string;
|
|
94
96
|
};
|
|
95
|
-
createdAt: Date;
|
|
96
|
-
_id: import("mongoose").Types.ObjectId;
|
|
97
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
98
97
|
orderId: string;
|
|
98
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
99
|
+
paymentMethod: PaymentMethod;
|
|
99
100
|
triggerAt: Date;
|
|
100
101
|
adjustedFinance: {
|
|
102
|
+
paymentMethod: PaymentMethod;
|
|
101
103
|
pricing: {
|
|
104
|
+
total: number;
|
|
102
105
|
deliveryFee: number;
|
|
103
106
|
secondaryDeliveryFee: number;
|
|
104
107
|
riderTips: number;
|
|
105
108
|
secondaryRiderTips: number;
|
|
106
|
-
total: number;
|
|
107
109
|
secondaryTotal: number;
|
|
108
110
|
paidAmount: number;
|
|
109
111
|
secondaryPaidAmount: number;
|
|
110
112
|
};
|
|
111
113
|
shopProfit: number;
|
|
112
|
-
paymentMethod: PaymentMethod;
|
|
113
114
|
};
|
|
114
|
-
paymentMethod: PaymentMethod;
|
|
115
115
|
orderActionType: OrderAction;
|
|
116
116
|
orderStatus: RegularOrderStatus;
|
|
117
117
|
orderAction: OrderAction;
|
|
118
118
|
preparationTimeMinutes: number;
|
|
119
119
|
}, {
|
|
120
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
121
|
+
createdAt: Date;
|
|
120
122
|
user: {
|
|
121
123
|
_id: string | import("mongoose").Types.ObjectId;
|
|
122
124
|
name: string;
|
|
123
125
|
};
|
|
124
|
-
createdAt: Date;
|
|
125
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
126
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
127
126
|
orderId: string;
|
|
127
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
128
|
+
paymentMethod: PaymentMethod;
|
|
128
129
|
triggerAt: Date;
|
|
129
130
|
adjustedFinance: {
|
|
131
|
+
paymentMethod: PaymentMethod;
|
|
130
132
|
pricing: {
|
|
133
|
+
total: number;
|
|
131
134
|
deliveryFee: number;
|
|
132
135
|
secondaryDeliveryFee: number;
|
|
133
136
|
riderTips: number;
|
|
134
137
|
secondaryRiderTips: number;
|
|
135
|
-
total: number;
|
|
136
138
|
secondaryTotal: number;
|
|
137
139
|
paidAmount: number;
|
|
138
140
|
secondaryPaidAmount: number;
|
|
139
141
|
};
|
|
140
142
|
shopProfit: number;
|
|
141
|
-
paymentMethod: PaymentMethod;
|
|
142
143
|
};
|
|
143
|
-
paymentMethod: PaymentMethod;
|
|
144
144
|
orderActionType: OrderAction;
|
|
145
145
|
orderStatus: RegularOrderStatus;
|
|
146
146
|
orderAction: OrderAction;
|
|
@@ -183,108 +183,108 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
183
183
|
riderTips: z.ZodNumber;
|
|
184
184
|
secondaryRiderTips: z.ZodNumber;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
total: number;
|
|
186
187
|
deliveryFee: number;
|
|
187
188
|
secondaryDeliveryFee: number;
|
|
188
189
|
riderTips: number;
|
|
189
190
|
secondaryRiderTips: number;
|
|
190
|
-
total: number;
|
|
191
191
|
secondaryTotal: number;
|
|
192
192
|
paidAmount: number;
|
|
193
193
|
secondaryPaidAmount: number;
|
|
194
194
|
}, {
|
|
195
|
+
total: number;
|
|
195
196
|
deliveryFee: number;
|
|
196
197
|
secondaryDeliveryFee: number;
|
|
197
198
|
riderTips: number;
|
|
198
199
|
secondaryRiderTips: number;
|
|
199
|
-
total: number;
|
|
200
200
|
secondaryTotal: number;
|
|
201
201
|
paidAmount: number;
|
|
202
202
|
secondaryPaidAmount: number;
|
|
203
203
|
}>;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
paymentMethod: PaymentMethod;
|
|
205
206
|
pricing: {
|
|
207
|
+
total: number;
|
|
206
208
|
deliveryFee: number;
|
|
207
209
|
secondaryDeliveryFee: number;
|
|
208
210
|
riderTips: number;
|
|
209
211
|
secondaryRiderTips: number;
|
|
210
|
-
total: number;
|
|
211
212
|
secondaryTotal: number;
|
|
212
213
|
paidAmount: number;
|
|
213
214
|
secondaryPaidAmount: number;
|
|
214
215
|
};
|
|
215
216
|
shopProfit: number;
|
|
216
|
-
paymentMethod: PaymentMethod;
|
|
217
217
|
}, {
|
|
218
|
+
paymentMethod: PaymentMethod;
|
|
218
219
|
pricing: {
|
|
220
|
+
total: number;
|
|
219
221
|
deliveryFee: number;
|
|
220
222
|
secondaryDeliveryFee: number;
|
|
221
223
|
riderTips: number;
|
|
222
224
|
secondaryRiderTips: number;
|
|
223
|
-
total: number;
|
|
224
225
|
secondaryTotal: number;
|
|
225
226
|
paidAmount: number;
|
|
226
227
|
secondaryPaidAmount: number;
|
|
227
228
|
};
|
|
228
229
|
shopProfit: number;
|
|
229
|
-
paymentMethod: PaymentMethod;
|
|
230
230
|
}>;
|
|
231
231
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
232
232
|
triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
233
233
|
orderActionType: z.ZodNativeEnum<typeof OrderAction>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
_id: import("mongoose").Types.ObjectId;
|
|
236
|
+
createdAt: Date;
|
|
235
237
|
user: {
|
|
236
238
|
_id: import("mongoose").Types.ObjectId;
|
|
237
239
|
name: string;
|
|
238
240
|
};
|
|
239
|
-
createdAt: Date;
|
|
240
|
-
_id: import("mongoose").Types.ObjectId;
|
|
241
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
242
241
|
orderId: string;
|
|
242
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
243
|
+
paymentMethod: PaymentMethod;
|
|
243
244
|
triggerAt: Date;
|
|
244
245
|
adjustedFinance: {
|
|
246
|
+
paymentMethod: PaymentMethod;
|
|
245
247
|
pricing: {
|
|
248
|
+
total: number;
|
|
246
249
|
deliveryFee: number;
|
|
247
250
|
secondaryDeliveryFee: number;
|
|
248
251
|
riderTips: number;
|
|
249
252
|
secondaryRiderTips: number;
|
|
250
|
-
total: number;
|
|
251
253
|
secondaryTotal: number;
|
|
252
254
|
paidAmount: number;
|
|
253
255
|
secondaryPaidAmount: number;
|
|
254
256
|
};
|
|
255
257
|
shopProfit: number;
|
|
256
|
-
paymentMethod: PaymentMethod;
|
|
257
258
|
};
|
|
258
|
-
paymentMethod: PaymentMethod;
|
|
259
259
|
orderActionType: OrderAction;
|
|
260
260
|
orderStatus: RegularOrderStatus;
|
|
261
261
|
orderAction: OrderAction;
|
|
262
262
|
preparationTimeMinutes: number;
|
|
263
263
|
}, {
|
|
264
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
265
|
+
createdAt: Date;
|
|
264
266
|
user: {
|
|
265
267
|
_id: string | import("mongoose").Types.ObjectId;
|
|
266
268
|
name: string;
|
|
267
269
|
};
|
|
268
|
-
createdAt: Date;
|
|
269
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
270
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
271
270
|
orderId: string;
|
|
271
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
272
|
+
paymentMethod: PaymentMethod;
|
|
272
273
|
triggerAt: Date;
|
|
273
274
|
adjustedFinance: {
|
|
275
|
+
paymentMethod: PaymentMethod;
|
|
274
276
|
pricing: {
|
|
277
|
+
total: number;
|
|
275
278
|
deliveryFee: number;
|
|
276
279
|
secondaryDeliveryFee: number;
|
|
277
280
|
riderTips: number;
|
|
278
281
|
secondaryRiderTips: number;
|
|
279
|
-
total: number;
|
|
280
282
|
secondaryTotal: number;
|
|
281
283
|
paidAmount: number;
|
|
282
284
|
secondaryPaidAmount: number;
|
|
283
285
|
};
|
|
284
286
|
shopProfit: number;
|
|
285
|
-
paymentMethod: PaymentMethod;
|
|
286
287
|
};
|
|
287
|
-
paymentMethod: PaymentMethod;
|
|
288
288
|
orderActionType: OrderAction;
|
|
289
289
|
orderStatus: RegularOrderStatus;
|
|
290
290
|
orderAction: OrderAction;
|
|
@@ -19,18 +19,18 @@ export declare const RiderLocationUpdateSocketOutputSchema: z.ZodObject<{
|
|
|
19
19
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
updatedAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
updatedAt: Date;
|
|
23
22
|
_id: import("mongoose").Types.ObjectId;
|
|
24
|
-
|
|
23
|
+
updatedAt: Date;
|
|
25
24
|
latitude: number;
|
|
26
25
|
longitude: number;
|
|
26
|
+
riderId: import("mongoose").Types.ObjectId;
|
|
27
27
|
bearing?: number | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
updatedAt: string | Date;
|
|
30
29
|
_id: string | import("mongoose").Types.ObjectId;
|
|
31
|
-
|
|
30
|
+
updatedAt: string | Date;
|
|
32
31
|
latitude: number;
|
|
33
32
|
longitude: number;
|
|
33
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
34
34
|
bearing?: number | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export type RiderLocationUpdateSocketInputDTO = DTO<typeof RiderLocationUpdateSocketInputSchema>;
|
|
@@ -55,18 +55,18 @@ export declare class RiderLocationUpdateSocketEvent extends BaseSocketEvent<type
|
|
|
55
55
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
56
56
|
updatedAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
updatedAt: Date;
|
|
59
58
|
_id: import("mongoose").Types.ObjectId;
|
|
60
|
-
|
|
59
|
+
updatedAt: Date;
|
|
61
60
|
latitude: number;
|
|
62
61
|
longitude: number;
|
|
62
|
+
riderId: import("mongoose").Types.ObjectId;
|
|
63
63
|
bearing?: number | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
updatedAt: string | Date;
|
|
66
65
|
_id: string | import("mongoose").Types.ObjectId;
|
|
67
|
-
|
|
66
|
+
updatedAt: string | Date;
|
|
68
67
|
latitude: number;
|
|
69
68
|
longitude: number;
|
|
69
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
};
|
|
@@ -12,19 +12,19 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
12
12
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
13
13
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
status: TicketStatus;
|
|
15
16
|
type: TicketType;
|
|
16
17
|
_id: import("mongoose").Types.ObjectId;
|
|
17
|
-
|
|
18
|
+
silent?: boolean | undefined;
|
|
18
19
|
title?: string | undefined;
|
|
19
20
|
content?: string | undefined;
|
|
20
|
-
silent?: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
|
+
status: TicketStatus;
|
|
22
23
|
type: TicketType;
|
|
23
24
|
_id: import("mongoose").Types.ObjectId;
|
|
24
|
-
|
|
25
|
+
silent?: boolean | undefined;
|
|
25
26
|
title?: string | undefined;
|
|
26
27
|
content?: string | undefined;
|
|
27
|
-
silent?: boolean | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
30
30
|
ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
@@ -33,14 +33,14 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
|
33
33
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
34
34
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
type: TicketType;
|
|
37
36
|
status: TicketStatus;
|
|
37
|
+
type: TicketType;
|
|
38
38
|
ticketId: import("mongoose").Types.ObjectId;
|
|
39
39
|
title?: string | undefined;
|
|
40
40
|
content?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
type: TicketType;
|
|
43
42
|
status: TicketStatus;
|
|
43
|
+
type: TicketType;
|
|
44
44
|
ticketId: import("mongoose").Types.ObjectId;
|
|
45
45
|
title?: string | undefined;
|
|
46
46
|
content?: string | undefined;
|
|
@@ -59,19 +59,19 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
59
59
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
60
60
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
status: TicketStatus;
|
|
62
63
|
type: TicketType;
|
|
63
64
|
_id: import("mongoose").Types.ObjectId;
|
|
64
|
-
|
|
65
|
+
silent?: boolean | undefined;
|
|
65
66
|
title?: string | undefined;
|
|
66
67
|
content?: string | undefined;
|
|
67
|
-
silent?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
|
+
status: TicketStatus;
|
|
69
70
|
type: TicketType;
|
|
70
71
|
_id: import("mongoose").Types.ObjectId;
|
|
71
|
-
|
|
72
|
+
silent?: boolean | undefined;
|
|
72
73
|
title?: string | undefined;
|
|
73
74
|
content?: string | undefined;
|
|
74
|
-
silent?: boolean | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
pushNotificationOutput: z.ZodObject<{
|
|
77
77
|
ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
@@ -80,14 +80,14 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
80
80
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
81
81
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
type: TicketType;
|
|
84
83
|
status: TicketStatus;
|
|
84
|
+
type: TicketType;
|
|
85
85
|
ticketId: import("mongoose").Types.ObjectId;
|
|
86
86
|
title?: string | undefined;
|
|
87
87
|
content?: string | undefined;
|
|
88
88
|
}, {
|
|
89
|
-
type: TicketType;
|
|
90
89
|
status: TicketStatus;
|
|
90
|
+
type: TicketType;
|
|
91
91
|
ticketId: import("mongoose").Types.ObjectId;
|
|
92
92
|
title?: string | undefined;
|
|
93
93
|
content?: string | undefined;
|
|
@@ -96,8 +96,8 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
96
96
|
get notificationSettings(): NotificationSettings | undefined;
|
|
97
97
|
constructor(payload: TicketActionsSocketOutputDTO);
|
|
98
98
|
getPushNotificationPayload(): {
|
|
99
|
-
type: TicketType;
|
|
100
99
|
status: TicketStatus;
|
|
100
|
+
type: TicketType;
|
|
101
101
|
ticketId: import("mongoose").Types.ObjectId;
|
|
102
102
|
title?: string | undefined;
|
|
103
103
|
content?: string | undefined;
|
|
@@ -39,11 +39,11 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
39
39
|
}>;
|
|
40
40
|
unreadCount: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
status: TicketStatus;
|
|
42
43
|
type: TicketType;
|
|
44
|
+
_id: import("mongoose").Types.ObjectId;
|
|
43
45
|
createdAt: Date;
|
|
44
46
|
updatedAt: Date;
|
|
45
|
-
_id: import("mongoose").Types.ObjectId;
|
|
46
|
-
status: TicketStatus;
|
|
47
47
|
lastMessage: {
|
|
48
48
|
createdAt: Date;
|
|
49
49
|
content: string;
|
|
@@ -58,11 +58,11 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
58
58
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
59
59
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
60
60
|
}, {
|
|
61
|
+
status: TicketStatus;
|
|
61
62
|
type: TicketType;
|
|
63
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
62
64
|
createdAt: string | Date;
|
|
63
65
|
updatedAt: string | Date;
|
|
64
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
65
|
-
status: TicketStatus;
|
|
66
66
|
lastMessage: {
|
|
67
67
|
createdAt: string | Date;
|
|
68
68
|
content: string;
|
|
@@ -117,11 +117,11 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
117
117
|
}>;
|
|
118
118
|
unreadCount: z.ZodNumber;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
status: TicketStatus;
|
|
120
121
|
type: TicketType;
|
|
122
|
+
_id: import("mongoose").Types.ObjectId;
|
|
121
123
|
createdAt: Date;
|
|
122
124
|
updatedAt: Date;
|
|
123
|
-
_id: import("mongoose").Types.ObjectId;
|
|
124
|
-
status: TicketStatus;
|
|
125
125
|
lastMessage: {
|
|
126
126
|
createdAt: Date;
|
|
127
127
|
content: string;
|
|
@@ -136,11 +136,11 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
136
136
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
137
137
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
138
138
|
}, {
|
|
139
|
+
status: TicketStatus;
|
|
139
140
|
type: TicketType;
|
|
141
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
140
142
|
createdAt: string | Date;
|
|
141
143
|
updatedAt: string | Date;
|
|
142
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
143
|
-
status: TicketStatus;
|
|
144
144
|
lastMessage: {
|
|
145
145
|
createdAt: string | Date;
|
|
146
146
|
content: string;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ItemType, ProductDietaryType } from "../enum";
|
|
2
|
+
export declare function getGroceryFamilyItemTypes(): ItemType[];
|
|
2
3
|
export declare function isGroceryFamilyItemType(itemType: ItemType): boolean;
|
|
3
4
|
export declare function getProductDietariesByItemType(itemType: ItemType): {
|
|
4
5
|
icon: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGroceryFamilyItemTypes = getGroceryFamilyItemTypes;
|
|
3
4
|
exports.isGroceryFamilyItemType = isGroceryFamilyItemType;
|
|
4
5
|
exports.getProductDietariesByItemType = getProductDietariesByItemType;
|
|
5
6
|
const enum_1 = require("../enum");
|
|
6
7
|
const GROCERY_FAMILY_ITEM_TYPES = [enum_1.ItemType.GROCERY, enum_1.ItemType.PET, enum_1.ItemType.WELLNESS, enum_1.ItemType.ELECTRONICS, enum_1.ItemType.BEAUTY];
|
|
8
|
+
function getGroceryFamilyItemTypes() {
|
|
9
|
+
return GROCERY_FAMILY_ITEM_TYPES;
|
|
10
|
+
}
|
|
7
11
|
function isGroceryFamilyItemType(itemType) {
|
|
8
12
|
return GROCERY_FAMILY_ITEM_TYPES.includes(itemType);
|
|
9
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAIA,0DAEC;AAED,sEAmBC;
|
|
1
|
+
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAIA,8DAEC;AAED,0DAEC;AAED,sEAmBC;AA/BD,kCAAuD;AAEvD,MAAM,yBAAyB,GAAe,CAAC,eAAQ,CAAC,OAAO,EAAE,eAAQ,CAAC,GAAG,EAAE,eAAQ,CAAC,QAAQ,EAAE,eAAQ,CAAC,WAAW,EAAE,eAAQ,CAAC,MAAM,CAAU,CAAC;AAElJ,SAAgB,yBAAyB;IACrC,OAAO,yBAAyB,CAAC;AACrC,CAAC;AAED,SAAgB,uBAAuB,CAAC,QAAkB;IACtD,OAAO,yBAAyB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,6BAA6B,CAAC,QAAkB;IAC5D,IAAI,uBAAuB,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpC,OAAO;YACH,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,WAAW,EAAE;YACtF,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,YAAY,EAAE;YACxF,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,OAAO,EAAE;YAC9E,EAAE,IAAI,EAAE,iFAAiF,EAAE,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,UAAU,EAAE;YACnK,EAAE,IAAI,EAAE,4EAA4E,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,KAAK,EAAE;YACpJ,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,IAAI,EAAE;YACxE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,YAAY,EAAE;SAC3F,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO;YACH,EAAE,IAAI,EAAE,iFAAiF,EAAE,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,UAAU,EAAE;YACnK,EAAE,IAAI,EAAE,4EAA4E,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,KAAK,EAAE;YACpJ,EAAE,IAAI,EAAE,iFAAiF,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,WAAW,EAAE;YACrK,EAAE,IAAI,EAAE,sFAAsF,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,OAAO,EAAE;SACrK,CAAC;IACN,CAAC;AACL,CAAC","sourcesContent":["import { ItemType, ProductDietaryType } from \"../enum\";\n\nconst GROCERY_FAMILY_ITEM_TYPES: ItemType[] = [ItemType.GROCERY, ItemType.PET, ItemType.WELLNESS, ItemType.ELECTRONICS, ItemType.BEAUTY] as const;\n\nexport function getGroceryFamilyItemTypes() {\n return GROCERY_FAMILY_ITEM_TYPES;\n}\n\nexport function isGroceryFamilyItemType(itemType: ItemType): boolean {\n return GROCERY_FAMILY_ITEM_TYPES.includes(itemType);\n}\n\nexport function getProductDietariesByItemType(itemType: ItemType): { icon: string, label: string, productDietaryType: ProductDietaryType }[] {\n if (isGroceryFamilyItemType(itemType)) {\n return [\n { icon: '', label: 'Gluten Free', productDietaryType: ProductDietaryType.GLUTEN_FREE },\n { icon: '', label: 'Lactose Free', productDietaryType: ProductDietaryType.LACTOSE_FREE },\n { icon: '', label: 'Low Cal', productDietaryType: ProductDietaryType.LOW_CAL },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png', label: 'Vegetarian', productDietaryType: ProductDietaryType.VEGETARIAN },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png', label: 'Vegan', productDietaryType: ProductDietaryType.VEGAN },\n { icon: '', label: 'Keto', productDietaryType: ProductDietaryType.KETO },\n { icon: '', label: 'High Protein', productDietaryType: ProductDietaryType.HIGH_PROTEIN }\n ];\n } else {\n return [\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png', label: 'Vegeterian', productDietaryType: ProductDietaryType.VEGETARIAN },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png', label: 'Vegan', productDietaryType: ProductDietaryType.VEGAN },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/glutenFree.png', label: 'Gluten Free', productDietaryType: ProductDietaryType.GLUTEN_FREE },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/allergyFriendly.png', label: 'Low Cal', productDietaryType: ProductDietaryType.LOW_CAL }\n ];\n }\n}"]}
|
|
@@ -22,6 +22,7 @@ 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
27
|
size: number;
|
|
27
28
|
page: number;
|
|
@@ -30,8 +31,8 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
|
|
|
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
37
|
size: number;
|
|
37
38
|
page: number;
|
|
@@ -40,7 +41,6 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
|
|
|
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,6 +62,7 @@ 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
67
|
size: number;
|
|
67
68
|
page: number;
|
|
@@ -70,7 +71,6 @@ export declare function createPaginatorObject<T extends AnyParamConstructor<any>
|
|
|
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: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ItemType, ProductDietaryType } from "../enum";
|
|
2
|
+
export declare function getGroceryFamilyItemTypes(): ItemType[];
|
|
2
3
|
export declare function isGroceryFamilyItemType(itemType: ItemType): boolean;
|
|
3
4
|
export declare function getProductDietariesByItemType(itemType: ItemType): {
|
|
4
5
|
icon: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGroceryFamilyItemTypes = getGroceryFamilyItemTypes;
|
|
3
4
|
exports.isGroceryFamilyItemType = isGroceryFamilyItemType;
|
|
4
5
|
exports.getProductDietariesByItemType = getProductDietariesByItemType;
|
|
5
6
|
const enum_1 = require("../enum");
|
|
6
7
|
const GROCERY_FAMILY_ITEM_TYPES = [enum_1.ItemType.GROCERY, enum_1.ItemType.PET, enum_1.ItemType.WELLNESS, enum_1.ItemType.ELECTRONICS, enum_1.ItemType.BEAUTY];
|
|
8
|
+
function getGroceryFamilyItemTypes() {
|
|
9
|
+
return GROCERY_FAMILY_ITEM_TYPES;
|
|
10
|
+
}
|
|
7
11
|
function isGroceryFamilyItemType(itemType) {
|
|
8
12
|
return GROCERY_FAMILY_ITEM_TYPES.includes(itemType);
|
|
9
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAIA,0DAEC;AAED,sEAmBC;
|
|
1
|
+
{"version":3,"file":"common-methods.js","sourceRoot":"/","sources":["utilities/shared/common-methods.ts"],"names":[],"mappings":";;AAIA,8DAEC;AAED,0DAEC;AAED,sEAmBC;AA/BD,kCAAuD;AAEvD,MAAM,yBAAyB,GAAe,CAAC,eAAQ,CAAC,OAAO,EAAE,eAAQ,CAAC,GAAG,EAAE,eAAQ,CAAC,QAAQ,EAAE,eAAQ,CAAC,WAAW,EAAE,eAAQ,CAAC,MAAM,CAAU,CAAC;AAElJ,SAAgB,yBAAyB;IACrC,OAAO,yBAAyB,CAAC;AACrC,CAAC;AAED,SAAgB,uBAAuB,CAAC,QAAkB;IACtD,OAAO,yBAAyB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,6BAA6B,CAAC,QAAkB;IAC5D,IAAI,uBAAuB,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpC,OAAO;YACH,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,WAAW,EAAE;YACtF,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,YAAY,EAAE;YACxF,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,OAAO,EAAE;YAC9E,EAAE,IAAI,EAAE,iFAAiF,EAAE,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,UAAU,EAAE;YACnK,EAAE,IAAI,EAAE,4EAA4E,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,KAAK,EAAE;YACpJ,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,IAAI,EAAE;YACxE,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,YAAY,EAAE;SAC3F,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO;YACH,EAAE,IAAI,EAAE,iFAAiF,EAAE,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,UAAU,EAAE;YACnK,EAAE,IAAI,EAAE,4EAA4E,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,KAAK,EAAE;YACpJ,EAAE,IAAI,EAAE,iFAAiF,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,WAAW,EAAE;YACrK,EAAE,IAAI,EAAE,sFAAsF,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,yBAAkB,CAAC,OAAO,EAAE;SACrK,CAAC;IACN,CAAC;AACL,CAAC","sourcesContent":["import { ItemType, ProductDietaryType } from \"../enum\";\n\nconst GROCERY_FAMILY_ITEM_TYPES: ItemType[] = [ItemType.GROCERY, ItemType.PET, ItemType.WELLNESS, ItemType.ELECTRONICS, ItemType.BEAUTY] as const;\n\nexport function getGroceryFamilyItemTypes() {\n return GROCERY_FAMILY_ITEM_TYPES;\n}\n\nexport function isGroceryFamilyItemType(itemType: ItemType): boolean {\n return GROCERY_FAMILY_ITEM_TYPES.includes(itemType);\n}\n\nexport function getProductDietariesByItemType(itemType: ItemType): { icon: string, label: string, productDietaryType: ProductDietaryType }[] {\n if (isGroceryFamilyItemType(itemType)) {\n return [\n { icon: '', label: 'Gluten Free', productDietaryType: ProductDietaryType.GLUTEN_FREE },\n { icon: '', label: 'Lactose Free', productDietaryType: ProductDietaryType.LACTOSE_FREE },\n { icon: '', label: 'Low Cal', productDietaryType: ProductDietaryType.LOW_CAL },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png', label: 'Vegetarian', productDietaryType: ProductDietaryType.VEGETARIAN },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png', label: 'Vegan', productDietaryType: ProductDietaryType.VEGAN },\n { icon: '', label: 'Keto', productDietaryType: ProductDietaryType.KETO },\n { icon: '', label: 'High Protein', productDietaryType: ProductDietaryType.HIGH_PROTEIN }\n ];\n } else {\n return [\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegetarian.png', label: 'Vegeterian', productDietaryType: ProductDietaryType.VEGETARIAN },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/vegan.png', label: 'Vegan', productDietaryType: ProductDietaryType.VEGAN },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/glutenFree.png', label: 'Gluten Free', productDietaryType: ProductDietaryType.GLUTEN_FREE },\n { icon: 'https://storage.googleapis.com/lyxa-global/product-dietary-icons/allergyFriendly.png', label: 'Low Cal', productDietaryType: ProductDietaryType.LOW_CAL }\n ];\n }\n}"]}
|
|
@@ -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
|
-
populate?: any;
|
|
30
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
30
|
+
populate?: any;
|
|
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
|
-
populate?: any;
|
|
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;
|
|
@@ -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;
|
|
67
68
|
location: {
|
|
68
69
|
type: GeoLocationType;
|
|
69
70
|
coordinates: [number, number];
|
|
70
71
|
};
|
|
71
|
-
country: string;
|
|
72
72
|
latitude: number;
|
|
73
73
|
longitude: number;
|
|
74
|
-
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
75
74
|
description?: string | undefined;
|
|
76
75
|
city?: string | undefined;
|
|
77
76
|
state?: string | undefined;
|
|
77
|
+
zone?: import("mongoose").Types.ObjectId | undefined;
|
|
78
78
|
}, {
|
|
79
79
|
address: string;
|
|
80
|
+
country: string;
|
|
80
81
|
location: {
|
|
81
82
|
coordinates: [number, number];
|
|
82
83
|
type?: GeoLocationType | undefined;
|
|
83
84
|
};
|
|
84
|
-
country: string;
|
|
85
85
|
latitude: number;
|
|
86
86
|
longitude: number;
|
|
87
|
-
zone?: string | import("mongoose").Types.ObjectId | undefined;
|
|
88
87
|
description?: string | undefined;
|
|
89
88
|
city?: string | undefined;
|
|
90
89
|
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;
|
|
120
121
|
location: {
|
|
121
122
|
type: GeoLocationType;
|
|
122
123
|
coordinates: [number, number];
|
|
123
124
|
};
|
|
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;
|
|
131
130
|
description?: string | undefined;
|
|
132
131
|
city?: string | undefined;
|
|
133
132
|
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;
|
|
138
139
|
location: {
|
|
139
140
|
coordinates: [number, number];
|
|
140
141
|
type?: GeoLocationType | undefined;
|
|
141
142
|
};
|
|
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;
|
|
149
148
|
description?: string | undefined;
|
|
150
149
|
city?: string | undefined;
|
|
151
150
|
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;
|
|
186
187
|
location: {
|
|
187
188
|
type: GeoLocationType;
|
|
188
189
|
coordinates: [number, number];
|
|
189
190
|
};
|
|
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;
|
|
197
196
|
description?: string | undefined;
|
|
198
197
|
city?: string | undefined;
|
|
199
198
|
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;
|
|
205
206
|
location: {
|
|
206
207
|
coordinates: [number, number];
|
|
207
208
|
type?: GeoLocationType | undefined;
|
|
208
209
|
};
|
|
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;
|
|
216
215
|
description?: string | undefined;
|
|
217
216
|
city?: string | undefined;
|
|
218
217
|
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;
|
|
252
251
|
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;
|
|
259
257
|
latitude: number;
|
|
260
258
|
longitude: number;
|
|
261
259
|
addressLabel: string;
|
|
262
|
-
|
|
260
|
+
name: string;
|
|
261
|
+
phoneNumber: string;
|
|
263
262
|
description?: string | undefined;
|
|
264
263
|
city?: string | undefined;
|
|
265
264
|
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;
|
|
272
271
|
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;
|
|
279
277
|
latitude: number;
|
|
280
278
|
longitude: number;
|
|
281
279
|
addressLabel: string;
|
|
282
|
-
|
|
280
|
+
name: string;
|
|
281
|
+
phoneNumber: string;
|
|
283
282
|
description?: string | undefined;
|
|
284
283
|
city?: string | undefined;
|
|
285
284
|
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
|
-
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
334
|
status: WorkStatus;
|
|
335
335
|
day: WeekDay;
|
|
336
336
|
openingHours: {
|
|
337
|
-
end: string;
|
|
338
337
|
start: string;
|
|
338
|
+
end: string;
|
|
339
339
|
}[];
|
|
340
340
|
}, {
|
|
341
341
|
status: WorkStatus;
|
|
342
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
374
|
status: HolidayWorkStatus;
|
|
375
375
|
date: Date;
|
|
376
376
|
closingHour: {
|
|
377
|
-
end: string;
|
|
378
377
|
start: string;
|
|
378
|
+
end: string;
|
|
379
379
|
};
|
|
380
380
|
}, {
|
|
381
381
|
status: HolidayWorkStatus;
|
|
382
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
421
|
status: WorkStatus;
|
|
422
422
|
day: WeekDay;
|
|
423
423
|
openingHours: {
|
|
424
|
-
end: string;
|
|
425
424
|
start: string;
|
|
425
|
+
end: string;
|
|
426
426
|
}[];
|
|
427
427
|
}, {
|
|
428
428
|
status: WorkStatus;
|
|
429
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,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
|
-
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
461
|
status: HolidayWorkStatus;
|
|
462
462
|
date: Date;
|
|
463
463
|
closingHour: {
|
|
464
|
-
end: string;
|
|
465
464
|
start: string;
|
|
465
|
+
end: string;
|
|
466
466
|
};
|
|
467
467
|
}, {
|
|
468
468
|
status: HolidayWorkStatus;
|
|
469
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, {
|
|
@@ -477,16 +477,16 @@ export declare const WorkHourSettingSchema: z.ZodObject<{
|
|
|
477
477
|
status: WorkStatus;
|
|
478
478
|
day: WeekDay;
|
|
479
479
|
openingHours: {
|
|
480
|
-
end: string;
|
|
481
480
|
start: string;
|
|
481
|
+
end: string;
|
|
482
482
|
}[];
|
|
483
483
|
}[];
|
|
484
484
|
holidayHours: {
|
|
485
485
|
status: HolidayWorkStatus;
|
|
486
486
|
date: Date;
|
|
487
487
|
closingHour: {
|
|
488
|
-
end: string;
|
|
489
488
|
start: string;
|
|
489
|
+
end: 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
|
-
end: string;
|
|
498
497
|
start: string;
|
|
498
|
+
end: string;
|
|
499
499
|
}[] | undefined;
|
|
500
500
|
}[] | undefined;
|
|
501
501
|
holidayHours?: {
|
|
502
502
|
status: HolidayWorkStatus;
|
|
503
503
|
date: string | Date;
|
|
504
504
|
closingHour: {
|
|
505
|
-
end: string;
|
|
506
505
|
start: string;
|
|
506
|
+
end: 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
|
-
populate?: any;
|
|
740
739
|
select?: Record<string, 0 | 1> | undefined;
|
|
740
|
+
populate?: any;
|
|
741
741
|
}, {
|
|
742
742
|
_id: string | import("mongoose").Types.ObjectId;
|
|
743
|
-
populate?: any;
|
|
744
743
|
select?: Record<string, 0 | 1> | undefined;
|
|
744
|
+
populate?: any;
|
|
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
|
-
populate?: any;
|
|
758
757
|
select?: Record<string, 0 | 1> | undefined;
|
|
758
|
+
populate?: any;
|
|
759
759
|
}, {
|
|
760
760
|
_id: string | import("mongoose").Types.ObjectId;
|
|
761
|
-
populate?: any;
|
|
762
761
|
select?: Record<string, 0 | 1> | undefined;
|
|
762
|
+
populate?: any;
|
|
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
|
-
populate?: any;
|
|
777
776
|
select?: Record<string, 0 | 1> | undefined;
|
|
777
|
+
populate?: any;
|
|
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
|
-
populate?: any;
|
|
784
783
|
select?: Record<string, 0 | 1> | undefined;
|
|
784
|
+
populate?: any;
|
|
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
|
-
populate?: any;
|
|
795
794
|
select?: Record<string, 0 | 1> | undefined;
|
|
796
|
-
}, {
|
|
797
795
|
populate?: any;
|
|
796
|
+
}, {
|
|
798
797
|
select?: Record<string, 0 | 1> | undefined;
|
|
798
|
+
populate?: any;
|
|
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
|
-
populate?: any;
|
|
807
806
|
select?: Record<string, 0 | 1> | undefined;
|
|
807
|
+
populate?: any;
|
|
808
808
|
query?: Record<string, any> | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
populate?: any;
|
|
811
810
|
select?: Record<string, 0 | 1> | undefined;
|
|
811
|
+
populate?: any;
|
|
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
|
-
orderId?: string | undefined;
|
|
958
957
|
paymentIntentId?: string | undefined;
|
|
958
|
+
orderId?: string | undefined;
|
|
959
959
|
transactionId?: string | undefined;
|
|
960
960
|
}, {
|
|
961
|
-
orderId?: string | undefined;
|
|
962
|
-
paymentIntentId?: string | undefined;
|
|
963
961
|
cardType?: CardType | undefined;
|
|
962
|
+
paymentIntentId?: string | undefined;
|
|
963
|
+
orderId?: string | 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;
|
|
986
987
|
amount?: number | undefined;
|
|
987
988
|
secondaryAmount?: number | undefined;
|
|
988
|
-
cashbackRate?: number | undefined;
|
|
989
989
|
}, {
|
|
990
|
+
cashbackRate?: number | undefined;
|
|
990
991
|
amount?: number | undefined;
|
|
991
992
|
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,18 +1004,18 @@ export declare const PaymentRecordSchema: z.ZodObject<{
|
|
|
1004
1004
|
amount: number;
|
|
1005
1005
|
provider: PaymentProvider;
|
|
1006
1006
|
authorizedAmount: number;
|
|
1007
|
-
orderId?: string | null | undefined;
|
|
1008
1007
|
paymentIntentId?: string | null | undefined;
|
|
1009
|
-
|
|
1008
|
+
orderId?: string | null | undefined;
|
|
1010
1009
|
transactionId?: string | null | undefined;
|
|
1010
|
+
externalId?: number | null | undefined;
|
|
1011
1011
|
}, {
|
|
1012
1012
|
amount: number;
|
|
1013
1013
|
provider: PaymentProvider;
|
|
1014
1014
|
authorizedAmount: number;
|
|
1015
|
-
orderId?: string | null | undefined;
|
|
1016
1015
|
paymentIntentId?: string | null | undefined;
|
|
1017
|
-
|
|
1016
|
+
orderId?: string | null | undefined;
|
|
1018
1017
|
transactionId?: string | null | undefined;
|
|
1018
|
+
externalId?: number | null | undefined;
|
|
1019
1019
|
}>;
|
|
1020
1020
|
export type PaymentRecordDTO = DTO<typeof PaymentRecordSchema>;
|
|
1021
1021
|
export {};
|