@lyxa.ai/core 1.4.330 → 1.4.331
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/index.d.ts +3 -0
- package/dist/libraries/mongo/models/index.js +6 -3
- package/dist/libraries/mongo/models/index.js.map +1 -1
- package/dist/libraries/mongo/models/providers/global-coupon.model.d.ts +2 -0
- package/dist/libraries/mongo/models/providers/global-coupon.model.js +20 -0
- package/dist/libraries/mongo/models/providers/global-coupon.model.js.map +1 -1
- package/dist/libraries/mongo/models/user-coupon.model.d.ts +11 -0
- package/dist/libraries/mongo/models/user-coupon.model.js +52 -0
- package/dist/libraries/mongo/models/user-coupon.model.js.map +1 -0
- package/dist/libraries/mongo/models/user.model.d.ts +2 -1
- package/dist/libraries/mongo/models/user.model.js +6 -1
- package/dist/libraries/mongo/models/user.model.js.map +1 -1
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +13 -13
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +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 +13 -13
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +8 -8
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +12 -12
- 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 +12 -12
- package/dist/utilities/validation/validation-for-frontend.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -72,8 +72,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
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;
|
|
@@ -98,8 +98,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
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;
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -208,8 +208,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
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;
|
|
@@ -234,8 +234,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
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;
|
|
@@ -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;
|
|
@@ -39,108 +39,108 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
39
39
|
riderTips: z.ZodNumber;
|
|
40
40
|
secondaryRiderTips: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
total: number;
|
|
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;
|
|
59
59
|
}>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
paymentMethod: PaymentMethod;
|
|
62
61
|
pricing: {
|
|
63
|
-
total: number;
|
|
64
62
|
deliveryFee: number;
|
|
65
63
|
secondaryDeliveryFee: number;
|
|
66
64
|
riderTips: number;
|
|
67
65
|
secondaryRiderTips: number;
|
|
66
|
+
total: number;
|
|
68
67
|
secondaryTotal: number;
|
|
69
68
|
paidAmount: number;
|
|
70
69
|
secondaryPaidAmount: number;
|
|
71
70
|
};
|
|
72
71
|
shopProfit: number;
|
|
73
|
-
}, {
|
|
74
72
|
paymentMethod: PaymentMethod;
|
|
73
|
+
}, {
|
|
75
74
|
pricing: {
|
|
76
|
-
total: number;
|
|
77
75
|
deliveryFee: number;
|
|
78
76
|
secondaryDeliveryFee: number;
|
|
79
77
|
riderTips: number;
|
|
80
78
|
secondaryRiderTips: number;
|
|
79
|
+
total: number;
|
|
81
80
|
secondaryTotal: number;
|
|
82
81
|
paidAmount: number;
|
|
83
82
|
secondaryPaidAmount: number;
|
|
84
83
|
};
|
|
85
84
|
shopProfit: number;
|
|
85
|
+
paymentMethod: PaymentMethod;
|
|
86
86
|
}>;
|
|
87
87
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
88
88
|
triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
89
89
|
orderActionType: z.ZodNativeEnum<typeof OrderAction>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
_id: import("mongoose").Types.ObjectId;
|
|
92
|
-
|
|
92
|
+
orderId: string;
|
|
93
93
|
user: {
|
|
94
94
|
_id: import("mongoose").Types.ObjectId;
|
|
95
95
|
name: string;
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
createdAt: Date;
|
|
98
98
|
shopId: import("mongoose").Types.ObjectId;
|
|
99
|
-
paymentMethod: PaymentMethod;
|
|
100
99
|
triggerAt: Date;
|
|
101
100
|
adjustedFinance: {
|
|
102
|
-
paymentMethod: PaymentMethod;
|
|
103
101
|
pricing: {
|
|
104
|
-
total: number;
|
|
105
102
|
deliveryFee: number;
|
|
106
103
|
secondaryDeliveryFee: number;
|
|
107
104
|
riderTips: number;
|
|
108
105
|
secondaryRiderTips: number;
|
|
106
|
+
total: number;
|
|
109
107
|
secondaryTotal: number;
|
|
110
108
|
paidAmount: number;
|
|
111
109
|
secondaryPaidAmount: number;
|
|
112
110
|
};
|
|
113
111
|
shopProfit: number;
|
|
112
|
+
paymentMethod: PaymentMethod;
|
|
114
113
|
};
|
|
114
|
+
paymentMethod: PaymentMethod;
|
|
115
115
|
orderActionType: OrderAction;
|
|
116
116
|
orderStatus: RegularOrderStatus;
|
|
117
117
|
orderAction: OrderAction;
|
|
118
118
|
preparationTimeMinutes: number;
|
|
119
119
|
}, {
|
|
120
120
|
_id: string | import("mongoose").Types.ObjectId;
|
|
121
|
-
|
|
121
|
+
orderId: string;
|
|
122
122
|
user: {
|
|
123
123
|
_id: string | import("mongoose").Types.ObjectId;
|
|
124
124
|
name: string;
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
createdAt: Date;
|
|
127
127
|
shopId: string | import("mongoose").Types.ObjectId;
|
|
128
|
-
paymentMethod: PaymentMethod;
|
|
129
128
|
triggerAt: Date;
|
|
130
129
|
adjustedFinance: {
|
|
131
|
-
paymentMethod: PaymentMethod;
|
|
132
130
|
pricing: {
|
|
133
|
-
total: number;
|
|
134
131
|
deliveryFee: number;
|
|
135
132
|
secondaryDeliveryFee: number;
|
|
136
133
|
riderTips: number;
|
|
137
134
|
secondaryRiderTips: number;
|
|
135
|
+
total: number;
|
|
138
136
|
secondaryTotal: number;
|
|
139
137
|
paidAmount: number;
|
|
140
138
|
secondaryPaidAmount: number;
|
|
141
139
|
};
|
|
142
140
|
shopProfit: number;
|
|
141
|
+
paymentMethod: PaymentMethod;
|
|
143
142
|
};
|
|
143
|
+
paymentMethod: PaymentMethod;
|
|
144
144
|
orderActionType: OrderAction;
|
|
145
145
|
orderStatus: RegularOrderStatus;
|
|
146
146
|
orderAction: OrderAction;
|
|
@@ -183,108 +183,108 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
183
183
|
riderTips: z.ZodNumber;
|
|
184
184
|
secondaryRiderTips: z.ZodNumber;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
total: number;
|
|
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;
|
|
203
203
|
}>;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
paymentMethod: PaymentMethod;
|
|
206
205
|
pricing: {
|
|
207
|
-
total: number;
|
|
208
206
|
deliveryFee: number;
|
|
209
207
|
secondaryDeliveryFee: number;
|
|
210
208
|
riderTips: number;
|
|
211
209
|
secondaryRiderTips: number;
|
|
210
|
+
total: number;
|
|
212
211
|
secondaryTotal: number;
|
|
213
212
|
paidAmount: number;
|
|
214
213
|
secondaryPaidAmount: number;
|
|
215
214
|
};
|
|
216
215
|
shopProfit: number;
|
|
217
|
-
}, {
|
|
218
216
|
paymentMethod: PaymentMethod;
|
|
217
|
+
}, {
|
|
219
218
|
pricing: {
|
|
220
|
-
total: number;
|
|
221
219
|
deliveryFee: number;
|
|
222
220
|
secondaryDeliveryFee: number;
|
|
223
221
|
riderTips: number;
|
|
224
222
|
secondaryRiderTips: number;
|
|
223
|
+
total: number;
|
|
225
224
|
secondaryTotal: number;
|
|
226
225
|
paidAmount: number;
|
|
227
226
|
secondaryPaidAmount: number;
|
|
228
227
|
};
|
|
229
228
|
shopProfit: number;
|
|
229
|
+
paymentMethod: PaymentMethod;
|
|
230
230
|
}>;
|
|
231
231
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
232
232
|
triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
|
|
233
233
|
orderActionType: z.ZodNativeEnum<typeof OrderAction>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
_id: import("mongoose").Types.ObjectId;
|
|
236
|
-
|
|
236
|
+
orderId: string;
|
|
237
237
|
user: {
|
|
238
238
|
_id: import("mongoose").Types.ObjectId;
|
|
239
239
|
name: string;
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
createdAt: Date;
|
|
242
242
|
shopId: import("mongoose").Types.ObjectId;
|
|
243
|
-
paymentMethod: PaymentMethod;
|
|
244
243
|
triggerAt: Date;
|
|
245
244
|
adjustedFinance: {
|
|
246
|
-
paymentMethod: PaymentMethod;
|
|
247
245
|
pricing: {
|
|
248
|
-
total: number;
|
|
249
246
|
deliveryFee: number;
|
|
250
247
|
secondaryDeliveryFee: number;
|
|
251
248
|
riderTips: number;
|
|
252
249
|
secondaryRiderTips: number;
|
|
250
|
+
total: number;
|
|
253
251
|
secondaryTotal: number;
|
|
254
252
|
paidAmount: number;
|
|
255
253
|
secondaryPaidAmount: number;
|
|
256
254
|
};
|
|
257
255
|
shopProfit: number;
|
|
256
|
+
paymentMethod: PaymentMethod;
|
|
258
257
|
};
|
|
258
|
+
paymentMethod: PaymentMethod;
|
|
259
259
|
orderActionType: OrderAction;
|
|
260
260
|
orderStatus: RegularOrderStatus;
|
|
261
261
|
orderAction: OrderAction;
|
|
262
262
|
preparationTimeMinutes: number;
|
|
263
263
|
}, {
|
|
264
264
|
_id: string | import("mongoose").Types.ObjectId;
|
|
265
|
-
|
|
265
|
+
orderId: string;
|
|
266
266
|
user: {
|
|
267
267
|
_id: string | import("mongoose").Types.ObjectId;
|
|
268
268
|
name: string;
|
|
269
269
|
};
|
|
270
|
-
|
|
270
|
+
createdAt: Date;
|
|
271
271
|
shopId: string | import("mongoose").Types.ObjectId;
|
|
272
|
-
paymentMethod: PaymentMethod;
|
|
273
272
|
triggerAt: Date;
|
|
274
273
|
adjustedFinance: {
|
|
275
|
-
paymentMethod: PaymentMethod;
|
|
276
274
|
pricing: {
|
|
277
|
-
total: number;
|
|
278
275
|
deliveryFee: number;
|
|
279
276
|
secondaryDeliveryFee: number;
|
|
280
277
|
riderTips: number;
|
|
281
278
|
secondaryRiderTips: number;
|
|
279
|
+
total: number;
|
|
282
280
|
secondaryTotal: number;
|
|
283
281
|
paidAmount: number;
|
|
284
282
|
secondaryPaidAmount: number;
|
|
285
283
|
};
|
|
286
284
|
shopProfit: number;
|
|
285
|
+
paymentMethod: PaymentMethod;
|
|
287
286
|
};
|
|
287
|
+
paymentMethod: PaymentMethod;
|
|
288
288
|
orderActionType: OrderAction;
|
|
289
289
|
orderStatus: RegularOrderStatus;
|
|
290
290
|
orderAction: OrderAction;
|
|
@@ -19,17 +19,17 @@ 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
|
-
updatedAt: Date;
|
|
24
22
|
latitude: number;
|
|
25
23
|
longitude: number;
|
|
24
|
+
_id: import("mongoose").Types.ObjectId;
|
|
25
|
+
updatedAt: Date;
|
|
26
26
|
riderId: import("mongoose").Types.ObjectId;
|
|
27
27
|
bearing?: number | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
30
|
-
updatedAt: string | Date;
|
|
31
29
|
latitude: number;
|
|
32
30
|
longitude: number;
|
|
31
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
32
|
+
updatedAt: string | Date;
|
|
33
33
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
34
34
|
bearing?: number | undefined;
|
|
35
35
|
}>;
|
|
@@ -55,17 +55,17 @@ 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
|
-
updatedAt: Date;
|
|
60
58
|
latitude: number;
|
|
61
59
|
longitude: number;
|
|
60
|
+
_id: import("mongoose").Types.ObjectId;
|
|
61
|
+
updatedAt: Date;
|
|
62
62
|
riderId: import("mongoose").Types.ObjectId;
|
|
63
63
|
bearing?: number | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
66
|
-
updatedAt: string | Date;
|
|
67
65
|
latitude: number;
|
|
68
66
|
longitude: number;
|
|
67
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
68
|
+
updatedAt: string | Date;
|
|
69
69
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
@@ -12,19 +12,19 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
12
12
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
13
13
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
status: TicketStatus;
|
|
16
15
|
type: TicketType;
|
|
16
|
+
status: TicketStatus;
|
|
17
17
|
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
silent?: boolean | undefined;
|
|
19
18
|
title?: string | undefined;
|
|
20
19
|
content?: string | undefined;
|
|
20
|
+
silent?: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
|
-
status: TicketStatus;
|
|
23
22
|
type: TicketType;
|
|
23
|
+
status: TicketStatus;
|
|
24
24
|
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
silent?: boolean | undefined;
|
|
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>;
|
|
@@ -33,14 +33,14 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
|
33
33
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
34
34
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
status: TicketStatus;
|
|
37
36
|
type: TicketType;
|
|
37
|
+
status: TicketStatus;
|
|
38
38
|
ticketId: import("mongoose").Types.ObjectId;
|
|
39
39
|
title?: string | undefined;
|
|
40
40
|
content?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
status: TicketStatus;
|
|
43
42
|
type: TicketType;
|
|
43
|
+
status: TicketStatus;
|
|
44
44
|
ticketId: import("mongoose").Types.ObjectId;
|
|
45
45
|
title?: string | undefined;
|
|
46
46
|
content?: string | undefined;
|
|
@@ -59,19 +59,19 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
59
59
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
60
60
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
status: TicketStatus;
|
|
63
62
|
type: TicketType;
|
|
63
|
+
status: TicketStatus;
|
|
64
64
|
_id: import("mongoose").Types.ObjectId;
|
|
65
|
-
silent?: boolean | undefined;
|
|
66
65
|
title?: string | undefined;
|
|
67
66
|
content?: string | undefined;
|
|
67
|
+
silent?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
status: TicketStatus;
|
|
70
69
|
type: TicketType;
|
|
70
|
+
status: TicketStatus;
|
|
71
71
|
_id: import("mongoose").Types.ObjectId;
|
|
72
|
-
silent?: boolean | undefined;
|
|
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>;
|
|
@@ -80,14 +80,14 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
80
80
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
81
81
|
title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
status: TicketStatus;
|
|
84
83
|
type: TicketType;
|
|
84
|
+
status: TicketStatus;
|
|
85
85
|
ticketId: import("mongoose").Types.ObjectId;
|
|
86
86
|
title?: string | undefined;
|
|
87
87
|
content?: string | undefined;
|
|
88
88
|
}, {
|
|
89
|
-
status: TicketStatus;
|
|
90
89
|
type: TicketType;
|
|
90
|
+
status: TicketStatus;
|
|
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
|
-
status: TicketStatus;
|
|
100
99
|
type: TicketType;
|
|
100
|
+
status: TicketStatus;
|
|
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
|
-
status: TicketStatus;
|
|
43
42
|
type: TicketType;
|
|
43
|
+
status: TicketStatus;
|
|
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
|
-
status: TicketStatus;
|
|
62
61
|
type: TicketType;
|
|
62
|
+
status: TicketStatus;
|
|
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
|
-
status: TicketStatus;
|
|
121
120
|
type: TicketType;
|
|
121
|
+
status: TicketStatus;
|
|
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
|
-
status: TicketStatus;
|
|
140
139
|
type: TicketType;
|
|
140
|
+
status: TicketStatus;
|
|
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
|
}>;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED