@lyxa.ai/core 1.1.108 → 1.1.109
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/socket/core/socket-event-registry.map.d.ts +3 -0
- package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +6 -0
- package/dist/libraries/socket/events/rider-location-update.socket.event.js +1 -0
- package/dist/libraries/socket/events/rider-location-update.socket.event.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -245,10 +245,13 @@ export declare const REGISTRY: {
|
|
|
245
245
|
readonly schemas: {
|
|
246
246
|
input: import("zod").ZodObject<{
|
|
247
247
|
riderId: 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>]>;
|
|
248
|
+
orderId: import("zod").ZodOptional<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>]>>;
|
|
248
249
|
}, "strip", import("zod").ZodTypeAny, {
|
|
249
250
|
riderId: import("mongoose").Types.ObjectId;
|
|
251
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
250
252
|
}, {
|
|
251
253
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
254
|
+
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
252
255
|
}>;
|
|
253
256
|
output: import("zod").ZodObject<{
|
|
254
257
|
latitude: import("zod").ZodNumber;
|
|
@@ -3,10 +3,13 @@ import { BaseSocketEvent } from '../BaseSocketEvent';
|
|
|
3
3
|
import { DTO } from '../../../utilities/validation';
|
|
4
4
|
export declare const RiderLocationUpdateSocketInputSchema: z.ZodObject<{
|
|
5
5
|
riderId: 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>]>;
|
|
6
|
+
orderId: z.ZodOptional<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>]>>;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
riderId: import("mongoose").Types.ObjectId;
|
|
9
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
8
10
|
}, {
|
|
9
11
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
12
|
+
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
10
13
|
}>;
|
|
11
14
|
export declare const RiderLocationUpdateSocketOutputSchema: z.ZodObject<{
|
|
12
15
|
latitude: z.ZodNumber;
|
|
@@ -27,10 +30,13 @@ export declare class RiderLocationUpdateSocketEvent extends BaseSocketEvent<type
|
|
|
27
30
|
static readonly schemas: {
|
|
28
31
|
input: z.ZodObject<{
|
|
29
32
|
riderId: 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>]>;
|
|
33
|
+
orderId: z.ZodOptional<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>]>>;
|
|
30
34
|
}, "strip", z.ZodTypeAny, {
|
|
31
35
|
riderId: import("mongoose").Types.ObjectId;
|
|
36
|
+
orderId?: import("mongoose").Types.ObjectId | undefined;
|
|
32
37
|
}, {
|
|
33
38
|
riderId: string | import("mongoose").Types.ObjectId;
|
|
39
|
+
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
34
40
|
}>;
|
|
35
41
|
output: z.ZodObject<{
|
|
36
42
|
latitude: z.ZodNumber;
|
|
@@ -10,6 +10,7 @@ const validation_1 = require("../../../utilities/validation");
|
|
|
10
10
|
const enum_1 = require("../../../utilities/enum");
|
|
11
11
|
exports.RiderLocationUpdateSocketInputSchema = zod_1.default.object({
|
|
12
12
|
riderId: validation_1.ZodValidation.objectId('riderId'),
|
|
13
|
+
orderId: validation_1.ZodValidation.objectId('orderId').optional(),
|
|
13
14
|
});
|
|
14
15
|
exports.RiderLocationUpdateSocketOutputSchema = zod_1.default.object({
|
|
15
16
|
latitude: validation_1.ZodValidation.number('latitude'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rider-location-update.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/rider-location-update.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,wDAAqD;AACrD,8DAAmE;AACnE,kDAA0D;AAE7C,QAAA,oCAAoC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5D,OAAO,EAAE,0BAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"rider-location-update.socket.event.js","sourceRoot":"/","sources":["libraries/socket/events/rider-location-update.socket.event.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,wDAAqD;AACrD,8DAAmE;AACnE,kDAA0D;AAE7C,QAAA,oCAAoC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC5D,OAAO,EAAE,0BAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC1C,OAAO,EAAE,0BAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC;AAEU,QAAA,qCAAqC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7D,QAAQ,EAAE,0BAAa,CAAC,MAAM,CAAC,UAAU,CAAC;IAC1C,SAAS,EAAE,0BAAa,CAAC,MAAM,CAAC,WAAW,CAAC;IAC5C,SAAS,EAAE,0BAAa,CAAC,IAAI,CAAC,WAAW,CAAC;CAC1C,CAAC,CAAC;AAKH,MAAa,8BAA+B,SAAQ,iCAGnD;IACA,MAAM,CAAU,OAAO,GAAG;QACzB,KAAK,EAAE,4CAAoC;QAC3C,MAAM,EAAE,6CAAqC;KAC7C,CAAC;IAEF,YAAY,OAA2C;QACtD,KAAK,CAAC,sBAAe,CAAC,qBAAqB,EAAE,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAA2D;QAC5E,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;;AAfF,wEAgBC","sourcesContent":["import z from 'zod';\nimport { BaseSocketEvent } from '../BaseSocketEvent';\nimport { DTO, ZodValidation } from '../../../utilities/validation';\nimport { SocketEventType } from '../../../utilities/enum';\n\nexport const RiderLocationUpdateSocketInputSchema = z.object({\n\triderId: ZodValidation.objectId('riderId'),\n\torderId: ZodValidation.objectId('orderId').optional(),\n});\n\nexport const RiderLocationUpdateSocketOutputSchema = z.object({\n\tlatitude: ZodValidation.number('latitude'),\n\tlongitude: ZodValidation.number('longitude'),\n\tupdatedAt: ZodValidation.date('updatedAt'),\n});\n\nexport type RiderLocationUpdateSocketInputDTO = DTO<typeof RiderLocationUpdateSocketInputSchema>;\nexport type RiderLocationUpdateSocketOutputDTO = DTO<typeof RiderLocationUpdateSocketOutputSchema>;\n\nexport class RiderLocationUpdateSocketEvent extends BaseSocketEvent<\n\ttypeof RiderLocationUpdateSocketInputSchema,\n\ttypeof RiderLocationUpdateSocketOutputSchema\n> {\n\tstatic readonly schemas = {\n\t\tinput: RiderLocationUpdateSocketInputSchema,\n\t\toutput: RiderLocationUpdateSocketOutputSchema,\n\t};\n\n\tconstructor(payload: RiderLocationUpdateSocketOutputDTO) {\n\t\tsuper(SocketEventType.RIDER_LOCATION_UPDATE, RiderLocationUpdateSocketEvent.schemas, payload);\n\t}\n\n\tstatic identifier(input: z.infer<typeof RiderLocationUpdateSocketInputSchema>): string {\n\t\treturn input.riderId.toString();\n\t}\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED