@lyxa.ai/core 1.4.309 → 1.4.310

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.
@@ -29,6 +29,7 @@ export declare class User extends TimeStamps {
29
29
  isPhoneVerified?: boolean;
30
30
  onlineStatus?: OnlineStatus;
31
31
  receiveTicketAgentNotification?: boolean;
32
+ receiveOrderAgentNotification?: boolean;
32
33
  fcmTokens?: string[];
33
34
  wallet?: Wallet;
34
35
  static updateWallet(this: ReturnModelType<typeof User>, userId: string, main?: number, reserve?: number): Promise<(import("mongoose").Document<unknown, import("@typegoose/typegoose/lib/types").BeAnObject, User, import("@typegoose/typegoose/lib/types").BeAnyObject, {}> & Omit<User & {
@@ -42,6 +42,7 @@ let User = User_1 = class User extends defaultClasses_1.TimeStamps {
42
42
  isPhoneVerified;
43
43
  onlineStatus;
44
44
  receiveTicketAgentNotification;
45
+ receiveOrderAgentNotification;
45
46
  fcmTokens;
46
47
  wallet;
47
48
  static async updateWallet(userId, main = 0, reserve = 0) {
@@ -133,6 +134,10 @@ __decorate([
133
134
  (0, typegoose_1.prop)({ type: Boolean, default: false }),
134
135
  __metadata("design:type", Boolean)
135
136
  ], User.prototype, "receiveTicketAgentNotification", void 0);
137
+ __decorate([
138
+ (0, typegoose_1.prop)({ type: Boolean, default: false }),
139
+ __metadata("design:type", Boolean)
140
+ ], User.prototype, "receiveOrderAgentNotification", void 0);
136
141
  __decorate([
137
142
  (0, typegoose_1.prop)({ type: () => [String], default: [] }),
138
143
  __metadata("design:type", Array)
@@ -1 +1 @@
1
- {"version":3,"file":"user.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oDAAuF;AACvF,4EAAqE;AACrE,uDAA6C;AAC7C,0DAAqD;AACrD,iDAAwC;AACxC,6DAAoD;AACpD,kDAAuD;AACvD,kEAAwD;AACxD,oEAA0D;AAC1D,0DAAiD;AAS1C,IAAM,IAAI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C,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACP;AAO1B;IALN,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mBAAY;QAClB,OAAO,EAAE,mBAAY,CAAC,OAAO;KAC7B,CAAC;;0CACiC;AAG5B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4DACQ;AAGzC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;uCAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,qBAAM,EAAE,CAAC;8BACP,qBAAM;oCAAC;eArEX,IAAI;IAPhB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC;IACxD,IAAA,iBAAK,EAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/B,IAAA,iBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACrC,IAAA,iBAAK,EACL,EAAE,WAAW,EAAE,CAAC,EAAE,EAClB,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CACzG;GACY,IAAI,CAmFhB","sourcesContent":["import { index, modelOptions, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CoreUser } from './core-user.model';\nimport { UserAddress } from './shared/address.model';\nimport { Coupon } from './coupon.model';\nimport { Subscription } from './subscription.model';\nimport { OnlineStatus } from '../../../utilities/enum';\nimport { OTPFields } from './embedded/otp-fields.model';\nimport { GeoLocation } from './shared/geo-location.model';\nimport { Wallet } from './embedded/wallet.model';\n\n@modelOptions({ schemaOptions: { collection: 'users' } })\n@index({ location: '2dsphere' })\n@index({ createdAt: 1, addresses: 1 })\n@index(\n\t{ phoneNumber: 1 },\n\t{ unique: true, partialFilterExpression: { deletedAt: null, phoneNumber: { $exists: true, $ne: null } } }\n)\nexport class User extends TimeStamps {\n\t@prop({ required: true, ref: () => CoreUser })\n\tpublic coreUser!: Ref<CoreUser>;\n\n\t@prop({ type: () => String })\n\tpublic deviceId?: string;\n\n\t@prop({ type: () => [UserAddress], default: [] })\n\tpublic addresses?: UserAddress[];\n\n\t@prop({ type: GeoLocation }) // Last order location for finding user zone\n\tpublic location?: GeoLocation;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic orderCompleted?: number;\n\n\t@prop({ type: Date })\n\tpublic repeatedOrderAt?: Date;\n\n\t@prop({ ref: () => Coupon })\n\tpublic coupons?: Ref<Coupon>[];\n\n\t@prop({ type: String })\n\tpublic newUserCouponDiscountType?: string;\n\n\t@prop({ type: Number })\n\tpublic newUserCouponValue?: number;\n\n\t@prop({ type: Number })\n\tpublic newUserCouponMaximumDiscountLimit?: number;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isNewUserCouponShowed?: boolean;\n\n\t@prop({ ref: () => Coupon })\n\tpublic referralCode?: Ref<Coupon>;\n\n\t@prop({ type: String, ref: () => Subscription })\n\tpublic subscription?: Ref<Subscription>;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isSubscribed?: boolean;\n\n\t@prop({ type: String })\n\tpublic phoneNumber?: string;\n\n\t@prop({ type: String })\n\tpublic pendingPhoneNumber?: string;\n\n\t@prop({ type: () => OTPFields })\n\tpublic phoneOtpInfo?: OTPFields;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isPhoneVerified?: boolean;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: OnlineStatus,\n\t\tdefault: OnlineStatus.OFFLINE,\n\t})\n\tpublic onlineStatus?: OnlineStatus;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic receiveTicketAgentNotification?: boolean;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic fcmTokens?: string[];\n\n\t@prop({ type: Wallet })\n\tpublic wallet?: Wallet;\n\n\tpublic static async updateWallet(\n\t\tthis: ReturnModelType<typeof User>,\n\t\tuserId: string,\n\t\tmain = 0,\n\t\treserve = 0\n\t) {\n\t\treturn this.findByIdAndUpdate(\n\t\t\tuserId,\n\t\t\t{ $inc: { 'wallet.main': main, 'wallet.reserve': reserve, 'wallet.total': main + reserve } },\n\t\t\t{ new: true }\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"user.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oDAAuF;AACvF,4EAAqE;AACrE,uDAA6C;AAC7C,0DAAqD;AACrD,iDAAwC;AACxC,6DAAoD;AACpD,kDAAuD;AACvD,kEAAwD;AACxD,oEAA0D;AAC1D,0DAAiD;AAS1C,IAAM,IAAI,YAAV,MAAM,IAAK,SAAQ,2BAAU;IAE5B,QAAQ,CAAiB;IAGzB,QAAQ,CAAU;IAGlB,SAAS,CAAiB;IAG1B,QAAQ,CAAe;IAGvB,cAAc,CAAU;IAGxB,eAAe,CAAQ;IAGvB,OAAO,CAAiB;IAGxB,yBAAyB,CAAU;IAGnC,kBAAkB,CAAU;IAG5B,iCAAiC,CAAU;IAG3C,qBAAqB,CAAW;IAGhC,YAAY,CAAe;IAG3B,YAAY,CAAqB;IAGjC,YAAY,CAAW;IAGvB,WAAW,CAAU;IAGrB,kBAAkB,CAAU;IAG5B,YAAY,CAAa;IAGzB,eAAe,CAAW;IAO1B,YAAY,CAAgB;IAG5B,8BAA8B,CAAW;IAGzC,6BAA6B,CAAW;IAGxC,SAAS,CAAY;IAGrB,MAAM,CAAU;IAEhB,MAAM,CAAC,KAAK,CAAC,Y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,EAAE,CAAC;;uCAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,qBAAM,EAAE,CAAC;8BACP,qBAAM;oCAAC;eAxEX,IAAI;IAPhB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC;IACxD,IAAA,iBAAK,EAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;IAC/B,IAAA,iBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACrC,IAAA,iBAAK,EACL,EAAE,WAAW,EAAE,CAAC,EAAE,EAClB,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CACzG;GACY,IAAI,CAsFhB","sourcesContent":["import { index, modelOptions, prop, Ref, ReturnModelType } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { CoreUser } from './core-user.model';\nimport { UserAddress } from './shared/address.model';\nimport { Coupon } from './coupon.model';\nimport { Subscription } from './subscription.model';\nimport { OnlineStatus } from '../../../utilities/enum';\nimport { OTPFields } from './embedded/otp-fields.model';\nimport { GeoLocation } from './shared/geo-location.model';\nimport { Wallet } from './embedded/wallet.model';\n\n@modelOptions({ schemaOptions: { collection: 'users' } })\n@index({ location: '2dsphere' })\n@index({ createdAt: 1, addresses: 1 })\n@index(\n\t{ phoneNumber: 1 },\n\t{ unique: true, partialFilterExpression: { deletedAt: null, phoneNumber: { $exists: true, $ne: null } } }\n)\nexport class User extends TimeStamps {\n\t@prop({ required: true, ref: () => CoreUser })\n\tpublic coreUser!: Ref<CoreUser>;\n\n\t@prop({ type: () => String })\n\tpublic deviceId?: string;\n\n\t@prop({ type: () => [UserAddress], default: [] })\n\tpublic addresses?: UserAddress[];\n\n\t@prop({ type: GeoLocation }) // Last order location for finding user zone\n\tpublic location?: GeoLocation;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic orderCompleted?: number;\n\n\t@prop({ type: Date })\n\tpublic repeatedOrderAt?: Date;\n\n\t@prop({ ref: () => Coupon })\n\tpublic coupons?: Ref<Coupon>[];\n\n\t@prop({ type: String })\n\tpublic newUserCouponDiscountType?: string;\n\n\t@prop({ type: Number })\n\tpublic newUserCouponValue?: number;\n\n\t@prop({ type: Number })\n\tpublic newUserCouponMaximumDiscountLimit?: number;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isNewUserCouponShowed?: boolean;\n\n\t@prop({ ref: () => Coupon })\n\tpublic referralCode?: Ref<Coupon>;\n\n\t@prop({ type: String, ref: () => Subscription })\n\tpublic subscription?: Ref<Subscription>;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isSubscribed?: boolean;\n\n\t@prop({ type: String })\n\tpublic phoneNumber?: string;\n\n\t@prop({ type: String })\n\tpublic pendingPhoneNumber?: string;\n\n\t@prop({ type: () => OTPFields })\n\tpublic phoneOtpInfo?: OTPFields;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isPhoneVerified?: boolean;\n\n\t@prop({\n\t\ttype: String,\n\t\tenum: OnlineStatus,\n\t\tdefault: OnlineStatus.OFFLINE,\n\t})\n\tpublic onlineStatus?: OnlineStatus;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic receiveTicketAgentNotification?: boolean;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic receiveOrderAgentNotification?: boolean;\n\n\t@prop({ type: () => [String], default: [] })\n\tpublic fcmTokens?: string[];\n\n\t@prop({ type: Wallet })\n\tpublic wallet?: Wallet;\n\n\tpublic static async updateWallet(\n\t\tthis: ReturnModelType<typeof User>,\n\t\tuserId: string,\n\t\tmain = 0,\n\t\treserve = 0\n\t) {\n\t\treturn this.findByIdAndUpdate(\n\t\t\tuserId,\n\t\t\t{ $inc: { 'wallet.main': main, 'wallet.reserve': reserve, 'wallet.total': main + reserve } },\n\t\t\t{ new: true }\n\t\t);\n\t}\n}\n"]}
@@ -11,31 +11,31 @@ export declare const ChatlistMessageSendSocketOutputSchema: z.ZodObject<{
11
11
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
12
12
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- content: string;
15
14
  createdAt: Date;
16
- }, {
17
15
  content: string;
16
+ }, {
18
17
  createdAt: Date;
18
+ content: string;
19
19
  }>>;
20
20
  unreadCount: z.ZodNumber;
21
21
  status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- chatroomId: import("mongoose").Types.ObjectId;
24
23
  unreadCount: number;
24
+ chatroomId: import("mongoose").Types.ObjectId;
25
25
  status?: TicketStatus | undefined;
26
26
  orderId?: import("mongoose").Types.ObjectId | undefined;
27
27
  lastMessage?: {
28
- content: string;
29
28
  createdAt: Date;
29
+ content: string;
30
30
  } | undefined;
31
31
  }, {
32
- chatroomId: import("mongoose").Types.ObjectId;
33
32
  unreadCount: number;
33
+ chatroomId: import("mongoose").Types.ObjectId;
34
34
  status?: TicketStatus | undefined;
35
35
  orderId?: import("mongoose").Types.ObjectId | undefined;
36
36
  lastMessage?: {
37
- content: string;
38
37
  createdAt: Date;
38
+ content: string;
39
39
  } | undefined;
40
40
  }>;
41
41
  export declare const ChatlistMessageSendPushOutputSchema: z.ZodObject<{
@@ -45,31 +45,31 @@ export declare const ChatlistMessageSendPushOutputSchema: z.ZodObject<{
45
45
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
46
46
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
47
47
  }, "strip", z.ZodTypeAny, {
48
- content: string;
49
48
  createdAt: Date;
50
- }, {
51
49
  content: string;
50
+ }, {
52
51
  createdAt: Date;
52
+ content: string;
53
53
  }>>;
54
54
  unreadCount: z.ZodNumber;
55
55
  status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
56
56
  }, "strip", z.ZodTypeAny, {
57
- chatroomId: import("mongoose").Types.ObjectId;
58
57
  unreadCount: number;
58
+ chatroomId: import("mongoose").Types.ObjectId;
59
59
  status?: TicketStatus | undefined;
60
60
  orderId?: import("mongoose").Types.ObjectId | undefined;
61
61
  lastMessage?: {
62
- content: string;
63
62
  createdAt: Date;
63
+ content: string;
64
64
  } | undefined;
65
65
  }, {
66
- chatroomId: import("mongoose").Types.ObjectId;
67
66
  unreadCount: number;
67
+ chatroomId: import("mongoose").Types.ObjectId;
68
68
  status?: TicketStatus | undefined;
69
69
  orderId?: import("mongoose").Types.ObjectId | undefined;
70
70
  lastMessage?: {
71
- content: string;
72
71
  createdAt: Date;
72
+ content: string;
73
73
  } | undefined;
74
74
  }>;
75
75
  export type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatlistMessageSendPushOutputSchema>;
@@ -85,31 +85,31 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
85
85
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
86
86
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
87
87
  }, "strip", z.ZodTypeAny, {
88
- content: string;
89
88
  createdAt: Date;
90
- }, {
91
89
  content: string;
90
+ }, {
92
91
  createdAt: Date;
92
+ content: string;
93
93
  }>>;
94
94
  unreadCount: z.ZodNumber;
95
95
  status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
96
96
  }, "strip", z.ZodTypeAny, {
97
- chatroomId: import("mongoose").Types.ObjectId;
98
97
  unreadCount: number;
98
+ chatroomId: import("mongoose").Types.ObjectId;
99
99
  status?: TicketStatus | undefined;
100
100
  orderId?: import("mongoose").Types.ObjectId | undefined;
101
101
  lastMessage?: {
102
- content: string;
103
102
  createdAt: Date;
103
+ content: string;
104
104
  } | undefined;
105
105
  }, {
106
- chatroomId: import("mongoose").Types.ObjectId;
107
106
  unreadCount: number;
107
+ chatroomId: import("mongoose").Types.ObjectId;
108
108
  status?: TicketStatus | undefined;
109
109
  orderId?: import("mongoose").Types.ObjectId | undefined;
110
110
  lastMessage?: {
111
- content: string;
112
111
  createdAt: Date;
112
+ content: string;
113
113
  } | undefined;
114
114
  }>;
115
115
  pushNotificationOutput: z.ZodObject<{
@@ -119,31 +119,31 @@ export declare class ChatlistMessageSendSocketEvent extends BaseSocketEvent<type
119
119
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
120
120
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodDate, Date, Date>, Date, Date>;
121
121
  }, "strip", z.ZodTypeAny, {
122
- content: string;
123
122
  createdAt: Date;
124
- }, {
125
123
  content: string;
124
+ }, {
126
125
  createdAt: Date;
126
+ content: string;
127
127
  }>>;
128
128
  unreadCount: z.ZodNumber;
129
129
  status: z.ZodOptional<z.ZodNativeEnum<typeof TicketStatus>>;
130
130
  }, "strip", z.ZodTypeAny, {
131
- chatroomId: import("mongoose").Types.ObjectId;
132
131
  unreadCount: number;
132
+ chatroomId: import("mongoose").Types.ObjectId;
133
133
  status?: TicketStatus | undefined;
134
134
  orderId?: import("mongoose").Types.ObjectId | undefined;
135
135
  lastMessage?: {
136
- content: string;
137
136
  createdAt: Date;
137
+ content: string;
138
138
  } | undefined;
139
139
  }, {
140
- chatroomId: import("mongoose").Types.ObjectId;
141
140
  unreadCount: number;
141
+ chatroomId: import("mongoose").Types.ObjectId;
142
142
  status?: TicketStatus | undefined;
143
143
  orderId?: import("mongoose").Types.ObjectId | undefined;
144
144
  lastMessage?: {
145
- content: string;
146
145
  createdAt: Date;
146
+ content: string;
147
147
  } | undefined;
148
148
  }>;
149
149
  };
@@ -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
- id: import("mongoose").Types.ObjectId;
25
23
  name: string;
26
- }, {
27
- type: UserRef;
28
24
  id: import("mongoose").Types.ObjectId;
25
+ type: UserRef;
26
+ }, {
29
27
  name: string;
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,15 +36,15 @@ 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
- mimeType: string;
40
39
  mediaType: MediaType;
41
40
  mediaUrl: string;
41
+ mimeType: string;
42
42
  name?: string | undefined;
43
43
  thumbnailUrl?: string | undefined;
44
44
  }, {
45
- mimeType: string;
46
45
  mediaType: MediaType;
47
46
  mediaUrl: string;
47
+ mimeType: string;
48
48
  name?: string | undefined;
49
49
  thumbnailUrl?: string | undefined;
50
50
  }>, "many">;
@@ -52,68 +52,68 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
52
52
  longitude: z.ZodOptional<z.ZodNumber>;
53
53
  latitude: z.ZodOptional<z.ZodNumber>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- longitude?: number | undefined;
56
55
  latitude?: number | undefined;
57
- }, {
58
56
  longitude?: number | undefined;
57
+ }, {
59
58
  latitude?: number | undefined;
59
+ longitude?: number | undefined;
60
60
  }>>;
61
61
  ticketId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
62
62
  chatroomId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
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
+ createdAt: Date;
66
67
  _id: import("mongoose").Types.ObjectId;
67
- chatroomType: ChatroomType;
68
- senderId: import("mongoose").Types.ObjectId;
69
68
  senderType: UserRef;
70
69
  sender: {
71
- type: UserRef;
72
- id: import("mongoose").Types.ObjectId;
73
70
  name: string;
71
+ id: import("mongoose").Types.ObjectId;
72
+ type: UserRef;
74
73
  };
75
74
  media: {
76
- mimeType: string;
77
75
  mediaType: MediaType;
78
76
  mediaUrl: string;
77
+ mimeType: string;
79
78
  name?: string | undefined;
80
79
  thumbnailUrl?: string | undefined;
81
80
  }[];
82
- createdAt: Date;
83
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
84
- content?: string | undefined;
81
+ chatroomType: ChatroomType;
82
+ senderId: import("mongoose").Types.ObjectId;
85
83
  location?: {
86
- longitude?: number | undefined;
87
84
  latitude?: number | undefined;
85
+ longitude?: number | undefined;
88
86
  } | undefined;
89
- ticketId?: import("mongoose").Types.ObjectId | undefined;
90
87
  orderId?: import("mongoose").Types.ObjectId | undefined;
88
+ content?: string | undefined;
89
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
90
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
91
91
  }, {
92
+ createdAt: Date;
92
93
  _id: import("mongoose").Types.ObjectId;
93
- chatroomType: ChatroomType;
94
- senderId: import("mongoose").Types.ObjectId;
95
94
  senderType: UserRef;
96
95
  sender: {
97
- type: UserRef;
98
- id: import("mongoose").Types.ObjectId;
99
96
  name: string;
97
+ id: import("mongoose").Types.ObjectId;
98
+ type: UserRef;
100
99
  };
101
100
  media: {
102
- mimeType: string;
103
101
  mediaType: MediaType;
104
102
  mediaUrl: string;
103
+ mimeType: string;
105
104
  name?: string | undefined;
106
105
  thumbnailUrl?: string | undefined;
107
106
  }[];
108
- createdAt: Date;
109
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
110
- content?: string | undefined;
107
+ chatroomType: ChatroomType;
108
+ senderId: import("mongoose").Types.ObjectId;
111
109
  location?: {
112
- longitude?: number | undefined;
113
110
  latitude?: number | undefined;
111
+ longitude?: number | undefined;
114
112
  } | undefined;
115
- ticketId?: import("mongoose").Types.ObjectId | undefined;
116
113
  orderId?: import("mongoose").Types.ObjectId | undefined;
114
+ content?: string | undefined;
115
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
116
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
117
117
  }>;
118
118
  export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
119
119
  lastMessage: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
@@ -123,16 +123,16 @@ export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
123
123
  type: z.ZodNativeEnum<typeof ChatroomType>;
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  type: ChatroomType;
126
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
127
- ticketId?: import("mongoose").Types.ObjectId | undefined;
128
126
  orderId?: import("mongoose").Types.ObjectId | undefined;
129
127
  lastMessage?: string | undefined;
128
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
129
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
130
130
  }, {
131
131
  type: ChatroomType;
132
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
133
- ticketId?: import("mongoose").Types.ObjectId | undefined;
134
132
  orderId?: import("mongoose").Types.ObjectId | undefined;
135
133
  lastMessage?: string | undefined;
134
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
135
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
136
136
  }>;
137
137
  export type ChatlistMessageSendPushOutputDTO = DTO<typeof ChatroomMessageSendPushOutputSchema>;
138
138
  export type ChatroomMessageSendSocketOutputDTO = DTO<typeof ChatroomMessageSendOutputSchema>;
@@ -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
- id: import("mongoose").Types.ObjectId;
161
159
  name: string;
162
- }, {
163
- type: UserRef;
164
160
  id: import("mongoose").Types.ObjectId;
161
+ type: UserRef;
162
+ }, {
165
163
  name: string;
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,15 +172,15 @@ 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
- mimeType: string;
176
175
  mediaType: MediaType;
177
176
  mediaUrl: string;
177
+ mimeType: string;
178
178
  name?: string | undefined;
179
179
  thumbnailUrl?: string | undefined;
180
180
  }, {
181
- mimeType: string;
182
181
  mediaType: MediaType;
183
182
  mediaUrl: string;
183
+ mimeType: string;
184
184
  name?: string | undefined;
185
185
  thumbnailUrl?: string | undefined;
186
186
  }>, "many">;
