@lyxa.ai/core 1.0.198 → 1.0.199

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.
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.0.198
25
+ Version: 1.0.199
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.0.198",
3
+ "version": "1.0.199",
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",
@@ -1 +1,3 @@
1
- export {};
1
+ import { CourierOrderStatus, RegularOrderStatus } from "./enum";
2
+ export declare const REGULAR_ORDER_STATUS_MAP: Record<RegularOrderStatus, number>;
3
+ export declare const COURIER_ORDER_STATUS_MAP: Record<CourierOrderStatus, number>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COURIER_ORDER_STATUS_MAP = exports.REGULAR_ORDER_STATUS_MAP = void 0;
3
4
  const enum_1 = require("./enum");
4
- const REGULAR_ORDER_STATUS_MAP = {
5
+ exports.REGULAR_ORDER_STATUS_MAP = {
5
6
  [enum_1.RegularOrderStatus.SCHEDULED]: 1,
6
7
  [enum_1.RegularOrderStatus.PLACED]: 2,
7
8
  [enum_1.RegularOrderStatus.ACCEPTED_BY_RIDER]: 3,
@@ -12,7 +13,7 @@ const REGULAR_ORDER_STATUS_MAP = {
12
13
  [enum_1.RegularOrderStatus.DELIVERED]: 8,
13
14
  [enum_1.RegularOrderStatus.CANCELLED]: 99,
14
15
  };
15
- const COURIER_ORDER_STATUS_MAP = {
16
+ exports.COURIER_ORDER_STATUS_MAP = {
16
17
  [enum_1.CourierOrderStatus.SCHEDULED]: 1,
17
18
  [enum_1.CourierOrderStatus.PLACED]: 2,
18
19
  [enum_1.CourierOrderStatus.ACCEPTED_BY_RIDER]: 3,
@@ -1 +1 @@
1
- {"version":3,"file":"map.js","sourceRoot":"/","sources":["utilities/map.ts"],"names":[],"mappings":";;AAAA,iCAAgE;AAGhE,MAAM,wBAAwB,GAAuC;IACpE,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9B,CAAC,yBAAkB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACzC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IACxC,CAAC,yBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,CAAC,yBAAkB,CAAC,2BAA2B,CAAC,EAAE,CAAC;IACnD,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE;CAClC,CAAC;AACF,MAAM,wBAAwB,GAAuC;IACpE,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9B,CAAC,yBAAkB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACzC,CAAC,yBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE;CAClC,CAAC","sourcesContent":["import { CourierOrderStatus, RegularOrderStatus } from \"./enum\";\n\n// Order mapping with numeric values for easy comparison\nconst REGULAR_ORDER_STATUS_MAP: Record<RegularOrderStatus, number> = {\n\t[RegularOrderStatus.SCHEDULED]: 1,\n\t[RegularOrderStatus.PLACED]: 2,\n\t[RegularOrderStatus.ACCEPTED_BY_RIDER]: 3,\n\t[RegularOrderStatus.PREPARING]: 4,\n\t[RegularOrderStatus.READY_FOR_PICKUP]: 5,\n\t[RegularOrderStatus.ON_THE_WAY]: 6,\n\t[RegularOrderStatus.REPLACEMENT_DROP_AND_PICKUP]: 7,\n\t[RegularOrderStatus.DELIVERED]: 8,\n\t[RegularOrderStatus.CANCELLED]: 99, \n};\nconst COURIER_ORDER_STATUS_MAP: Record<CourierOrderStatus, number> = {\n\t[CourierOrderStatus.SCHEDULED]: 1,\n\t[CourierOrderStatus.PLACED]: 2,\n\t[CourierOrderStatus.ACCEPTED_BY_RIDER]: 3,\n\t[CourierOrderStatus.ON_THE_WAY]: 4,\n\t[CourierOrderStatus.DELIVERED]: 5,\n\t[CourierOrderStatus.CANCELLED]: 99, \n};"]}
1
+ {"version":3,"file":"map.js","sourceRoot":"/","sources":["utilities/map.ts"],"names":[],"mappings":";;;AAAA,iCAAgE;AAGnD,QAAA,wBAAwB,GAAuC;IAC3E,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9B,CAAC,yBAAkB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACzC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,gBAAgB,CAAC,EAAE,CAAC;IACxC,CAAC,yBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,CAAC,yBAAkB,CAAC,2BAA2B,CAAC,EAAE,CAAC;IACnD,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE;CAClC,CAAC;AACW,QAAA,wBAAwB,GAAuC;IAC3E,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9B,CAAC,yBAAkB,CAAC,iBAAiB,CAAC,EAAE,CAAC;IACzC,CAAC,yBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IACjC,CAAC,yBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE;CAClC,CAAC","sourcesContent":["import { CourierOrderStatus, RegularOrderStatus } from \"./enum\";\n\n// Order mapping with numeric values for easy comparison\nexport const REGULAR_ORDER_STATUS_MAP: Record<RegularOrderStatus, number> = {\n\t[RegularOrderStatus.SCHEDULED]: 1,\n\t[RegularOrderStatus.PLACED]: 2,\n\t[RegularOrderStatus.ACCEPTED_BY_RIDER]: 3,\n\t[RegularOrderStatus.PREPARING]: 4,\n\t[RegularOrderStatus.READY_FOR_PICKUP]: 5,\n\t[RegularOrderStatus.ON_THE_WAY]: 6,\n\t[RegularOrderStatus.REPLACEMENT_DROP_AND_PICKUP]: 7,\n\t[RegularOrderStatus.DELIVERED]: 8,\n\t[RegularOrderStatus.CANCELLED]: 99, \n};\nexport const COURIER_ORDER_STATUS_MAP: Record<CourierOrderStatus, number> = {\n\t[CourierOrderStatus.SCHEDULED]: 1,\n\t[CourierOrderStatus.PLACED]: 2,\n\t[CourierOrderStatus.ACCEPTED_BY_RIDER]: 3,\n\t[CourierOrderStatus.ON_THE_WAY]: 4,\n\t[CourierOrderStatus.DELIVERED]: 5,\n\t[CourierOrderStatus.CANCELLED]: 99, \n};"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.0.198",
3
+ "version": "1.0.199",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",