@lyxa.ai/core 1.4.319 → 1.4.320

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.
@@ -2,7 +2,11 @@ import { Ref } from '@typegoose/typegoose';
2
2
  import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
3
3
  import { User } from './user.model';
4
4
  import { Shop } from './shop.model';
5
+ export declare class ShopOrderCount {
6
+ shop: Ref<Shop>;
7
+ count: number;
8
+ }
5
9
  export declare class UserShopHistory extends TimeStamps {
6
10
  user: Ref<User>;
7
- shops?: Ref<Shop>[];
11
+ shops: ShopOrderCount[];
8
12
  }
@@ -9,11 +9,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UserShopHistory = void 0;
12
+ exports.UserShopHistory = exports.ShopOrderCount = void 0;
13
13
  const typegoose_1 = require("@typegoose/typegoose");
14
14
  const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
15
15
  const user_model_1 = require("./user.model");
16
16
  const shop_model_1 = require("./shop.model");
17
+ class ShopOrderCount {
18
+ shop;
19
+ count;
20
+ }
21
+ exports.ShopOrderCount = ShopOrderCount;
22
+ __decorate([
23
+ (0, typegoose_1.prop)({ required: true, ref: () => shop_model_1.Shop }),
24
+ __metadata("design:type", Object)
25
+ ], ShopOrderCount.prototype, "shop", void 0);
26
+ __decorate([
27
+ (0, typegoose_1.prop)({ required: true, type: Number, default: 1 }),
28
+ __metadata("design:type", Number)
29
+ ], ShopOrderCount.prototype, "count", void 0);
17
30
  let UserShopHistory = class UserShopHistory extends defaultClasses_1.TimeStamps {
18
31
  user;
19
32
  shops;
@@ -24,11 +37,12 @@ __decorate([
24
37
  __metadata("design:type", Object)
25
38
  ], UserShopHistory.prototype, "user", void 0);
26
39
  __decorate([
27
- (0, typegoose_1.prop)({ ref: () => shop_model_1.Shop }),
40
+ (0, typegoose_1.prop)({ type: () => [ShopOrderCount], default: [] }),
28
41
  __metadata("design:type", Array)
29
42
  ], UserShopHistory.prototype, "shops", void 0);
30
43
  exports.UserShopHistory = UserShopHistory = __decorate([
31
44
  (0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'userShopHistories' } }),
32
- (0, typegoose_1.index)({ user: 1 }, { unique: true })
45
+ (0, typegoose_1.index)({ user: 1 }, { unique: true }),
46
+ (0, typegoose_1.index)({ 'shops.shop': 1 })
33
47
  ], UserShopHistory);
34
48
  //# sourceMappingURL=user-shop-history.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-shop-history.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-shop-history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,6CAAoC;AACpC,6CAAoC;AAO7B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAa;IAGjB,KAAK,CAAe;CAC3B,CAAA;AANY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;8CACC;0BALf,eAAe;IAF3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,EAAE,CAAC;IACpE,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACxB,eAAe,CAM3B","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { Shop } from './shop.model';\n\n/**\n * UserShopHistory model - Tracks the shops a user is associated with (eligible/ordered-from shops)\n */\n@modelOptions({ schemaOptions: { collection: 'userShopHistories' } })\n@index({ user: 1 }, { unique: true })\nexport class UserShopHistory extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ ref: () => Shop })\n\tpublic shops?: Ref<Shop>[];\n}\n"]}
1
+ {"version":3,"file":"user-shop-history.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-shop-history.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,6CAAoC;AACpC,6CAAoC;AAEpC,MAAa,cAAc;IAEnB,IAAI,CAAa;IAGjB,KAAK,CAAU;CACtB;AAND,wCAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;4CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;6CAC7B;AAShB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAa;IAGjB,KAAK,CAAoB;CAChC,CAAA;AANY,0CAAe;AAEpB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;6CAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;8CACpB;0BALpB,eAAe;IAH3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,EAAE,CAAC;IACpE,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpC,IAAA,iBAAK,EAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;GACd,eAAe,CAM3B","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { Shop } from './shop.model';\n\nexport class ShopOrderCount {\n\t@prop({ required: true, ref: () => Shop })\n\tpublic shop!: Ref<Shop>;\n\n\t@prop({ required: true, type: Number, default: 1 })\n\tpublic count!: number;\n}\n\n/**\n * UserShopHistory model - Tracks the shops a user is associated with (eligible/ordered-from shops)\n */\n@modelOptions({ schemaOptions: { collection: 'userShopHistories' } })\n@index({ user: 1 }, { unique: true })\n@index({ 'shops.shop': 1 })\nexport class UserShopHistory extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ type: () => [ShopOrderCount], default: [] })\n\tpublic shops!: ShopOrderCount[];\n}\n"]}
@@ -20,13 +20,13 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
20
20
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
21
21
  type: z.ZodNativeEnum<typeof UserRef>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- type: UserRef;