@@ -188,68 +188,68 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
188
188
  longitude: z.ZodOptional<z.ZodNumber>;
189
189
  latitude: z.ZodOptional<z.ZodNumber>;
190
190
  }, "strip", z.ZodTypeAny, {
191
- longitude?: number | undefined;
192
191
  latitude?: number | undefined;
193
- }, {
194
192
  longitude?: number | undefined;
193
+ }, {
195
194
  latitude?: number | undefined;
195
+ longitude?: number | undefined;
196
196
  }>>;
197
197
  ticketId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
198
198
  chatroomId: z.ZodOptional<z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>>;
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
+ createdAt: Date;
202
203
  _id: import("mongoose").Types.ObjectId;
203
- chatroomType: ChatroomType;
204
- senderId: import("mongoose").Types.ObjectId;
205
204
  senderType: UserRef;
206
205
  sender: {
207
- type: UserRef;
208
- id: import("mongoose").Types.ObjectId;
209
206
  name: string;
207
+ id: import("mongoose").Types.ObjectId;
208
+ type: UserRef;
210
209
  };
211
210
  media: {
212
- mimeType: string;
213
211
  mediaType: MediaType;
214
212
  mediaUrl: string;
213
+ mimeType: string;
215
214
  name?: string | undefined;
216
215
  thumbnailUrl?: string | undefined;
217
216
  }[];
