@lyxa.ai/core 1.4.316 → 1.4.318

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.
Files changed (32) hide show
  1. package/dist/index.js +2 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/libraries/google-location/google-location.client.d.ts +7 -0
  4. package/dist/libraries/google-location/google-location.client.js +44 -0
  5. package/dist/libraries/google-location/google-location.client.js.map +1 -0
  6. package/dist/libraries/google-location/google-location.dto.d.ts +103 -0
  7. package/dist/libraries/google-location/google-location.dto.js +3 -0
  8. package/dist/libraries/google-location/google-location.dto.js.map +1 -0
  9. package/dist/libraries/google-location/google-location.service.d.ts +15 -0
  10. package/dist/libraries/google-location/google-location.service.js +181 -0
  11. package/dist/libraries/google-location/google-location.service.js.map +1 -0
  12. package/dist/libraries/google-location/index.d.ts +1 -0
  13. package/dist/libraries/google-location/index.js +18 -0
  14. package/dist/libraries/google-location/index.js.map +1 -0
  15. package/dist/libraries/index.d.ts +2 -0
  16. package/dist/libraries/index.js +4 -0
  17. package/dist/libraries/index.js.map +1 -1
  18. package/dist/libraries/map/providers/osrm.d.ts +1 -1
  19. package/dist/libraries/map/providers/osrm.js +3 -2
  20. package/dist/libraries/map/providers/osrm.js.map +1 -1
  21. package/dist/libraries/socket/events/chatroom-message-send.socket.event.d.ts +33 -33
  22. package/dist/libraries/socket/events/order-actions.socket.event.d.ts +20 -20
  23. package/dist/libraries/socket/events/rider-location-update.socket.event.d.ts +8 -8
  24. package/dist/libraries/socket/events/ticket-actions.socket.event.d.ts +8 -8
  25. package/dist/libraries/socket/events/ticket-assign.socket.event.d.ts +40 -40
  26. package/dist/libraries/trpc/middlewares/auth.d.ts +2 -2
  27. package/dist/libraries/trpc/middlewares/createRoleProtectedProcedure.d.ts +2 -2
  28. package/dist/libraries/trpc/middlewares/phone-verified.d.ts +2 -2
  29. package/dist/libraries/trpc/middlewares/publicUserDecoder.d.ts +2 -2
  30. package/dist/types/README.md +1 -1
  31. package/dist/types/package.json +1 -1
  32. package/package.json +1 -1
@@ -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;
16
17
  _id: import("mongoose").Types.ObjectId;
17
18
  name: string;
18
- type: UserRef;
19
19
  profilePhoto: string | null;
20
20
  }, {
21
+ type: UserRef;
21
22
  _id: string | import("mongoose").Types.ObjectId;
22
23
  name: string;
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>;
@@ -39,41 +39,41 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
39
39
  }>;
40
40
  unreadCount: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
- createdAt: Date;
43
- updatedAt: Date;
44
- _id: import("mongoose").Types.ObjectId;
45
42
  status: TicketStatus;
46
43
  type: TicketType;
47
- client: {
48
- _id: import("mongoose").Types.ObjectId;
49
- name: string;
50
- type: UserRef;
51
- profilePhoto: string | null;
52
- };
44
+ _id: import("mongoose").Types.ObjectId;
45
+ createdAt: Date;
46
+ updatedAt: Date;
53
47
  lastMessage: {
54
48
  createdAt: Date;
55
49
  content: string;
56
50
  };
57
51
  unreadCount: number;
52
+ client: {
53
+ type: UserRef;
54
+ _id: import("mongoose").Types.ObjectId;
55
+ name: string;
56
+ profilePhoto: string | null;
57
+ };
58
58
  chatroomId: import("mongoose").Types.ObjectId;
59
59
  orderId?: import("mongoose").Types.ObjectId | undefined;
60
60
  }, {
61
- createdAt: string | Date;
62
- updatedAt: string | Date;
63
- _id: string | import("mongoose").Types.ObjectId;
64
61
  status: TicketStatus;
65
62
  type: TicketType;
66
- client: {
67
- _id: string | import("mongoose").Types.ObjectId;
68
- name: string;
69
- type: UserRef;
70
- profilePhoto: string | null;
71
- };
63
+ _id: string | import("mongoose").Types.ObjectId;
64
+ createdAt: string | Date;
65
+ updatedAt: string | Date;
72
66
  lastMessage: {
73
67
  createdAt: string | Date;
74
68
  content: string;
75
69
  };
76
70
  unreadCount: number;
71
+ client: {
72
+ type: UserRef;
73
+ _id: string | import("mongoose").Types.ObjectId;
74
+ name: string;
75
+ profilePhoto: string | null;
76
+ };
77
77
  chatroomId: string | import("mongoose").Types.ObjectId;
78
78
  orderId?: string | import("mongoose").Types.ObjectId | undefined;
79
79
  }>;
@@ -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;
94
95
  _id: import("mongoose").Types.ObjectId;
