@lyxa.ai/core 1.4.324 → 1.4.326-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libraries/event/events/mongo-stream-changes-batch-process-shops-event.d.ts +2 -2
- package/dist/libraries/event/events/punch-marketing/sync-user-shop-punch-marketing-history-event.d.ts +2 -2
- package/dist/libraries/event/events/sync-order-again-sections-for-shop-event.d.ts +2 -2
- package/dist/libraries/mongo/models/user-coupon.model.d.ts +11 -0
- package/dist/libraries/mongo/models/user-coupon.model.js +52 -0
- package/dist/libraries/mongo/models/user-coupon.model.js.map +1 -0
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +24 -24
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +20 -20
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +8 -8
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +12 -12
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +24 -24
- package/dist/libraries/trpc/middlewares/auth.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +1 -1
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/dist/types/utilities/validation/common-validation.d.ts +66 -66
- package/dist/types/utilities/validation/global-validation.d.ts +1 -0
- package/dist/types/utilities/validation/global-validation.js +12 -0
- package/dist/types/utilities/validation/global-validation.js.map +1 -1
- package/dist/types/utilities/validation/validation-for-frontend.d.ts +2 -2
- package/dist/utilities/pagination.d.ts +3 -3
- package/dist/utilities/validation/common-validation.d.ts +70 -70
- package/dist/utilities/validation/global-validation.d.ts +1 -0
- package/dist/utilities/validation/global-validation.js +12 -0
- package/dist/utilities/validation/global-validation.js.map +1 -1
- package/dist/utilities/validation/validation-for-frontend.d.ts +2 -2
- package/package.json +1 -1
|
@@ -24,13 +24,13 @@ declare const MongoStreamsBatchProcessShopsSchema: z.ZodObject<{
|
|
|
24
24
|
}, "strict", z.ZodTypeAny, {
|
|
25
25
|
operation: ChangeStreamOperationTypes;
|
|
26
26
|
updateCollection: UpdateCollectionAtlasSearchEnum;
|
|
27
|
-
fullDocument?: any;
|
|
28
27
|
updatedFields?: any;
|
|
28
|
+
fullDocument?: any;
|
|
29
29
|
}, {
|
|
30
30
|
operation: ChangeStreamOperationTypes;
|
|
31
31
|
updateCollection: UpdateCollectionAtlasSearchEnum;
|
|
32
|
-
fullDocument?: any;
|
|
33
32
|
updatedFields?: any;
|
|
33
|
+
fullDocument?: any;
|
|
34
34
|
}>;
|
|
35
35
|
export type MongoStreamsBatchProcessShopsDTO = DTO<typeof MongoStreamsBatchProcessShopsSchema>;
|
|
36
36
|
export declare class MongoStreamsBatchProcessShopsEvent extends BaseEvent<Record<string, unknown>> {
|
|
@@ -6,12 +6,12 @@ declare const SyncUserShopPunchMarketingHistoryInCacheValidationSchema: import("
|
|
|
6
6
|
shopId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
7
7
|
operation: import("zod").ZodNativeEnum<typeof ChangeStreamOperationTypes>;
|
|
8
8
|
}, "strict", import("zod").ZodTypeAny, {
|
|
9
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
10
9
|
userId: import("mongoose").Types.ObjectId;
|
|
10
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
11
11
|
operation: ChangeStreamOperationTypes;
|
|
12
12
|
}, {
|
|
13
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
14
13
|
userId: string | import("mongoose").Types.ObjectId;
|
|
14
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
15
15
|
operation: ChangeStreamOperationTypes;
|
|
16
16
|
}>;
|
|
17
17
|
export type SyncUserShopPunchMarketingHistoryInCacheValidationDTO = DTO<typeof SyncUserShopPunchMarketingHistoryInCacheValidationSchema>;
|
|
@@ -4,11 +4,11 @@ declare const SyncSingleShopValidationSchema: import("zod").ZodObject<{
|
|
|
4
4
|
userId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
5
5
|
shopId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
6
6
|
}, "strict", import("zod").ZodTypeAny, {
|
|
7
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
8
7
|
userId: import("mongoose").Types.ObjectId;
|
|
8
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
9
9
|
}, {
|
|
10
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
11
10
|
userId: string | import("mongoose").Types.ObjectId;
|
|
11
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
12
12
|
}>;
|
|
13
13
|
export type SyncSingleShopOrderAgainCacheDTO = DTO<typeof SyncSingleShopValidationSchema>;
|
|
14
14
|
export declare class SyncSingleShopOrderAgainInCacheEvent extends BaseEvent<Record<string, unknown>> {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
+
import { User } from './user.model';
|
|
4
|
+
import { Coupon } from './coupon.model';
|
|
5
|
+
export declare class UserCoupon extends TimeStamps {
|
|
6
|
+
user: Ref<User>;
|
|
7
|
+
coupon: Ref<Coupon>;
|
|
8
|
+
startDate: Date;
|
|
9
|
+
endDate?: Date;
|
|
10
|
+
isExpired?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserCoupon = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
const user_model_1 = require("./user.model");
|
|
16
|
+
const coupon_model_1 = require("./coupon.model");
|
|
17
|
+
let UserCoupon = class UserCoupon extends defaultClasses_1.TimeStamps {
|
|
18
|
+
user;
|
|
19
|
+
coupon;
|
|
20
|
+
startDate;
|
|
21
|
+
endDate;
|
|
22
|
+
isExpired;
|
|
23
|
+
};
|
|
24
|
+
exports.UserCoupon = UserCoupon;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typegoose_1.prop)({ required: true, ref: () => user_model_1.User }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], UserCoupon.prototype, "user", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typegoose_1.prop)({ required: true, ref: () => coupon_model_1.Coupon }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], UserCoupon.prototype, "coupon", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ required: true, type: Date }),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], UserCoupon.prototype, "startDate", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({ type: Date }),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], UserCoupon.prototype, "endDate", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typegoose_1.prop)({ type: Boolean, default: false }),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], UserCoupon.prototype, "isExpired", void 0);
|
|
45
|
+
exports.UserCoupon = UserCoupon = __decorate([
|
|
46
|
+
(0, typegoose_1.modelOptions)({
|
|
47
|
+
schemaOptions: { collection: 'user-coupons' },
|
|
48
|
+
}),
|
|
49
|
+
(0, typegoose_1.index)({ user: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } }),
|
|
50
|
+
(0, typegoose_1.index)({ coupon: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } })
|
|
51
|
+
], UserCoupon);
|
|
52
|
+
//# sourceMappingURL=user-coupon.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-coupon.model.js","sourceRoot":"/","sources":["libraries/mongo/models/user-coupon.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,6CAAoC;AACpC,iDAAwC;AAOjC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,2BAAU;IAElC,IAAI,CAAa;IAGjB,MAAM,CAAe;IAGrB,SAAS,CAAQ;IAGjB,OAAO,CAAQ;IAGf,SAAS,CAAW;CAC3B,CAAA;AAfY,gCAAU;AAEf;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,iBAAI,EAAE,CAAC;;wCAClB;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;0CAChB;AAGrB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BAClB,IAAI;6CAAC;AAGjB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;8BACJ,IAAI;2CAAC;AAGf;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACb;qBAdf,UAAU;IALtB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE;KAC7C,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;IAClF,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;GACxE,UAAU,CAetB","sourcesContent":["import { index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { Coupon } from './coupon.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'user-coupons' },\n})\n@index({ user: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } })\n@index({ coupon: 1, deletedAt: 1 }, { partialFilterExpression: { deletedAt: null } })\nexport class UserCoupon extends TimeStamps {\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ required: true, ref: () => Coupon })\n\tpublic coupon!: Ref<Coupon>;\n\n\t@prop({ required: true, type: Date })\n\tpublic startDate!: Date;\n\n\t@prop({ type: Date })\n\tpublic endDate?: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isExpired?: boolean;\n}\n"]}
|
|
@@ -20,21 +20,21 @@ 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;
|
|
23
24
|
name: string;
|
|
24
25
|
id: import("mongoose").Types.ObjectId;
|
|
25
|
-
type: UserRef;
|
|
26
26
|
}, {
|
|
27
|
+
type: UserRef;
|
|
27
28
|
name: string;
|
|
28
29
|
id: import("mongoose").Types.ObjectId;
|
|
29
|
-
type: UserRef;
|
|
30
30
|
}>;
|
|
31
|
-
content: z.ZodOptional<z.
|
|
31
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
32
32
|
media: z.ZodArray<z.ZodObject<{
|
|
33
33
|
mimeType: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
34
34
|
mediaType: z.ZodNativeEnum<typeof MediaType>;
|
|
35
35
|
mediaUrl: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
36
|
-
thumbnailUrl: z.ZodOptional<z.
|
|
37
|
-
name: z.ZodOptional<z.
|
|
36
|
+
thumbnailUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
37
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
mediaType: MediaType;
|
|
40
40
|
mediaUrl: string;
|
|
@@ -63,12 +63,12 @@ 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
|
-
createdAt: Date;
|
|
67
66
|
_id: import("mongoose").Types.ObjectId;
|
|
67
|
+
createdAt: Date;
|
|
68
68
|
sender: {
|
|
69
|
+
type: UserRef;
|
|
69
70
|
name: string;
|
|
70
71
|
id: import("mongoose").Types.ObjectId;
|
|
71
|
-
type: UserRef;
|
|
72
72
|
};
|
|
73
73
|
senderType: UserRef;
|
|
74
74
|
media: {
|
|
@@ -80,21 +80,21 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
80
80
|
}[];
|
|
81
81
|
chatroomType: ChatroomType;
|
|
82
82
|
senderId: import("mongoose").Types.ObjectId;
|
|
83
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
83
84
|
location?: {
|
|
84
85
|
latitude?: number | undefined;
|
|
85
86
|
longitude?: number | undefined;
|
|
86
87
|
} | undefined;
|
|
87
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
88
88
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
89
89
|
content?: string | undefined;
|
|
90
90
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
createdAt: Date;
|
|
93
92
|
_id: import("mongoose").Types.ObjectId;
|
|
93
|
+
createdAt: Date;
|
|
94
94
|
sender: {
|
|
95
|
+
type: UserRef;
|
|
95
96
|
name: string;
|
|
96
97
|
id: import("mongoose").Types.ObjectId;
|
|
97
|
-
type: UserRef;
|
|
98
98
|
};
|
|
99
99
|
senderType: UserRef;
|
|
100
100
|
media: {
|
|
@@ -106,17 +106,17 @@ export declare const ChatroomMessageSendOutputSchema: z.ZodObject<{
|
|
|
106
106
|
}[];
|
|
107
107
|
chatroomType: ChatroomType;
|
|
108
108
|
senderId: import("mongoose").Types.ObjectId;
|
|
109
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
109
110
|
location?: {
|
|
110
111
|
latitude?: number | undefined;
|
|
111
112
|
longitude?: number | undefined;
|
|
112
113
|
} | undefined;
|
|
113
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
114
114
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
115
115
|
content?: string | undefined;
|
|
116
116
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
export declare const ChatroomMessageSendPushOutputSchema: z.ZodObject<{
|
|
119
|
-
lastMessage: z.ZodOptional<z.
|
|
119
|
+
lastMessage: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
120
120
|
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>>;
|
|
121
121
|
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>>;
|
|
122
122
|
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>>;
|
|
@@ -156,21 +156,21 @@ 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;
|
|
159
160
|
name: string;
|
|
160
161
|
id: import("mongoose").Types.ObjectId;
|
|
161
|
-
type: UserRef;
|
|
162
162
|
}, {
|
|
163
|
+
type: UserRef;
|
|
163
164
|
name: string;
|
|
164
165
|
id: import("mongoose").Types.ObjectId;
|
|
165
|
-
type: UserRef;
|
|
166
166
|
}>;
|
|
167
|
-
content: z.ZodOptional<z.
|
|
167
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
168
168
|
media: z.ZodArray<z.ZodObject<{
|
|
169
169
|
mimeType: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
170
170
|
mediaType: z.ZodNativeEnum<typeof MediaType>;
|
|
171
171
|
mediaUrl: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
172
|
-
thumbnailUrl: z.ZodOptional<z.
|
|
173
|
-
name: z.ZodOptional<z.
|
|
172
|
+
thumbnailUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
173
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
175
|
mediaType: MediaType;
|
|
176
176
|
mediaUrl: string;
|
|
@@ -199,12 +199,12 @@ 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
|
-
createdAt: Date;
|
|
203
202
|
_id: import("mongoose").Types.ObjectId;
|
|
203
|
+
createdAt: Date;
|
|
204
204
|
sender: {
|
|
205
|
+
type: UserRef;
|
|
205
206
|
name: string;
|
|
206
207
|
id: import("mongoose").Types.ObjectId;
|
|
207
|
-
type: UserRef;
|
|
208
208
|
};
|
|
209
209
|
senderType: UserRef;
|
|
210
210
|
media: {
|
|
@@ -216,21 +216,21 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
216
216
|
}[];
|
|
217
217
|
chatroomType: ChatroomType;
|
|
218
218
|
senderId: import("mongoose").Types.ObjectId;
|
|
219
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
219
220
|
location?: {
|
|
220
221
|
latitude?: number | undefined;
|
|
221
222
|
longitude?: number | undefined;
|
|
222
223
|
} | undefined;
|
|
223
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
224
224
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
225
225
|
content?: string | undefined;
|
|
226
226
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
227
227
|
}, {
|
|
228
|
-
createdAt: Date;
|
|
229
228
|
_id: import("mongoose").Types.ObjectId;
|
|
229
|
+
createdAt: Date;
|
|
230
230
|
sender: {
|
|
231
|
+
type: UserRef;
|
|
231
232
|
name: string;
|
|
232
233
|
id: import("mongoose").Types.ObjectId;
|
|
233
|
-
type: UserRef;
|
|
234
234
|
};
|
|
235
235
|
senderType: UserRef;
|
|
236
236
|
media: {
|
|
@@ -242,17 +242,17 @@ export declare class ChatroomMessageSendSocketEvent extends BaseSocketEvent<type
|
|
|
242
242
|
}[];
|
|
243
243
|
chatroomType: ChatroomType;
|
|
244
244
|
senderId: import("mongoose").Types.ObjectId;
|
|
245
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
245
246
|
location?: {
|
|
246
247
|
latitude?: number | undefined;
|
|
247
248
|
longitude?: number | undefined;
|
|
248
249
|
} | undefined;
|
|
249
|
-
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
250
250
|
ticketId?: import("mongoose").Types.ObjectId | undefined;
|
|
251
251
|
content?: string | undefined;
|
|
252
252
|
chatroomId?: import("mongoose").Types.ObjectId | undefined;
|
|
253
253
|
}>;
|
|
254
254
|
pushNotificationOutput: z.ZodObject<{
|
|
255
|
-
lastMessage: z.ZodOptional<z.
|
|
255
|
+
lastMessage: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
256
256
|
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>>;
|
|
257
257
|
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>>;
|
|
258
258
|
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>>;
|
|
@@ -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>;
|
|
@@ -88,14 +88,15 @@ 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
|
+
orderId: string;
|
|
93
93
|
shopId: import("mongoose").Types.ObjectId;
|
|
94
|
+
createdAt: Date;
|
|
94
95
|
user: {
|
|
95
|
-
name: string;
|
|
96
96
|
_id: import("mongoose").Types.ObjectId;
|
|
97
|
+
name: string;
|
|
97
98
|
};
|
|
98
|
-
|
|
99
|
+
paymentMethod: PaymentMethod;
|
|
99
100
|
triggerAt: Date;
|
|
100
101
|
adjustedFinance: {
|
|
101
102
|
paymentMethod: PaymentMethod;
|
|
@@ -111,20 +112,20 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
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
|
+
orderId: string;
|
|
122
122
|
shopId: string | import("mongoose").Types.ObjectId;
|
|
123
|
+
createdAt: Date;
|
|
123
124
|
user: {
|
|
124
|
-
name: string;
|
|
125
125
|
_id: string | import("mongoose").Types.ObjectId;
|
|
126
|
+
name: string;
|
|
126
127
|
};
|
|
127
|
-
|
|
128
|
+
paymentMethod: PaymentMethod;
|
|
128
129
|
triggerAt: Date;
|
|
129
130
|
adjustedFinance: {
|
|
130
131
|
paymentMethod: PaymentMethod;
|
|
@@ -140,7 +141,6 @@ export declare const OrderActionsOutputSchema: z.ZodObject<{
|
|
|
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>;
|
|
@@ -232,14 +232,15 @@ 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
|
+
orderId: string;
|
|
237
237
|
shopId: import("mongoose").Types.ObjectId;
|
|
238
|
+
createdAt: Date;
|
|
238
239
|
user: {
|
|
239
|
-
name: string;
|
|
240
240
|
_id: import("mongoose").Types.ObjectId;
|
|
241
|
+
name: string;
|
|
241
242
|
};
|
|
242
|
-
|
|
243
|
+
paymentMethod: PaymentMethod;
|
|
243
244
|
triggerAt: Date;
|
|
244
245
|
adjustedFinance: {
|
|
245
246
|
paymentMethod: PaymentMethod;
|
|
@@ -255,20 +256,20 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
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
|
+
orderId: string;
|
|
266
266
|
shopId: string | import("mongoose").Types.ObjectId;
|
|
267
|
+
createdAt: Date;
|
|
267
268
|
user: {
|
|
268
|
-
name: string;
|
|
269
269
|
_id: string | import("mongoose").Types.ObjectId;
|
|
270
|
+
name: string;
|
|
270
271
|
};
|
|
271
|
-
|
|
272
|
+
paymentMethod: PaymentMethod;
|
|
272
273
|
triggerAt: Date;
|
|
273
274
|
adjustedFinance: {
|
|
274
275
|
paymentMethod: PaymentMethod;
|
|
@@ -284,7 +285,6 @@ export declare class OrderActionsSocketEvent extends BaseSocketEvent<typeof Orde
|
|
|
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;
|
|
25
23
|
latitude: number;
|
|
26
24
|
longitude: number;
|
|
25
|
+
updatedAt: Date;
|
|
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;
|
|
32
30
|
latitude: number;
|
|
33
31
|
longitude: number;
|
|
32
|
+
updatedAt: string | Date;
|
|
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;
|
|
61
59
|
latitude: number;
|
|
62
60
|
longitude: number;
|
|
61
|
+
updatedAt: Date;
|
|
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;
|
|
68
66
|
latitude: number;
|
|
69
67
|
longitude: number;
|
|
68
|
+
updatedAt: string | Date;
|
|
69
|
+
riderId: string | import("mongoose").Types.ObjectId;
|
|
70
70
|
bearing?: number | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
};
|
|
@@ -8,20 +8,20 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
8
8
|
_id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
9
9
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
10
10
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
11
|
-
content: z.ZodOptional<z.
|
|
12
|
-
title: z.ZodOptional<z.
|
|
11
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
12
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
13
13
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
status: TicketStatus;
|
|
16
|
-
_id: import("mongoose").Types.ObjectId;
|
|
17
16
|
type: TicketType;
|
|
17
|
+
_id: import("mongoose").Types.ObjectId;
|
|
18
18
|
title?: string | undefined;
|
|
19
19
|
content?: string | undefined;
|
|
20
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
25
|
title?: string | undefined;
|
|
26
26
|
content?: string | undefined;
|
|
27
27
|
silent?: boolean | undefined;
|
|
@@ -30,8 +30,8 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
|
30
30
|
ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
31
31
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
32
32
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
33
|
-
content: z.ZodOptional<z.
|
|
34
|
-
title: z.ZodOptional<z.
|
|
33
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
34
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
status: TicketStatus;
|
|
37
37
|
type: TicketType;
|
|
@@ -55,20 +55,20 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
55
55
|
_id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
56
56
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
57
57
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
58
|
-
content: z.ZodOptional<z.
|
|
59
|
-
title: z.ZodOptional<z.
|
|
58
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
59
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
60
60
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
status: TicketStatus;
|
|
63
|
-
_id: import("mongoose").Types.ObjectId;
|
|
64
63
|
type: TicketType;
|
|
64
|
+
_id: import("mongoose").Types.ObjectId;
|
|
65
65
|
title?: string | undefined;
|
|
66
66
|
content?: string | undefined;
|
|
67
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
72
|
title?: string | undefined;
|
|
73
73
|
content?: string | undefined;
|
|
74
74
|
silent?: boolean | undefined;
|
|
@@ -77,8 +77,8 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
77
77
|
ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
78
78
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
79
79
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
80
|
-
content: z.ZodOptional<z.
|
|
81
|
-
title: z.ZodOptional<z.
|
|
80
|
+
content: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
81
|
+
title: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>> | z.ZodOptional<z.ZodString>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
83
|
status: TicketStatus;
|
|
84
84
|
type: TicketType;
|