24
23
  name: string;
25
24
  id: import("mongoose").Types.ObjectId;
26
- }, {
27
25
  type: UserRef;
26
+ }, {
28
27
  name: string;
29
28
  id: import("mongoose").Types.ObjectId;
29
+ type: UserRef;
30
30
  }>;
31
31
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
32
32
  media: z.ZodArray<z.ZodObject<{
@@ -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;
@@ -63,17 +63,17 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
63
63
  orderId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
64
64
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
65
65
  }, "strip", z.ZodTypeAny, {
66
- _id: import("mongoose").Types.ObjectId;
67
66
  createdAt: Date;
67
+ _id: import("mongoose").Types.ObjectId;
68
+ senderType: UserRef;
68
69
  sender: {
69
- type: UserRef;
70
70
  name: string;
71
71
  id: import("mongoose").Types.ObjectId;
72
+ type: UserRef;
72
73
  };
73
- senderType: UserRef;
74
74
  media: {
75
- mediaUrl: string;
76
75
  mediaType: MediaType;
76
+ mediaUrl: string;
77
77
  mimeType: string;
78
78
  name?: string | undefined;
79
79
  thumbnailUrl?: string | undefined;
@@ -85,21 +85,21 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
85
85
  longitude?: number | undefined;
86
86
  } | undefined;
87
87
  orderId?: import("mongoose").Types.ObjectId | undefined;
88
- ticketId?: import("mongoose").Types.ObjectId | undefined;
89
88
  content?: string | undefined;
89
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
90
90
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
91
91
  }, {
92
- _id: import("mongoose").Types.ObjectId;
93
92
  createdAt: Date;
93
+ _id: import("mongoose").Types.ObjectId;
94
+ senderType: UserRef;
94
95
  sender: {
95
- type: UserRef;
96
96
  name: string;
97
97
  id: import("mongoose").Types.ObjectId;
98
+ type: UserRef;
98
99
  };
99
- senderType: UserRef;
100
100
  media: {
101
- mediaUrl: string;
102
101
  mediaType: MediaType;
102
+ mediaUrl: string;
103
103
  mimeType: string;
104
104
  name?: string | undefined;
105
105
  thumbnailUrl?: string | undefined;
@@ -111,8 +111,8 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
111
111
  longitude?: number | undefined;
112
112
  } | undefined;
113
113
  orderId?: import("mongoose").Types.ObjectId | undefined;
114
- ticketId?: import("mongoose").Types.ObjectId | undefined;
115
114
  content?: string | undefined;
115
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
116
116
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
117
117
  }>;
118
118
  export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
@@ -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>;
@@ -156,13 +156,13 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
156
156
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
157
157
  type: z.ZodNativeEnum<typeof UserRef>;
158
158
  }, "strip", z.ZodTypeAny, {
159
- type: UserRef;
160
159
  name: string;
161
160
  id: import("mongoose").Types.ObjectId;
162
- }, {
163
161
  type: UserRef;
162
+ }, {
164
163
  name: string;
165
164
  id: import("mongoose").Types.ObjectId;
165
+ type: UserRef;
166
166
  }>;
167
167
  content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