95
96
  name: string;
96
- type: UserRef;
97
97
  profilePhoto: string | null;
98
98
  }, {
99
+ type: UserRef;
99
100
  _id: string | import("mongoose").Types.ObjectId;
100
101
  name: string;
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>;
@@ -117,41 +117,41 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
117
117
  }>;
118
118
  unreadCount: z.ZodNumber;
119
119
  }, "strip", z.ZodTypeAny, {
120
- createdAt: Date;
121
- updatedAt: Date;
122
- _id: import("mongoose").Types.ObjectId;
123
120
  status: TicketStatus;
124
121
  type: TicketType;
125
- client: {
126
- _id: import("mongoose").Types.ObjectId;
127
- name: string;
128
- type: UserRef;
129
- profilePhoto: string | null;
130
- };
122
+ _id: import("mongoose").Types.ObjectId;
123
+ createdAt: Date;
124
+ updatedAt: Date;
131
125
  lastMessage: {
132
126
  createdAt: Date;
133
127
  content: string;
134
128
  };
135
129
  unreadCount: number;
130
+ client: {
131
+ type: UserRef;
132
+ _id: import("mongoose").Types.ObjectId;
133
+ name: string;
134
+ profilePhoto: string | null;
135
+ };
136
136
  chatroomId: import("mongoose").Types.ObjectId;
137
137
  orderId?: import("mongoose").Types.ObjectId | undefined;
138
138
  }, {
139
- createdAt: string | Date;
140
- updatedAt: string | Date;
141
- _id: string | import("mongoose").Types.ObjectId;
142
139
  status: TicketStatus;
143
140
  type: TicketType;
144
- client: {
145
- _id: string | import("mongoose").Types.ObjectId;
146
- name: string;
147
- type: UserRef;
148
- profilePhoto: string | null;
149
- };
141
+ _id: string | import("mongoose").Types.ObjectId;
142
+ createdAt: string | Date;
143
+ updatedAt: string | Date;
150
144
  lastMessage: {
151
145
  createdAt: string | Date;
152
146
  content: string;
153
147
  };
154
148
  unreadCount: number;
149
+ client: {
150
+ type: UserRef;
151
+ _id: string | import("mongoose").Types.ObjectId;
152
+ name: string;
153
+ profilePhoto: string | null;
154
+ };
155
155
  chatroomId: string | import("mongoose").Types.ObjectId;
156
156
  orderId?: string | import("mongoose").Types.ObjectId | undefined;
157
157
  }>;
@@ -5,12 +5,12 @@ 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
- entity: import("../context").EntityContext | undefined;
9
8
  requestId: string | undefined;
9
+ entity: import("../context").EntityContext | undefined;
10
10
  req: import("http").IncomingMessage;
11
11
  res: import("http").ServerResponse<import("http").IncomingMessage>;
12
+ tokenType: TokenType | undefined;
12
13
  usedRefreshToken: boolean | undefined;
13
14
  tokenRenewed: boolean | undefined;
14
- tokenType: TokenType | undefined;
15
15
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
16
16
  export {};
@@ -4,12 +4,12 @@ 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
- entity: import("../context").EntityContext | undefined;
8
7
  requestId: string | undefined;
8
+ entity: import("../context").EntityContext | undefined;
9
9
  req: import("http").IncomingMessage;
10
10
  res: import("http").ServerResponse<import("http").IncomingMessage>;
11
+ tokenType: import("../../auth").TokenType | undefined;
11
12
  usedRefreshToken: boolean | undefined;
12
13
  tokenRenewed: boolean | undefined;
13
- tokenType: import("../../auth").TokenType | undefined;
14
14
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
15
15
  export {};
@@ -3,12 +3,12 @@ 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
- entity: import("../context").EntityContext | undefined;
7
6
  requestId: string | undefined;
7
+ entity: import("../context").EntityContext | undefined;
8
8
  req: import("http").IncomingMessage;
9
9
  res: import("http").ServerResponse<import("http").IncomingMessage>;
10
+ tokenType: import("../../auth").TokenType | undefined;
10
11
  usedRefreshToken: boolean | undefined;
11
12
  tokenRenewed: boolean | undefined;
12
- tokenType: import("../../auth").TokenType | undefined;
13
13
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
14
14
  export {};
@@ -5,12 +5,12 @@ 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
- entity: import("../context").EntityContext | undefined;
9
8
  requestId: string | undefined;
9
+ entity: import("../context").EntityContext | undefined;
10
10
  req: import("http").IncomingMessage;
11
11
  res: import("http").ServerResponse<import("http").IncomingMessage>;
12
+ tokenType: TokenType | undefined;
12
13
  usedRefreshToken: boolean | undefined;
13
14
  tokenRenewed: boolean | undefined;
14
- tokenType: TokenType | undefined;
15
15
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
16
16
  export {};
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.316
25
+ Version: 1.4.318
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.316",
3
+ "version": "1.4.318",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.4.316",
3
+ "version": "1.4.318",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",