218
- createdAt: Date;
219
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
220
- content?: string | undefined;
217
+ chatroomType: ChatroomType;
218
+ senderId: import("mongoose").Types.ObjectId;
221
219
  location?: {
222
- longitude?: number | undefined;
223
220
  latitude?: number | undefined;
221
+ longitude?: number | undefined;
224
222
  } | undefined;
225
- ticketId?: import("mongoose").Types.ObjectId | undefined;
226
223
  orderId?: import("mongoose").Types.ObjectId | undefined;
224
+ content?: string | undefined;
225
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
226
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
227
227
  }, {
228
+ createdAt: Date;
228
229
  _id: import("mongoose").Types.ObjectId;
229
- chatroomType: ChatroomType;
230
- senderId: import("mongoose").Types.ObjectId;
231
230
  senderType: UserRef;
232
231
  sender: {
233
- type: UserRef;
234
- id: import("mongoose").Types.ObjectId;
235
232
  name: string;
233
+ id: import("mongoose").Types.ObjectId;
234
+ type: UserRef;
236
235
  };
237
236
  media: {
238
- mimeType: string;
239
237
  mediaType: MediaType;
240
238
  mediaUrl: string;
239
+ mimeType: string;
241
240
  name?: string | undefined;
242
241
  thumbnailUrl?: string | undefined;
243
242
  }[];
244
- createdAt: Date;
245
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
246
- content?: string | undefined;
243
+ chatroomType: ChatroomType;
244
+ senderId: import("mongoose").Types.ObjectId;
247
245
  location?: {
248
- longitude?: number | undefined;
249
246
  latitude?: number | undefined;
247
+ longitude?: number | undefined;
250
248
  } | undefined;
251
- ticketId?: import("mongoose").Types.ObjectId | undefined;
252
249
  orderId?: import("mongoose").Types.ObjectId | undefined;
250
+ content?: string | undefined;
251
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
252
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
253
253
  }>;