168
168
  media: z.ZodArray<z.ZodObject<{
@@ -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;
@@ -199,17 +199,17 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
199
199
  orderId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
200
200
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
201
201
  }, "strip", z.ZodTypeAny, {
202
- _id: import("mongoose").Types.ObjectId;
203
202
  createdAt: Date;
203
+ _id: import("mongoose").Types.ObjectId;
204
+ senderType: UserRef;
204
205
  sender: {
205
- type: UserRef;
206
206
  name: string;
207
207
  id: import("mongoose").Types.ObjectId;
208
+ type: UserRef;
208
209
  };
209
- senderType: UserRef;
210
210
  media: {
211
- mediaUrl: string;
212
211
  mediaType: MediaType;
212
+ mediaUrl: string;
213
213
  mimeType: string;
214
214
  name?: string | undefined;
215
215
  thumbnailUrl?: string | undefined;
@@ -221,21 +221,21 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
221
221
  longitude?: number | undefined;
222
222
  } | undefined;
223
223
  orderId?: import("mongoose").Types.ObjectId | undefined;
224
- ticketId?: import("mongoose").Types.ObjectId | undefined;
225
224
  content?: string | undefined;
225
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
226
226
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
227
227
  }, {
228
- _id: import("mongoose").Types.ObjectId;
229
228
  createdAt: Date;
229
+ _id: import("mongoose").Types.ObjectId;
230
+ senderType: UserRef;
230
231
  sender: {
231
- type: UserRef;
232
232
  name: string;
233
233
  id: import("mongoose").Types.ObjectId;
234
+ type: UserRef;
234
235
  };
235
- senderType: UserRef;
236
236
  media: {
237
- mediaUrl: string;
238
237
  mediaType: MediaType;
238
+ mediaUrl: string;
239
239
  mimeType: string;
240
240
  name?: string | undefined;
241
241
  thumbnailUrl?: string | undefined;
@@ -247,8 +247,8 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
247
247
  longitude?: number | undefined;
248
248
  } | undefined;
249
249
  orderId?: import("mongoose").Types.ObjectId | undefined;
250
- ticketId?: import("mongoose").Types.ObjectId | undefined;
251
250
  content?: string | undefined;
251
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
252
252
  chatroomId?: import("mongoose").Types.ObjectId | undefined;
253
253
  }>;
254
254
  pushNotificationOutput: z.ZodObject<{
@@ -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,8 +39,8 @@ 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;
43
+ total: number;
44
44
  secondaryDeliveryFee: number;
45
45
  riderTips: number;
46
46
  secondaryRiderTips: number;
@@ -48,8 +48,8 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
48
48
  paidAmount: number;
49
49
  secondaryPaidAmount: number;
50
50
  }, {
51
- total: number;
52
51
  deliveryFee: number;
52
+ total: number;
53
53
  secondaryDeliveryFee: number;
54
54
  riderTips: number;
55
55
  secondaryRiderTips: number;
@@ -60,8 +60,8 @@ 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;
64
+ total: number;
65
65
  secondaryDeliveryFee: number;
66
66
  riderTips: number;
67
67
  secondaryRiderTips: number;
@@ -73,8 +73,8 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
73
73
  }, {
74
74
  paymentMethod: PaymentMethod;
75
75
  pricing: {
76
- total: number;
77
76
  deliveryFee: number;
77
+ total: number;
78
78
  secondaryDeliveryFee: number;
79
79
  riderTips: number;
80
80
  secondaryRiderTips: number;
@@ -88,21 +88,20 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
88
88
  triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
89
89
  orderActionType: z.ZodNativeEnum<typeof OrderAction>;
90
90
  }, "strip", z.ZodTypeAny, {
91
- _id: import("mongoose").Types.ObjectId;
92
91
  createdAt: Date;
92
+ _id: import("mongoose").Types.ObjectId;
93
93
  user: {
94
94
  _id: import("mongoose").Types.ObjectId;
95
95
  name: string;
96
96
  };
97
97
  orderId: string;
98
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;
104
+ total: number;
106
105
  secondaryDeliveryFee: number;
107
106
  riderTips: number;
108
107
  secondaryRiderTips: number;
@@ -112,26 +111,26 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
112
111
  };
113
112
  shopProfit: number;
114
113
  };
114
+ paymentMethod: PaymentMethod;
115
115
  orderActionType: OrderAction;
116
116
  orderStatus: RegularOrderStatus;
117
117
  orderAction: OrderAction;
118
118
  preparationTimeMinutes: number;
119
119
  }, {
120
- _id: string | import("mongoose").Types.ObjectId;
121
120
  createdAt: Date;
121
+ _id: string | import("mongoose").Types.ObjectId;
122
122
  user: {
123
123
  _id: string | import("mongoose").Types.ObjectId;
124
124
  name: string;
125
125
  };
126
126
  orderId: string;
127
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;
133
+ total: number;
135
134
  secondaryDeliveryFee: number;
136
135
  riderTips: number;
137
136
  secondaryRiderTips: number;
@@ -141,6 +140,7 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
141
140
  };
142
141
  shopProfit: number;
143
142
  };
143
+ paymentMethod: PaymentMethod;
144
144
  orderActionType: OrderAction;
145
145
  orderStatus: RegularOrderStatus;
146
146
  orderAction: OrderAction;
@@ -183,8 +183,8 @@ 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;
187
+ total: number;
188
188
  secondaryDeliveryFee: number;
189
189
  riderTips: number;
190
190
  secondaryRiderTips: number;
@@ -192,8 +192,8 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
192
192
  paidAmount: number;
