@lyxa.ai/core 1.4.313 → 1.4.315
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/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/libraries/configuration/index.d.ts +0 -1
- package/dist/libraries/configuration/index.js +0 -6
- package/dist/libraries/configuration/index.js.map +1 -1
- package/dist/libraries/llm/providers/openai-provider.js +5 -0
- package/dist/libraries/llm/providers/openai-provider.js.map +1 -1
- package/dist/libraries/secrets/index.d.ts +2 -0
- package/dist/libraries/secrets/index.js +29 -11
- package/dist/libraries/secrets/index.js.map +1 -1
- package/dist/libraries/socket/events/chatlist-message-send.socket.event.d.ts +24 -24
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +70 -70
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +96 -96
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +12 -12
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +13 -13
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +44 -44
- 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/environment/rabbitmq-environments.d.ts +2 -1
- package/dist/utilities/environment/rabbitmq-environments.js +12 -10
- package/dist/utilities/environment/rabbitmq-environments.js.map +1 -1
- package/dist/utilities/environment/redis-environments.d.ts +1 -1
- package/dist/utilities/environment/redis-environments.js +13 -10
- package/dist/utilities/environment/redis-environments.js.map +1 -1
- package/dist/utilities/pagination.d.ts +3 -3
- package/dist/utilities/validation/common-validation.d.ts +72 -72
- package/package.json +1 -1
|
@@ -20,13 +20,13 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
20
20
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
21
21
|
type: z.ZodNativeEnum<typeof UserRef>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
type: UserRef;
|
|
24
|
-
id: import("mongoose").Types.ObjectId;
|
|
25
23
|
name: string;
|
|
26
|
-
}, {
|
|
27
|
-
type: UserRef;
|
|
28
24
|
id: import("mongoose").Types.ObjectId;
|
|
25
|
+
type: UserRef;
|
|
26
|
+
}, {
|
|
29
27
|
name: string;
|
|
28
|
+
id: import("mongoose").Types.ObjectId;
|
|
29
|
+
type: UserRef;
|
|
30
30
|
}>;
|
|
31
31
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
32
32
|
media: z.ZodArray<z.ZodObject<{
|
|
@@ -36,15 +36,15 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
36
36
|
thumbnailUrl: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
37
37
|
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
mimeType: string;
|
|
40
39
|
mediaType: MediaType;
|
|
41
40
|
mediaUrl: string;
|
|
41
|
+
mimeType: string;
|
|
42
42
|
name?: string | undefined;
|
|
43
43
|
thumbnailUrl?: string | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
mimeType: string;
|
|
46
45
|
mediaType: MediaType;
|
|
47
46
|
mediaUrl: string;
|
|
47
|
+
mimeType: string;
|
|
48
48
|
name?: string | undefined;
|
|
49
49
|
thumbnailUrl?: string | undefined;
|
|
50
50
|
}>, "many">;
|
|
@@ -52,68 +52,68 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
52
52
|
longitude: z.ZodOptional<z.ZodNumber>;
|
|
53
53
|
latitude: z.ZodOptional<z.ZodNumber>;
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
longitude?: number | undefined;
|
|
56
55
|
latitude?: number | undefined;
|
|
57
|
-
}, {
|
|
58
56
|
longitude?: number | undefined;
|
|
57
|
+
}, {
|
|
59
58
|
latitude?: number | undefined;
|
|
59
|
+
longitude?: number | undefined;
|
|
60
60
|
}>>;
|
|
61
61
|
ticketId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
|
|
62
62
|
chatroomId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
|
|
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;
|
|
66
67
|
_id: import("mongoose").Types.ObjectId;
|
|
67
|
-
chatroomType: ChatroomType;
|
|
68
|
-
senderId: import("mongoose").Types.ObjectId;
|
|
69
|
-
senderType: UserRef;
|
|
70
68
|
sender: {
|
|
71
|
-
type: UserRef;
|
|
72
|
-
id: import("mongoose").Types.ObjectId;
|
|
73
69
|
name: string;
|
|
70
|
+
id: import("mongoose").Types.ObjectId;
|
|
71
|
+
type: UserRef;
|
|
74
72
|
};
|
|
73
|
+
senderType: UserRef;
|
|
75
74
|
media: {
|
|
76
|
-
mimeType: string;
|
|
77
75
|
mediaType: MediaType;
|
|
78
76
|
mediaUrl: string;
|
|
77
|
+
mimeType: string;
|
|
79
78
|
name?: string | undefined;
|
|
80
79
|
thumbnailUrl?: string | undefined;
|
|
81
80
|
}[];
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
content?: string | undefined;
|
|
81
|
+
chatroomType: ChatroomType;
|
|
82
|
+
senderId: import("mongoose").Types.ObjectId;
|
|
85
83
|
location?: {
|
|
86
|
-
longitude?: number | undefined;
|
|
87
84
|
latitude?: number | undefined;
|
|
85
|
+
longitude?: number | undefined;
|
|
88
86
|
} | undefined;
|
|
89
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
90
87
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
88
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
89
|
+
content?: string | undefined;
|
|
90
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
91
91
|
}, {
|
|
92
|
+
createdAt: Date;
|
|
92
93
|
_id: import("mongoose").Types.ObjectId;
|
|
93
|
-
chatroomType: ChatroomType;
|
|
94
|
-
senderId: import("mongoose").Types.ObjectId;
|
|
95
|
-
senderType: UserRef;
|
|
96
94
|
sender: {
|
|
97
|
-
type: UserRef;
|
|
98
|
-
id: import("mongoose").Types.ObjectId;
|
|
99
95
|
name: string;
|
|
96
|
+
id: import("mongoose").Types.ObjectId;
|
|
97
|
+
type: UserRef;
|
|
100
98
|
};
|
|
99
|
+
senderType: UserRef;
|
|
101
100
|
media: {
|
|
102
|
-
mimeType: string;
|
|
103
101
|
mediaType: MediaType;
|
|
104
102
|
mediaUrl: string;
|
|
103
|
+
mimeType: string;
|
|
105
104
|
name?: string | undefined;
|
|
106
105
|
thumbnailUrl?: string | undefined;
|
|
107
106
|
}[];
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
content?: string | undefined;
|
|
107
|
+
chatroomType: ChatroomType;
|
|
108
|
+
senderId: import("mongoose").Types.ObjectId;
|
|
111
109
|
location?: {
|
|
112
|
-
longitude?: number | undefined;
|
|
113
110
|
latitude?: number | undefined;
|
|
111
|
+
longitude?: number | undefined;
|
|
114
112
|
} | undefined;
|
|
115
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
116
113
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
114
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
115
|
+
content?: string | undefined;
|
|
116
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
|
|
119
119
|
lastMessage: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
@@ -123,16 +123,16 @@ export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
|
|
|
123
123
|
type: z.ZodNativeEnum<typeof ChatroomType>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
type: ChatroomType;
|
|
126
|
-
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
127
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
128
126
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
129
127
|
lastMessage?: string | undefined;
|
|
128
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
129
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
type: ChatroomType;
|
|
132
|
-
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
133
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
134
132
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
135
133
|
lastMessage?: string | undefined;
|
|
134
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
135
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
export type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatroomMessageSendPushOutputSchema>;
|
|
138
138
|
export type ChatroomMessageSendSocketOutputDTO = DTO<typeof ChatroomMessageSendOutputSchema>;
|
|
@@ -156,13 +156,13 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
156
156
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
157
157
|
type: z.ZodNativeEnum<typeof UserRef>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
type: UserRef;
|
|
160
|
-
id: import("mongoose").Types.ObjectId;
|
|
161
159
|
name: string;
|
|
162
|
-
}, {
|
|
163
|
-
type: UserRef;
|
|
164
160
|
id: import("mongoose").Types.ObjectId;
|
|
161
|
+
type: UserRef;
|
|
162
|
+
}, {
|
|
165
163
|
name: string;
|
|
164
|
+
id: import("mongoose").Types.ObjectId;
|
|
165
|
+
type: UserRef;
|
|
166
166
|
}>;
|
|
167
167
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
168
168
|
media: z.ZodArray<z.ZodObject<{
|
|
@@ -172,15 +172,15 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
172
172
|
thumbnailUrl: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
173
173
|
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
mimeType: string;
|
|
176
175
|
mediaType: MediaType;
|
|
177
176
|
mediaUrl: string;
|
|
177
|
+
mimeType: string;
|
|
178
178
|
name?: string | undefined;
|
|
179
179
|
thumbnailUrl?: string | undefined;
|
|
180
180
|
}, {
|
|
181
|
-
mimeType: string;
|
|
182
181
|
mediaType: MediaType;
|
|
183
182
|
mediaUrl: string;
|
|
183
|
+
mimeType: string;
|
|
184
184
|
name?: string | undefined;
|
|
185
185
|
thumbnailUrl?: string | undefined;
|
|
186
186
|
}>, "many">;
|
|
@@ -188,68 +188,68 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
188
188
|
longitude: z.ZodOptional<z.ZodNumber>;
|
|
189
189
|
latitude: z.ZodOptional<z.ZodNumber>;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
longitude?: number | undefined;
|
|
192
191
|
latitude?: number | undefined;
|
|
193
|
-
}, {
|
|
194
192
|
longitude?: number | undefined;
|
|
193
|
+
}, {
|
|
195
194
|
latitude?: number | undefined;
|
|
195
|
+
longitude?: number | undefined;
|
|
196
196
|
}>>;
|
|
197
197
|
ticketId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
|
|
198
198
|
chatroomId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
|
|
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;
|
|
202
203
|
_id: import("mongoose").Types.ObjectId;
|
|
203
|
-
chatroomType: ChatroomType;
|
|
204
|
-
senderId: import("mongoose").Types.ObjectId;
|
|
205
|
-
senderType: UserRef;
|
|
206
204
|
sender: {
|
|
207
|
-
type: UserRef;
|
|
208
|
-
id: import("mongoose").Types.ObjectId;
|
|
209
205
|
name: string;
|
|
206
|
+
id: import("mongoose").Types.ObjectId;
|
|
207
|
+
type: UserRef;
|
|
210
208
|
};
|
|
209
|
+
senderType: UserRef;
|
|
211
210
|
media: {
|
|
212
|
-
mimeType: string;
|
|
213
211
|
mediaType: MediaType;
|
|
214
212
|
mediaUrl: string;
|
|
213
|
+
mimeType: string;
|
|
215
214
|
name?: string | undefined;
|
|
216
215
|
thumbnailUrl?: string | undefined;
|
|
217
216
|
}[];
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
content?: string | undefined;
|
|
217
|
+
chatroomType: ChatroomType;
|
|
218
|
+
senderId: import("mongoose").Types.ObjectId;
|
|
221
219
|
location?: {
|
|
222
|
-
longitude?: number | undefined;
|
|
223
220
|
latitude?: number | undefined;
|
|
221
|
+
longitude?: number | undefined;
|
|
224
222
|
} | undefined;
|
|
225
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
226
223
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
224
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
225
|
+
content?: string | undefined;
|
|
226
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
227
227
|
}, {
|
|
228
|
+
createdAt: Date;
|
|
228
229
|
_id: import("mongoose").Types.ObjectId;
|
|
229
|
-
chatroomType: ChatroomType;
|
|
230
|
-
senderId: import("mongoose").Types.ObjectId;
|
|
231
|
-
senderType: UserRef;
|
|
232
230
|
sender: {
|
|
233
|
-
type: UserRef;
|
|
234
|
-
id: import("mongoose").Types.ObjectId;
|
|
235
231
|
name: string;
|
|
232
|
+
id: import("mongoose").Types.ObjectId;
|
|
233
|
+
type: UserRef;
|
|
236
234
|
};
|
|
235
|
+
senderType: UserRef;
|
|
237
236
|
media: {
|
|
238
|
-
mimeType: string;
|
|
239
237
|
mediaType: MediaType;
|
|
240
238
|
mediaUrl: string;
|
|
239
|
+
mimeType: string;
|
|
241
240
|
name?: string | undefined;
|
|
242
241
|
thumbnailUrl?: string | undefined;
|
|
243
242
|
}[];
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
content?: string | undefined;
|
|
243
|
+
chatroomType: ChatroomType;
|
|
244
|
+
senderId: import("mongoose").Types.ObjectId;
|
|
247
245
|
location?: {
|
|
248
|
-
longitude?: number | undefined;
|
|
249
246
|
latitude?: number | undefined;
|
|
247
|
+
longitude?: number | undefined;
|
|
250
248
|
} | undefined;
|
|
251
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
252
249
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
250
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
251
|
+
content?: string | undefined;
|
|
252
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
253
253
|
}>;
|
|
254
254
|
pushNotificationOutput: z.ZodObject<{
|
|
255
255
|
lastMessage: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
@@ -259,16 +259,16 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
259
259
|
type: z.ZodNativeEnum<typeof ChatroomType>;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
261
|
type: ChatroomType;
|
|
262
|
-
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
263
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
264
262
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
265
263
|
lastMessage?: string | undefined;
|
|
264
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
265
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
266
266
|
}, {
|
|
267
267
|
type: ChatroomType;
|
|
268
|
-
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
269
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
270
268
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
271
269
|
lastMessage?: string | undefined;
|
|
270
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
271
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
};
|
|
274
274
|
get notificationSettings(): NotificationSettings | undefined;
|
|
@@ -277,10 +277,10 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
277
277
|
static identifier(input: z.infer<typeof ChatroomMessageSendSocketInputSchema>): string;
|
|
278
278
|
getPushNotificationPayload(): {
|
|
279
279
|
type: ChatroomType;
|
|
280
|
-
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
281
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
282
280
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
283
281
|
lastMessage?: string | undefined;
|
|
282
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
283
|
+
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
protected getIdentifier(): string;
|
|
286
286
|
}
|
|
@@ -16,11 +16,11 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
16
16
|
_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>]>;
|
|
17
17
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
_id: import("mongoose").Types.ObjectId;
|
|
20
19
|
name: string;
|
|
20
|
+
_id: import("mongoose").Types.ObjectId;
|
|
21
21
|
}, {
|
|
22
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
23
22
|
name: string;
|
|
23
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
24
24
|
}>;
|
|
25
25
|
orderStatus: z.ZodNativeEnum<typeof RegularOrderStatus>;
|
|
26
26
|
orderAction: z.ZodNativeEnum<typeof OrderAction>;
|
|
@@ -39,112 +39,112 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
39
39
|
riderTips: z.ZodNumber;
|
|
40
40
|
secondaryRiderTips: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
total: number;
|
|
43
|
-
secondaryTotal: number;
|
|
44
|
-
paidAmount: number;
|
|
45
|
-
secondaryPaidAmount: number;
|
|
46
42
|
deliveryFee: number;
|
|
43
|
+
total: number;
|
|
47
44
|
secondaryDeliveryFee: number;
|
|
48
45
|
riderTips: number;
|
|
49
46
|
secondaryRiderTips: number;
|
|
50
|
-
}, {
|
|
51
|
-
total: number;
|
|
52
47
|
secondaryTotal: number;
|
|
53
48
|
paidAmount: number;
|
|
54
49
|
secondaryPaidAmount: number;
|
|
50
|
+
}, {
|
|
55
51
|
deliveryFee: number;
|
|
52
|
+
total: number;
|
|
56
53
|
secondaryDeliveryFee: number;
|
|
57
54
|
riderTips: number;
|
|
58
55
|
secondaryRiderTips: number;
|
|
56
|
+
secondaryTotal: number;
|
|
57
|
+
paidAmount: number;
|
|
58
|
+
secondaryPaidAmount: number;
|
|
59
59
|
}>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
paymentMethod: PaymentMethod;
|
|
62
|
-
shopProfit: number;
|
|
63
62
|
pricing: {
|
|
64
|
-
total: number;
|
|
65
|
-
secondaryTotal: number;
|
|
66
|
-
paidAmount: number;
|
|
67
|
-
secondaryPaidAmount: number;
|
|
68
63
|
deliveryFee: number;
|
|
64
|
+
total: number;
|
|
69
65
|
secondaryDeliveryFee: number;
|
|
70
66
|
riderTips: number;
|
|
71
67
|
secondaryRiderTips: number;
|
|
68
|
+
secondaryTotal: number;
|
|
69
|
+
paidAmount: number;
|
|
70
|
+
secondaryPaidAmount: number;
|
|
72
71
|
};
|
|
72
|
+
shopProfit: number;
|
|
73
73
|
}, {
|
|
74
74
|
paymentMethod: PaymentMethod;
|
|
75
|
-
shopProfit: number;
|
|
76
75
|
pricing: {
|
|
77
|
-
total: number;
|
|
78
|
-
secondaryTotal: number;
|
|
79
|
-
paidAmount: number;
|
|
80
|
-
secondaryPaidAmount: number;
|
|
81
76
|
deliveryFee: number;
|
|
77
|
+
total: number;
|
|
82
78
|
secondaryDeliveryFee: number;
|
|
83
79
|
riderTips: number;
|
|
84
80
|
secondaryRiderTips: number;
|
|
81
|
+
secondaryTotal: number;
|
|
82
|
+
paidAmount: number;
|
|
83
|
+
secondaryPaidAmount: number;
|
|
85
84
|
};
|
|
85
|
+
shopProfit: number;
|
|
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
|
-
orderId: string;
|
|
93
91
|
createdAt: Date;
|
|
94
|
-
|
|
95
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
92
|
+
_id: import("mongoose").Types.ObjectId;
|
|
96
93
|
user: {
|
|
97
|
-
_id: import("mongoose").Types.ObjectId;
|
|
98
94
|
name: string;
|
|
95
|
+
_id: import("mongoose").Types.ObjectId;
|
|
99
96
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
preparationTimeMinutes: number;
|
|
97
|
+
orderId: string;
|
|
98
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
99
|
+
triggerAt: Date;
|
|
104
100
|
adjustedFinance: {
|
|
105
101
|
paymentMethod: PaymentMethod;
|
|
106
|
-
shopProfit: number;
|
|
107
102
|
pricing: {
|
|
108
|
-
total: number;
|
|
109
|
-
secondaryTotal: number;
|
|
110
|
-
paidAmount: number;
|
|
111
|
-
secondaryPaidAmount: number;
|
|
112
103
|
deliveryFee: number;
|
|
104
|
+
total: number;
|
|
113
105
|
secondaryDeliveryFee: number;
|
|
114
106
|
riderTips: number;
|
|
115
107
|
secondaryRiderTips: number;
|
|
108
|
+
secondaryTotal: number;
|
|
109
|
+
paidAmount: number;
|
|
110
|
+
secondaryPaidAmount: number;
|
|
116
111
|
};
|
|
112
|
+
shopProfit: number;
|
|
117
113
|
};
|
|
118
|
-
|
|
114
|
+
paymentMethod: PaymentMethod;
|
|
115
|
+
orderActionType: OrderAction;
|
|
116
|
+
orderStatus: RegularOrderStatus;
|
|
117
|
+
orderAction: OrderAction;
|
|
118
|
+
preparationTimeMinutes: number;
|
|
119
119
|
}, {
|
|
120
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
121
|
-
orderId: string;
|
|
122
120
|
createdAt: Date;
|
|
123
|
-
|
|
124
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
121
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
125
122
|
user: {
|
|
126
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
127
123
|
name: string;
|
|
124
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
128
125
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
preparationTimeMinutes: number;
|
|
126
|
+
orderId: string;
|
|
127
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
128
|
+
triggerAt: Date;
|
|
133
129
|
adjustedFinance: {
|
|
134
130
|
paymentMethod: PaymentMethod;
|
|
135
|
-
shopProfit: number;
|
|
136
131
|
pricing: {
|
|
137
|
-
total: number;
|
|
138
|
-
secondaryTotal: number;
|
|
139
|
-
paidAmount: number;
|
|
140
|
-
secondaryPaidAmount: number;
|
|
141
132
|
deliveryFee: number;
|
|
133
|
+
total: number;
|
|
142
134
|
secondaryDeliveryFee: number;
|
|
143
135
|
riderTips: number;
|
|
144
136
|
secondaryRiderTips: number;
|
|
137
|
+
secondaryTotal: number;
|
|
138
|
+
paidAmount: number;
|
|
139
|
+
secondaryPaidAmount: number;
|
|
145
140
|
};
|
|
141
|
+
shopProfit: number;
|
|
146
142
|
};
|
|
147
|
-
|
|
143
|
+
paymentMethod: PaymentMethod;
|
|
144
|
+
orderActionType: OrderAction;
|
|
145
|
+
orderStatus: RegularOrderStatus;
|
|
146
|
+
orderAction: OrderAction;
|
|
147
|
+
preparationTimeMinutes: number;
|
|
148
148
|
}>;
|
|
149
149
|
export declare const OrderActionsInputSchema: z.ZodUndefined;
|
|
150
150
|
export type OrderActionSocketInputDTO = DTO<typeof OrderActionsInputSchema>;
|
|
@@ -160,11 +160,11 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
160
160
|
_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>]>;
|
|
161
161
|
name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
162
162
|
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
_id: import("mongoose").Types.ObjectId;
|
|
164
163
|
name: string;
|
|
164
|
+
_id: import("mongoose").Types.ObjectId;
|
|
165
165
|
}, {
|
|
166
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
167
166
|
name: string;
|
|
167
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
168
168
|
}>;
|
|
169
169
|
orderStatus: z.ZodNativeEnum<typeof RegularOrderStatus>;
|
|
170
170
|
orderAction: z.ZodNativeEnum<typeof OrderAction>;
|
|
@@ -183,112 +183,112 @@ 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;
|
|
187
|
-
secondaryTotal: number;
|
|
188
|
-
paidAmount: number;
|
|
189
|
-
secondaryPaidAmount: number;
|
|
190
186
|
deliveryFee: number;
|
|
187
|
+
total: number;
|
|
191
188
|
secondaryDeliveryFee: number;
|
|
192
189
|
riderTips: number;
|
|
193
190
|
secondaryRiderTips: number;
|
|
194
|
-
}, {
|
|
195
|
-
total: number;
|
|
196
191
|
secondaryTotal: number;
|
|
197
192
|
paidAmount: number;
|
|
198
193
|
secondaryPaidAmount: number;
|
|
194
|
+
}, {
|
|
199
195
|
deliveryFee: number;
|
|
196
|
+
total: number;
|
|
200
197
|
secondaryDeliveryFee: number;
|
|
201
198
|
riderTips: number;
|
|
202
199
|
secondaryRiderTips: number;
|
|
200
|
+
secondaryTotal: number;
|
|
201
|
+
paidAmount: number;
|
|
202
|
+
secondaryPaidAmount: number;
|
|
203
203
|
}>;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
205
|
paymentMethod: PaymentMethod;
|
|
206
|
-
shopProfit: number;
|
|
207
206
|
pricing: {
|
|
208
|
-
total: number;
|
|
209
|
-
secondaryTotal: number;
|
|
210
|
-
paidAmount: number;
|
|
211
|
-
secondaryPaidAmount: number;
|
|
212
207
|
deliveryFee: number;
|
|
208
|
+
total: number;
|
|
213
209
|
secondaryDeliveryFee: number;
|
|
214
210
|
riderTips: number;
|
|
215
211
|
secondaryRiderTips: number;
|
|
212
|
+
secondaryTotal: number;
|
|
213
|
+
paidAmount: number;
|
|
214
|
+
secondaryPaidAmount: number;
|
|
216
215
|
};
|
|
216
|
+
shopProfit: number;
|
|
217
217
|
}, {
|
|
218
218
|
paymentMethod: PaymentMethod;
|
|
219
|
-
shopProfit: number;
|
|
220
219
|
pricing: {
|
|
221
|
-
total: number;
|
|
222
|
-
secondaryTotal: number;
|
|
223
|
-
paidAmount: number;
|
|
224
|
-
secondaryPaidAmount: number;
|
|
225
220
|
deliveryFee: number;
|
|
221
|
+
total: number;
|
|
226
222
|
secondaryDeliveryFee: number;
|
|
227
223
|
riderTips: number;
|
|
228
224
|
secondaryRiderTips: number;
|
|
225
|
+
secondaryTotal: number;
|
|
226
|
+
paidAmount: number;
|
|
227
|
+
secondaryPaidAmount: number;
|
|
229
228
|
};
|
|
229
|
+
shopProfit: number;
|
|
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
|
-
orderId: string;
|
|
237
235
|
createdAt: Date;
|
|
238
|
-
|
|
239
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
236
|
+
_id: import("mongoose").Types.ObjectId;
|
|
240
237
|
user: {
|
|
241
|
-
_id: import("mongoose").Types.ObjectId;
|
|
242
238
|
name: string;
|
|
239
|
+
_id: import("mongoose").Types.ObjectId;
|
|
243
240
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
preparationTimeMinutes: number;
|
|
241
|
+
orderId: string;
|
|
242
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
243
|
+
triggerAt: Date;
|
|
248
244
|
adjustedFinance: {
|
|
249
245
|
paymentMethod: PaymentMethod;
|
|
250
|
-
shopProfit: number;
|
|
251
246
|
pricing: {
|
|
252
|
-
total: number;
|
|
253
|
-
secondaryTotal: number;
|
|
254
|
-
paidAmount: number;
|
|
255
|
-
secondaryPaidAmount: number;
|
|
256
247
|
deliveryFee: number;
|
|
248
|
+
total: number;
|
|
257
249
|
secondaryDeliveryFee: number;
|
|
258
250
|
riderTips: number;
|
|
259
251
|
secondaryRiderTips: number;
|
|
252
|
+
secondaryTotal: number;
|
|
253
|
+
paidAmount: number;
|
|
254
|
+
secondaryPaidAmount: number;
|
|
260
255
|
};
|
|
256
|
+
shopProfit: number;
|
|
261
257
|
};
|
|
262
|
-
|
|
258
|
+
paymentMethod: PaymentMethod;
|
|
259
|
+
orderActionType: OrderAction;
|
|
260
|
+
orderStatus: RegularOrderStatus;
|
|
261
|
+
orderAction: OrderAction;
|
|
262
|
+
preparationTimeMinutes: number;
|
|
263
263
|
}, {
|
|
264
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
265
|
-
orderId: string;
|
|
266
264
|
createdAt: Date;
|
|
267
|
-
|
|
268
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
265
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
269
266
|
user: {
|
|
270
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
271
267
|
name: string;
|
|
268
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
272
269
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
preparationTimeMinutes: number;
|
|
270
|
+
orderId: string;
|
|
271
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
272
|
+
triggerAt: Date;
|
|
277
273
|
adjustedFinance: {
|
|
278
274
|
paymentMethod: PaymentMethod;
|
|
279
|
-
shopProfit: number;
|
|
280
275
|
pricing: {
|
|
281
|
-
total: number;
|
|
282
|
-
secondaryTotal: number;
|
|
283
|
-
paidAmount: number;
|
|
284
|
-
secondaryPaidAmount: number;
|
|
285
276
|
deliveryFee: number;
|
|
277
|
+
total: number;
|
|
286
278
|
secondaryDeliveryFee: number;
|
|
287
279
|
riderTips: number;
|
|
288
280
|
secondaryRiderTips: number;
|
|
281
|
+
secondaryTotal: number;
|
|
282
|
+
paidAmount: number;
|
|
283
|
+
secondaryPaidAmount: number;
|
|
289
284
|
};
|
|
285
|
+
shopProfit: number;
|
|
290
286
|
};
|
|
291
|
-
|
|
287
|
+
paymentMethod: PaymentMethod;
|
|
288
|
+
orderActionType: OrderAction;
|
|
289
|
+
orderStatus: RegularOrderStatus;
|
|
290
|
+
orderAction: OrderAction;
|
|
291
|
+
preparationTimeMinutes: number;
|
|
292
292
|
}>;
|
|
293
293
|
};
|
|
294
294
|
private static getMessageForAction;
|