254
254
  pushNotificationOutput: z.ZodObject<{
255
255
  lastMessage: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
@@ -259,16 +259,16 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
259
259
  type: z.ZodNativeEnum<typeof ChatroomType>;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  type: ChatroomType;
262
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
263
- ticketId?: import("mongoose").Types.ObjectId | undefined;
264
262
  orderId?: import("mongoose").Types.ObjectId | undefined;
265
263
  lastMessage?: string | undefined;
264
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
265
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
266
266
  }, {
267
267
  type: ChatroomType;
268
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
269
- ticketId?: import("mongoose").Types.ObjectId | undefined;
270
268
  orderId?: import("mongoose").Types.ObjectId | undefined;
271
269
  lastMessage?: string | undefined;
270
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
271
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
272
272
  }>;
273
273
  };
274
274
  get notificationSettings(): NotificationSettings | undefined;
@@ -277,10 +277,10 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
277
277
  static identifier(input: z.infer<typeof ChatroomMessageSendSocketInputSchema>): string;
278
278
  getPushNotificationPayload(): {
279
279
  type: ChatroomType;
280
- chatroomId?: import("mongoose").Types.ObjectId | undefined;
281
- ticketId?: import("mongoose").Types.ObjectId | undefined;
282
280
  orderId?: import("mongoose").Types.ObjectId | undefined;
283
281
  lastMessage?: string | undefined;
282
+ ticketId?: import("mongoose").Types.ObjectId | undefined;
283
+ chatroomId?: import("mongoose").Types.ObjectId | undefined;
284
284
  } | undefined;
