@lyxa.ai/core 1.1.109 → 1.1.111
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/index.d.ts +6 -1
- package/dist/libraries/socket/events/index.js +6 -1
- package/dist/libraries/socket/events/index.js.map +1 -1
- 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
|
@@ -254,14 +254,17 @@ export declare const REGISTRY: {
|
|
|
254
254
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
255
255
|
}>;
|
|
256
256
|
output: import("zod").ZodObject<{
|
|
257
|
+
_id: 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>]>;
|
|
257
258
|
latitude: import("zod").ZodNumber;
|
|
258
259
|
longitude: import("zod").ZodNumber;
|
|
259
260
|
updatedAt: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
260
261
|
}, "strip", import("zod").ZodTypeAny, {
|
|
262
|
+
_id: import("mongoose").Types.ObjectId;
|
|
261
263
|
updatedAt: Date;
|
|
262
264
|
latitude: number;
|
|
263
265
|
longitude: number;
|
|
264
266
|
}, {
|
|
267
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
265
268
|
updatedAt: string | Date;
|
|
266
269
|
latitude: number;
|
|
267
270
|
longitude: number;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export * from './chatroom-message-send.socket.event';
|
|
2
1
|
export * from './chatlist-message-send.socket.event';
|
|
2
|
+
export * from './chatroom-message-send.socket.event';
|
|
3
|
+
export * from './notification.socket.event';
|
|
4
|
+
export * from './rider-connect.socket.event';
|
|
5
|
+
export * from './rider-location-update.socket.event';
|
|
6
|
+
export * from './ticket-assign.socket.event';
|
|
7
|
+
export * from './ticket-unassign.socket.event';
|
|
@@ -14,6 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./chatroom-message-send.socket.event"), exports);
|
|
18
17
|
__exportStar(require("./chatlist-message-send.socket.event"), exports);
|
|
18
|
+
__exportStar(require("./chatroom-message-send.socket.event"), exports);
|
|
19
|
+
__exportStar(require("./notification.socket.event"), exports);
|
|
20
|
+
__exportStar(require("./rider-connect.socket.event"), exports);
|
|
21
|
+
__exportStar(require("./rider-location-update.socket.event"), exports);
|
|
22
|
+
__exportStar(require("./ticket-assign.socket.event"), exports);
|
|
23
|
+
__exportStar(require("./ticket-unassign.socket.event"), exports);
|
|
19
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/socket/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,uEAAqD","sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["libraries/socket/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,uEAAqD;AACrD,8DAA4C;AAC5C,+DAA6C;AAC7C,uEAAqD;AACrD,+DAA6C;AAC7C,iEAA+C","sourcesContent":["export * from './chatlist-message-send.socket.event';\nexport * from './chatroom-message-send.socket.event';\nexport * from './notification.socket.event';\nexport * from './rider-connect.socket.event';\nexport * from './rider-location-update.socket.event';\nexport * from './ticket-assign.socket.event';\nexport * from './ticket-unassign.socket.event';\n"]}
|
|
@@ -12,14 +12,17 @@ export declare const RiderLocationUpdateSocketInputSchema: z.ZodObject<{
|
|
|
12
12
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const RiderLocationUpdateSocketOutputSchema: z.ZodObject<{
|
|
15
|
+
_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>]>;
|
|
15
16
|
latitude: z.ZodNumber;
|
|
16
17
|
longitude: z.ZodNumber;
|
|
17
18
|
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>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
_id: import("mongoose").Types.ObjectId;
|
|
19
21
|
updatedAt: Date;
|
|
20
22
|
latitude: number;
|
|
21
23
|
longitude: number;
|
|
22
24
|
}, {
|
|
25
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
23
26
|
updatedAt: string | Date;
|
|
24
27
|
latitude: number;
|
|
25
28
|
longitude: number;
|
|
@@ -39,14 +42,17 @@ export declare class RiderLocationUpdateSocketEvent extends BaseSocketEvent<type
|
|
|
39
42
|
orderId?: string | import("mongoose").Types.ObjectId | undefined;
|
|
40
43
|
}>;
|
|
41
44
|
output: z.ZodObject<{
|
|
45
|
+
_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>]>;
|
|
42
46
|
latitude: z.ZodNumber;
|
|
43
47
|
longitude: z.ZodNumber;
|
|
44
48
|
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>;
|
|
45
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
51
|
updatedAt: Date;
|
|
47
52
|
latitude: number;
|
|
48
53
|
longitude: number;
|
|
49
54
|
}, {
|
|
55
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
50
56
|
updatedAt: string | Date;
|
|
51
57
|
latitude: number;
|
|
52
58
|
longitude: number;
|
|
@@ -13,6 +13,7 @@ exports.RiderLocationUpdateSocketInputSchema = zod_1.default.object({
|
|
|
13
13
|
orderId: validation_1.ZodValidation.objectId('orderId').optional(),
|
|
14
14
|
});
|
|
15
15
|
exports.RiderLocationUpdateSocketOutputSchema = zod_1.default.object({
|
|
16
|
+
_id: validation_1.IdSchema,
|
|
16
17
|
latitude: validation_1.ZodValidation.number('latitude'),
|
|
17
18
|
longitude: validation_1.ZodValidation.number('longitude'),
|
|
18
19
|
updatedAt: validation_1.ZodValidation.date('updatedAt'),
|
|
@@ -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,
|
|
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,8DAA6E;AAC7E,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,GAAG,EAAE,qBAAQ;IACb,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, IdSchema, 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\t_id: IdSchema,\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