@lyxa.ai/core 1.4.328-alpha.1 → 1.4.328

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.
Files changed (44) hide show
  1. package/dist/libraries/event/events/mongo-stream-changes-batch-process-shops-event.d.ts +2 -2
  2. package/dist/libraries/event/events/punch-marketing/sync-user-shop-punch-marketing-history-event.d.ts +2 -2
  3. package/dist/libraries/event/events/sync-order-again-sections-for-shop-event.d.ts +2 -2
  4. package/dist/libraries/mongo/models/embedded/order-pricing.model.d.ts +2 -0
  5. package/dist/libraries/mongo/models/embedded/order-pricing.model.js +10 -0
  6. package/dist/libraries/mongo/models/embedded/order-pricing.model.js.map +1 -1
  7. package/dist/libraries/mongo/models/index.d.ts +3 -3
  8. package/dist/libraries/mongo/models/index.js +6 -6
  9. package/dist/libraries/mongo/models/index.js.map +1 -1
  10. package/dist/libraries/mongo/models/order.model.d.ts +1 -0
  11. package/dist/libraries/mongo/models/order.model.js +5 -0
  12. package/dist/libraries/mongo/models/order.model.js.map +1 -1
  13. package/dist/libraries/mongo/models/payment-intent.model.d.ts +1 -1
  14. package/dist/libraries/mongo/models/payment-intent.model.js +2 -2
  15. package/dist/libraries/mongo/models/payment-intent.model.js.map +1 -1
  16. package/dist/libraries/mongo/models/providers/global-coupon.model.d.ts +0 -2
  17. package/dist/libraries/mongo/models/providers/global-coupon.model.js +0 -20
  18. package/dist/libraries/mongo/models/providers/global-coupon.model.js.map +1 -1
  19. package/dist/libraries/mongo/models/shop-orders-last-7-days-snapshot.model.d.ts +13 -0
  20. package/dist/libraries/mongo/models/shop-orders-last-7-days-snapshot.model.js +53 -0
  21. package/dist/libraries/mongo/models/shop-orders-last-7-days-snapshot.model.js.map +1 -0
  22. package/dist/libraries/mongo/models/user.model.d.ts +1 -2
  23. package/dist/libraries/mongo/models/user.model.js +1 -6
  24. package/dist/libraries/mongo/models/user.model.js.map +1 -1
  25. package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +33 -33
  26. package/dist/libraries/socket/events/order-actions.socket.event.d.ts +32 -32
  27. package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +8 -8
  28. package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +16 -16
  29. package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +28 -28
  30. package/dist/libraries/trpc/middlewares/auth.d.ts +2 -2
  31. package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +2 -2
  32. package/dist/libraries/trpc/middlewares/phone-verified.d.ts +2 -2
  33. package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +2 -2
  34. package/dist/types/README.md +1 -1
  35. package/dist/types/package.json +1 -1
  36. package/dist/types/utilities/validation/common-validation.d.ts +66 -66
  37. package/dist/types/utilities/validation/validation-for-frontend.d.ts +2 -2
  38. package/dist/utilities/pagination.d.ts +3 -3
  39. package/dist/utilities/validation/common-validation.d.ts +70 -70
  40. package/dist/utilities/validation/validation-for-frontend.d.ts +2 -2
  41. package/package.json +1 -1
  42. package/dist/libraries/mongo/models/user-coupon.model.d.ts +0 -11
  43. package/dist/libraries/mongo/models/user-coupon.model.js +0 -52
  44. package/dist/libraries/mongo/models/user-coupon.model.js.map +0 -1
@@ -16,11 +16,11 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
16
16
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
17
17
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- name: string;
20
19
  _id: import("mongoose").Types.ObjectId;
21
- }, {
22
20
  name: string;
21
+ }, {
23
22
  _id: string | import("mongoose").Types.ObjectId;
23
+ name: string;
24
24
  }>;
25
25
  orderStatus: z.ZodNativeEnum<typeof RegularOrderStatus>;
26
26
  orderAction: z.ZodNativeEnum<typeof OrderAction>;
@@ -39,20 +39,20 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
39
39
  riderTips: z.ZodNumber;