285
285
  protected getIdentifier(): string;
286
286
  }
@@ -39,112 +39,112 @@ 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
- secondaryTotal: number;
44
- paidAmount: number;
45
- secondaryPaidAmount: number;
46
42
  deliveryFee: number;
43
+ total: 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
+ }, {
55
51
  deliveryFee: number;
52
+ total: 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
- total: number;
65
- secondaryTotal: number;
66
- paidAmount: number;
67
- secondaryPaidAmount: number;
68
63
  deliveryFee: number;
64
+ total: 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
- total: number;
78
- secondaryTotal: number;
79
- paidAmount: number;
80
- secondaryPaidAmount: number;
81
76
  deliveryFee: number;
77
+ total: 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
- _id: import("mongoose").Types.ObjectId;
92
- orderId: string;
93
91
  createdAt: Date;
94
- orderActionType: OrderAction;
95
- shopId: import("mongoose").Types.ObjectId;
92
+ _id: import("mongoose").Types.ObjectId;
96
93
  user: {
97
94
  _id: import("mongoose").Types.ObjectId;
98
95
  name: string;
99
96
  };
100
- orderStatus: RegularOrderStatus;
101
- orderAction: OrderAction;
102
- paymentMethod: PaymentMethod;
103
- preparationTimeMinutes: number;
97
+ orderId: string;
98
+ shopId: import("mongoose").Types.ObjectId;
99
+ triggerAt: Date;
104
100
  adjustedFinance: {
105
101
  paymentMethod: PaymentMethod;
106
- shopProfit: number;
107
102
  pricing: {
108
- total: number;
109
- secondaryTotal: number;
110
- paidAmount: number;
111
- secondaryPaidAmount: number;
112
103
  deliveryFee: number;
104
+ total: number;
113
105
  secondaryDeliveryFee: number;
114
106
  riderTips: number;
115
107
  secondaryRiderTips: number;
108
+ secondaryTotal: number;
109
+ paidAmount: number;
110
+ secondaryPaidAmount: number;
116
111
  };
112
+ shopProfit: number;
117
113
  };
118
- triggerAt: Date;
114
+ paymentMethod: PaymentMethod;
115
+ orderActionType: OrderAction;
116
+ orderStatus: RegularOrderStatus;
117
+ orderAction: OrderAction;
118
+ preparationTimeMinutes: number;
119
119
  }, {
120
- _id: string | import("mongoose").Types.ObjectId;
121
- orderId: string;
122
120
  createdAt: Date;
123
- orderActionType: OrderAction;
124
- shopId: string | import("mongoose").Types.ObjectId;
121
+ _id: string | import("mongoose").Types.ObjectId;
125
122
  user: {
126
123
  _id: string | import("mongoose").Types.ObjectId;
127
124
  name: string;
128
125
  };
129
- orderStatus: RegularOrderStatus;
130
- orderAction: OrderAction;
131
- paymentMethod: PaymentMethod;
132
- preparationTimeMinutes: number;
126
+ orderId: string;
127
+ shopId: string | import("mongoose").Types.ObjectId;
128
+ triggerAt: Date;
133
129
  adjustedFinance: {
134
130
  paymentMethod: PaymentMethod;
135
- shopProfit: number;
136
131
  pricing: {
137
- total: number;
138
- secondaryTotal: number;
139
- paidAmount: number;
140
- secondaryPaidAmount: number;
141
132
  deliveryFee: number;
133
+ total: number;
142
134
  secondaryDeliveryFee: number;
143
135
  riderTips: number;
144
136
  secondaryRiderTips: number;
137
+ secondaryTotal: number;
138
+ paidAmount: number;
139
+ secondaryPaidAmount: number;
145
140
  };
141
+ shopProfit: number;
146
142
  };
147
- triggerAt: Date;
143
+ paymentMethod: PaymentMethod;
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>;
@@ -183,112 +183,112 @@ 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
- secondaryTotal: number;
188
- paidAmount: number;
189
- secondaryPaidAmount: number;
190
186
  deliveryFee: number;
187
+ total: 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
+ }, {
199
195
  deliveryFee: number;
196
+ total: 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
- total: number;
209
- secondaryTotal: number;
210
- paidAmount: number;
211
- secondaryPaidAmount: number;
212
207
  deliveryFee: number;
208
+ total: 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
- total: number;
222
- secondaryTotal: number;
223
- paidAmount: number;
224
- secondaryPaidAmount: number;
225
220
  deliveryFee: number;
221
+ total: 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
- _id: import("mongoose").Types.ObjectId;
236
- orderId: string;
237
235
  createdAt: Date;
238
- orderActionType: OrderAction;
239
- shopId: import("mongoose").Types.ObjectId;
236
+ _id: import("mongoose").Types.ObjectId;
240
237
  user: {
241
238
  _id: import("mongoose").Types.ObjectId;
242
239
  name: string;
243
240
  };
244
- orderStatus: RegularOrderStatus;
245
- orderAction: OrderAction;
246
- paymentMethod: PaymentMethod;
247
- preparationTimeMinutes: number;
241
+ orderId: string;
242
+ shopId: import("mongoose").Types.ObjectId;
243
+ triggerAt: Date;
248
244
  adjustedFinance: {
249
245
  paymentMethod: PaymentMethod;
250
- shopProfit: number;
251
246
  pricing: {
252
- total: number;
253
- secondaryTotal: number;
254
- paidAmount: number;
255
- secondaryPaidAmount: number;
256
247
  deliveryFee: number;
248
+ total: number;
257
249
  secondaryDeliveryFee: number;
258
250
  riderTips: number;
259
251
  secondaryRiderTips: number;
252
+ secondaryTotal: number;
253
+ paidAmount: number;
254
+ secondaryPaidAmount: number;
260
255
  };
256
+ shopProfit: number;
261
257
  };
262
- triggerAt: Date;
258
+ paymentMethod: PaymentMethod;
259
+ orderActionType: OrderAction;
260
+ orderStatus: RegularOrderStatus;
261
+ orderAction: OrderAction;
262
+ preparationTimeMinutes: number;
263
263
  }, {
264
- _id: string | import("mongoose").Types.ObjectId;
265
- orderId: string;
266
264
  createdAt: Date;
267
- orderActionType: OrderAction;
268
- shopId: string | import("mongoose").Types.ObjectId;
265
+ _id: string | import("mongoose").Types.ObjectId;
269
266
  user: {
270
267
  _id: string | import("mongoose").Types.ObjectId;
271
268
  name: string;
272
269
  };
273
- orderStatus: RegularOrderStatus;
274
- orderAction: OrderAction;
275
- paymentMethod: PaymentMethod;
276
- preparationTimeMinutes: number;
270
+ orderId: string;
271
+ shopId: string | import("mongoose").Types.ObjectId;
272
+ triggerAt: Date;
277
273
  adjustedFinance: {
278
274
  paymentMethod: PaymentMethod;
279
- shopProfit: number;
280
275
  pricing: {
281
- total: number;
282
- secondaryTotal: number;
283
- paidAmount: number;
284
- secondaryPaidAmount: number;
285
276
  deliveryFee: number;
277
+ total: number;
286
278
  secondaryDeliveryFee: number;
287
279
  riderTips: number;
288
280
  secondaryRiderTips: number;
281
+ secondaryTotal: number;
282
+ paidAmount: number;
283
+ secondaryPaidAmount: number;
289
284
  };
285
+ shopProfit: number;
290
286
  };
291
- triggerAt: Date;
287
+ paymentMethod: PaymentMethod;
288
+ orderActionType: OrderAction;
289
+ orderStatus: RegularOrderStatus;
290
+ orderAction: OrderAction;
291
+ preparationTimeMinutes: number;
292
292
  }>;
