@lyxa.ai/core 1.4.187 → 1.4.188
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/mongo/models/delivery-charges.model.js +1 -2
- package/dist/libraries/mongo/models/delivery-charges.model.js.map +1 -1
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +0 -13
- package/dist/libraries/socket/events/ticket-actions.socket.event.js +0 -3
- package/dist/libraries/socket/events/ticket-actions.socket.event.js.map +1 -1
- 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 +12 -12
- package/package.json +1 -1
|
@@ -58,7 +58,6 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", Boolean)
|
|
59
59
|
], DeliveryCharges.prototype, "isActive", void 0);
|
|
60
60
|
exports.DeliveryCharges = DeliveryCharges = __decorate([
|
|
61
|
-
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'deliveryCharges' } })
|
|
62
|
-
(0, typegoose_1.Index)({ zone: 1, type: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })
|
|
61
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'deliveryCharges' } })
|
|
63
62
|
], DeliveryCharges);
|
|
64
63
|
//# sourceMappingURL=delivery-charges.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery-charges.model.js","sourceRoot":"/","sources":["libraries/mongo/models/delivery-charges.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAAwE;AACxE,6CAAoC;
|
|
1
|
+
{"version":3,"file":"delivery-charges.model.js","s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ACtB;AAIlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACb;0BAzBd,eAAe;IAH3B,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE,CAAC;GAGtD,eAAe,CA0B3B","sourcesContent":["import { Index, modelOptions, prop, Ref } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { DeliveryChargeType, OrderType } from '../../../utilities/enum';\nimport { Zone } from './zone.model';\n\n/**\n * Standalone delivery charge configuration, scoped to a single zone.\n *\n * This is the normalized counterpart of the embedded `Setting.deliveryCharges`\n * / `Zone.deliveryCharges` arrays. Each document represents one (zone, type)\n * combination so that delivery pricing can be managed, indexed and queried per\n * zone without rewriting the whole settings/zone document.\n */\n@modelOptions({ schemaOptions: { collection: 'deliveryCharges' } })\n// One active config per (zone, order type). A missing `zone` indexes as null, so\n// there is exactly one zone-less \"global\" config per type.\nexport class DeliveryCharges extends TimeStamps {\n\t// Optional: when absent this is the global/default config for the `type`.\n\t@prop({ ref: () => Zone })\n\tpublic zone?: Ref<Zone>;\n\n\t@prop({ type: String, enum: OrderType, default: OrderType.REGULAR })\n\tpublic type!: string;\n\n\t@prop({ type: String, enum: DeliveryChargeType, default: DeliveryChargeType.DISTANCE_BASED })\n\tpublic chargeType!: string;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic from!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic to!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic charge!: number;\n\n\t@prop({ required: true, type: Number, min: 0 })\n\tpublic riderCut!: number;\n\n\t// Future-proofing: toggle a config without deleting it, e.g. seasonal pricing.\n\t@prop({ type: Boolean, default: true })\n\tpublic isActive?: boolean;\n}\n"]}
|
|
@@ -6,7 +6,6 @@ import { NotificationSettings } from '../PushNotificationEvent';
|
|
|
6
6
|
export declare const TicketActionsSocketInputSchema: z.ZodUndefined;
|
|
7
7
|
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
|
-
chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
10
9
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
11
10
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
12
11
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
@@ -15,20 +14,17 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
15
14
|
type: TicketType;
|
|
16
15
|
status: TicketStatus;
|
|
17
16
|
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
19
17
|
content?: string | undefined;
|
|
20
18
|
title?: string | undefined;
|
|
21
19
|
}, {
|
|
22
20
|
type: TicketType;
|
|
23
21
|
status: TicketStatus;
|
|
24
22
|
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
26
23
|
content?: string | undefined;
|
|
27
24
|
title?: string | undefined;
|
|
28
25
|
}>;
|
|
29
26
|
export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
30
27
|
ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
31
|
-
chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
32
28
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
33
29
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
34
30
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
@@ -37,14 +33,12 @@ export declare const TicketActionsPushOutputSchema: z.ZodObject<{
|
|
|
37
33
|
type: TicketType;
|
|
38
34
|
status: TicketStatus;
|
|
39
35
|
ticketId: import("mongoose").Types.ObjectId;
|
|
40
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
41
36
|
content?: string | undefined;
|
|
42
37
|
title?: string | undefined;
|
|
43
38
|
}, {
|
|
44
39
|
type: TicketType;
|
|
45
40
|
status: TicketStatus;
|
|
46
41
|
ticketId: import("mongoose").Types.ObjectId;
|
|
47
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
48
42
|
content?: string | undefined;
|
|
49
43
|
title?: string | undefined;
|
|
50
44
|
}>;
|
|
@@ -56,7 +50,6 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
56
50
|
input: z.ZodUndefined;
|
|
57
51
|
output: z.ZodObject<{
|
|
58
52
|
_id: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
59
|
-
chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
60
53
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
61
54
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
62
55
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
@@ -65,20 +58,17 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
65
58
|
type: TicketType;
|
|
66
59
|
status: TicketStatus;
|
|
67
60
|
_id: import("mongoose").Types.ObjectId;
|
|
68
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
69
61
|
content?: string | undefined;
|
|
70
62
|
title?: string | undefined;
|
|
71
63
|
}, {
|
|
72
64
|
type: TicketType;
|
|
73
65
|
status: TicketStatus;
|
|
74
66
|
_id: import("mongoose").Types.ObjectId;
|
|
75
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
76
67
|
content?: string | undefined;
|
|
77
68
|
title?: string | undefined;
|
|
78
69
|
}>;
|
|
79
70
|
pushNotificationOutput: z.ZodObject<{
|
|
80
71
|
ticketId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
81
|
-
chatroomId: z.ZodEffects<z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>, import("mongoose").Types.ObjectId, import("mongoose").Types.ObjectId>;
|
|
82
72
|
status: z.ZodNativeEnum<typeof TicketStatus>;
|
|
83
73
|
type: z.ZodNativeEnum<typeof TicketType>;
|
|
84
74
|
content: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
@@ -87,14 +77,12 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
87
77
|
type: TicketType;
|
|
88
78
|
status: TicketStatus;
|
|
89
79
|
ticketId: import("mongoose").Types.ObjectId;
|
|
90
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
91
80
|
content?: string | undefined;
|
|
92
81
|
title?: string | undefined;
|
|
93
82
|
}, {
|
|
94
83
|
type: TicketType;
|
|
95
84
|
status: TicketStatus;
|
|
96
85
|
ticketId: import("mongoose").Types.ObjectId;
|
|
97
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
98
86
|
content?: string | undefined;
|
|
99
87
|
title?: string | undefined;
|
|
100
88
|
}>;
|
|
@@ -105,7 +93,6 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
105
93
|
type: TicketType;
|
|
106
94
|
status: TicketStatus;
|
|
107
95
|
ticketId: import("mongoose").Types.ObjectId;
|
|
108
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
109
96
|
content?: string | undefined;
|
|
110
97
|
title?: string | undefined;
|
|
111
98
|
} | undefined;
|
|
@@ -11,7 +11,6 @@ const BaseSocketEvent_1 = require("../BaseSocketEvent");
|
|
|
11
11
|
exports.TicketActionsSocketInputSchema = zod_1.default.undefined();
|
|
12
12
|
exports.TicketActionsSocketOutputSchema = zod_1.default.object({
|
|
13
13
|
_id: validation_1.ZodValidation.coerce.objectId(),
|
|
14
|
-
chatroomId: validation_1.ZodValidation.coerce.objectId(),
|
|
15
14
|
status: validation_1.ZodValidation.enumType(enum_1.TicketStatus, 'status'),
|
|
16
15
|
type: validation_1.ZodValidation.enumType(enum_1.TicketType, 'type'),
|
|
17
16
|
content: validation_1.ZodValidation.string('content').optional(),
|
|
@@ -19,7 +18,6 @@ exports.TicketActionsSocketOutputSchema = zod_1.default.object({
|
|
|
19
18
|
});
|
|
20
19
|
exports.TicketActionsPushOutputSchema = zod_1.default.object({
|
|
21
20
|
ticketId: validation_1.ZodValidation.coerce.objectId(),
|
|
22
|
-
chatroomId: validation_1.ZodValidation.coerce.objectId(),
|
|
23
21
|
status: validation_1.ZodValidation.enumType(enum_1.TicketStatus, 'status'),
|
|
24
22
|
type: validation_1.ZodValidation.enumType(enum_1.TicketType, 'type'),
|
|
25
23
|
content: validation_1.ZodValidation.string('content').optional(),
|
|
@@ -42,7 +40,6 @@ class TicketActionsSocketEvent extends BaseSocketEvent_1.BaseSocketEvent {
|
|
|
42
40
|
constructor(payload) {
|
|
43
41
|
const pushPayload = {
|
|
44
42
|
ticketId: payload._id,
|
|
45
|
-
chatroomId: payload.chatroomId,
|
|
46
43
|
status: payload.status,
|
|
47
44
|
type: payload.type,
|
|
48
45
|
content: payload.content,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket-actions.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/ticket-actions.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,kDAA+F;AAC/F,8DAAmE;AACnE,wDAAqD;AAGxC,QAAA,8BAA8B,GAAG,aAAC,CAAC,SAAS,EAAE,CAAC;AAC/C,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,GAAG,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IACpC,
|
|
1
|
+
{"version":3,"file":"ticket-actions.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/ticket-actions.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,kDAA+F;AAC/F,8DAAmE;AACnE,wDAAqD;AAGxC,QAAA,8BAA8B,GAAG,aAAC,CAAC,SAAS,EAAE,CAAC;AAC/C,QAAA,+BAA+B,GAAG,aAAC,CAAC,MAAM,CAAC;IACvD,GAAG,EAAE,0BAAa,CAAC,MAAM,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,0BAAa,CAAC,QAAQ,CAAC,mBAAY,EAAE,QAAQ,CAAC;IACtD,IAAI,EAAE,0BAAa,CAAC,QAAQ,CAAC,iBAAU,EAAE,MAAM,CAAC;IAChD,OAAO,EAAE,0BAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,0BAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,QAAQ,EAAE,0BAAa,CAAC,MAAM,CAAC,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../utilities/enum';\nimport { DTO, ZodValidation } from '../../../utilities/validation';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { NotificationSettings } from '../PushNotificationEvent';\n\nexport const TicketActionsSocketInputSchema = z.undefined();\nexport const TicketActionsSocketOutputSchema = z.object({\n\t_id: ZodValidation.coerce.objectId(),\n\tstatus: ZodValidation.enumType(TicketStatus, 'status'),\n\ttype: ZodValidation.enumType(TicketType, 'type'),\n\tcontent: ZodValidation.string('content').optional(),\n\ttitle: ZodValidation.string('title').optional(),\n});\n\nexport const TicketActionsPushOutputSchema = z.object({\n\tticketId: ZodValidation.coerce.objectId(),\n\tstatus: ZodValidation.enumType(TicketStatus, 'status'),\n\ttype: ZodValidation.enumType(TicketType, 'type'),\n\tcontent: ZodValidation.string('content').optional(),\n\ttitle: ZodValidation.string('title').optional(),\n});\n\nexport type TicketActionsSocketOutputDTO = DTO<typeof TicketActionsSocketOutputSchema>;\nexport type TicketActionsPushOutputDTO = DTO<typeof TicketActionsPushOutputSchema>;\nexport type TicketActionsSocketInputDTO = DTO<typeof TicketActionsSocketInputSchema>;\n\nexport class TicketActionsSocketEvent extends BaseSocketEvent<\n\ttypeof TicketActionsSocketInputSchema,\n\ttypeof TicketActionsSocketOutputSchema,\n\ttypeof TicketActionsPushOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: TicketActionsSocketInputSchema,\n\t\toutput: TicketActionsSocketOutputSchema,\n\t\tpushNotificationOutput: TicketActionsPushOutputSchema,\n\t};\n\n\tpublic get notificationSettings(): NotificationSettings | undefined {\n\t\treturn {\n\t\t\tisPushNotification: true,\n\t\t\tisClickable: true,\n\t\t\tclickType: ClickType.CLICKABLE_TICKET,\n\t\t\ttitle: this.pushNotificationData?.title || 'Customer Support',\n\t\t};\n\t}\n\n\tconstructor(payload: TicketActionsSocketOutputDTO) {\n\t\tconst pushPayload: TicketActionsPushOutputDTO = {\n\t\t\tticketId: payload._id,\n\t\t\tstatus: payload.status,\n\t\t\ttype: payload.type,\n\t\t\tcontent: payload.content,\n\t\t\ttitle: payload.title,\n\t\t};\n\n\t\tsuper(SocketEventType.TICKET_ACTIONS, TicketActionsSocketEvent.schemas, payload, pushPayload);\n\t}\n\n\tpublic getPushNotificationPayload() {\n\t\treturn this.pushNotificationData;\n\t}\n\n\tprotected getIdentifier(): string {\n\t\treturn 'default';\n\t}\n}\n"]}
|
|
@@ -5,9 +5,9 @@ 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;
|
|
8
9
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
10
|
tokenType: TokenType | undefined;
|
|
10
|
-
req: import("http").IncomingMessage;
|
|
11
11
|
requestId: string | undefined;
|
|
12
12
|
entity: import("../context").EntityContext | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
@@ -4,9 +4,9 @@ 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;
|
|
7
8
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
9
|
tokenType: import("../../auth").TokenType | undefined;
|
|
9
|
-
req: import("http").IncomingMessage;
|
|
10
10
|
requestId: string | undefined;
|
|
11
11
|
entity: import("../context").EntityContext | undefined;
|
|
12
12
|
usedRefreshToken: boolean | undefined;
|
|
@@ -3,9 +3,9 @@ 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;
|
|
6
7
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
7
8
|
tokenType: import("../../auth").TokenType | undefined;
|
|
8
|
-
req: import("http").IncomingMessage;
|
|
9
9
|
requestId: string | undefined;
|
|
10
10
|
entity: import("../context").EntityContext | undefined;
|
|
11
11
|
usedRefreshToken: boolean | undefined;
|
|
@@ -5,9 +5,9 @@ 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;
|
|
8
9
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
10
|
tokenType: TokenType | undefined;
|
|
10
|
-
req: import("http").IncomingMessage;
|
|
11
11
|
requestId: string | undefined;
|
|
12
12
|
entity: import("../context").EntityContext | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -26,8 +26,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
26
26
|
searchFields?: string[] | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
sort?: Record<string, 1 | -1> | undefined;
|
|
29
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
30
29
|
populate?: any;
|
|
30
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
31
31
|
query?: Record<string, any> | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
search?: {
|
|
@@ -36,8 +36,8 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
36
36
|
} | undefined;
|
|
37
37
|
sort?: Record<string, 1 | -1> | undefined;
|
|
38
38
|
size?: number | undefined;
|
|
39
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
40
39
|
populate?: any;
|
|
40
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
41
41
|
query?: Record<string, any> | undefined;
|
|
42
42
|
page?: number | undefined;
|
|
43
43
|
}>>;
|
|
@@ -736,12 +736,12 @@ export declare const GetByIdInputSchema: z.ZodObject<{
|
|
|
736
736
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
737
737
|
}, "strip", z.ZodTypeAny, {
|
|
738
738
|
_id: import("mongoose").Types.ObjectId;
|
|
739
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
740
739
|
populate?: any;
|
|
740
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
741
741
|
}, {
|
|
742
742
|
_id: string | import("mongoose").Types.ObjectId;
|
|
743
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
744
743
|
populate?: any;
|
|
744
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
745
745
|
}>;
|
|
746
746
|
export type GetByIdInputDTO = DTO<typeof GetByIdInputSchema>;
|
|
747
747
|
export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
@@ -754,12 +754,12 @@ export declare const GetProductByIdInputSchema: z.ZodObject<{
|
|
|
754
754
|
_id: import("mongoose").Types.ObjectId;
|
|
755
755
|
withAttributeHiddenItems: boolean;
|
|
756
756
|
withAddonsHiddenItems: boolean;
|
|
757
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
758
757
|
populate?: any;
|
|
758
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
759
759
|
}, {
|
|
760
760
|
_id: string | import("mongoose").Types.ObjectId;
|
|
761
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
762
761
|
populate?: any;
|
|
762
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
763
763
|
withAttributeHiddenItems?: boolean | undefined;
|
|
764
764
|
withAddonsHiddenItems?: boolean | undefined;
|
|
765
765
|
}>;
|
|
@@ -773,15 +773,15 @@ export declare const GetOrderByIdInputSchema: z.ZodObject<{
|
|
|
773
773
|
userOrderCompletionScope: z.ZodOptional<z.ZodNativeEnum<typeof UserOrderCompletionScope>>;
|
|
774
774
|
}, "strip", z.ZodTypeAny, {
|
|
775
775
|
_id: import("mongoose").Types.ObjectId;
|
|
776
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
777
776
|
populate?: any;
|
|
777
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
778
778
|
groupByCategories?: boolean | undefined;
|
|
779
779
|
getParentCategory?: boolean | undefined;
|
|
780
780
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
781
781
|
}, {
|
|
782
782
|
_id: string | import("mongoose").Types.ObjectId;
|
|
783
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
784
783
|
populate?: any;
|
|
784
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
785
785
|
groupByCategories?: boolean | undefined;
|
|
786
786
|
getParentCategory?: boolean | undefined;
|
|
787
787
|
userOrderCompletionScope?: UserOrderCompletionScope | undefined;
|
|
@@ -791,11 +791,11 @@ export declare const GetByTokenInputSchema: z.ZodOptional<z.ZodObject<{
|
|
|
791
791
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
792
792
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
795
794
|
populate?: any;
|
|
796
|
-
}, {
|
|
797
795
|
select?: Record<string, 0 | 1> | undefined;
|
|
796
|
+
}, {
|
|
798
797
|
populate?: any;
|
|
798
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
799
799
|
}>>;
|
|
800
800
|
export type GetByTokenInputDTO = DTO<typeof GetByTokenInputSchema>;
|
|
801
801
|
export declare const GetOneQuerySchema: z.ZodObject<{
|
|
@@ -803,12 +803,12 @@ export declare const GetOneQuerySchema: z.ZodObject<{
|
|
|
803
803
|
select: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>>;
|
|
804
804
|
populate: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">]>>;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
807
806
|
populate?: any;
|
|
807
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
808
808
|
query?: Record<string, any> | undefined;
|
|
809
809
|
}, {
|
|
810
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
811
810
|
populate?: any;
|
|
811
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
812
812
|
query?: Record<string, any> | undefined;
|
|
813
813
|
}>;
|
|
814
814
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|