40
40
  secondaryRiderTips: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
+ total: number;
42
43
  deliveryFee: number;
43
44
  secondaryDeliveryFee: number;
44
45
  riderTips: number;
45
46
  secondaryRiderTips: number;
46
- total: number;
47
47
  secondaryTotal: number;
48
48
  paidAmount: number;
49
49
  secondaryPaidAmount: number;
50
50
  }, {
51
+ total: number;
51
52
  deliveryFee: number;
52
53
  secondaryDeliveryFee: number;
53
54
  riderTips: number;
54
55
  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;
63
64
  deliveryFee: number;
64
65
  secondaryDeliveryFee: number;
65
66
  riderTips: number;
66
67
  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;
76
77
  deliveryFee: number;
77
78
  secondaryDeliveryFee: number;
78
79
  riderTips: number;
79
80
  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
- createdAt: Date;
92
91
  _id: import("mongoose").Types.ObjectId;
92
+ createdAt: Date;
93
93
  user: {
94
- name: string;
95
94
  _id: import("mongoose").Types.ObjectId;
95
+ name: string;
96
96
  };
97
- shopId: import("mongoose").Types.ObjectId;
98
97
  orderId: string;
98
+ shopId: import("mongoose").Types.ObjectId;
99
+ paymentMethod: PaymentMethod;
99
100
  triggerAt: Date;
100
101
  adjustedFinance: {
101
102
  paymentMethod: PaymentMethod;
102
103
  pricing: {
104
+ total: number;
103
105
  deliveryFee: number;
104
106
  secondaryDeliveryFee: number;
105
107
  riderTips: number;
106
108
  secondaryRiderTips: number;
107
- total: number;
108
109
  secondaryTotal: number;
109
110
  paidAmount: number;
110
111
  secondaryPaidAmount: number;
111
112
  };
112
113
  shopProfit: number;
113
114
  };
114
- paymentMethod: PaymentMethod;
115
115
  orderActionType: OrderAction;
116
116
  orderStatus: RegularOrderStatus;
117
117
  orderAction: OrderAction;
118
118
  preparationTimeMinutes: number;
119
119
  }, {
120
- createdAt: Date;
121
120
  _id: string | import("mongoose").Types.ObjectId;
121
+ createdAt: Date;
122
122
  user: {
123
- name: string;
124
123
  _id: string | import("mongoose").Types.ObjectId;
124
+ name: string;
125
125
  };
126
- shopId: string | import("mongoose").Types.ObjectId;
127
126
  orderId: string;
127
+ shopId: string | import("mongoose").Types.ObjectId;
128
+ paymentMethod: PaymentMethod;
128
129
  triggerAt: Date;
129
130
  adjustedFinance: {
130
131
  paymentMethod: PaymentMethod;
131
132
  pricing: {
133
+ total: number;
132
134
  deliveryFee: number;
133
135
  secondaryDeliveryFee: number;
134
136
  riderTips: number;
135
137
  secondaryRiderTips: number;
136
- total: number;
137
138
  secondaryTotal: number;
138
139
  paidAmount: number;
139
140
  secondaryPaidAmount: number;
140
141
  };
141
142
  shopProfit: number;
142
143
  };
143
- paymentMethod: PaymentMethod;
144
144
  orderActionType: OrderAction;
145
145
  orderStatus: RegularOrderStatus;
146
146
  orderAction: OrderAction;
@@ -160,11 +160,11 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
160
160
  _id: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
161
161
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
162
162
  }, "strip", z.ZodTypeAny, {
163
- name: string;
164
163
  _id: import("mongoose").Types.ObjectId;
165
- }, {
166
164
  name: string;
165
+ }, {
167
166
  _id: string | import("mongoose").Types.ObjectId;
167
+ name: string;
168
168
  }>;
169
169
  orderStatus: z.ZodNativeEnum<typeof RegularOrderStatus>;
170
170
  orderAction: z.ZodNativeEnum<typeof OrderAction>;
@@ -183,20 +183,20 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
183
183
  riderTips: z.ZodNumber;
184
184
  secondaryRiderTips: z.ZodNumber;