293
293
  };
294
294
  private static getMessageForAction;
@@ -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
- longitude: number;
24
- latitude: number;
25
22
  updatedAt: Date;
23
+ _id: import("mongoose").Types.ObjectId;
26
24
  riderId: import("mongoose").Types.ObjectId;
25
+ latitude: number;
26
+ longitude: number;
27
27
  bearing?: number | undefined;
28
28
  }, {
29
- _id: string | import("mongoose").Types.ObjectId;
30
- longitude: number;
31
- latitude: number;
32
29
  updatedAt: string | Date;
30
+ _id: string | import("mongoose").Types.ObjectId;
33
31
  riderId: string | import("mongoose").Types.ObjectId;
32
+ latitude: number;
33
+ longitude: number;
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
- longitude: number;
60
- latitude: number;
61
58
  updatedAt: Date;
59
+ _id: import("mongoose").Types.ObjectId;
62
60
  riderId: import("mongoose").Types.ObjectId;
61
+ latitude: number;
62
+ longitude: number;
63
63
  bearing?: number | undefined;
64
64
  }, {
65
- _id: string | import("mongoose").Types.ObjectId;
66
- longitude: number;
67
- latitude: number;
68
65
  updatedAt: string | Date;
66
+ _id: string | import("mongoose").Types.ObjectId;
69
67
  riderId: string | import("mongoose").Types.ObjectId;
68
+ latitude: number;
69
+ longitude: number;
70
70
  bearing?: number | undefined;
71
71
  }>;
