@lyxa.ai/core 1.4.305 → 1.4.306-alpha-2
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/service-control-product-config.model.d.ts +9 -0
- package/dist/libraries/mongo/models/embedded/service-control-product-config.model.js +52 -0
- package/dist/libraries/mongo/models/embedded/service-control-product-config.model.js.map +1 -0
- package/dist/libraries/mongo/models/service-control.model.d.ts +10 -2
- package/dist/libraries/mongo/models/service-control.model.js +42 -6
- package/dist/libraries/mongo/models/service-control.model.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 +70 -70
- 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 +16 -16
- 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/enum.d.ts +9 -0
- package/dist/types/utilities/enum.js +15 -4
- package/dist/types/utilities/enum.js.map +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +12 -12
- package/dist/utilities/enum.d.ts +9 -0
- package/dist/utilities/enum.js +15 -4
- package/dist/utilities/enum.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
|
@@ -40,111 +40,111 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
40
40
|
secondaryRiderTips: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
total: number;
|
|
43
|
-
secondaryTotal: number;
|
|
44
|
-
paidAmount: number;
|
|
45
|
-
secondaryPaidAmount: number;
|
|
46
43
|
deliveryFee: 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
|
+
}, {
|
|
51
|
+
total: number;
|
|
55
52
|
deliveryFee: 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
63
|
total: number;
|
|
65
|
-
secondaryTotal: number;
|
|
66
|
-
paidAmount: number;
|
|
67
|
-
secondaryPaidAmount: number;
|
|
68
64
|
deliveryFee: 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
76
|
total: number;
|
|
78
|
-
secondaryTotal: number;
|
|
79
|
-
paidAmount: number;
|
|
80
|
-
secondaryPaidAmount: number;
|
|
81
77
|
deliveryFee: 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
91
|
_id: import("mongoose").Types.ObjectId;
|
|
92
|
-
orderId: string;
|
|
93
92
|
createdAt: Date;
|
|
94
|
-
orderActionType: OrderAction;
|
|
95
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
96
93
|
user: {
|
|
97
94
|
_id: import("mongoose").Types.ObjectId;
|
|
98
95
|
name: string;
|
|
99
96
|
};
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
orderId: string;
|
|
98
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
102
99
|
paymentMethod: PaymentMethod;
|
|
103
|
-
|
|
100
|
+
triggerAt: Date;
|
|
104
101
|
adjustedFinance: {
|
|
105
102
|
paymentMethod: PaymentMethod;
|
|
106
|
-
shopProfit: number;
|
|
107
103
|
pricing: {
|
|
108
104
|
total: number;
|
|
109
|
-
secondaryTotal: number;
|
|
110
|
-
paidAmount: number;
|
|
111
|
-
secondaryPaidAmount: number;
|
|
112
105
|
deliveryFee: number;
|
|
113
106
|
secondaryDeliveryFee: number;
|
|
114
107
|
riderTips: number;
|
|
115
108
|
secondaryRiderTips: number;
|
|
109
|
+
secondaryTotal: number;
|
|
110
|
+
paidAmount: number;
|
|
111
|
+
secondaryPaidAmount: number;
|
|
116
112
|
};
|
|
113
|
+
shopProfit: number;
|
|
117
114
|
};
|
|
118
|
-
|
|
115
|
+
orderActionType: OrderAction;
|
|
116
|
+
orderStatus: RegularOrderStatus;
|
|
117
|
+
orderAction: OrderAction;
|
|
118
|
+
preparationTimeMinutes: number;
|
|
119
119
|
}, {
|
|
120
120
|
_id: string | import("mongoose").Types.ObjectId;
|
|
121
|
-
orderId: string;
|
|
122
121
|
createdAt: Date;
|
|
123
|
-
orderActionType: OrderAction;
|
|
124
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
125
122
|
user: {
|
|
126
123
|
_id: string | import("mongoose").Types.ObjectId;
|
|
127
124
|
name: string;
|
|
128
125
|
};
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
orderId: string;
|
|
127
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
131
128
|
paymentMethod: PaymentMethod;
|
|
132
|
-
|
|
129
|
+
triggerAt: Date;
|
|
133
130
|
adjustedFinance: {
|
|
134
131
|
paymentMethod: PaymentMethod;
|
|
135
|
-
shopProfit: number;
|
|
136
132
|
pricing: {
|
|
137
133
|
total: number;
|
|
138
|
-
secondaryTotal: number;
|
|
139
|
-
paidAmount: number;
|
|
140
|
-
secondaryPaidAmount: number;
|
|
141
134
|
deliveryFee: number;
|
|
142
135
|
secondaryDeliveryFee: number;
|
|
143
136
|
riderTips: number;
|
|
144
137
|
secondaryRiderTips: number;
|
|
138
|
+
secondaryTotal: number;
|
|
139
|
+
paidAmount: number;
|
|
140
|
+
secondaryPaidAmount: number;
|
|
145
141
|
};
|
|
142
|
+
shopProfit: number;
|
|
146
143
|
};
|
|
147
|
-
|
|
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>;
|
|
@@ -184,111 +184,111 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
184
184
|
secondaryRiderTips: z.ZodNumber;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
186
|
total: number;
|
|
187
|
-
secondaryTotal: number;
|
|
188
|
-
paidAmount: number;
|
|
189
|
-
secondaryPaidAmount: number;
|
|
190
187
|
deliveryFee: 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
|
+
}, {
|
|
195
|
+
total: number;
|
|
199
196
|
deliveryFee: 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
207
|
total: number;
|
|
209
|
-
secondaryTotal: number;
|
|
210
|
-
paidAmount: number;
|
|
211
|
-
secondaryPaidAmount: number;
|
|
212
208
|
deliveryFee: 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
220
|
total: number;
|
|
222
|
-
secondaryTotal: number;
|
|
223
|
-
paidAmount: number;
|
|
224
|
-
secondaryPaidAmount: number;
|
|
225
221
|
deliveryFee: 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
235
|
_id: import("mongoose").Types.ObjectId;
|
|
236
|
-
orderId: string;
|
|
237
236
|
createdAt: Date;
|
|
238
|
-
orderActionType: OrderAction;
|
|
239
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
240
237
|
user: {
|
|
241
238
|
_id: import("mongoose").Types.ObjectId;
|
|
242
239
|
name: string;
|
|
243
240
|
};
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
orderId: string;
|
|
242
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
246
243
|
paymentMethod: PaymentMethod;
|
|
247
|
-
|
|
244
|
+
triggerAt: Date;
|
|
248
245
|
adjustedFinance: {
|
|
249
246
|
paymentMethod: PaymentMethod;
|
|
250
|
-
shopProfit: number;
|
|
251
247
|
pricing: {
|
|
252
248
|
total: number;
|
|
253
|
-
secondaryTotal: number;
|
|
254
|
-
paidAmount: number;
|
|
255
|
-
secondaryPaidAmount: number;
|
|
256
249
|
deliveryFee: number;
|
|
257
250
|
secondaryDeliveryFee: number;
|
|
258
251
|
riderTips: number;
|
|
259
252
|
secondaryRiderTips: number;
|
|
253
|
+
secondaryTotal: number;
|
|
254
|
+
paidAmount: number;
|
|
255
|
+
secondaryPaidAmount: number;
|
|
260
256
|
};
|
|
257
|
+
shopProfit: number;
|
|
261
258
|
};
|
|
262
|
-
|
|
259
|
+
orderActionType: OrderAction;
|
|
260
|
+
orderStatus: RegularOrderStatus;
|
|
261
|
+
orderAction: OrderAction;
|
|
262
|
+
preparationTimeMinutes: number;
|
|
263
263
|
}, {
|
|
264
264
|
_id: string | import("mongoose").Types.ObjectId;
|
|
265
|
-
orderId: string;
|
|
266
265
|
createdAt: Date;
|
|
267
|
-
orderActionType: OrderAction;
|
|
268
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
269
266
|
user: {
|
|
270
267
|
_id: string | import("mongoose").Types.ObjectId;
|
|
271
268
|
name: string;
|
|
272
269
|
};
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
orderId: string;
|
|
271
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
275
272
|
paymentMethod: PaymentMethod;
|
|
276
|
-
|
|
273
|
+
triggerAt: Date;
|
|
277
274
|
adjustedFinance: {
|
|
278
275
|
paymentMethod: PaymentMethod;
|
|
279
|
-
shopProfit: number;
|
|
280
276
|
pricing: {
|
|
281
277
|
total: number;
|
|
282
|
-
secondaryTotal: number;
|
|
283
|
-
paidAmount: number;
|
|
284
|
-
secondaryPaidAmount: number;
|
|
285
278
|
deliveryFee: number;
|
|
286
279
|
secondaryDeliveryFee: number;
|
|
287
280
|
riderTips: number;
|
|
288
281
|
secondaryRiderTips: number;
|
|
282
|
+
secondaryTotal: number;
|
|
283
|
+
paidAmount: number;
|
|
284
|
+
secondaryPaidAmount: number;
|
|
289
285
|
};
|
|
286
|
+
shopProfit: number;
|
|
290
287
|
};
|
|
291
|
-
|
|
288
|
+
orderActionType: OrderAction;
|
|
289
|
+
orderStatus: RegularOrderStatus;
|
|
290
|
+
orderAction: OrderAction;
|
|
291
|
+
preparationTimeMinutes: number;
|
|
292
292
|
}>;
|
|
293
293
|
};
|
|
294
294
|
private static getMessageForAction;
|
|
@@ -20,16 +20,16 @@ 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
|
-
longitude: number;
|
|
24
|
-
latitude: number;
|
|
25
23
|
updatedAt: Date;
|
|
24
|
+
latitude: number;
|
|
25
|
+
longitude: number;
|
|
26
26
|
riderId: import("mongoose").Types.ObjectId;
|
|
27
27
|
bearing?: number | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
_id: string | import("mongoose").Types.ObjectId;
|
|
30
|
-
longitude: number;
|
|
31
|
-
latitude: number;
|
|
32
30
|
updatedAt: string | Date;
|
|
31
|
+
latitude: number;
|
|
32
|
+
longitude: number;
|
|
33
33
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
34
34
|
bearing?: number | undefined;
|
|
35
35
|
}>;
|
|
@@ -56,16 +56,16 @@ 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
|
-
longitude: number;
|
|
60
|
-
latitude: number;
|
|
61
59
|
updatedAt: Date;
|
|
60
|
+
latitude: number;
|
|
61
|
+
longitude: number;
|
|
62
62
|
riderId: import("mongoose").Types.ObjectId;
|
|
63
63
|
bearing?: number | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
_id: string | import("mongoose").Types.ObjectId;
|
|
66
|
-
longitude: number;
|
|
67
|
-
latitude: number;
|
|
68
66
|
updatedAt: string | Date;
|
|
67
|
+
latitude: number;
|
|
68
|
+
longitude: number;
|
|
69
69
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
@@ -15,16 +15,16 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
15
15
|
status: TicketStatus;
|
|
16
16
|
type: TicketType;
|
|
17
17
|
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
content?: string | undefined;
|
|
19
|
-
title?: string | undefined;
|
|
20
18
|
silent?: boolean | undefined;
|
|
19
|
+
title?: string | undefined;
|
|
20
|
+
content?: string | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
status: TicketStatus;
|
|
23
23
|
type: TicketType;
|
|
24
24
|
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
content?: string | undefined;
|
|
26
|
-
title?: string | undefined;
|
|
27
25
|
silent?: boolean | undefined;
|
|
26
|
+
title?: string | undefined;
|
|
27
|
+
content?: string | 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>;
|
|
@@ -36,14 +36,14 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
|
36
36
|
status: TicketStatus;
|
|
37
37
|
type: TicketType;
|
|
38
38
|
ticketId: import("mongoose").Types.ObjectId;
|
|
39
|
-
content?: string | undefined;
|
|
40
39
|
title?: string | undefined;
|
|
40
|
+
content?: string | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
status: TicketStatus;
|
|
43
43
|
type: TicketType;
|
|
44
44
|
ticketId: import("mongoose").Types.ObjectId;
|
|
45
|
-
content?: string | undefined;
|
|
46
45
|
title?: string | undefined;
|
|
46
|
+
content?: string | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
export type TicketActionsSocketOutputDTO = DTO<typeof TicketActionsSocketOutputSchema>;
|
|
49
49
|
export type TicketActionsPushOutputDTO = DTO<typeof TicketActionsPushOutputSchema>;
|
|
@@ -62,16 +62,16 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
62
62
|
status: TicketStatus;
|
|
63
63
|
type: TicketType;
|
|
64
64
|
_id: import("mongoose").Types.ObjectId;
|
|
65
|
-
content?: string | undefined;
|
|
66
|
-
title?: string | undefined;
|
|
67
65
|
silent?: boolean | undefined;
|
|
66
|
+
title?: string | undefined;
|
|
67
|
+
content?: string | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
status: TicketStatus;
|
|
70
70
|
type: TicketType;
|
|
71
71
|
_id: import("mongoose").Types.ObjectId;
|
|
72
|
-
content?: string | undefined;
|
|
73
|
-
title?: string | undefined;
|
|
74
72
|
silent?: boolean | undefined;
|
|
73
|
+
title?: string | undefined;
|
|
74
|
+
content?: string | 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>;
|
|
@@ -83,14 +83,14 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
83
83
|
status: TicketStatus;
|
|
84
84
|
type: TicketType;
|
|
85
85
|
ticketId: import("mongoose").Types.ObjectId;
|
|
86
|
-
content?: string | undefined;
|
|
87
86
|
title?: string | undefined;
|
|
87
|
+
content?: string | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
status: TicketStatus;
|
|
90
90
|
type: TicketType;
|
|
91
91
|
ticketId: import("mongoose").Types.ObjectId;
|
|
92
|
-
content?: string | undefined;
|
|
93
92
|
title?: string | undefined;
|
|
93
|
+
content?: string | undefined;
|
|
94
94
|
}>;
|
|
95
95
|
};
|
|
96
96
|
get notificationSettings(): NotificationSettings | undefined;
|
|
@@ -99,8 +99,8 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
99
99
|
status: TicketStatus;
|
|
100
100
|
type: TicketType;
|
|
101
101
|
ticketId: import("mongoose").Types.ObjectId;
|
|
102
|
-
content?: string | undefined;
|
|
103
102
|
title?: string | undefined;
|
|
103
|
+
content?: string | undefined;
|
|
104
104
|
} | undefined;
|
|
105
105
|
protected getIdentifier(): string;
|
|
106
106
|
}
|
|
@@ -31,22 +31,22 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
31
31
|
content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
32
32
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
content: string;
|
|
35
34
|
createdAt: Date;
|
|
36
|
-
}, {
|
|
37
35
|
content: string;
|
|
36
|
+
}, {
|
|
38
37
|
createdAt: string | Date;
|
|
38
|
+
content: string;
|
|
39
39
|
}>;
|
|
40
40
|
unreadCount: z.ZodNumber;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
status: TicketStatus;
|
|
43
43
|
type: TicketType;
|
|
44
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
45
44
|
_id: import("mongoose").Types.ObjectId;
|
|
46
45
|
createdAt: Date;
|
|
46
|
+
updatedAt: Date;
|
|
47
47
|
lastMessage: {
|
|
48
|
-
content: string;
|
|
49
48
|
createdAt: Date;
|
|
49
|
+
content: string;
|
|
50
50
|
};
|
|
51
51
|
unreadCount: number;
|
|
52
52
|
client: {
|
|
@@ -55,17 +55,17 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
55
55
|
name: string;
|
|
56
56
|
profilePhoto: string | null;
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
chatroomId: import("mongoose").Types.ObjectId;
|
|
59
59
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
status: TicketStatus;
|
|
62
62
|
type: TicketType;
|
|
63
|
-
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
64
63
|
_id: string | import("mongoose").Types.ObjectId;
|
|
65
64
|
createdAt: string | Date;
|
|
65
|
+
updatedAt: string | Date;
|
|
66
66
|
lastMessage: {
|
|
67
|
-
content: string;
|
|
68
67
|
createdAt: string | Date;
|
|
68
|
+
content: string;
|
|
69
69
|
};
|
|
70
70
|
unreadCount: number;
|
|
71
71
|
client: {
|
|
@@ -74,7 +74,7 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
|
|
|
74
74
|
name: string;
|
|
75
75
|
profilePhoto: string | null;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
78
78
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
export type TicketAssignSocketOutputDTO = DTO<typeof TicketAssignSocketOutputSchema>;
|
|
@@ -109,22 +109,22 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
109
109
|
content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
110
110
|
createdAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
content: string;
|
|
113
112
|
createdAt: Date;
|
|
114
|
-
}, {
|
|
115
113
|
content: string;
|
|
114
|
+
}, {
|
|
116
115
|
createdAt: string | Date;
|
|
116
|
+
content: string;
|
|
117
117
|
}>;
|
|
118
118
|
unreadCount: z.ZodNumber;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
120
|
status: TicketStatus;
|
|
121
121
|
type: TicketType;
|
|
122
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
123
122
|
_id: import("mongoose").Types.ObjectId;
|
|
124
123
|
createdAt: Date;
|
|
124
|
+
updatedAt: Date;
|
|
125
125
|
lastMessage: {
|
|
126
|
-
content: string;
|
|
127
126
|
createdAt: Date;
|
|
127
|
+
content: string;
|
|
128
128
|
};
|
|
129
129
|
unreadCount: number;
|
|
130
130
|
client: {
|
|
@@ -133,17 +133,17 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
133
133
|
name: string;
|
|
134
134
|
profilePhoto: string | null;
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
chatroomId: import("mongoose").Types.ObjectId;
|
|
137
137
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
138
138
|
}, {
|
|
139
139
|
status: TicketStatus;
|
|
140
140
|
type: TicketType;
|
|
141
|
-
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
142
141
|
_id: string | import("mongoose").Types.ObjectId;
|
|
143
142
|
createdAt: string | Date;
|
|
143
|
+
updatedAt: string | Date;
|
|
144
144
|
lastMessage: {
|
|
145
|
-
content: string;
|
|
146
145
|
createdAt: string | Date;
|
|
146
|
+
content: string;
|
|
147
147
|
};
|
|
148
148
|
unreadCount: number;
|
|
149
149
|
client: {
|
|
@@ -152,7 +152,7 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
|
|
|
152
152
|
name: string;
|
|
153
153
|
profilePhoto: string | null;
|
|
154
154
|
};
|
|
155
|
-
|
|
155
|
+
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
156
156
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
};
|
|
@@ -5,10 +5,10 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
+
requestId: string | undefined;
|
|
9
|
+
entity: import("../context").EntityContext | undefined;
|
|
8
10
|
req: import("http").IncomingMessage;
|
|
9
11
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
|
-
entity: import("../context").EntityContext | undefined;
|
|
11
|
-
requestId: string | undefined;
|
|
12
12
|
tokenType: TokenType | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
14
14
|
tokenRenewed: boolean | undefined;
|
|
@@ -4,10 +4,10 @@ interface RoleProtectedOptions {
|
|
|
4
4
|
allowedRoles: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
7
|
+
requestId: string | undefined;
|
|
8
|
+
entity: import("../context").EntityContext | undefined;
|
|
7
9
|
req: import("http").IncomingMessage;
|
|
8
10
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
|
-
entity: import("../context").EntityContext | undefined;
|
|
10
|
-
requestId: string | undefined;
|
|
11
11
|
tokenType: import("../../auth").TokenType | undefined;
|
|
12
12
|
usedRefreshToken: boolean | undefined;
|
|
13
13
|
tokenRenewed: boolean | undefined;
|
|
@@ -3,10 +3,10 @@ interface PhoneVerifiedOptions {
|
|
|
3
3
|
entityTypes: AuthEntityType[];
|
|
4
4
|
}
|
|
5
5
|
export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
6
|
+
requestId: string | undefined;
|
|
7
|
+
entity: import("../context").EntityContext | undefined;
|
|
6
8
|
req: import("http").IncomingMessage;
|
|
7
9
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
|
-
entity: import("../context").EntityContext | undefined;
|
|
9
|
-
requestId: string | undefined;
|
|
10
10
|
tokenType: import("../../auth").TokenType | undefined;
|
|
11
11
|
usedRefreshToken: boolean | undefined;
|
|
12
12
|
tokenRenewed: boolean | undefined;
|
|
@@ -5,10 +5,10 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
+
requestId: string | undefined;
|
|
9
|
+
entity: import("../context").EntityContext | undefined;
|
|
8
10
|
req: import("http").IncomingMessage;
|
|
9
11
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
|
-
entity: import("../context").EntityContext | undefined;
|
|
11
|
-
requestId: string | undefined;
|
|
12
12
|
tokenType: TokenType | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
14
14
|
tokenRenewed: boolean | undefined;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.306-alpha-2",
|
|
4
4
|
"description": "Lyxa type definitions and validation schemas for both frontend and backend",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,6 +54,15 @@ export declare enum ServiceItemType {
|
|
|
54
54
|
ELECTRONICS = "electronics",
|
|
55
55
|
BEAUTY = "beauty"
|
|
56
56
|
}
|
|
57
|
+
export declare enum ServiceControlServiceType {
|
|
58
|
+
REGULAR = "regular",
|
|
59
|
+
SERVICE = "service",
|
|
60
|
+
COURIER = "courier"
|
|
61
|
+
}
|
|
62
|
+
export declare enum ServiceFamilyType {
|
|
63
|
+
FOOD = "food",
|
|
64
|
+
GROCERY = "grocery"
|
|
65
|
+
}
|
|
57
66
|
export declare enum AdjustmentStatus {
|
|
58
67
|
NONE = "none",
|
|
59
68
|
PENDING = "pending",
|