185
185
  }, "strip", z.ZodTypeAny, {
186
+ total: number;
186
187
  deliveryFee: number;
187
188
  secondaryDeliveryFee: number;
188
189
  riderTips: number;
189
190
  secondaryRiderTips: number;
190
- total: number;
191
191
  secondaryTotal: number;
192
192
  paidAmount: number;
193
193
  secondaryPaidAmount: number;
194
194
  }, {
195
+ total: number;
195
196
  deliveryFee: number;
196
197
  secondaryDeliveryFee: number;
197
198
  riderTips: number;
198
199
  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;
207
208
  deliveryFee: number;
208
209
  secondaryDeliveryFee: number;
209
210
  riderTips: number;
210
211
  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;
220
221
  deliveryFee: number;
221
222
  secondaryDeliveryFee: number;
222
223
  riderTips: number;
223
224
  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
- createdAt: Date;
236
235
  _id: import("mongoose").Types.ObjectId;
236
+ createdAt: Date;
237
237
  user: {
238
- name: string;
239
238
  _id: import("mongoose").Types.ObjectId;
239
+ name: string;
240
240
  };
241
- shopId: import("mongoose").Types.ObjectId;
242
241
  orderId: string;
242
+ shopId: import("mongoose").Types.ObjectId;
243
+ paymentMethod: PaymentMethod;
243
244
  triggerAt: Date;
244
245
  adjustedFinance: {
245
246
  paymentMethod: PaymentMethod;
246
247
  pricing: {
248
+ total: number;
247
249
  deliveryFee: number;
248
250
  secondaryDeliveryFee: number;
249
251
  riderTips: number;
250
252
  secondaryRiderTips: number;
251
- total: number;
252
253
  secondaryTotal: number;
253
254
  paidAmount: number;
254
255
  secondaryPaidAmount: number;
255
256
  };
256
257
  shopProfit: number;
257
258
  };
258
- paymentMethod: PaymentMethod;
259
259
  orderActionType: OrderAction;
260
260
  orderStatus: RegularOrderStatus;
261
261
  orderAction: OrderAction;
262
262
  preparationTimeMinutes: number;
263
263
  }, {
264
- createdAt: Date;
265
264
  _id: string | import("mongoose").Types.ObjectId;
265
+ createdAt: Date;
266
266
  user: {
267
- name: string;
268
267
  _id: string | import("mongoose").Types.ObjectId;
268
+ name: string;
269
269
  };
270
- shopId: string | import("mongoose").Types.ObjectId;
271
270
  orderId: string;
271
+ shopId: string | import("mongoose").Types.ObjectId;
272
+ paymentMethod: PaymentMethod;
272
273
  triggerAt: Date;
273
274
  adjustedFinance: {
274
275
  paymentMethod: PaymentMethod;
275
276
  pricing: {
277
+ total: number;
276
278
  deliveryFee: number;
277
279
  secondaryDeliveryFee: number;
278
280
  riderTips: number;
279
281
  secondaryRiderTips: number;
280
- total: number;
281
282
  secondaryTotal: number;
282
283
  paidAmount: number;
283
284
  secondaryPaidAmount: number;
284
285
  };
285
286
  shopProfit: number;
286
287
  };
287
- paymentMethod: PaymentMethod;
288
288
  orderActionType: OrderAction;
289
289
  orderStatus: RegularOrderStatus;
290
290
  orderAction: OrderAction;
@@ -19,18 +19,18 @@ export declare const RiderLocationUpdateSocketOutputSchema: z.ZodObject<{
19
19
  bearing: z.ZodOptional<z.ZodNumber>;
20
20
  updatedAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- updatedAt: Date;
23
22
  _id: import("mongoose").Types.ObjectId;
24
- riderId: import("mongoose").Types.ObjectId;
23
+ updatedAt: Date;
25
24
  latitude: number;
26
25
  longitude: number;
26
+ riderId: import("mongoose").Types.ObjectId;
27
27
  bearing?: number | undefined;
28
28
  }, {
29
- updatedAt: string | Date;
30
29
  _id: string | import("mongoose").Types.ObjectId;
31
- riderId: string | import("mongoose").Types.ObjectId;
30
+ updatedAt: string | Date;
32
31
  latitude: number;
33
32
  longitude: number;
33
+ riderId: string | import("mongoose").Types.ObjectId;
34
34
  bearing?: number | undefined;
35
35
  }>;
36
36
  export type RiderLocationUpdateSocketInputDTO = DTO<typeof RiderLocationUpdateSocketInputSchema>;
@@ -55,18 +55,18 @@ export declare class RiderLocationUpdateSocketEvent extends BaseSocketEvent<type
55
55
  bearing: z.ZodOptional<z.ZodNumber>;
56
56
  updatedAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- updatedAt: Date;
59
58
  _id: import("mongoose").Types.ObjectId;
60
- riderId: import("mongoose").Types.ObjectId;
59
+ updatedAt: Date;
61
60
  latitude: number;
62
61
  longitude: number;
62
+ riderId: import("mongoose").Types.ObjectId;
63
63
  bearing?: number | undefined;
64
64
  }, {
65
- updatedAt: string | Date;
66
65
  _id: string | import("mongoose").Types.ObjectId;
67
- riderId: string | import("mongoose").Types.ObjectId;
66
+ updatedAt: string | Date;
68
67
  latitude: number;
69
68
  longitude: number;
69
+ riderId: string | import("mongoose").Types.ObjectId;
70
70
  bearing?: number | undefined;
71
71
  }>;