72
72
  };
@@ -12,18 +12,18 @@ 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
- content?: string | undefined;
19
18
  title?: string | undefined;
19
+ content?: string | undefined;
20
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
- content?: string | undefined;
26
25
  title?: string | undefined;
26
+ content?: string | undefined;
27
27
  silent?: boolean | undefined;
28
28
  }>;
29
29
  export declare const TicketActionsPushOutputSchema: z.ZodObject<{
@@ -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>;
@@ -59,18 +59,18 @@ 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
- content?: string | undefined;
66
65
  title?: string | undefined;
66
+ content?: string | undefined;
67
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
- content?: string | undefined;
73
72
  title?: string | undefined;
73
+ content?: string | undefined;
74
74
  silent?: boolean | undefined;
75
75
  }>;
76
76
  pushNotificationOutput: z.ZodObject<{
@@ -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
  }
@@ -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
- type: UserRef;
17
16
  _id: import("mongoose").Types.ObjectId;
18
17
  name: string;
18
+ type: UserRef;
19
19
  profilePhoto: string | null;
20
20
  }, {
21
- type: UserRef;
22
21
  _id: string | import("mongoose").Types.ObjectId;
23
22
  name: string;
23
+ type: UserRef;
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>;
@@ -31,50 +31,50 @@ 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
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ _id: import("mongoose").Types.ObjectId;
42
45
  status: TicketStatus;
43
46
  type: TicketType;
44
- chatroomId: import("mongoose").Types.ObjectId;
45
- _id: import("mongoose").Types.ObjectId;
46
- createdAt: Date;
47
- lastMessage: {
48
- content: string;
49
- createdAt: Date;
50
- };
51
- unreadCount: number;
52
47
  client: {
53
- type: UserRef;
54
48
  _id: import("mongoose").Types.ObjectId;
55
49
  name: string;
50
+ type: UserRef;
56
51
  profilePhoto: string | null;
57
52
  };
58
- updatedAt: Date;
59
- orderId?: import("mongoose").Types.ObjectId | undefined;
60
- }, {
61
- status: TicketStatus;
62
- type: TicketType;
63
- chatroomId: string | import("mongoose").Types.ObjectId;
64
- _id: string | import("mongoose").Types.ObjectId;
65
- createdAt: string | Date;
66
53
  lastMessage: {
54
+ createdAt: Date;
67
55
  content: string;
68
- createdAt: string | Date;
69
56
  };
70
57
  unreadCount: number;
58
+ chatroomId: import("mongoose").Types.ObjectId;
59
+ orderId?: import("mongoose").Types.ObjectId | undefined;
60
+ }, {
61
+ createdAt: string | Date;
62
+ updatedAt: string | Date;
63
+ _id: string | import("mongoose").Types.ObjectId;
64
+ status: TicketStatus;
65
+ type: TicketType;
71
66
  client: {
72
- type: UserRef;
73
67
  _id: string | import("mongoose").Types.ObjectId;
74
68
  name: string;
69
+ type: UserRef;
75
70
  profilePhoto: string | null;
76
71
  };
77
- updatedAt: string | Date;
72
+ lastMessage: {
73
+ createdAt: string | Date;
74
+ content: string;
75
+ };
76
+ unreadCount: number;
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>;
@@ -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
- type: UserRef;
95
94
  _id: import("mongoose").Types.ObjectId;
96
95
  name: string;
96
+ type: UserRef;
97
97
  profilePhoto: string | null;
98
98
  }, {
99
- type: UserRef;
100
99
  _id: string | import("mongoose").Types.ObjectId;
101
100
  name: string;
101
+ type: UserRef;
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>;
@@ -109,50 +109,50 @@ 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
+ createdAt: Date;
121
+ updatedAt: Date;
122
+ _id: import("mongoose").Types.ObjectId;
120
123
  status: TicketStatus;
121
124
  type: TicketType;
122
- chatroomId: import("mongoose").Types.ObjectId;
123
- _id: import("mongoose").Types.ObjectId;
124
- createdAt: Date;
125
- lastMessage: {
126
- content: string;
127
- createdAt: Date;
128
- };
129
- unreadCount: number;
130
125
  client: {
131
- type: UserRef;
132
126
  _id: import("mongoose").Types.ObjectId;
133
127
  name: string;
128
+ type: UserRef;
134
129
  profilePhoto: string | null;
135
130
  };
136
- updatedAt: Date;
137
- orderId?: import("mongoose").Types.ObjectId | undefined;
138
- }, {
139
- status: TicketStatus;
140
- type: TicketType;
141
- chatroomId: string | import("mongoose").Types.ObjectId;
142
- _id: string | import("mongoose").Types.ObjectId;
143
- createdAt: string | Date;
144
131
  lastMessage: {
132
+ createdAt: Date;
145
133
  content: string;
146
- createdAt: string | Date;
147
134
  };
148
135
  unreadCount: number;
136
+ chatroomId: import("mongoose").Types.ObjectId;
137
+ orderId?: import("mongoose").Types.ObjectId | undefined;
138
+ }, {
139
+ createdAt: string | Date;
140
+ updatedAt: string | Date;
141
+ _id: string | import("mongoose").Types.ObjectId;
142
+ status: TicketStatus;
143
+ type: TicketType;
149
144
  client: {
150
- type: UserRef;
151
145
  _id: string | import("mongoose").Types.ObjectId;
152
146
  name: string;
147
+ type: UserRef;
153
148
  profilePhoto: string | null;
154
149
  };
155
- updatedAt: string | Date;
150
+ lastMessage: {
151
+ createdAt: string | Date;
152
+ content: string;
153
+ };
154
+ unreadCount: number;
155
+ chatroomId: string | import("mongoose").Types.ObjectId;
156
156
  orderId?: string | import("mongoose").Types.ObjectId | undefined;
157
157
  }>;