193
193
  secondaryPaidAmount: number;
194
194
  }, {
195
- total: number;
196
195
  deliveryFee: number;
196
+ total: number;
197
197
  secondaryDeliveryFee: number;
198
198
  riderTips: number;
199
199
  secondaryRiderTips: number;
@@ -204,8 +204,8 @@ 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;
208
+ total: number;
209
209
  secondaryDeliveryFee: number;
210
210
  riderTips: number;
211
211
  secondaryRiderTips: number;
@@ -217,8 +217,8 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
217
217
  }, {
218
218
  paymentMethod: PaymentMethod;
219
219
  pricing: {
220
- total: number;
221
220
  deliveryFee: number;
221
+ total: number;
222
222
  secondaryDeliveryFee: number;
223
223
  riderTips: number;
224
224
  secondaryRiderTips: number;
@@ -232,21 +232,20 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
232
232
  triggerAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
233
233
  orderActionType: z.ZodNativeEnum<typeof OrderAction>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- _id: import("mongoose").Types.ObjectId;
236
235
  createdAt: Date;
236
+ _id: import("mongoose").Types.ObjectId;
237
237
  user: {
238
238
  _id: import("mongoose").Types.ObjectId;
239
239
  name: string;
240
240
  };
241
241
  orderId: string;
242
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;
248
+ total: number;
250
249
  secondaryDeliveryFee: number;
251
250
  riderTips: number;
252
251
  secondaryRiderTips: number;
@@ -256,26 +255,26 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
256
255
  };
257
256
  shopProfit: number;
258
257
  };
258
+ paymentMethod: PaymentMethod;
259
259
  orderActionType: OrderAction;
260
260
  orderStatus: RegularOrderStatus;
261
261
  orderAction: OrderAction;
262
262
  preparationTimeMinutes: number;
263
263
  }, {
264
- _id: string | import("mongoose").Types.ObjectId;
265
264
  createdAt: Date;
265
+ _id: string | import("mongoose").Types.ObjectId;
266
266
  user: {
267
267
  _id: string | import("mongoose").Types.ObjectId;
268
268
  name: string;
269
269
  };
270
270
  orderId: string;
271
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;
277
+ total: number;
279
278
  secondaryDeliveryFee: number;
280
279
  riderTips: number;
281
280
  secondaryRiderTips: number;
@@ -285,6 +284,7 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
285
284
  };
286
285
  shopProfit: number;
287
286
  };
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
- _id: import("mongoose").Types.ObjectId;
23
22
  updatedAt: Date;
23
+ _id: import("mongoose").Types.ObjectId;
24
+ riderId: import("mongoose").Types.ObjectId;
24
25
  latitude: number;
25
26
  longitude: number;
26
- riderId: import("mongoose").Types.ObjectId;
27
27
  bearing?: number | undefined;
28
28
  }, {
29
- _id: string | import("mongoose").Types.ObjectId;
30
29
  updatedAt: string | Date;
30
+ _id: string | import("mongoose").Types.ObjectId;
31
+ riderId: string | import("mongoose").Types.ObjectId;
31
32
  latitude: number;
32
33
  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
- _id: import("mongoose").Types.ObjectId;
59
58
  updatedAt: Date;
59
+ _id: import("mongoose").Types.ObjectId;
60
+ riderId: import("mongoose").Types.ObjectId;
60
61
  latitude: number;
61
62
  longitude: number;
62
- riderId: import("mongoose").Types.ObjectId;
63
63
  bearing?: number | undefined;
64
64
  }, {
65
- _id: string | import("mongoose").Types.ObjectId;
66
65
  updatedAt: string | Date;
66
+ _id: string | import("mongoose").Types.ObjectId;
67
+ riderId: string | import("mongoose").Types.ObjectId;
67
68
  latitude: number;
68
69
  longitude: number;
69
- riderId: string | import("mongoose").Types.ObjectId;
70
70
  bearing?: number | undefined;
71
71
  }>;
72
72
  };
@@ -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
+ _id: import("mongoose").Types.ObjectId;
15
16
  status: TicketStatus;
16
17
  type: TicketType;
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
+ _id: import("mongoose").Types.ObjectId;
22
23
  status: TicketStatus;
23
24
  type: TicketType;
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>;
@@ -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
+ _id: import("mongoose").Types.ObjectId;
62
63
  status: TicketStatus;
63
64
  type: TicketType;
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
+ _id: import("mongoose").Types.ObjectId;
69
70
  status: TicketStatus;
70
71
  type: TicketType;
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>;