@lyxa.ai/core 1.4.334-alpha-14 → 1.4.335
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/event/events/mongo-stream-changes-batch-process-shops-event.d.ts +2 -2
- package/dist/libraries/event/events/punch-marketing/sync-user-shop-punch-marketing-history-event.d.ts +2 -2
- package/dist/libraries/event/events/sync-order-again-sections-for-shop-event.d.ts +2 -2
- package/dist/libraries/mongo/models/order.model.d.ts +1 -2
- package/dist/libraries/mongo/models/order.model.js +4 -5
- package/dist/libraries/mongo/models/order.model.js.map +1 -1
- package/dist/libraries/mongo/models/payment-intent.model.d.ts +2 -1
- package/dist/libraries/mongo/models/payment-intent.model.js +5 -0
- package/dist/libraries/mongo/models/payment-intent.model.js.map +1 -1
- package/dist/libraries/notification/firebase-message.builder.d.ts +1 -5
- package/dist/libraries/notification/firebase-message.builder.js +1 -35
- package/dist/libraries/notification/firebase-message.builder.js.map +1 -1
- package/dist/libraries/notification/index.d.ts +1 -3
- package/dist/libraries/notification/index.js.map +1 -1
- package/dist/libraries/notification/lyxa-fcm-sender.js +0 -10
- package/dist/libraries/notification/lyxa-fcm-sender.js.map +1 -1
- package/dist/libraries/notification/lyxa-fcm.service.d.ts +0 -1
- package/dist/libraries/notification/lyxa-fcm.service.js +0 -21
- package/dist/libraries/notification/lyxa-fcm.service.js.map +1 -1
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +28 -28
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +44 -44
- 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 +17 -17
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +8 -8
- 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 +66 -66
- package/dist/types/utilities/validation/validation-for-frontend.d.ts +2 -2
- package/dist/utilities/pagination.d.ts +3 -3
- package/dist/utilities/validation/common-validation.d.ts +70 -70
- package/dist/utilities/validation/validation-for-frontend.d.ts +2 -2
- package/package.json +1 -1
- package/dist/libraries/mongo/models/embedded/live-activity-token-info.model.d.ts +0 -4
- package/dist/libraries/mongo/models/embedded/live-activity-token-info.model.js +0 -27
- package/dist/libraries/mongo/models/embedded/live-activity-token-info.model.js.map +0 -1
|
@@ -21,29 +21,29 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
21
21
|
type: z.ZodNativeEnum<typeof UserRef>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
type: UserRef;
|
|
24
|
-
id: import("mongoose").Types.ObjectId;
|
|
25
24
|
name: string;
|
|
25
|
+
id: import("mongoose").Types.ObjectId;
|
|
26
26
|
}, {
|
|
27
27
|
type: UserRef;
|
|
28
|
-
id: import("mongoose").Types.ObjectId;
|
|
29
28
|
name: string;
|
|
29
|
+
id: import("mongoose").Types.ObjectId;
|
|
30
30
|
}>;
|
|
31
|
-
content: z.ZodOptional<z.
|
|
31
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
32
32
|
media: z.ZodArray<z.ZodObject<{
|
|
33
33
|
mimeType: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
34
34
|
mediaType: z.ZodNativeEnum<typeof MediaType>;
|
|
35
35
|
mediaUrl: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
36
|
-
thumbnailUrl: z.ZodOptional<z.
|
|
37
|
-
name: z.ZodOptional<z.
|
|
36
|
+
thumbnailUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
37
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
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;
|
|
@@ -67,13 +67,13 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
67
67
|
createdAt: Date;
|
|
68
68
|
sender: {
|
|
69
69
|
type: UserRef;
|
|
70
|
-
id: import("mongoose").Types.ObjectId;
|
|
71
70
|
name: string;
|
|
71
|
+
id: import("mongoose").Types.ObjectId;
|
|
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;
|
|
@@ -85,21 +85,21 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
85
85
|
latitude?: number | undefined;
|
|
86
86
|
longitude?: number | undefined;
|
|
87
87
|
} | 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
92
|
_id: import("mongoose").Types.ObjectId;
|
|
93
93
|
createdAt: Date;
|
|
94
94
|
sender: {
|
|
95
95
|
type: UserRef;
|
|
96
|
-
id: import("mongoose").Types.ObjectId;
|
|
97
96
|
name: string;
|
|
97
|
+
id: import("mongoose").Types.ObjectId;
|
|
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;
|
|
@@ -111,12 +111,12 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
111
111
|
latitude?: number | undefined;
|
|
112
112
|
longitude?: number | undefined;
|
|
113
113
|
} | 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<{
|
|
119
|
-
lastMessage: z.ZodOptional<z.
|
|
119
|
+
lastMessage: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
120
120
|
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>>;
|
|
121
121
|
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>>;
|
|
122
122
|
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>>;
|
|
@@ -157,29 +157,29 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
157
157
|
type: z.ZodNativeEnum<typeof UserRef>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
type: UserRef;
|
|
160
|
-
id: import("mongoose").Types.ObjectId;
|
|
161
160
|
name: string;
|
|
161
|
+
id: import("mongoose").Types.ObjectId;
|
|
162
162
|
}, {
|
|
163
163
|
type: UserRef;
|
|
164
|
-
id: import("mongoose").Types.ObjectId;
|
|
165
164
|
name: string;
|
|
165
|
+
id: import("mongoose").Types.ObjectId;
|
|
166
166
|
}>;
|
|
167
|
-
content: z.ZodOptional<z.
|
|
167
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
168
168
|
media: z.ZodArray<z.ZodObject<{
|
|
169
169
|
mimeType: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
170
170
|
mediaType: z.ZodNativeEnum<typeof MediaType>;
|
|
171
171
|
mediaUrl: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
172
|
-
thumbnailUrl: z.ZodOptional<z.
|
|
173
|
-
name: z.ZodOptional<z.
|
|
172
|
+
thumbnailUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
173
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
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;
|
|
@@ -203,13 +203,13 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
203
203
|
createdAt: Date;
|
|
204
204
|
sender: {
|
|
205
205
|
type: UserRef;
|
|
206
|
-
id: import("mongoose").Types.ObjectId;
|
|
207
206
|
name: string;
|
|
207
|
+
id: import("mongoose").Types.ObjectId;
|
|
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;
|
|
@@ -221,21 +221,21 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
221
221
|
latitude?: number | undefined;
|
|
222
222
|
longitude?: number | undefined;
|
|
223
223
|
} | 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
228
|
_id: import("mongoose").Types.ObjectId;
|
|
229
229
|
createdAt: Date;
|
|
230
230
|
sender: {
|
|
231
231
|
type: UserRef;
|
|
232
|
-
id: import("mongoose").Types.ObjectId;
|
|
233
232
|
name: string;
|
|
233
|
+
id: import("mongoose").Types.ObjectId;
|
|
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;
|
|
@@ -247,12 +247,12 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
247
247
|
latitude?: number | undefined;
|
|
248
248
|
longitude?: number | undefined;
|
|
249
249
|
} | 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<{
|
|
255
|
-
lastMessage: z.ZodOptional<z.
|
|
255
|
+
lastMessage: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
256
256
|
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>>;
|
|
257
257
|
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>>;
|
|
258
258
|
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>>;
|
|
@@ -40,19 +40,19 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
40
40
|
secondaryRiderTips: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
deliveryFee: number;
|
|
43
|
-
riderTips: number;
|
|
44
|
-
total: number;
|
|
45
43
|
secondaryDeliveryFee: number;
|
|
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
51
|
deliveryFee: number;
|
|
52
|
-
riderTips: number;
|
|
53
|
-
total: number;
|
|
54
52
|
secondaryDeliveryFee: number;
|
|
53
|
+
riderTips: number;
|
|
55
54
|
secondaryRiderTips: number;
|
|
55
|
+
total: number;
|
|
56
56
|
secondaryTotal: number;
|
|
57
57
|
paidAmount: number;
|
|
58
58
|
secondaryPaidAmount: number;
|
|
@@ -61,10 +61,10 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
61
61
|
paymentMethod: PaymentMethod;
|
|
62
62
|
pricing: {
|
|
63
63
|
deliveryFee: number;
|
|
64
|
-
riderTips: number;
|
|
65
|
-
total: number;
|
|
66
64
|
secondaryDeliveryFee: number;
|
|
65
|
+
riderTips: number;
|
|
67
66
|
secondaryRiderTips: number;
|
|
67
|
+
total: number;
|
|
68
68
|
secondaryTotal: number;
|
|
69
69
|
paidAmount: number;
|
|
70
70
|
secondaryPaidAmount: number;
|
|
@@ -74,10 +74,10 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
74
74
|
paymentMethod: PaymentMethod;
|
|
75
75
|
pricing: {
|
|
76
76
|
deliveryFee: number;
|
|
77
|
-
riderTips: number;
|
|
78
|
-
total: number;
|
|
79
77
|
secondaryDeliveryFee: number;
|
|
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
|
+
orderId: string;
|
|
93
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
94
|
+
createdAt: Date;
|
|
91
95
|
user: {
|
|
92
96
|
_id: import("mongoose").Types.ObjectId;
|
|
93
97
|
name: string;
|
|
94
98
|
};
|
|
95
|
-
_id: import("mongoose").Types.ObjectId;
|
|
96
|
-
orderId: string;
|
|
97
99
|
triggerAt: Date;
|
|
98
|
-
createdAt: Date;
|
|
99
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
100
|
-
paymentMethod: PaymentMethod;
|
|
101
100
|
adjustedFinance: {
|
|
102
101
|
paymentMethod: PaymentMethod;
|
|
103
102
|
pricing: {
|
|
104
103
|
deliveryFee: number;
|
|
105
|
-
riderTips: number;
|
|
106
|
-
total: number;
|
|
107
104
|
secondaryDeliveryFee: number;
|
|
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
|
+
orderId: string;
|
|
122
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
123
|
+
createdAt: Date;
|
|
120
124
|
user: {
|
|
121
125
|
_id: string | import("mongoose").Types.ObjectId;
|
|
122
126
|
name: string;
|
|
123
127
|
};
|
|
124
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
125
|
-
orderId: string;
|
|
126
128
|
triggerAt: Date;
|
|
127
|
-
createdAt: Date;
|
|
128
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
129
|
-
paymentMethod: PaymentMethod;
|
|
130
129
|
adjustedFinance: {
|
|
131
130
|
paymentMethod: PaymentMethod;
|
|
132
131
|
pricing: {
|
|
133
132
|
deliveryFee: number;
|
|
134
|
-
riderTips: number;
|
|
135
|
-
total: number;
|
|
136
133
|
secondaryDeliveryFee: number;
|
|
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;
|
|
@@ -184,19 +184,19 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
184
184
|
secondaryRiderTips: z.ZodNumber;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
186
|
deliveryFee: number;
|
|
187
|
-
riderTips: number;
|
|
188
|
-
total: number;
|
|
189
187
|
secondaryDeliveryFee: number;
|
|
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
195
|
deliveryFee: number;
|
|
196
|
-
riderTips: number;
|
|
197
|
-
total: number;
|
|
198
196
|
secondaryDeliveryFee: number;
|
|
197
|
+
riderTips: number;
|
|
199
198
|
secondaryRiderTips: number;
|
|
199
|
+
total: number;
|
|
200
200
|
secondaryTotal: number;
|
|
201
201
|
paidAmount: number;
|
|
202
202
|
secondaryPaidAmount: number;
|
|
@@ -205,10 +205,10 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
205
205
|
paymentMethod: PaymentMethod;
|
|
206
206
|
pricing: {
|
|
207
207
|
deliveryFee: number;
|
|
208
|
-
riderTips: number;
|
|
209
|
-
total: number;
|
|
210
208
|
secondaryDeliveryFee: number;
|
|
209
|
+
riderTips: number;
|
|
211
210
|
secondaryRiderTips: number;
|
|
211
|
+
total: number;
|
|
212
212
|
secondaryTotal: number;
|
|
213
213
|
paidAmount: number;
|
|
214
214
|
secondaryPaidAmount: number;
|
|
@@ -218,10 +218,10 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
218
218
|
paymentMethod: PaymentMethod;
|
|
219
219
|
pricing: {
|
|
220
220
|
deliveryFee: number;
|
|
221
|
-
riderTips: number;
|
|
222
|
-
total: number;
|
|
223
221
|
secondaryDeliveryFee: number;
|
|
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
|
+
orderId: string;
|
|
237
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
238
|
+
createdAt: Date;
|
|
235
239
|
user: {
|
|
236
240
|
_id: import("mongoose").Types.ObjectId;
|
|
237
241
|
name: string;
|
|
238
242
|
};
|
|
239
|
-
_id: import("mongoose").Types.ObjectId;
|
|
240
|
-
orderId: string;
|
|
241
243
|
triggerAt: Date;
|
|
242
|
-
createdAt: Date;
|
|
243
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
244
|
-
paymentMethod: PaymentMethod;
|
|
245
244
|
adjustedFinance: {
|
|
246
245
|
paymentMethod: PaymentMethod;
|
|
247
246
|
pricing: {
|
|
248
247
|
deliveryFee: number;
|
|
249
|
-
riderTips: number;
|
|
250
|
-
total: number;
|
|
251
248
|
secondaryDeliveryFee: number;
|
|
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
|
+
orderId: string;
|
|
266
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
267
|
+
createdAt: Date;
|
|
264
268
|
user: {
|
|
265
269
|
_id: string | import("mongoose").Types.ObjectId;
|
|
266
270
|
name: string;
|
|
267
271
|
};
|
|
268
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
269
|
-
orderId: string;
|
|
270
272
|
triggerAt: Date;
|
|
271
|
-
createdAt: Date;
|
|
272
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
273
|
-
paymentMethod: PaymentMethod;
|
|
274
273
|
adjustedFinance: {
|
|
275
274
|
paymentMethod: PaymentMethod;
|
|
276
275
|
pricing: {
|
|
277
276
|
deliveryFee: number;
|
|
278
|
-
riderTips: number;
|
|
279
|
-
total: number;
|
|
280
277
|
secondaryDeliveryFee: number;
|
|
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;
|
|
@@ -20,17 +20,17 @@ export declare const RiderLocationUpdateSocketOutputSchema: z.ZodObject<{
|
|
|
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
22
|
_id: import("mongoose").Types.ObjectId;
|
|
23
|
-
updatedAt: Date;
|
|
24
|
-
riderId: import("mongoose").Types.ObjectId;
|
|
25
23
|
latitude: number;
|
|
26
24
|
longitude: number;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
riderId: import("mongoose").Types.ObjectId;
|
|
27
27
|
bearing?: number | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
_id: string | import("mongoose").Types.ObjectId;
|
|
30
|
-
updatedAt: string | Date;
|
|
31
|
-
riderId: string | import("mongoose").Types.ObjectId;
|
|
32
30
|
latitude: number;
|
|
33
31
|
longitude: number;
|
|
32
|
+
updatedAt: string | Date;
|
|
33
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
34
34
|
bearing?: number | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export type RiderLocationUpdateSocketInputDTO = DTO<typeof RiderLocationUpdateSocketInputSchema>;
|
|
@@ -56,17 +56,17 @@ export declare class RiderLocationUpdateSocketEvent extends BaseSocketEvent<type
|
|
|
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
58
|
_id: import("mongoose").Types.ObjectId;
|
|
59
|
-
updatedAt: Date;
|
|
60
|
-
riderId: import("mongoose").Types.ObjectId;
|
|
61
59
|
latitude: number;
|
|
62
60
|
longitude: number;
|
|
61
|
+
updatedAt: Date;
|
|
62
|
+
riderId: import("mongoose").Types.ObjectId;
|
|
63
63
|
bearing?: number | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
_id: string | import("mongoose").Types.ObjectId;
|
|
66
|
-
updatedAt: string | Date;
|
|
67
|
-
riderId: string | import("mongoose").Types.ObjectId;
|
|
68
66
|
latitude: number;
|
|
69
67
|
longitude: number;
|
|
68
|
+
updatedAt: string | Date;
|
|
69
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
};
|
|
@@ -8,19 +8,19 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
8
8
|
_id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
9
9
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
10
10
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
11
|
-
content: z.ZodOptional<z.
|
|
12
|
-
title: z.ZodOptional<z.
|
|
11
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
12
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
13
13
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
type: TicketType;
|
|
16
15
|
status: TicketStatus;
|
|
16
|
+
type: TicketType;
|
|
17
17
|
_id: import("mongoose").Types.ObjectId;
|
|
18
18
|
title?: string | undefined;
|
|
19
19
|
content?: string | undefined;
|
|
20
20
|
silent?: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
type: TicketType;
|
|
23
22
|
status: TicketStatus;
|
|
23
|
+
type: TicketType;
|
|
24
24
|
_id: import("mongoose").Types.ObjectId;
|
|
25
25
|
title?: string | undefined;
|
|
26
26
|
content?: string | undefined;
|
|
@@ -30,17 +30,17 @@ 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>;
|
|
31
31
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
32
32
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
33
|
-
content: z.ZodOptional<z.
|
|
34
|
-
title: z.ZodOptional<z.
|
|
33
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
34
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
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;
|
|
@@ -55,19 +55,19 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
55
55
|
_id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
56
56
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
57
57
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
58
|
-
content: z.ZodOptional<z.
|
|
59
|
-
title: z.ZodOptional<z.
|
|
58
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
59
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
60
60
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
type: TicketType;
|
|
63
62
|
status: TicketStatus;
|
|
63
|
+
type: TicketType;
|
|
64
64
|
_id: import("mongoose").Types.ObjectId;
|
|
65
65
|
title?: string | undefined;
|
|
66
66
|
content?: string | undefined;
|
|
67
67
|
silent?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
type: TicketType;
|
|
70
69
|
status: TicketStatus;
|
|
70
|
+
type: TicketType;
|
|
71
71
|
_id: import("mongoose").Types.ObjectId;
|
|
72
72
|
title?: string | undefined;
|
|
73
73
|
content?: string | undefined;
|
|
@@ -77,17 +77,17 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
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>;
|
|
78
78
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
79
79
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
80
|
-
content: z.ZodOptional<z.
|
|
81
|
-
title: z.ZodOptional<z.
|
|
80
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
81
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
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,8 +39,8 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
39
39
|
}>;
|
|
40
40
|
unreadCount: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
type: TicketType;
|
|
43
42
|
status: TicketStatus;
|
|
43
|
+
type: TicketType;
|
|
44
44
|
_id: import("mongoose").Types.ObjectId;
|
|
45
45
|
createdAt: Date;
|
|
46
46
|
updatedAt: Date;
|
|
@@ -48,18 +48,18 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
48
48
|
createdAt: Date;
|
|
49
49
|
content: string;
|
|
50
50
|
};
|
|
51
|
-
unreadCount: number;
|
|
52
51
|
client: {
|
|
53
52
|
type: UserRef;
|
|
54
53
|
_id: import("mongoose").Types.ObjectId;
|
|
55
54
|
name: string;
|
|
56
55
|
profilePhoto: string | null;
|
|
57
56
|
};
|
|
57
|
+
unreadCount: number;
|
|
58
58
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
59
59
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
60
60
|
}, {
|
|
61
|
-
type: TicketType;
|
|
62
61
|
status: TicketStatus;
|
|
62
|
+
type: TicketType;
|
|
63
63
|
_id: string | import("mongoose").Types.ObjectId;
|
|
64
64
|
createdAt: string | Date;
|
|
65
65
|
updatedAt: string | Date;
|
|
@@ -67,13 +67,13 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
67
67
|
createdAt: string | Date;
|
|
68
68
|
content: string;
|
|
69
69
|
};
|
|
70
|
-
unreadCount: number;
|
|
71
70
|
client: {
|
|
72
71
|
type: UserRef;
|
|
73
72
|
_id: string | import("mongoose").Types.ObjectId;
|
|
74
73
|
name: string;
|
|
75
74
|
profilePhoto: string | null;
|
|
76
75
|
};
|
|
76
|
+
unreadCount: number;
|
|
77
77
|
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
78
78
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
79
79
|
}>;
|
|
@@ -117,8 +117,8 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
117
117
|
}>;
|
|
118
118
|
unreadCount: z.ZodNumber;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
type: TicketType;
|
|
121
120
|
status: TicketStatus;
|
|
121
|
+
type: TicketType;
|
|
122
122
|
_id: import("mongoose").Types.ObjectId;
|
|
123
123
|
createdAt: Date;
|
|
124
124
|
updatedAt: Date;
|
|
@@ -126,18 +126,18 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
126
126
|
createdAt: Date;
|
|
127
127
|
content: string;
|
|
128
128
|
};
|
|
129
|
-
unreadCount: number;
|
|
130
129
|
client: {
|
|
131
130
|
type: UserRef;
|
|
132
131
|
_id: import("mongoose").Types.ObjectId;
|
|
133
132
|
name: string;
|
|
134
133
|
profilePhoto: string | null;
|
|
135
134
|
};
|
|
135
|
+
unreadCount: number;
|
|
136
136
|
chatroomId: import("mongoose").Types.ObjectId;
|
|
137
137
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
138
138
|
}, {
|
|
139
|
-
type: TicketType;
|
|
140
139
|
status: TicketStatus;
|
|
140
|
+
type: TicketType;
|
|
141
141
|
_id: string | import("mongoose").Types.ObjectId;
|
|
142
142
|
createdAt: string | Date;
|
|
143
143
|
updatedAt: string | Date;
|
|
@@ -145,13 +145,13 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
145
145
|
createdAt: string | Date;
|
|
146
146
|
content: string;
|
|
147
147
|
};
|
|
148
|
-
unreadCount: number;
|
|
149
148
|
client: {
|
|
150
149
|
type: UserRef;
|
|
151
150
|
_id: string | import("mongoose").Types.ObjectId;
|
|
152
151
|
name: string;
|
|
153
152
|
profilePhoto: string | null;
|
|
154
153
|
};
|
|
154
|
+
unreadCount: number;
|
|
155
155
|
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
156
156
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
157
157
|
}>;
|