158
158
  };
@@ -5,12 +5,12 @@ 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
- req: import("http").IncomingMessage;
9
- res: import("http").ServerResponse<import("http").IncomingMessage>;
10
8
  entity: import("../context").EntityContext | undefined;
11
9
  requestId: string | undefined;
12
- tokenType: TokenType | undefined;
10
+ req: import("http").IncomingMessage;
11
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
13
12
  usedRefreshToken: boolean | undefined;
14
13
  tokenRenewed: boolean | undefined;
14
+ tokenType: TokenType | undefined;
15
15
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
16
16
  export {};
@@ -4,12 +4,12 @@ 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
- req: import("http").IncomingMessage;
8
- res: import("http").ServerResponse<import("http").IncomingMessage>;
9
7
  entity: import("../context").EntityContext | undefined;
10
8
  requestId: string | undefined;
11
- tokenType: import("../../auth").TokenType | undefined;
9
+ req: import("http").IncomingMessage;
10
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
12
11
  usedRefreshToken: boolean | undefined;
13
12
  tokenRenewed: boolean | undefined;
13
+ tokenType: import("../../auth").TokenType | undefined;
14
14
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
15
15
  export {};
@@ -3,12 +3,12 @@ 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
- req: import("http").IncomingMessage;
7
- res: import("http").ServerResponse<import("http").IncomingMessage>;
8
6
  entity: import("../context").EntityContext | undefined;
9
7
  requestId: string | undefined;
10
- tokenType: import("../../auth").TokenType | undefined;
8
+ req: import("http").IncomingMessage;
9
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
11
10
  usedRefreshToken: boolean | undefined;
12
11
  tokenRenewed: boolean | undefined;
12
+ tokenType: import("../../auth").TokenType | undefined;
13
13
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
14
14
  export {};
@@ -5,12 +5,12 @@ 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
- req: import("http").IncomingMessage;
9
- res: import("http").ServerResponse<import("http").IncomingMessage>;
10
8
  entity: import("../context").EntityContext | undefined;
11
9
  requestId: string | undefined;
12
- tokenType: TokenType | undefined;
10
+ req: import("http").IncomingMessage;
11
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
13
12
  usedRefreshToken: boolean | undefined;
14
13
  tokenRenewed: boolean | undefined;
14
+ tokenType: TokenType | undefined;
15
15
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
16
16
  export {};
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.309
25
+ Version: 1.4.310
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.309",
3
+ "version": "1.4.310",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.309",
3
+ "version": "1.4.310",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",