@lyxa.ai/core 1.4.334 → 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/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 -34
- package/dist/libraries/notification/firebase-message.builder.js.map +1 -1
- package/dist/libraries/notification/index.d.ts +0 -2
- package/dist/libraries/notification/index.js.map +1 -1
- package/dist/libraries/notification/lyxa-fcm-sender.js +0 -2
- 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 +25 -25
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +24 -24
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +4 -4
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +12 -12
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +4 -4
- 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
|
@@ -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;
|
|
@@ -89,58 +89,58 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
89
89
|
orderActionType: z.ZodNativeEnum<typeof OrderAction>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
orderId: string;
|
|
93
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
92
94
|
createdAt: Date;
|
|
93
95
|
user: {
|
|
94
96
|
_id: import("mongoose").Types.ObjectId;
|
|
95
97
|
name: string;
|
|
96
98
|
};
|
|
97
|
-
orderId: string;
|
|
98
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
99
|
-
paymentMethod: PaymentMethod;
|
|
100
99
|
triggerAt: Date;
|
|
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
120
|
_id: string | import("mongoose").Types.ObjectId;
|
|
121
|
+
orderId: string;
|
|
122
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
121
123
|
createdAt: Date;
|
|
122
124
|
user: {
|
|
123
125
|
_id: string | import("mongoose").Types.ObjectId;
|
|
124
126
|
name: string;
|
|
125
127
|
};
|
|
126
|
-
orderId: string;
|
|
127
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
128
|
-
paymentMethod: PaymentMethod;
|
|
129
128
|
triggerAt: Date;
|
|
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;
|
|
@@ -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;
|
|
@@ -233,58 +233,58 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
233
233
|
orderActionType: z.ZodNativeEnum<typeof OrderAction>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
235
|
_id: import("mongoose").Types.ObjectId;
|
|
236
|
+
orderId: string;
|
|
237
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
236
238
|
createdAt: Date;
|
|
237
239
|
user: {
|
|
238
240
|
_id: import("mongoose").Types.ObjectId;
|
|
239
241
|
name: string;
|
|
240
242
|
};
|
|
241
|
-
orderId: string;
|
|
242
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
243
|
-
paymentMethod: PaymentMethod;
|
|
244
243
|
triggerAt: Date;
|
|
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
264
|
_id: string | import("mongoose").Types.ObjectId;
|
|
265
|
+
orderId: string;
|
|
266
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
265
267
|
createdAt: Date;
|
|
266
268
|
user: {
|
|
267
269
|
_id: string | import("mongoose").Types.ObjectId;
|
|
268
270
|
name: string;
|
|
269
271
|
};
|
|
270
|
-
orderId: string;
|
|
271
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
272
|
-
paymentMethod: PaymentMethod;
|
|
273
272
|
triggerAt: Date;
|
|
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;
|
|
@@ -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
|
-
updatedAt: Date;
|
|
24
23
|
latitude: number;
|
|
25
24
|
longitude: number;
|
|
25
|
+
updatedAt: Date;
|
|
26
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
30
|
latitude: number;
|
|
32
31
|
longitude: number;
|
|
32
|
+
updatedAt: string | Date;
|
|
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
|
-
updatedAt: Date;
|
|
60
59
|
latitude: number;
|
|
61
60
|
longitude: number;
|
|
61
|
+
updatedAt: Date;
|
|
62
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
66
|
latitude: number;
|
|
68
67
|
longitude: number;
|
|
68
|
+
updatedAt: string | Date;
|
|
69
69
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
@@ -8,30 +8,30 @@ 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
15
|
status: TicketStatus;
|
|
16
16
|
type: TicketType;
|
|
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
22
|
status: TicketStatus;
|
|
23
23
|
type: TicketType;
|
|
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>;
|
|
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
36
|
status: TicketStatus;
|
|
37
37
|
type: TicketType;
|
|
@@ -55,30 +55,30 @@ 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
62
|
status: TicketStatus;
|
|
63
63
|
type: TicketType;
|
|
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
69
|
status: TicketStatus;
|
|
70
70
|
type: TicketType;
|
|
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>;
|
|
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
83
|
status: TicketStatus;
|
|
84
84
|
type: TicketType;
|
|
@@ -48,13 +48,13 @@ 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
|
}, {
|
|
@@ -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
|
}>;
|
|
@@ -126,13 +126,13 @@ 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
|
}, {
|
|
@@ -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
|
}>;
|
|
@@ -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;
|
|
10
8
|
req: import("http").IncomingMessage;
|
|
11
9
|
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;
|
|
9
7
|
req: import("http").IncomingMessage;
|
|
10
8
|
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;
|
|
8
6
|
req: import("http").IncomingMessage;
|
|
9
7
|
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;
|
|
10
8
|
req: import("http").IncomingMessage;
|
|
11
9
|
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