72
72
  };
@@ -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.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>;
11
+ content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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
15
  status: TicketStatus;
16
- _id: import("mongoose").Types.ObjectId;
17
16
  type: TicketType;
17
+ _id: import("mongoose").Types.ObjectId;
18
+ silent?: boolean | undefined;
18
19
  title?: string | undefined;
19
20
  content?: string | undefined;
20
- silent?: boolean | undefined;
21
21
  }, {
22
22
  status: TicketStatus;
23
- _id: import("mongoose").Types.ObjectId;
24
23
  type: TicketType;
24
+ _id: import("mongoose").Types.ObjectId;
25
+ silent?: boolean | undefined;
25
26
  title?: string | undefined;
26
27
  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.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>;
33
+ content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
34
+ title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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.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>;
58
+ content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
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
62
  status: TicketStatus;
63
- _id: import("mongoose").Types.ObjectId;
64
63
  type: TicketType;
64
+ _id: import("mongoose").Types.ObjectId;
65
+ silent?: boolean | undefined;
65
66
  title?: string | undefined;
66
67
  content?: string | undefined;
67
- silent?: boolean | undefined;
68
68
  }, {
69
69
  status: TicketStatus;
70
- _id: import("mongoose").Types.ObjectId;
71
70
  type: TicketType;
71
+ _id: import("mongoose").Types.ObjectId;
72
+ silent?: boolean | undefined;
72
73
  title?: string | undefined;
73
74
  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.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>;
80
+ content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
81
+ title: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  status: TicketStatus;
84
84
  type: TicketType;
@@ -13,14 +13,14 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
13
13
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
14
14
  profilePhoto: z.ZodNullable<z.ZodString> | z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- name: string;
17
- _id: import("mongoose").Types.ObjectId;
18
16
  type: UserRef;
17
+ _id: import("mongoose").Types.ObjectId;
18
+ name: string;
19
19
  profilePhoto: string | null;
20
20
  }, {
21
- name: string;
22
- _id: string | import("mongoose").Types.ObjectId;
23
21
  type: UserRef;
22
+ _id: string | import("mongoose").Types.ObjectId;
23
+ name: string;
24
24
  profilePhoto: string | null;
25
25
  }>;
26
26
  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>;
@@ -40,40 +40,40 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
40
40
  unreadCount: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  status: TicketStatus;
43
+ type: TicketType;
44
+ _id: import("mongoose").Types.ObjectId;
43
45
  createdAt: Date;
44
46
  updatedAt: Date;
45
- _id: import("mongoose").Types.ObjectId;
46
- type: TicketType;
47
47
  lastMessage: {
48
48
  createdAt: Date;
49
49
  content: string;
50
50
  };
