@lyxa.ai/core 1.4.333 → 1.4.334-alpha-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/mongo/models/embedded/live-activity-token-info.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/live-activity-token-info.model.js +27 -0
- package/dist/libraries/mongo/models/embedded/live-activity-token-info.model.js.map +1 -0
- package/dist/libraries/mongo/models/order.model.d.ts +2 -1
- package/dist/libraries/mongo/models/order.model.js +5 -4
- package/dist/libraries/mongo/models/order.model.js.map +1 -1
- package/dist/libraries/mongo/models/payment-intent.model.d.ts +1 -2
- package/dist/libraries/mongo/models/payment-intent.model.js +0 -5
- package/dist/libraries/mongo/models/payment-intent.model.js.map +1 -1
- package/dist/libraries/notification/firebase-message.builder.d.ts +5 -1
- package/dist/libraries/notification/firebase-message.builder.js +34 -1
- package/dist/libraries/notification/firebase-message.builder.js.map +1 -1
- package/dist/libraries/notification/index.d.ts +2 -0
- package/dist/libraries/notification/index.js.map +1 -1
- package/dist/libraries/notification/lyxa-fcm-sender.js +9 -0
- package/dist/libraries/notification/lyxa-fcm-sender.js.map +1 -1
- package/dist/libraries/notification/lyxa-fcm.service.d.ts +1 -0
- package/dist/libraries/notification/lyxa-fcm.service.js +21 -0
- package/dist/libraries/notification/lyxa-fcm.service.js.map +1 -1
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +29 -29
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +32 -32
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +8 -8
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +8 -8
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +28 -28
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- 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
23
|
name: string;
|
|
25
24
|
id: import("mongoose").Types.ObjectId;
|
|
26
|
-
}, {
|
|
27
25
|
type: UserRef;
|
|
26
|
+
}, {
|
|
28
27
|
name: string;
|
|
29
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,14 +36,14 @@ 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
|
-
mediaUrl: string;
|
|
40
39
|
mediaType: MediaType;
|
|
40
|
+
mediaUrl: string;
|
|
41
41
|
mimeType: string;
|
|
42
42
|
name?: string | undefined;
|
|
43
43
|
thumbnailUrl?: string | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
mediaUrl: string;
|
|
46
45
|
mediaType: MediaType;
|
|
46
|
+
mediaUrl: string;
|
|
47
47
|
mimeType: string;
|
|
48
48
|
name?: string | undefined;
|
|
49
49
|
thumbnailUrl?: string | undefined;
|
|
@@ -63,54 +63,54 @@ 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
|
-
_id: import("mongoose").Types.ObjectId;
|
|
67
66
|
createdAt: Date;
|
|
67
|
+
_id: import("mongoose").Types.ObjectId;
|
|
68
68
|
sender: {
|
|
69
|
-
type: UserRef;
|
|
70
69
|
name: string;
|
|
71
70
|
id: import("mongoose").Types.ObjectId;
|
|
71
|
+
type: UserRef;
|
|
72
72
|
};
|
|
73
73
|
senderType: UserRef;
|
|
74
74
|
media: {
|
|
75
|
-
mediaUrl: string;
|
|
76
75
|
mediaType: MediaType;
|
|
76
|
+
mediaUrl: string;
|
|
77
77
|
mimeType: string;
|
|
78
78
|
name?: string | undefined;
|
|
79
79
|
thumbnailUrl?: string | undefined;
|
|
80
80
|
}[];
|
|
81
81
|
chatroomType: ChatroomType;
|
|
82
82
|
senderId: import("mongoose").Types.ObjectId;
|
|
83
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
83
84
|
location?: {
|
|
84
85
|
latitude?: number | undefined;
|
|
85
86
|
longitude?: number | undefined;
|
|
86
87
|
} | undefined;
|
|
87
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
88
88
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
89
89
|
content?: string | undefined;
|
|
90
90
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
_id: import("mongoose").Types.ObjectId;
|
|
93
92
|
createdAt: Date;
|
|
93
|
+
_id: import("mongoose").Types.ObjectId;
|
|
94
94
|
sender: {
|
|
95
|
-
type: UserRef;
|
|
96
95
|
name: string;
|
|
97
96
|
id: import("mongoose").Types.ObjectId;
|
|
97
|
+
type: UserRef;
|
|
98
98
|
};
|
|
99
99
|
senderType: UserRef;
|
|
100
100
|
media: {
|
|
101
|
-
mediaUrl: string;
|
|
102
101
|
mediaType: MediaType;
|
|
102
|
+
mediaUrl: string;
|
|
103
103
|
mimeType: string;
|
|
104
104
|
name?: string | undefined;
|
|
105
105
|
thumbnailUrl?: string | undefined;
|
|
106
106
|
}[];
|
|
107
107
|
chatroomType: ChatroomType;
|
|
108
108
|
senderId: import("mongoose").Types.ObjectId;
|
|
109
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
109
110
|
location?: {
|
|
110
111
|
latitude?: number | undefined;
|
|
111
112
|
longitude?: number | undefined;
|
|
112
113
|
} | undefined;
|
|
113
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
114
114
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
115
115
|
content?: string | undefined;
|
|
116
116
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
@@ -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
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
128
127
|
lastMessage?: string | undefined;
|
|
128
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
129
129
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
130
130
|
}, {
|
|
131
131
|
type: ChatroomType;
|
|
132
132
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
133
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
134
133
|
lastMessage?: string | undefined;
|
|
134
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
135
135
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
export type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatroomMessageSendPushOutputSchema>;
|
|
@@ -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
159
|
name: string;
|
|
161
160
|
id: import("mongoose").Types.ObjectId;
|
|
162
|
-
}, {
|
|
163
161
|
type: UserRef;
|
|
162
|
+
}, {
|
|
164
163
|
name: string;
|
|
165
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,14 +172,14 @@ 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
|
-
mediaUrl: string;
|
|
176
175
|
mediaType: MediaType;
|
|
176
|
+
mediaUrl: string;
|
|
177
177
|
mimeType: string;
|
|
178
178
|
name?: string | undefined;
|
|
179
179
|
thumbnailUrl?: string | undefined;
|
|
180
180
|
}, {
|
|
181
|
-
mediaUrl: string;
|
|
182
181
|
mediaType: MediaType;
|
|
182
|
+
mediaUrl: string;
|
|
183
183
|
mimeType: string;
|
|
184
184
|
name?: string | undefined;
|
|
185
185
|
thumbnailUrl?: string | undefined;
|
|
@@ -199,54 +199,54 @@ 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
|
-
_id: import("mongoose").Types.ObjectId;
|
|
203
202
|
createdAt: Date;
|
|
203
|
+
_id: import("mongoose").Types.ObjectId;
|
|
204
204
|
sender: {
|
|
205
|
-
type: UserRef;
|
|
206
205
|
name: string;
|
|
207
206
|
id: import("mongoose").Types.ObjectId;
|
|
207
|
+
type: UserRef;
|
|
208
208
|
};
|
|
209
209
|
senderType: UserRef;
|
|
210
210
|
media: {
|
|
211
|
-
mediaUrl: string;
|
|
212
211
|
mediaType: MediaType;
|
|
212
|
+
mediaUrl: string;
|
|
213
213
|
mimeType: string;
|
|
214
214
|
name?: string | undefined;
|
|
215
215
|
thumbnailUrl?: string | undefined;
|
|
216
216
|
}[];
|
|
217
217
|
chatroomType: ChatroomType;
|
|
218
218
|
senderId: import("mongoose").Types.ObjectId;
|
|
219
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
219
220
|
location?: {
|
|
220
221
|
latitude?: number | undefined;
|
|
221
222
|
longitude?: number | undefined;
|
|
222
223
|
} | undefined;
|
|
223
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
224
224
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
225
225
|
content?: string | undefined;
|
|
226
226
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
227
227
|
}, {
|
|
228
|
-
_id: import("mongoose").Types.ObjectId;
|
|
229
228
|
createdAt: Date;
|
|
229
|
+
_id: import("mongoose").Types.ObjectId;
|
|
230
230
|
sender: {
|
|
231
|
-
type: UserRef;
|
|
232
231
|
name: string;
|
|
233
232
|
id: import("mongoose").Types.ObjectId;
|
|
233
|
+
type: UserRef;
|
|
234
234
|
};
|
|
235
235
|
senderType: UserRef;
|
|
236
236
|
media: {
|
|
237
|
-
mediaUrl: string;
|
|
238
237
|
mediaType: MediaType;
|
|
238
|
+
mediaUrl: string;
|
|
239
239
|
mimeType: string;
|
|
240
240
|
name?: string | undefined;
|
|
241
241
|
thumbnailUrl?: string | undefined;
|
|
242
242
|
}[];
|
|
243
243
|
chatroomType: ChatroomType;
|
|
244
244
|
senderId: import("mongoose").Types.ObjectId;
|
|
245
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
245
246
|
location?: {
|
|
246
247
|
latitude?: number | undefined;
|
|
247
248
|
longitude?: number | undefined;
|
|
248
249
|
} | undefined;
|
|
249
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
250
250
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
251
251
|
content?: string | undefined;
|
|
252
252
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
@@ -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
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
264
263
|
lastMessage?: string | undefined;
|
|
264
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
265
265
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
266
266
|
}, {
|
|
267
267
|
type: ChatroomType;
|
|
268
268
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
269
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
270
269
|
lastMessage?: string | undefined;
|
|
270
|
+
ticketId?: import("mongoose").Types.ObjectId | 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
|
-
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
282
281
|
lastMessage?: string | undefined;
|
|
282
|
+
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
283
283
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
284
284
|
} | undefined;
|
|
285
285
|
protected getIdentifier(): string;
|
|
@@ -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,20 +39,20 @@ 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
42
|
deliveryFee: number;
|
|
44
43
|
secondaryDeliveryFee: number;
|
|
45
44
|
riderTips: number;
|
|
46
45
|
secondaryRiderTips: number;
|
|
46
|
+
total: number;
|
|
47
47
|
secondaryTotal: number;
|
|
48
48
|
paidAmount: number;
|
|
49
49
|
secondaryPaidAmount: number;
|
|
50
50
|
}, {
|
|
51
|
-
total: number;
|
|
52
51
|
deliveryFee: number;
|
|
53
52
|
secondaryDeliveryFee: number;
|
|
54
53
|
riderTips: number;
|
|
55
54
|
secondaryRiderTips: number;
|
|
55
|
+
total: number;
|
|
56
56
|
secondaryTotal: number;
|
|
57
57
|
paidAmount: number;
|
|
58
58
|
secondaryPaidAmount: number;
|
|
@@ -60,11 +60,11 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
paymentMethod: PaymentMethod;
|
|
62
62
|
pricing: {
|
|
63
|
-
total: number;
|
|
64
63
|
deliveryFee: number;
|
|
65
64
|
secondaryDeliveryFee: number;
|
|
66
65
|
riderTips: number;
|
|
67
66
|
secondaryRiderTips: number;
|
|
67
|
+
total: number;
|
|
68
68
|
secondaryTotal: number;
|
|
69
69
|
paidAmount: number;
|
|
70
70
|
secondaryPaidAmount: number;
|
|
@@ -73,11 +73,11 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
73
73
|
}, {
|
|
74
74
|
paymentMethod: PaymentMethod;
|
|
75
75
|
pricing: {
|
|
76
|
-
total: number;
|
|
77
76
|
deliveryFee: number;
|
|
78
77
|
secondaryDeliveryFee: number;
|
|
79
78
|
riderTips: number;
|
|
80
79
|
secondaryRiderTips: number;
|
|
80
|
+
total: number;
|
|
81
81
|
secondaryTotal: number;
|
|
82
82
|
paidAmount: number;
|
|
83
83
|
secondaryPaidAmount: number;
|
|
@@ -88,59 +88,59 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
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
91
|
createdAt: Date;
|
|
92
|
+
_id: import("mongoose").Types.ObjectId;
|
|
93
93
|
user: {
|
|
94
|
-
_id: import("mongoose").Types.ObjectId;
|
|
95
94
|
name: string;
|
|
95
|
+
_id: import("mongoose").Types.ObjectId;
|
|
96
96
|
};
|
|
97
97
|
orderId: string;
|
|
98
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
99
|
-
paymentMethod: PaymentMethod;
|
|
100
98
|
triggerAt: Date;
|
|
99
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
101
100
|
adjustedFinance: {
|
|
102
101
|
paymentMethod: PaymentMethod;
|
|
103
102
|
pricing: {
|
|
104
|
-
total: number;
|
|
105
103
|
deliveryFee: number;
|
|
106
104
|
secondaryDeliveryFee: number;
|
|
107
105
|
riderTips: number;
|
|
108
106
|
secondaryRiderTips: number;
|
|
107
|
+
total: number;
|
|
109
108
|
secondaryTotal: number;
|
|
110
109
|
paidAmount: number;
|
|
111
110
|
secondaryPaidAmount: number;
|
|
112
111
|
};
|
|
113
112
|
shopProfit: number;
|
|
114
113
|
};
|
|
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
120
|
createdAt: Date;
|
|
121
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
122
122
|
user: {
|
|
123
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
124
123
|
name: string;
|
|
124
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
125
125
|
};
|
|
126
126
|
orderId: string;
|
|
127
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
128
|
-
paymentMethod: PaymentMethod;
|
|
129
127
|
triggerAt: Date;
|
|
128
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
130
129
|
adjustedFinance: {
|
|
131
130
|
paymentMethod: PaymentMethod;
|
|
132
131
|
pricing: {
|
|
133
|
-
total: number;
|
|
134
132
|
deliveryFee: number;
|
|
135
133
|
secondaryDeliveryFee: number;
|
|
136
134
|
riderTips: number;
|
|
137
135
|
secondaryRiderTips: number;
|
|
136
|
+
total: number;
|
|
138
137
|
secondaryTotal: number;
|
|
139
138
|
paidAmount: number;
|
|
140
139
|
secondaryPaidAmount: number;
|
|
141
140
|
};
|
|
142
141
|
shopProfit: number;
|
|
143
142
|
};
|
|
143
|
+
paymentMethod: PaymentMethod;
|
|
144
144
|
orderActionType: OrderAction;
|
|
145
145
|
orderStatus: RegularOrderStatus;
|
|
146
146
|
orderAction: OrderAction;
|
|
@@ -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,20 +183,20 @@ 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
186
|
deliveryFee: number;
|
|
188
187
|
secondaryDeliveryFee: number;
|
|
189
188
|
riderTips: number;
|
|
190
189
|
secondaryRiderTips: number;
|
|
190
|
+
total: number;
|
|
191
191
|
secondaryTotal: number;
|
|
192
192
|
paidAmount: number;
|
|
193
193
|
secondaryPaidAmount: number;
|
|
194
194
|
}, {
|
|
195
|
-
total: number;
|
|
196
195
|
deliveryFee: number;
|
|
197
196
|
secondaryDeliveryFee: number;
|
|
198
197
|
riderTips: number;
|
|
199
198
|
secondaryRiderTips: number;
|
|
199
|
+
total: number;
|
|
200
200
|
secondaryTotal: number;
|
|
201
201
|
paidAmount: number;
|
|
202
202
|
secondaryPaidAmount: number;
|
|
@@ -204,11 +204,11 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
205
|
paymentMethod: PaymentMethod;
|
|
206
206
|
pricing: {
|
|
207
|
-
total: number;
|
|
208
207
|
deliveryFee: number;
|
|
209
208
|
secondaryDeliveryFee: number;
|
|
210
209
|
riderTips: number;
|
|
211
210
|
secondaryRiderTips: number;
|
|
211
|
+
total: number;
|
|
212
212
|
secondaryTotal: number;
|
|
213
213
|
paidAmount: number;
|
|
214
214
|
secondaryPaidAmount: number;
|
|
@@ -217,11 +217,11 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
217
217
|
}, {
|
|
218
218
|
paymentMethod: PaymentMethod;
|
|
219
219
|
pricing: {
|
|
220
|
-
total: number;
|
|
221
220
|
deliveryFee: number;
|
|
222
221
|
secondaryDeliveryFee: number;
|
|
223
222
|
riderTips: number;
|
|
224
223
|
secondaryRiderTips: number;
|
|
224
|
+
total: number;
|
|
225
225
|
secondaryTotal: number;
|
|
226
226
|
paidAmount: number;
|
|
227
227
|
secondaryPaidAmount: number;
|
|
@@ -232,59 +232,59 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
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
235
|
createdAt: Date;
|
|
236
|
+
_id: import("mongoose").Types.ObjectId;
|
|
237
237
|
user: {
|
|
238
|
-
_id: import("mongoose").Types.ObjectId;
|
|
239
238
|
name: string;
|
|
239
|
+
_id: import("mongoose").Types.ObjectId;
|
|
240
240
|
};
|
|
241
241
|
orderId: string;
|
|
242
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
243
|
-
paymentMethod: PaymentMethod;
|
|
244
242
|
triggerAt: Date;
|
|
243
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
245
244
|
adjustedFinance: {
|
|
246
245
|
paymentMethod: PaymentMethod;
|
|
247
246
|
pricing: {
|
|
248
|
-
total: number;
|
|
249
247
|
deliveryFee: number;
|
|
250
248
|
secondaryDeliveryFee: number;
|
|
251
249
|
riderTips: number;
|
|
252
250
|
secondaryRiderTips: number;
|
|
251
|
+
total: number;
|
|
253
252
|
secondaryTotal: number;
|
|
254
253
|
paidAmount: number;
|
|
255
254
|
secondaryPaidAmount: number;
|
|
256
255
|
};
|
|
257
256
|
shopProfit: number;
|
|
258
257
|
};
|
|
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
264
|
createdAt: Date;
|
|
265
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
266
266
|
user: {
|
|
267
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
268
267
|
name: string;
|
|
268
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
269
269
|
};
|
|
270
270
|
orderId: string;
|
|
271
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
272
|
-
paymentMethod: PaymentMethod;
|
|
273
271
|
triggerAt: Date;
|
|
272
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
274
273
|
adjustedFinance: {
|
|
275
274
|
paymentMethod: PaymentMethod;
|
|
276
275
|
pricing: {
|
|
277
|
-
total: number;
|
|
278
276
|
deliveryFee: number;
|
|
279
277
|
secondaryDeliveryFee: number;
|
|
280
278
|
riderTips: number;
|
|
281
279
|
secondaryRiderTips: number;
|
|
280
|
+
total: number;
|
|
282
281
|
secondaryTotal: number;
|
|
283
282
|
paidAmount: number;
|
|
284
283
|
secondaryPaidAmount: number;
|
|
285
284
|
};
|
|
286
285
|
shopProfit: number;
|
|
287
286
|
};
|
|
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
|
-
_id: import("mongoose").Types.ObjectId;
|
|
23
22
|
updatedAt: Date;
|
|
23
|
+
_id: import("mongoose").Types.ObjectId;
|
|
24
|
+
riderId: import("mongoose").Types.ObjectId;
|
|
24
25
|
latitude: number;
|
|
25
26
|
longitude: number;
|
|
26
|
-
riderId: import("mongoose").Types.ObjectId;
|
|
27
27
|
bearing?: number | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
30
29
|
updatedAt: string | Date;
|
|
30
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
31
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
31
32
|
latitude: number;
|
|
32
33
|
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
|
-
_id: import("mongoose").Types.ObjectId;
|
|
59
58
|
updatedAt: Date;
|
|
59
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
riderId: import("mongoose").Types.ObjectId;
|
|
60
61
|
latitude: number;
|
|
61
62
|
longitude: number;
|
|
62
|
-
riderId: import("mongoose").Types.ObjectId;
|
|
63
63
|
bearing?: number | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
66
65
|
updatedAt: string | Date;
|
|
66
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
67
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
67
68
|
latitude: number;
|
|
68
69
|
longitude: number;
|
|
69
|
-
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
};
|
|
@@ -13,18 +13,18 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
13
13
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
status: TicketStatus;
|
|
16
|
-
type: TicketType;
|
|
17
16
|
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
|
|
17
|
+
type: TicketType;
|
|
19
18
|
title?: string | undefined;
|
|
20
19
|
content?: string | undefined;
|
|
20
|
+
silent?: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
status: TicketStatus;
|
|
23
|
-
type: TicketType;
|
|
24
23
|
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
|
|
24
|
+
type: TicketType;
|
|
26
25
|
title?: string | undefined;
|
|
27
26
|
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>;
|
|
@@ -60,18 +60,18 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
60
60
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
status: TicketStatus;
|
|
63
|
-
type: TicketType;
|
|
64
63
|
_id: import("mongoose").Types.ObjectId;
|
|
65
|
-
|
|
64
|
+
type: TicketType;
|
|
66
65
|
title?: string | undefined;
|
|
67
66
|
content?: string | undefined;
|
|
67
|
+
silent?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
status: TicketStatus;
|
|
70
|
-
type: TicketType;
|
|
71
70
|
_id: import("mongoose").Types.ObjectId;
|
|
72
|
-
|
|
71
|
+
type: TicketType;
|
|
73
72
|
title?: string | undefined;
|
|
74
73
|
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>;
|