@lyxa.ai/core 1.4.313 → 1.4.315
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/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/libraries/configuration/index.d.ts +0 -1
- package/dist/libraries/configuration/index.js +0 -6
- package/dist/libraries/configuration/index.js.map +1 -1
- package/dist/libraries/llm/providers/openai-provider.js +5 -0
- package/dist/libraries/llm/providers/openai-provider.js.map +1 -1
- package/dist/libraries/secrets/index.d.ts +2 -0
- package/dist/libraries/secrets/index.js +29 -11
- package/dist/libraries/secrets/index.js.map +1 -1
- package/dist/libraries/socket/events/chatlist-message-send.socket.event.d.ts +24 -24
- package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +70 -70
- package/dist/libraries/socket/events/order-actions.socket.event.d.ts +96 -96
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +12 -12
- package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +13 -13
- package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +44 -44
- package/dist/libraries/trpc/middlewares/auth.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/phone-verified.d.ts +2 -2
- package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +2 -2
- 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/dist/utilities/environment/rabbitmq-environments.d.ts +2 -1
- package/dist/utilities/environment/rabbitmq-environments.js +12 -10
- package/dist/utilities/environment/rabbitmq-environments.js.map +1 -1
- package/dist/utilities/environment/redis-environments.d.ts +1 -1
- package/dist/utilities/environment/redis-environments.js +13 -10
- package/dist/utilities/environment/redis-environments.js.map +1 -1
- package/dist/utilities/pagination.d.ts +3 -3
- package/dist/utilities/validation/common-validation.d.ts +72 -72
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -13,17 +13,17 @@ export declare const TicketActionsSocketOutputSchema: z.ZodObject<{
|
|
|
13
13
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
status: TicketStatus;
|
|
16
|
-
type: TicketType;
|
|
17
16
|
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
|
|
17
|
+
type: TicketType;
|
|
19
18
|
title?: string | undefined;
|
|
19
|
+
content?: string | undefined;
|
|
20
20
|
silent?: boolean | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
status: TicketStatus;
|
|
23
|
-
type: TicketType;
|
|
24
23
|
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
|
|
24
|
+
type: TicketType;
|
|
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>;
|
|
@@ -60,17 +60,17 @@ export declare class TicketActionsSocketEvent extends BaseSocketEvent<typeof Tic
|
|
|
60
60
|
silent: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
status: TicketStatus;
|
|
63
|
-
type: TicketType;
|
|
64
63
|
_id: import("mongoose").Types.ObjectId;
|
|
65
|
-
|
|
64
|
+
type: TicketType;
|
|
66
65
|
title?: string | undefined;
|
|
66
|
+
content?: string | undefined;
|
|
67
67
|
silent?: boolean | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
status: TicketStatus;
|
|
70
|
-
type: TicketType;
|
|
71
70
|
_id: import("mongoose").Types.ObjectId;
|
|
72
|
-
|
|
71
|
+
type: TicketType;
|
|
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
|
-
_id: import("mongoose").Types.ObjectId;
|
|
18
16
|
name: string;
|
|
17
|
+
_id: import("mongoose").Types.ObjectId;
|
|
18
|
+
type: UserRef;
|
|
19
19
|
profilePhoto: string | null;
|
|
20
20
|
}, {
|
|
21
|
-
type: UserRef;
|
|
22
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
23
21
|
name: string;
|
|
22
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
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
42
|
status: TicketStatus;
|
|
43
|
-
type: TicketType;
|
|
44
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
45
|
-
_id: import("mongoose").Types.ObjectId;
|
|
46
43
|
createdAt: Date;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
type: TicketType;
|
|
47
47
|
lastMessage: {
|
|
48
|
-
content: string;
|
|
49
48
|
createdAt: Date;
|
|
49
|
+
content: string;
|
|
50
50
|
};
|
|
51
|
-
unreadCount: number;
|
|
52
51
|
client: {
|
|
53
|
-
type: UserRef;
|
|
54
|
-
_id: import("mongoose").Types.ObjectId;
|
|
55
52
|
name: string;
|
|
53
|
+
_id: import("mongoose").Types.ObjectId;
|
|
54
|
+
type: UserRef;
|
|
56
55
|
profilePhoto: string | null;
|
|
57
56
|
};
|
|
58
|
-
|
|
57
|
+
unreadCount: number;
|
|
58
|
+
chatroomId: import("mongoose").Types.ObjectId;
|
|
59
59
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
status: TicketStatus;
|
|
62
|
-
type: TicketType;
|
|
63
|
-
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
64
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
65
62
|
createdAt: string | Date;
|
|
63
|
+
updatedAt: string | Date;
|
|
64
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
65
|
+
type: TicketType;
|
|
66
66
|
lastMessage: {
|
|
67
|
-
content: string;
|
|
68
67
|
createdAt: string | Date;
|
|
68
|
+
content: string;
|
|
69
69
|
};
|
|
70
|
-
unreadCount: number;
|
|
71
70
|
client: {
|
|
72
|
-
type: UserRef;
|
|
73
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
74
71
|
name: string;
|
|
72
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
73
|
+
type: UserRef;
|
|
75
74
|
profilePhoto: string | null;
|
|
76
75
|
};
|
|
77
|
-
|
|
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
|
-
_id: import("mongoose").Types.ObjectId;
|
|
96
94
|
name: string;
|
|
95
|
+
_id: import("mongoose").Types.ObjectId;
|
|
96
|
+
type: UserRef;
|
|
97
97
|
profilePhoto: string | null;
|
|
98
98
|
}, {
|
|
99
|
-
type: UserRef;
|
|
100
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
101
99
|
name: string;
|
|
100
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
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
120
|
status: TicketStatus;
|
|
121
|
-
type: TicketType;
|
|
122
|
-
chatroomId: import("mongoose").Types.ObjectId;
|
|
123
|
-
_id: import("mongoose").Types.ObjectId;
|
|
124
121
|
createdAt: Date;
|
|
122
|
+
updatedAt: Date;
|
|
123
|
+
_id: import("mongoose").Types.ObjectId;
|
|
124
|
+
type: TicketType;
|
|
125
125
|
lastMessage: {
|
|
126
|
-
content: string;
|
|
127
126
|
createdAt: Date;
|
|
127
|
+
content: string;
|
|
128
128
|
};
|
|
129
|
-
unreadCount: number;
|
|
130
129
|
client: {
|
|
131
|
-
type: UserRef;
|
|
132
|
-
_id: import("mongoose").Types.ObjectId;
|
|
133
130
|
name: string;
|
|
131
|
+
_id: import("mongoose").Types.ObjectId;
|
|
132
|
+
type: UserRef;
|
|
134
133
|
profilePhoto: string | null;
|
|
135
134
|
};
|
|
136
|
-
|
|
135
|
+
unreadCount: number;
|
|
136
|
+
chatroomId: import("mongoose").Types.ObjectId;
|
|
137
137
|
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
138
138
|
}, {
|
|
139
139
|
status: TicketStatus;
|
|
140
|
-
type: TicketType;
|
|
141
|
-
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
142
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
143
140
|
createdAt: string | Date;
|
|
141
|
+
updatedAt: string | Date;
|
|
142
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
143
|
+
type: TicketType;
|
|
144
144
|
lastMessage: {
|
|
145
|
-
content: string;
|
|
146
145
|
createdAt: string | Date;
|
|
146
|
+
content: string;
|
|
147
147
|
};
|
|
148
|
-
unreadCount: number;
|
|
149
148
|
client: {
|
|
150
|
-
type: UserRef;
|
|
151
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
152
149
|
name: string;
|
|
150
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
151
|
+
type: UserRef;
|
|
153
152
|
profilePhoto: string | null;
|
|
154
153
|
};
|
|
155
|
-
|
|
154
|
+
unreadCount: number;
|
|
155
|
+
chatroomId: string | import("mongoose").Types.ObjectId;
|
|
156
156
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
157
157
|
}>;
|
|
158
158
|
};
|
|
@@ -5,10 +5,10 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
+
requestId: string | undefined;
|
|
9
|
+
entity: import("../context").EntityContext | undefined;
|
|
8
10
|
req: import("http").IncomingMessage;
|
|
9
11
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
|
-
entity: import("../context").EntityContext | undefined;
|
|
11
|
-
requestId: string | undefined;
|
|
12
12
|
tokenType: TokenType | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
14
14
|
tokenRenewed: boolean | undefined;
|
|
@@ -4,10 +4,10 @@ interface RoleProtectedOptions {
|
|
|
4
4
|
allowedRoles: string[];
|
|
5
5
|
}
|
|
6
6
|
export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
7
|
+
requestId: string | undefined;
|
|
8
|
+
entity: import("../context").EntityContext | undefined;
|
|
7
9
|
req: import("http").IncomingMessage;
|
|
8
10
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
9
|
-
entity: import("../context").EntityContext | undefined;
|
|
10
|
-
requestId: string | undefined;
|
|
11
11
|
tokenType: import("../../auth").TokenType | undefined;
|
|
12
12
|
usedRefreshToken: boolean | undefined;
|
|
13
13
|
tokenRenewed: boolean | undefined;
|
|
@@ -3,10 +3,10 @@ interface PhoneVerifiedOptions {
|
|
|
3
3
|
entityTypes: AuthEntityType[];
|
|
4
4
|
}
|
|
5
5
|
export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
6
|
+
requestId: string | undefined;
|
|
7
|
+
entity: import("../context").EntityContext | undefined;
|
|
6
8
|
req: import("http").IncomingMessage;
|
|
7
9
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
8
|
-
entity: import("../context").EntityContext | undefined;
|
|
9
|
-
requestId: string | undefined;
|
|
10
10
|
tokenType: import("../../auth").TokenType | undefined;
|
|
11
11
|
usedRefreshToken: boolean | undefined;
|
|
12
12
|
tokenRenewed: boolean | undefined;
|
|
@@ -5,10 +5,10 @@ interface AuthOptions {
|
|
|
5
5
|
autoRefresh?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
|
|
8
|
+
requestId: string | undefined;
|
|
9
|
+
entity: import("../context").EntityContext | undefined;
|
|
8
10
|
req: import("http").IncomingMessage;
|
|
9
11
|
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
10
|
-
entity: import("../context").EntityContext | undefined;
|
|
11
|
-
requestId: string | undefined;
|
|
12
12
|
tokenType: TokenType | undefined;
|
|
13
13
|
usedRefreshToken: boolean | undefined;
|
|
14
14
|
tokenRenewed: boolean | undefined;
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -22,24 +22,24 @@ export declare const FilterSchema: z.ZodOptional<z.ZodObject<{
|
|
|
22
22
|
size: number;
|
|
23
23
|
page: number;
|
|
24
24
|
sort?: Record<string, 1 | -1> | undefined;
|
|
25
|
-
query?: Record<string, any> | undefined;
|
|
26
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
27
|
-
populate?: any;
|
|
28
25
|
search?: {
|
|
29
26
|
searchKey: string;
|
|
30
27
|
searchFields?: string[] | undefined;
|
|
31
28
|
} | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
size?: number | undefined;
|
|
34
|
-
page?: number | undefined;
|
|
35
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
36
|
-
query?: Record<string, any> | undefined;
|
|
37
29
|
select?: Record<string, 0 | 1> | undefined;
|
|
38
30
|
populate?: any;
|
|
31
|
+
query?: Record<string, any> | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
39
34
|
search?: {
|
|
40
35
|
searchKey: string;
|
|
41
36
|
searchFields?: string[] | undefined;
|
|
42
37
|
} | undefined;
|
|
38
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
39
|
+
populate?: any;
|
|
40
|
+
size?: number | undefined;
|
|
41
|
+
page?: number | undefined;
|
|
42
|
+
query?: Record<string, any> | undefined;
|
|
43
43
|
}>>;
|
|
44
44
|
export type FilterDTO = z.infer<typeof FilterSchema>;
|
|
45
45
|
export declare const StringSchema: z.ZodString;
|
|
@@ -181,6 +181,7 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
181
181
|
} & {
|
|
182
182
|
_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>]>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
_id: import("mongoose").Types.ObjectId;
|
|
184
185
|
address: string;
|
|
185
186
|
country: string;
|
|
186
187
|
location: {
|
|
@@ -192,7 +193,6 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
192
193
|
addressLabel: string;
|
|
193
194
|
apartment: string;
|
|
194
195
|
buildingName: string;
|
|
195
|
-
_id: import("mongoose").Types.ObjectId;
|
|
196
196
|
description?: string | undefined;
|
|
197
197
|
city?: string | undefined;
|
|
198
198
|
state?: string | undefined;
|
|
@@ -200,6 +200,7 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
200
200
|
deliveryOption?: string | undefined;
|
|
201
201
|
instructions?: string | undefined;
|
|
202
202
|
}, {
|
|
203
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
203
204
|
address: string;
|
|
204
205
|
country: string;
|
|
205
206
|
location: {
|
|
@@ -211,7 +212,6 @@ export declare const RegularOrderAddressSchema: z.ZodObject<{
|
|
|
211
212
|
addressLabel: string;
|
|
212
213
|
apartment: string;
|
|
213
214
|
buildingName: string;
|
|
214
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
215
215
|
description?: string | undefined;
|
|
216
216
|
city?: string | undefined;
|
|
217
217
|
state?: string | undefined;
|
|
@@ -803,13 +803,13 @@ 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
|
-
query?: Record<string, any> | undefined;
|
|
807
806
|
select?: Record<string, 0 | 1> | undefined;
|
|
808
807
|
populate?: any;
|
|
809
|
-
}, {
|
|
810
808
|
query?: Record<string, any> | undefined;
|
|
809
|
+
}, {
|
|
811
810
|
select?: Record<string, 0 | 1> | undefined;
|
|
812
811
|
populate?: any;
|
|
812
|
+
query?: Record<string, any> | undefined;
|
|
813
813
|
}>;
|
|
814
814
|
export type GetOneQueryDTO = DTO<typeof GetOneQuerySchema>;
|
|
815
815
|
declare const ShareableLinkSchema: z.ZodObject<{
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { EnvironmentConfigurationType } from '../../libraries/configuration/types/EnvironmentConfigurationType';
|
|
2
|
-
|
|
2
|
+
import { SecretManagerService } from '../../libraries/secrets';
|
|
3
|
+
export declare function getRabbitMQUrl(environment: EnvironmentConfigurationType, secretManagerService: SecretManagerService): Promise<string>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getRabbitMQUrl = getRabbitMQUrl;
|
|
4
4
|
const EnvironmentConfigurationType_1 = require("../../libraries/configuration/types/EnvironmentConfigurationType");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
const LOCAL_ENVIRONMENTS = new Set([
|
|
6
|
+
EnvironmentConfigurationType_1.EnvironmentConfigurationType.LOCAL,
|
|
7
|
+
EnvironmentConfigurationType_1.EnvironmentConfigurationType.MOCK,
|
|
8
|
+
]);
|
|
9
|
+
async function getRabbitMQUrl(environment, secretManagerService) {
|
|
10
|
+
if (LOCAL_ENVIRONMENTS.has(environment)) {
|
|
11
|
+
return '';
|
|
12
|
+
}
|
|
13
|
+
const rabbitMQUrl = await secretManagerService.getKey('RABBITMQ_URL');
|
|
14
|
+
return rabbitMQUrl ?? '';
|
|
15
|
+
}
|
|
14
16
|
//# sourceMappingURL=rabbitmq-environments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rabbitmq-environments.js","sourceRoot":"/","sources":["utilities/environment/rabbitmq-environments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rabbitmq-environments.js","sourceRoot":"/","sources":["utilities/environment/rabbitmq-environments.ts"],"names":[],"mappings":";;AAQA,wCAWC;AAnBD,mHAAgH;AAGhH,MAAM,kBAAkB,GAA8C,IAAI,GAAG,CAAC;IAC7E,2DAA4B,CAAC,KAAK;IAClC,2DAA4B,CAAC,IAAI;CACjC,CAAC,CAAC;AAEI,KAAK,UAAU,cAAc,CACnC,WAAyC,EACzC,oBAA0C;IAE1C,IAAI,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,MAAM,WAAW,GAAG,MAAM,oBAAoB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAEtE,OAAO,WAAW,IAAI,EAAE,CAAC;AAC1B,CAAC","sourcesContent":["import { EnvironmentConfigurationType } from '../../libraries/configuration/types/EnvironmentConfigurationType';\nimport { SecretManagerService } from '../../libraries/secrets';\n\nconst LOCAL_ENVIRONMENTS: ReadonlySet<EnvironmentConfigurationType> = new Set([\n\tEnvironmentConfigurationType.LOCAL,\n\tEnvironmentConfigurationType.MOCK,\n]);\n\nexport async function getRabbitMQUrl(\n\tenvironment: EnvironmentConfigurationType,\n\tsecretManagerService: SecretManagerService\n): Promise<string> {\n\tif (LOCAL_ENVIRONMENTS.has(environment)) {\n\t\treturn '';\n\t}\n\n\tconst rabbitMQUrl = await secretManagerService.getKey('RABBITMQ_URL');\n\n\treturn rabbitMQUrl ?? '';\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { EnvironmentConfigurationType } from '../../libraries/configuration/types/EnvironmentConfigurationType';
|
|
2
|
-
export declare
|
|
2
|
+
export declare function getRedisUrl(environment: EnvironmentConfigurationType): Promise<string>;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getRedisUrl = getRedisUrl;
|
|
4
4
|
const EnvironmentConfigurationType_1 = require("../../libraries/configuration/types/EnvironmentConfigurationType");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
5
|
+
const secrets_1 = require("../../libraries/secrets");
|
|
6
|
+
const LOCAL_ENVIRONMENTS = new Set([
|
|
7
|
+
EnvironmentConfigurationType_1.EnvironmentConfigurationType.LOCAL,
|
|
8
|
+
EnvironmentConfigurationType_1.EnvironmentConfigurationType.MOCK,
|
|
9
|
+
]);
|
|
10
|
+
async function getRedisUrl(environment) {
|
|
11
|
+
if (LOCAL_ENVIRONMENTS.has(environment)) {
|
|
12
|
+
return '';
|
|
13
|
+
}
|
|
14
|
+
const redisUrl = await (0, secrets_1.fetchSecretDirect)(environment, 'REDIS_URL');
|
|
15
|
+
return redisUrl ?? '';
|
|
16
|
+
}
|
|
14
17
|
//# sourceMappingURL=redis-environments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-environments.js","sourceRoot":"/","sources":["utilities/environment/redis-environments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis-environments.js","sourceRoot":"/","sources":["utilities/environment/redis-environments.ts"],"names":[],"mappings":";;AAQA,kCAQC;AAhBD,mHAAgH;AAChH,qDAA4D;AAE5D,MAAM,kBAAkB,GAA8C,IAAI,GAAG,CAAC;IAC7E,2DAA4B,CAAC,KAAK;IAClC,2DAA4B,CAAC,IAAI;CACjC,CAAC,CAAC;AAEI,KAAK,UAAU,WAAW,CAAC,WAAyC;IAC1E,IAAI,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,IAAA,2BAAiB,EAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEnE,OAAO,QAAQ,IAAI,EAAE,CAAC;AACvB,CAAC","sourcesContent":["import { EnvironmentConfigurationType } from '../../libraries/configuration/types/EnvironmentConfigurationType';\nimport { fetchSecretDirect } from '../../libraries/secrets';\n\nconst LOCAL_ENVIRONMENTS: ReadonlySet<EnvironmentConfigurationType> = new Set([\n\tEnvironmentConfigurationType.LOCAL,\n\tEnvironmentConfigurationType.MOCK,\n]);\n\nexport async function getRedisUrl(environment: EnvironmentConfigurationType): Promise<string> {\n\tif (LOCAL_ENVIRONMENTS.has(environment)) {\n\t\treturn '';\n\t}\n\n\tconst redisUrl = await fetchSecretDirect(environment, 'REDIS_URL');\n\n\treturn redisUrl ?? '';\n}\n"]}
|
|
@@ -22,6 +22,7 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
|
|
|
22
22
|
}, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>, z.ZodNull]>, z.ZodUndefined]>, "strip">>;
|
|
23
23
|
items: z.ZodArray<ItemType, "many">;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
items: ItemType["_output"][];
|
|
25
26
|
metadata: {
|
|
26
27
|
size: number;
|
|
27
28
|
page: number;
|
|
@@ -30,8 +31,8 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
|
|
|
30
31
|
} & {
|
|
31
32
|
[k: string]: string | number | boolean | null | undefined;
|
|
32
33
|
};
|
|
33
|
-
items: ItemType["_output"][];
|
|
34
34
|
}, {
|
|
35
|
+
items: ItemType["_input"][];
|
|
35
36
|
metadata: {
|
|
36
37
|
size: number;
|
|
37
38
|
page: number;
|
|
@@ -40,7 +41,6 @@ export declare function createPaginatedSchema<ItemType extends z.ZodTypeAny>(ite
|
|
|
40
41
|
} & {
|
|
41
42
|
[k: string]: string | number | boolean | null | undefined;
|
|
42
43
|
};
|
|
43
|
-
items: ItemType["_input"][];
|
|
44
44
|
}>;
|
|
45
45
|
export interface RawPaginatedResult<T extends AnyParamConstructor<any>> {
|
|
46
46
|
metadata: {
|
|
@@ -62,6 +62,7 @@ export interface PaginatorOptions<TClass extends AnyParamConstructor<any>> {
|
|
|
62
62
|
}
|
|
63
63
|
export declare function createRawDocumentPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>): (options: PaginatorOptions<T>) => Promise<RawPaginatedResult<T>>;
|
|
64
64
|
export declare function createPaginatorObject<T extends AnyParamConstructor<any>>(model: ReturnModelType<T>, itemSchema: z.ZodTypeAny, transformFn?: (doc: DocumentType<T>) => z.infer<typeof itemSchema>): (options: PaginatorOptions<T>) => Promise<{
|
|
65
|
+
items: any[];
|
|
65
66
|
metadata: {
|
|
66
67
|
size: number;
|
|
67
68
|
page: number;
|
|
@@ -70,7 +71,6 @@ export declare function createPaginatorObject<T extends AnyParamConstructor<any>
|
|
|
70
71
|
} & {
|
|
71
72
|
[k: string]: string | number | boolean | null | undefined;
|
|
72
73
|
};
|
|
73
|
-
items: any[];
|
|
74
74
|
}>;
|
|
75
75
|
export declare function paginateAggregation(model: any, pipeline: any[], page?: number, size?: number, sort?: any, populateOptions?: any): Promise<{
|
|
76
76
|
metadata: {
|