51
+ unreadCount: number;
51
52
  client: {
52
- name: string;
53
- _id: import("mongoose").Types.ObjectId;
54
53
  type: UserRef;
54
+ _id: import("mongoose").Types.ObjectId;
55
+ name: string;
55
56
  profilePhoto: string | null;
56
57
  };
57
- unreadCount: number;
58
58
  chatroomId: import("mongoose").Types.ObjectId;
59
59
  orderId?: import("mongoose").Types.ObjectId | undefined;
60
60
  }, {
61
61
  status: TicketStatus;
62
+ type: TicketType;
63
+ _id: string | import("mongoose").Types.ObjectId;
62
64
  createdAt: string | Date;
63
65
  updatedAt: string | Date;
64
- _id: string | import("mongoose").Types.ObjectId;
65
- type: TicketType;
66
66
  lastMessage: {
67
67
  createdAt: string | Date;
68
68
  content: string;
69
69
  };
70
+ unreadCount: number;
70
71
  client: {
71
- name: string;
72
- _id: string | import("mongoose").Types.ObjectId;
73
72
  type: UserRef;
73
+ _id: string | import("mongoose").Types.ObjectId;
74
+ name: string;
74
75
  profilePhoto: string | null;
75
76
  };
76
- unreadCount: number;
77
77
  chatroomId: string | import("mongoose").Types.ObjectId;
78
78
  orderId?: string | import("mongoose").Types.ObjectId | undefined;
79
79
  }>;
@@ -91,14 +91,14 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
91
91
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
92
92
  profilePhoto: z.ZodNullable<z.ZodString> | z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
93
93
  }, "strip", z.ZodTypeAny, {
94
- name: string;
95
- _id: import("mongoose").Types.ObjectId;
96
94
  type: UserRef;
95
+ _id: import("mongoose").Types.ObjectId;
96
+ name: string;
97
97
  profilePhoto: string | null;
98
98
  }, {
99
- name: string;
100
- _id: string | import("mongoose").Types.ObjectId;
101
99
  type: UserRef;
100
+ _id: string | import("mongoose").Types.ObjectId;
101
+ name: string;
102
102
  profilePhoto: string | null;
103
103
  }>;
104
104
  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>;
@@ -118,40 +118,40 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
118
118
  unreadCount: z.ZodNumber;
119
119
  }, "strip", z.ZodTypeAny, {
120
120
  status: TicketStatus;
121
+ type: TicketType;
122
+ _id: import("mongoose").Types.ObjectId;
121
123
  createdAt: Date;
122
124
  updatedAt: Date;
123
- _id: import("mongoose").Types.ObjectId;
124
- type: TicketType;
125
125
  lastMessage: {
126
126
  createdAt: Date;
127
127
  content: string;
128
128
  };
129
+ unreadCount: number;
129
130
  client: {
130
- name: string;
131
- _id: import("mongoose").Types.ObjectId;
132
131
  type: UserRef;
132
+ _id: import("mongoose").Types.ObjectId;
133
+ name: string;
133
134
  profilePhoto: string | null;
134
135
  };
135
- unreadCount: number;
136
136
  chatroomId: import("mongoose").Types.ObjectId;
137
137
  orderId?: import("mongoose").Types.ObjectId | undefined;
138
138
  }, {
139
139
  status: TicketStatus;
140
+ type: TicketType;
141
+ _id: string | import("mongoose").Types.ObjectId;
140
142
  createdAt: string | Date;
141
143
  updatedAt: string | Date;
142
- _id: string | import("mongoose").Types.ObjectId;
143
- type: TicketType;
144
144
  lastMessage: {
145
145
  createdAt: string | Date;
146
146
  content: string;
147
147
  };
148
+ unreadCount: number;
148
149
  client: {
149
- name: string;
150
- _id: string | import("mongoose").Types.ObjectId;
151
150
  type: UserRef;
151
+ _id: string | import("mongoose").Types.ObjectId;
152
+ name: string;
152
153
  profilePhoto: string | null;
153
154
  };
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;
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;
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.328-alpha.1
25
+ Version: 1.4.328
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.328-alpha.1",
3
+ "version": "1.4.328",
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",